/* ===================================
   Additional CSS for Sections
   Add this to style.css or create as separate file
   =================================== */

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    padding: 30px 0;
    background: url("https://www.toptal.com/designers/subtlepatterns/uploads/embossed-diamond.png");
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}

.gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 243, 0.75);
    pointer-events: none;
    z-index: 0;
}

.gallery-section > * {
    position: relative;
    z-index: 1;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.gallery-tab {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--cream-warm);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.gallery-tab:hover {
    background: var(--white);
    border-color: var(--gold-rich);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.gallery-tab.active {
    background: var(--gradient-gold);
    border-color: var(--gold-rich);
    color: var(--primary-deep);
}

.gallery-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 94, 0.9) 0%, rgba(201, 162, 39, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0) scale(1);
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    text-align: center;
    padding: 0 20px;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ===================================
   Lightbox Modal
   =================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--gradient-gold);
    color: var(--primary-deep);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--gold-rich);
    color: var(--primary-deep);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* ===================================
   News & Events Section
   =================================== */
.news-events-section {
    padding: 60px 0;
    background: var(--cream-base);
}

#newsCarousel {
    position: relative;
    padding: 0 70px;
    overflow: hidden;
}

.carousel-inner {
    padding-bottom: 70px;
}

.news-carousel-control {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow-medium);
    z-index: 10;
}

.news-carousel-control:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-strong);
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-10px);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-gold);
    color: var(--primary-deep);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 66px;
    overflow: hidden;
}

/* ===================================
   Important Links Section
   =================================== */
.links-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f0e6 100%);
    position: relative;
    overflow: hidden;
}

.links-split-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

.feature-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 243, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--primary-deep);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(26, 26, 94, 0.08);
}

.feature-box:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 243, 1) 100%);
    transform: translateY(-8px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(26, 26, 94, 0.15);
}

.important-links-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 243, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(26, 26, 94, 0.12);
    border: 3px solid var(--gold-rich);
    position: sticky;
    top: 20px;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.important-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--cream-warm);
    border-radius: 10px;
    border-left: 4px solid var(--gold-rich);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.important-link:hover {
    background: var(--white);
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-deep);
}

/* ===================================
   Notice Board Styling
   =================================== */
.notice-body {
    padding: 20px 24px;
    max-height: 150px;
    overflow-y: auto;
}

.notice-body::-webkit-scrollbar {
    width: 6px;
}

.notice-body::-webkit-scrollbar-track {
    background: var(--cream-warm);
    border-radius: 3px;
}

.notice-body::-webkit-scrollbar-thumb {
    background: var(--gold-rich);
    border-radius: 3px;
}

.notice-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-warm);
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: var(--cream-warm);
    margin: 0 -24px;
    padding: 14px 24px;
}

.notice-date {
    background: var(--cream-warm);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 55px;
    flex-shrink: 0;
}

.notice-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-deep);
    line-height: 1;
}

.notice-date .month {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.notice-text a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.95rem;
}

.notice-text a:hover {
    color: var(--primary-accent);
}

.new-badge {
    display: inline-block;
    background: #dc3545;
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .links-split-container {
        grid-template-columns: 1fr;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .gallery-tab span {
        display: none;
    }
    
    .gallery-tab i {
        font-size: 1.4rem;
        margin: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}
