﻿/* Import Slider Styles */
@import url('/css/Shared/slider-styles.css');

/* Slider Image Link */
.slider-image-link {
    display: block;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.slider-image-link:hover {
    opacity: 0.95;
}

.slider-image-link img {
    pointer-events: none;
}

/* Section Titles - Animated */
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    position: relative;
}

.title-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.title-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel caption should be above the clickable link */
.carousel-caption {
    z-index: 10;
}

/* 1. SLIDER CTA - Glassmorphism Effect */
.slider-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 48px 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

    .slider-cta:hover {
        transform: translateY(-4px) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        color: white;
    }

.cta-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-cta:hover .cta-arrow {
    transform: translateX(8px) rotate(45deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    z-index: 1;
}

.slider-cta:hover .cta-ripple {
    width: 500px;
    height: 500px;
    opacity: 0.2;
}

/* 2. LINK ANIMATED - Morphing Button */
.link-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.link-text,
.link-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
}

.link-animated:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

    .link-animated:hover .link-bg {
        width: 100%;
    }

    .link-animated:hover .link-icon {
        background: white;
        color: var(--primary-color);
        transform: translateX(4px) rotate(90deg);
    }

/* 3. ANNOUNCEMENT CARDS - Neon Border + Holographic */
.announcement-card {
    position: relative;
    border: none;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

    .announcement-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1), transparent);
        transition: left 0.8s ease;
    }

/* Neon Border for Announcements */
.announcement-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
    z-index: 1;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.announcement-card:hover .announcement-border {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient( from 0deg at 50% 50%, var(--primary-color) 0deg, var(--secondary-color) 120deg, var(--accent-color) 240deg, var(--primary-color) 360deg );
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 8s linear infinite;
    filter: blur(40px);
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.announcement-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

    .announcement-card:hover::before {
        left: 100%;
    }

    .announcement-card:hover .card-glow {
        opacity: 0.15;
    }

.announcement-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: iconPulseAnim 2s ease-out infinite;
}

@keyframes iconPulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.announcement-card:hover .announcement-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 4. NEWS CARDS - Neon Border + Magnetic Hover */
.news-card {
    position: relative;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--card-bg);
}

/* Neon Border for News */
.news-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
    z-index: 1;
}

.news-card:hover .news-border {
    opacity: 1;
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-card img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.6), rgba(var(--secondary-color-rgb, 108, 117, 125), 0.6));
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-overlay .overlay-text {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-overlay .overlay-text i {
    font-size: 1.8rem;
}

/* News image link - clickable */
a.news-image-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
}

.placeholder-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 4rem;
}

