/* --- 1. Global Styles & Variables --- */
:root {
    --primary-blue: #0A234E;
    --primary-gold: #D4A017;
    --light-gray: #f4f7f6;
    --dark-text: #333;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 70px 0;
}

section#hero-section {
    padding: 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 1.5 Social Ribbon --- */
.social-ribbon {
    background-color: var(--primary-blue);
    padding: 8px 0;
}

.social-ribbon .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons a {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* --- 2. Header & Navigation --- */
header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container img {
    height: 50px;
    margin-right: 15px;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: var(--primary-gold);
    color: var(--white);
}

/* --- 3. HERO CAROUSEL Section --- */
#hero-section {
    width: 100%;
    height: 600px;
    position: relative;
}

#hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 78, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 0 20px; /* Add padding for mobile */
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto; /* Ensures text is centered */
}

#hero-swiper .swiper-button-next,
#hero-swiper .swiper-button-prev {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
#hero-swiper .swiper-button-next:hover,
#hero-swiper .swiper-button-prev:hover {
    opacity: 1;
    color: var(--primary-gold);
}

#hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.7);
    width: 12px;
    height: 12px;
    opacity: 1;
}

#hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-gold);
}


/* --- 4. ENHANCED About Us Section --- */
#about .about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.about-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-gold);
    transition: all 0.3s ease;
}

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

.about-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    color: var(--primary-blue);
}

.about-card h3 {
    font-size: 1.8rem;
}

.about-card p {
    font-size: 1.05rem;
}

/* --- 5. ENHANCED & CENTERED Team Section --- */
.team-category {
    font-size: 2.2rem;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    border: none;
    color: var(--primary-blue);
}

.team-category:first-child {
    margin-top: 0;
}

.team-group-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 30px 25px;
    transition: all 0.3s ease;
    flex-basis: 300px;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-gold);
    overflow: hidden;
}

.team-avatar svg {
    width: 60px;
    height: 60px;
    color: var(--primary-blue);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.team-card .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.team-card p {
    font-size: 0.95rem;
    color: #555;
}

/* --- 6. Academic Initiatives Section --- */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.initiative-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.initiative-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.initiative-card h3 {
    font-size: 1.5rem;
}

.initiative-card p {
    font-size: 0.95rem;
}

/* --- 7. Publications Carousel Section --- */
.btn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--primary-blue);
    transform: scale(1.05);
}

#publications .publication-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.publication-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.process-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.publication-carousel-container {
    position: relative;
    padding: 0 50px;
}

/* Styles for Book items in the CAROUSEL */
.book-slide {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.book-slide:hover {
    box-shadow: var(--shadow-hover);
}

.book-slide .book-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-bottom: 3px solid var(--primary-gold);
}

.book-slide .book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.book-slide .book-cover-back {
    opacity: 0;
    filter: brightness(90%);
}

.book-slide:hover .book-cover-front {
    opacity: 0;
}

.book-slide:hover .book-cover-back {
    opacity: 1;
}

.book-slide .book-slide-content {
    padding: 25px;
}

.book-slide .book-slide-content h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.book-slide .book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

#publications-swiper .swiper-button-next, 
#publications-swiper .swiper-button-prev {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#publications-swiper .swiper-button-next:after, 
#publications-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 800;
}
#publications-swiper .swiper-button-prev { left: 0; }
#publications-swiper .swiper-button-next { right: 0; }

#publications-swiper .swiper-pagination-bullet-active {
    background: var(--primary-gold);
}

/* --- 8. Events Section (with Flyer Carousel) --- */
#events h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.events-table th, .events-table td {
    padding: 18px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.events-table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.events-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.events-table tr:hover {
    background-color: #e6f3ff;
}

.flyer-carousel-container {
    position: relative;
    padding: 0 50px;
}

.flyer-slide img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
}

#flyer-swiper .swiper-pagination-bullet-active {
    background: var(--primary-gold);
}

#flyer-swiper .swiper-button-next, 
#flyer-swiper .swiper-button-prev {
     color: var(--primary-blue);
}

/* --- 9. Associated Colleges Section --- */
.associates-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.associate-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
    padding: 25px 35px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.associate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* --- 10. NEW FOOTER & CONTACT FORM --- */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.footer-grid h3 {
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #eee;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #5a7ea9;
    background-color: #1c3a6b;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* Footer Info Styles */
.footer-info-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-links ul { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a {
    color: #eee;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.footer-contact p {
    color: #eee;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact a {
    color: #eee;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #3a5a8a;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- 11. Popup Modal for Announcements --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.4s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-blue);
    text-align: center;
}

.modal-content img {
    width: 100%;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-blue);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- 12. Floating Action Buttons --- */
.floating-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fab-icon:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.fab-icon.whatsapp {
    background-color: #25D366;
}

.fab-icon.whatsapp:hover {
    background-color: #128C7E;
}

.fab-icon.phone {
    background-color: var(--primary-blue);
}

.fab-icon.phone:hover {
    background-color: #061a3b;
}

.fab-icon svg {
    width: 28px;
    height: 28px;
}

/* --- 13. Catalog Page Grid (from catalog.html) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.book-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

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

/* Scoped styles for Book items in the GRID */
.book-card .book-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-bottom: 3px solid var(--primary-gold);
}

.book-card .book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.book-card .book-cover-back {
    opacity: 0;
    filter: brightness(90%);
}

.book-card:hover .book-cover-front {
    opacity: 0;
}

.book-card:hover .book-cover-back {
    opacity: 1;
}

.book-card .book-card-content {
    padding: 25px;
}

.book-card .book-card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.book-card .book-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}