.news-card:hover {
    transform: translateY(-16px) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 0 40px rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

    .news-card:hover img {
        transform: scale(1.2) rotate(3deg);
    }

    .news-card:hover .image-overlay {
        opacity: 1;
    }

        .news-card:hover .image-overlay .overlay-text {
            transform: scale(1);
        }

.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

/* NEWS CTA BUTTON - FIXED WITH HOVER EFFECTS */
.news-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 1;
}

    /* Animated background wave effect */
    .news-cta::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 120%;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translateX(-50%);
        transition: height 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: -1;
    }

    .news-cta .cta-text,
    .news-cta .cta-circle {
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

.cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover effects */
.news-cta:hover {
    transform: translateX(6px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

    .news-cta:hover::before {
        height: 300%;
    }

    .news-cta:hover .cta-circle {
        background: white;
        color: var(--primary-color);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    .news-cta:hover .cta-text {
        letter-spacing: 0.5px;
    }

/* Active state */
.news-cta:active {
    transform: translateX(3px) scale(1.02);
}

/* 5. EVENT CARDS - Neon Glow */
.event-card {
    position: relative;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
}

.event-card:hover .event-border {
    opacity: 1;
}

.event-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .event-image-wrapper img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/
        transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        filter: brightness(0.9);
    }

.event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(var(--primary-color-rgb, 0, 123, 255), 0.3);
}

    .event-card:hover img {
        transform: scale(1.15);
        filter: brightness(1.1);
    }

    .event-card:hover .event-badge {
        transform: scale(1.2) rotate(360deg);
    }

.event-meta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.event-card:hover .event-date,
.event-card:hover .event-location {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.event-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 1rem;
    border-radius: 14px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.event-cta-text,
.event-cta-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.event-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.event-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

    .event-cta:hover .event-cta-bg {
        transform: scale(1.1);
    }

    .event-cta:hover .event-cta-icon {
        // background: white;
        // color: var(--primary-color);
        // transform: translateX(6px) rotate(45deg);
        background: white;
        color: var(--primary-color);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

/* Smooth Animations */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ===== ULTRA PREMIUM DESIGN SYSTEM ===== */
/* Section Titles - Animated */
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    position: relative;
}

.title-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.title-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slider Image Link */
.slider-image-link {
    display: block;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

    .slider-image-link:hover {
        opacity: 0.95;
    }

    .slider-image-link img {
        pointer-events: none;
    }

/* Carousel caption should be above the clickable link */
.carousel-caption {
    z-index: 10;
}

/* 1. SLIDER CTA - Glassmorphism Effect */
.slider-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 48px 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

    .slider-cta:hover {
        transform: translateY(-4px) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        color: white;
    }

.cta-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-cta:hover .cta-arrow {
    transform: translateX(8px) rotate(45deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    z-index: 1;
}

.slider-cta:hover .cta-ripple {
    width: 500px;
    height: 500px;
    opacity: 0.2;
}

/* 2. LINK ANIMATED - Morphing Button */
.link-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.link-text,
.link-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
}

.link-animated:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

    .link-animated:hover .link-bg {
        width: 100%;
    }

    .link-animated:hover .link-icon {
        background: white;
        color: var(--primary-color);
        transform: translateX(4px) rotate(90deg);
    }

/* 3. ANNOUNCEMENT CARDS - Neon Border + Holographic */
.announcement-card {
    position: relative;
    border: none;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

    .announcement-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1), transparent);
        transition: left 0.8s ease;
    }

/* Neon Border for Announcements */
.announcement-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
    z-index: 1;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.announcement-card:hover .announcement-border {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient( from 0deg at 50% 50%, var(--primary-color) 0deg, var(--secondary-color) 120deg, var(--accent-color) 240deg, var(--primary-color) 360deg );
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: rotateGlow 8s linear infinite;
    filter: blur(40px);
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.announcement-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

    .announcement-card:hover::before {
        left: 100%;
    }

    .announcement-card:hover .card-glow {
        opacity: 0.15;
    }

.announcement-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: iconPulseAnim 2s ease-out infinite;
}

@keyframes iconPulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.announcement-card:hover .announcement-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


/* ... Keep all remaining styles from your original Index.cshtml ... */
.bx-shdw {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Badge New */
.badge-new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== PREMIUM ANNOUNCEMENT MODAL ===== */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .announcement-modal.active {
        display: flex;
    }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-custom {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05), rgba(var(--secondary-color-rgb, 108, 117, 125), 0.05));
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.modal-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: iconRotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconRotate {
    from {
        transform: rotate(-180deg) scale(0);
    }

    to {
        transform: rotate(0deg) scale(1);
    }
}

.modal-header-content {
    flex: 1;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

    .modal-meta i {
        color: var(--primary-color);
    }

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-close-btn:hover {
        background: rgba(255, 0, 0, 0.1);
        color: #dc3545;
        transform: rotate(90deg);
    }

.modal-body-custom {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

    .modal-body-custom::-webkit-scrollbar {
        width: 8px;
    }

    .modal-body-custom::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .modal-body-custom::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

    .modal-body-custom p {
        margin-bottom: 1rem;
    }

    .modal-body-custom ul,
    .modal-body-custom ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-body-custom h1,
    .modal-body-custom h2,
    .modal-body-custom h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-height: 90vh;
        border-radius: 15px;
    }

    .modal-header-custom {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-body-custom {
        padding: 20px;
    }

    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}



/* ========== MASONRY GALLERY (ANNOUNCEMENT-LIKE HOVER) ========== */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
}

/* ITEM */
.masonry-item {
    position: relative;
    grid-row: span 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform-origin: center center;
}

/* Dynamic sizes */
.masonry-tall {
    grid-row: span 2;
}

.masonry-wide {
    grid-column: span 2;
}

/* ANNOUNCEMENT-LIKE SWEEP LIGHT */
.masonry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.25), transparent );
    transition: left 0.8s ease;
    z-index: 5;
    pointer-events: none;
}

/* NEON BORDER */
.masonry-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient( 135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color) );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.5s ease;
    z-index: 4;
    pointer-events: none;
}

/* NEON GLOW (CARD-GLOW EŞLENİĞİ) */
.masonry-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient( from 0deg at 50% 50%, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color) );
    opacity: 0;
    filter: blur(45px);
    animation: rotateGlow 8s linear infinite;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* IMAGE */
.masonry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 ULTRA DEPTH */
    box-shadow: // /* temas eden gölge */
    0 4px 12px rgba(0, 0, 0, 0.28), // /* hacim gölgesi */
    0 18px 45px rgba(0, 0, 0, 0.25), // /* ambient (ortam) */
    0 40px 90px rgba(0, 0, 0, 0.15);
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), filter 0.9s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}


.masonry-item:hover .masonry-image {
    transform: scale(1.14) rotate(2deg);
    filter: brightness(1.1) contrast(1.05) saturate(1.04);
    box-shadow: // /* temas koptu */
    0 12px 25px rgba(0, 0, 0, 0.45), // /* ana hacim */
    0 35px 80px rgba(0, 0, 0, 0.45), // /* derin atmosfer */
    0 80px 160px rgba(0, 0, 0, 0.35), // /* very subtle premium glow */
    0 0 45px rgba(102, 126, 234, 0.18);
}


/* OVERLAY & DİĞER KATMANLAR ÜSTTE KALSIN */
.masonry-overlay,
.masonry-border,
.masonry-glow {
    position: relative;
    z-index: 3;
}

/* ========== HOVER – ULTRA PREMIUM FLOAT ========== */
.masonry-item:hover {
    transform: translateY(-10px);
}

    /* Shadow gerçekten “kopuyor” */
    .masonry-item:hover::after {
        opacity: 1;
        transform: translateY(32px) scale(1.02);
        filter: blur(12px);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 70px 160px rgba(0, 0, 0, 0.40), 0 150px 320px rgba(0, 0, 0, 0.25);
    }

    /* Image daha pahalı dursun */
    .masonry-item:hover .masonry-image {
        transform: scale(1.12) rotate(1.5deg);
        filter: brightness(1.1) contrast(1.05) saturate(1.04);
    }



/* OVERLAY (SOFT – IMAGE GÖRÜNÜR KALSIN) */
.masonry-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 6;
    pointer-events: none;
}

    /* OVERLAY GRADIENT (ANIMATED – ZAYIF FİLTRE) */
    .masonry-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color) );
        opacity: 0.20; /* ⭐ RESİM DAHA ÇOK GÖRÜNÜR */
        animation: borderRotate 4s linear infinite;
    }