/* --- 14. Mobile Responsive Adjustments --- */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
     .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .social-ribbon {
        display: none;
    }
    header {
        top: 0;
    }
    
    #hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    html {
        scroll-padding-top: 80px;
    }
    
    .floating-action-buttons {
        bottom: 20px;
        right: 20px;
    }
    .fab-icon {
        width: 50px;
        height: 50px;
    }
    .fab-icon svg {
        width: 24px;
        height: 24px;
    }
}

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

/* --- 14. Mobile Navigation Styles --- */

/* The hamburger button */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle .icon-close {
    display: none;
}

.mobile-nav-toggle svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-blue);
}

/* --- 15. Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    
    /* Show the hamburger button */
    .mobile-nav-toggle {
        display: block;
        position: absolute; /* Position it relative to the header */
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    /* Hide the desktop nav links */
    nav ul {
        display: none; /* Hide by default */
        flex-direction: column;
        gap: 1.5rem;
        
        /* Make it a full-page dropdown */
        position: fixed;
        top: 81px; /* Height of the header */
        right: 0;
        left: 0;
        
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 9998;
    }
    
    /* When the menu is open... */
    nav[data-visible="true"] ul {
        display: flex; /* Show the menu */
    }
    
    /* Show the 'close' icon */
    nav[data-visible="true"] .mobile-nav-toggle .icon-close {
        display: block;
    }
    
    /* Hide the 'hamburger' icon */
    nav[data-visible="true"] .mobile-nav-toggle .icon-hamburger {
        display: none;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    nav ul a {
        font-size: 1.2rem;
    }

    /* --- Other Mobile Fixes --- */
    .social-ribbon {
        display: none;
    }
    header {
        top: 0;
    }
    
    #hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    html {
        scroll-padding-top: 80px;
    }
    
    .floating-action-buttons {
        bottom: 20px;
        right: 20px;
    }
    .fab-icon {
        width: 50px;
        height: 50px;
    }
    .fab-icon svg {
        width: 24px;
        height: 24px;
    }
    header {
        padding: 10px 0;
    }

    /* Shrink the logo text so it fits next to the hamburger */
    .logo-container h1 {
        font-size: 0.9rem !important; 
        line-height: 1.2;
        max-width: 150px; /* Limits width to prevent pushing the menu button */
    }

    .logo-container img {
        height: 35px; /* Shrink logo image slightly */
        margin-right: 8px;
    }

    /* Ensure the container uses the full width without overflow */
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Responsive Headings */
    h2 {
        font-size: 1.8rem !important; /* Shrunk from 2.8rem */
        width: auto;
        display: block;
        text-align: center;
    }

    /* Ensure team and initiative cards don't exceed screen width */
    .team-card, .initiative-card, .about-card {
        flex-basis: 100% !important;
        margin: 0 0 20px 0;
        width: 100%;
    }

    /* Center the team group wrapper */
    .team-group-wrapper {
        gap: 15px;
        padding: 0;
    }
.footer-grid {
        grid-template-columns: 1fr !important; /* Stack everything vertically */
        text-align: center;
        gap: 30px;
    }

    .footer-brand-sidebar {
        padding: 20px !important;
    }

    /* Center the social icons in the footer if they exist */
    .footer-links ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
}

/* --- Reveal (Fly-In) Animation Logic --- */

/* 1. The Starting State: Hidden, shifted down, and slightly scaled down */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95); 
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
    visibility: hidden;
    will-change: transform, opacity;
}

/* 2. The Active State: Element slides up and fades in when scrolled into view */
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* 3. Academic Services Specific Hover Zoom */
.initiative-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease !important;
}

.initiative-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-gold) !important;
}

/* 4. Service Image Zoom */
.service-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.initiative-card:hover .service-image-wrapper img {
    transform: scale(1.1);
}

/* Ensure the container doesn't cut off the arrows if they are outside */
.featured-carousel-container {
    padding: 0 20px;
}

/* Adjust arrow size for a single book display */
.featured-next::after, .featured-prev::after {
    font-size: 24px !important;
    font-weight: bold;
}

/* Optional: Add a smooth zoom effect on the active book */
#featured-books-swiper .swiper-slide img {
    transition: transform 0.3s ease;
}

#featured-books-swiper .swiper-slide-active img {
    transform: scale(1.05);
}

.modal-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    /* ADD THESE FOR BETTER MOBILE HEIGHT */
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative;
}

.modal-close {
    position: absolute;
    /* MOVE BUTTON INSIDE FOR MOBILE */
    top: 10px;
    right: 10px;
    /* Increase z-index to stay above the image */
    z-index: 10; 
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}