/* OVERLAY CONTENT */
.masonry-overlay-content {
    position: relative;
    z-index: 7;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ICON */
.masonry-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

    .masonry-icon i {
        font-size: 2rem;
        color: white;
    }

/* TITLE & DESC */
.masonry-title {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.masonry-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== HOVER STATES (ANNOUNCEMENT LIKE) ========== */
.masonry-item:hover {
    transform: translateY(-12px);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(102, 126, 234, 0.18);
    z-index: 10;
}

    .masonry-item:hover::before {
        left: 120%;
    }

    .masonry-item:hover .masonry-border {
        opacity: 1;
    }

    .masonry-item:hover .masonry-glow {
        opacity: 0.18;
    }

    .masonry-item:hover .masonry-overlay {
        opacity: 1;
    }

    .masonry-item:hover .masonry-overlay-content {
        transform: translateY(0);
    }

    .masonry-item:hover .masonry-icon {
        transform: scale(1.12) rotate(-6deg);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    }

    .masonry-item:hover .masonry-image {
        transform: scale(1.12) rotate(2deg);
        filter: brightness(1.08) contrast(1.03);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(102, 126, 234, 0.25);
    }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .masonry-gallery // {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 180px;
        gap: 15px;
    }

    .masonry-wide {
        grid-column: span 1;
    }

    .masonry-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.masonry-overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.masonry-item:hover .masonry-overlay-content {
    transform: translateY(0);
}

.masonry-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.masonry-icon i {
    font-size: 2rem;
    color: white;
}

.masonry-title {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.masonry-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}
/* ========== GALLERY VIEWER ========== */
.gallery-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .gallery-viewer.active {
        display: flex;
    }

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.4s ease;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 150px;
    z-index: 1;
}

/* Close Button */
.viewer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .viewer-close:hover {
        background: rgba(255, 59, 48, 0.8);
        border-color: rgba(255, 59, 48, 1);
        transform: rotate(90deg) scale(1.1);
    }

/* Navigation Buttons */
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.viewer-prev {
    left: 30px;
}

.viewer-next {
    right: 30px;
}

.viewer-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
}

.viewer-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Image Display */
.viewer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 100%;
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.viewer-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.viewer-info {
    text-align: center;
    color: white;
    max-width: 700px;
}

.viewer-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.viewer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.viewer-counter {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Thumbnail Strip */
.viewer-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow-x: auto;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .viewer-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .viewer-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

.viewer-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

    .viewer-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .viewer-thumbnail:hover {
        transform: scale(1.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .viewer-thumbnail.active {
        border-color: white;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

/* Responsive */
@media (max-width: 768px) {
    .masonry-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 180px;
        gap: 15px;
    }

    .masonry-wide {
        grid-column: span 1;
    }

    .viewer-container {
        padding: 60px 15px 120px;
    }

    .viewer-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .viewer-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .viewer-prev {
        left: 15px;
    }

    .viewer-next {
        right: 15px;
    }

    .viewer-title {
        font-size: 1.5rem;
    }

    .viewer-description {
        font-size: 1rem;
    }

    .viewer-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* ========== MODAL GALLERY & FILES SECTION ========== */
.modal-gallery-section,
.modal-files-section {
    padding: 0 30px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.modal-section-header {
    padding: 10px 0;
}

.modal-section-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.modal-section-header h5 i {
    color: var(--primary-color);
}

/* Gallery Grid */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.modal-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Files List */
.modal-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-file-item:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
}

.modal-file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-file-icon i {
    color: white;
    font-size: 1.3rem;
}

.modal-file-info {
    flex: 1;
    min-width: 0;
}

.modal-file-name {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-file-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.modal-file-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-file-download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== GALLERY LIGHTBOX ========== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 100px 150px;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 59, 48, 0.8);
    border-color: rgba(255, 59, 48, 1);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
}

.lightbox-image-container {
    text-align: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow-x: auto;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumbnail:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-thumbnail.active {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Attachment Indicators */
.attachment-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-indicators .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive for Modal Gallery & Lightbox */
@media (max-width: 768px) {
    .modal-gallery-section,
    .modal-files-section {
        padding: 0 20px 15px;
    }

    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .modal-file-item {
        padding: 12px;
        flex-wrap: wrap;
    }

    .modal-file-download {
        width: 100%;
        margin-top: 10px;
    }

    .modal-file-download .btn {
        width: 100%;
        justify-content: center;
    }

    .lightbox-content {
        padding: 60px 20px 120px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-thumbnail {
        width: 50px;
        height: 50px;
    }
}
