/* =====================================================
   GLOBAL STYLES
===================================================== */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable; /* Prevents layout shift */
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    padding-top: 70px; /* Offset for fixed header */
    color: #2f3e55;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* Prevent tap highlight on all elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent any layout shifts */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =====================================================
   HEADER
===================================================== */
.main-header {
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
    z-index: 1030;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    will-change: box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force GPU acceleration */
    -webkit-font-smoothing: antialiased;
}

.main-header.scrolled {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Ensure container doesn't cause shifts */
.main-header .container-fluid {
    max-width: 100%;
    margin: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
}


/* =====================================================
   LOGO - PREVENT SHAKE ON CLICK
===================================================== */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #2f3e55;
    outline: none !important;
    text-decoration: none !important;
    display: inline-block;
    transition: none !important;
}

.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand:hover {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: #2f3e55 !important;
}

.navbar-brand img {
    display: block;
    pointer-events: none; /* Prevent image itself from getting focus */
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 250px;
    }
}


/* =====================================================
   DESKTOP MENU - FIXED FOR NO SHAKE
===================================================== */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #2f3e55 !important;
    padding: 0.75rem 1rem;
    transition: none !important;
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    display: block;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #6a8caf !important;
    transition: color 0.2s ease !important;
}

.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible,
.nav-link:visited {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    color: #2f3e55 !important;
    background: transparent !important;
}

/* Prevent any clicking effects */
.navbar-nav .nav-link:active {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Prevent any margin/padding issues */
.navbar-nav {
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
}

/* Remove Bootstrap's default active state */
.navbar-nav .nav-link:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure navbar collapse doesn't cause layout shift */
.navbar-collapse {
    flex-grow: 0;
}


/* =====================================================
   THIN HAMBURGER MENU
===================================================== */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none !important;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: #2f3e55;
    display: block;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #2f3e55;
    left: 0;
}

.hamburger-icon::before {
    top: -7px;
}

.hamburger-icon::after {
    top: 7px;
}


/* =====================================================
   OFFCANVAS MENU
===================================================== */
.offcanvas-body .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #2f3e55;
}

.offcanvas-body .nav-link:focus,
.offcanvas-body .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.offcanvas.offcanvas-end
{
    border-left: 0;
}

/* =====================================================
   HERO / CAROUSEL SECTION (FIXED & MOBILE SAFE)
===================================================== */
.carousel-section {
    background: linear-gradient(135deg, #eef3fa, #e4ecf6);
    padding: 50px 0 20px 0;
}

/* Slide Content */
.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2f3e55;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.65;
    color: #555555;
    margin-bottom: 1.6rem;
}

/* CTA Button */
.explore-btn {
    padding: 8px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #6a8caf;
    color: #ffffff;
    border: 1px solid #6a8caf;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.explore-btn:hover {
    background-color: #395470;
    color: #ffffff;
}

/* Image */
.image-section img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

/* =====================================================
   HERO INDICATORS (BOTTOM CENTER)
===================================================== */

.carousel-indicators [data-bs-target]
{
    background-color: rgb(117, 102, 170);
}

.hero-indicators-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.hero-indicators {
    position: static;
    display: flex;
    gap: 12px;
    margin: 0;
    
}

.hero-indicators button {
    width: 15px;
    height: 15px;
    /* border-radius: 50%; */
    background-color: #acbacd;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-indicators button.active {
    background-color: #6a8caf;
    transform: scale(1.15);
}

/* =====================================================
   MOBILE FIXES (CRITICAL)
===================================================== */
@media (max-width: 768px) {

    .carousel-section {
        padding: 0px 0 20px;
    }

    .content-section h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .image-section {
        display: none; /* remove image cleanly */
    }

    .hero-indicators-wrapper {
        margin-top: 0px;
    }

    .explore-btn {
        display: inline-block;
        margin: 0 auto 10px auto;
    }

    .content-section {
        text-align: center;
    }

}

/* =====================================================
   HERO HEIGHT STABILIZATION (MOBILE)
===================================================== */
@media (max-width: 768px) {

    /* Fix carousel height so content below does not jump */
    #mainCarousel {
        min-height: 420px;
    }

    /* Ensure each slide fills the same height */
    #mainCarousel .carousel-item {
        min-height: 420px;
    }

    /* Vertically center content inside the fixed height */
    #mainCarousel .carousel-item .row {
        min-height: 420px;
        display: flex;
        align-items: center;
    }
}



/* =====================================================
   WHY CHOOSE SECTION
===================================================== */
.why-choose {
    background-color: #f7f9fc;
    padding: 80px 0 40px 0;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 50px;
    color: #2f3e55;
}

/* Card */
.why-card {
    background: #ffffff;
    padding: 40px 25px;
    text-align: center;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Icon */
.why-icon {
    font-size: 5rem;
    color: #6a8caf;
    margin-bottom: 20px;
    height: 140px;
}

/* Text */
.why-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 500;
}

@media (max-width: 767px) {
    .section-heading h2 {
        font-size: 1.3rem;
    }

    .why-sapjc-boxes{
        padding: 25px;
    }

    .why-card {
        padding: 30px 20px;
    }

}


/* =====================================================
   TAGLINE SECTION
===================================================== */
.college-tagline {
    background-color: #ffffff;
    padding: 40px 0 30px 0;
}

.tagline-content {
    max-width: 900px;
    margin: 0 auto;
}

.tagline-content p {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2f3e55;
}

.tagline-content strong {
    font-weight: 600;
    color: #6a8caf;
}

@media (max-width: 767px) {
    .college-tagline {
        padding: 50px 20px;
    }

    .tagline-content p {
        font-size: 1.05rem;
    }
}


/* ================================
   ALUMNI SECTION (MANUAL SLIDER)
================================ */
.alumni-section {
    background-color: #eef3f7;
}

.alumni-slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

.alumni-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.alumni-slider {
    display: flex;
    gap: 25px;
    will-change: transform;
}

.alumni-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 25px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.alumni-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.alumni-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2f3e55;
}

.alumni-card span {
    display: block;
    font-size: 0.85rem;
    color: #6a8caf;
    margin-bottom: 12px;
}

.alumni-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.alumni-card a {
    text-decoration: none;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #0e2d93;
    transition: 0.5s;
    /* border: 1px solid #0e2d93;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 50px; */
}


/* NAV BUTTONS */
.alumni-nav {
    background: #ffffff;
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    color: #2f3e55;
}

.alumni-nav:hover {
    background-color: #6a8caf;
    color: #ffffff;
}

/* =====================================================
   ALUMNI PAGE — EXCLUSIVE CSS
   Pairs with: style.css (global)
   Font: Raleway (inherited from global)
   Colors: matched to Podar brand palette
===================================================== */

/* ─── Page Banner ─────────────────────────────────── */
.alumni-banner {
    background: linear-gradient(135deg, #2f3e55 0%, #4a6a8e 100%);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alumni-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.alumni-banner h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    letter-spacing: 0.5px;
}

.alumni-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
    position: relative;
}

@media (max-width: 768px) {
    .alumni-banner {
        padding: 44px 20px 36px;
    }

    .alumni-banner h1 {
        font-size: 1.7rem;
    }
}

/* ─── Section Wrapper ─────────────────────────────── */
.alumni-section {
    background-color: #f7f9fc;
    padding: 70px 0 80px;
}

/* ─── Section Sub-heading ─────────────────────────── */
.alumni-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a8caf;
    margin-bottom: 8px;
}

.alumni-section-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #2f3e55;
    margin-bottom: 0;
    text-transform: uppercase;
}

.alumni-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a8caf, #acbacd);
    border: none;
    margin: 18px auto 48px;
    border-radius: 2px;
}

/* ─── Testimonial Card ────────────────────────────── */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(47, 62, 85, 0.07);
    padding: 32px 28px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(47, 62, 85, 0.12);
}

/* large decorative quote mark */
.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: #dce6f2;
    position: absolute;
    top: 14px;
    left: 22px;
    pointer-events: none;
    user-select: none;
}

.testimonial-card p{
    font-size: 0.85rem;
    font-style: italic;
}

/* ─── Photo ───────────────────────────────────────── */
.alumni-photo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.alumni-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #dce6f2;
    flex-shrink: 0;
    background-color: #eef3fa;
}

/* ─── Alumni Meta ─────────────────────────────────── */
.alumni-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alumni-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2f3e55;
    margin: 0 0 3px;
    line-height: 1.3;
}

.alumni-designation {
    font-size: 0.82rem;
    font-weight: 500;
    color: #6a8caf;
    margin: 0;
    line-height: 1.4;
}

/* ─── Testimonial Text ────────────────────────────── */
.testimonial-text {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #4a5a6e;
    flex-grow: 1;
    padding-top: 6px;
    position: relative;
    z-index: 1;
}

/* ─── "Read More" toggle ──────────────────────────── */
.testimonial-text.collapsed {
    /* Show approximately 5 lines then fade */
    max-height: 8.75em;   /* 5 lines × 1.75 line-height */
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.testimonial-text.expanded {
    max-height: none;
    -webkit-mask-image: none;
            mask-image: none;
}

.read-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6a8caf;
    cursor: pointer;
    align-self: flex-start;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.read-toggle:hover {
    color: #2f3e55;
}

/* ─── Accent Tag (batch/stream) ──────────────────── */
.alumni-tag {
    display: inline-block;
    background-color: #eef3fa;
    color: #6a8caf;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 16px;
    align-self: flex-start;
}

/* ─── Responsive Grid ─────────────────────────────── */
@media (max-width: 768px) {
    .alumni-section {
        padding: 50px 0 60px;
    }

    .testimonial-card {
        padding: 26px 20px 22px;
    }

    .testimonial-card::before {
        font-size: 4rem;
    }

    .alumni-photo {
        width: 60px;
        height: 60px;
    }

    .alumni-name {
        font-size: 0.95rem;
    }

    .alumni-designation {
        font-size: 0.8rem;
    }
}

/* ================================
   RESULTS PAGE – NAV TABS
================================ */

/* Center the tabs */
.results-tabs .nav-tabs {
    justify-content: center;
    border-bottom: 2px solid #6a8caf; /* optional – cleaner look */
}

/* Tab links */
.results-tabs .nav-tabs .nav-link {
    font-weight: 700;
    color: #2f3e55;
    padding: 10px 22px;
    margin: 0 6px;
    border-radius: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Active tab */
.results-tabs .nav-tabs .nav-link.active {
    background-color: #6a8caf;
    color: #ffffff;
    border-color: #6a8caf;
}

/* Hover state */
.results-tabs .nav-tabs .nav-link:hover {
    color: #2d445a;
}


/* MOBILE */
@media (max-width: 768px) {

    .alumni-slider-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .alumni-slider {
        transform: none !important;
    }

    .alumni-card {
        scroll-snap-align: center;
        min-width: 260px;
        max-width: 260px;
    }

    .alumni-nav {
        display: none;
    }
}




/* =====================================================
   COMMON CONTENT SECTION (INNER PAGES)
===================================================== */
.content-wrapper {
    padding: 40px 0 30px 0;
}

/* Section Heading */
.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2f3e55;
    margin: 0;
    text-transform: uppercase;
}

/* Content Body */
.content-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 15px;
}

/* Sub Headings */
.content-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2f3e55;
    margin: 30px 0 15px;
}


/* Lists */
.content-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-body ul li {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 40px 0 40px 0;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }
}

/* =====================================================
   MISSION & VISION SECTION
===================================================== */
.mv-card {
    background-color: #ffffff;
    padding: 40px 35px;
    height: 100%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    border-left: 5px solid transparent;
}

/* Vision */
.vision-card {
    border-left-color: #6a8caf;
}

/* Mission */
.mission-card {
    border-left-color: #c8a24d;
}

.mv-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2f3e55;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .mv-card {
        padding: 30px 25px;
    }

    .mv-card h3 {
        font-size: 1.2rem;
    }
}


/* =====================================================
   GENERIC STAFF CARD
===================================================== */
.staff-card {
    background-color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.staff-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.staff-photo {
    width: 100%;
    max-width: 160px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
}

/* =====================================================
   TYPOGRAPHY HIERARCHY FIX
===================================================== */

/* Section / Page Headings */
.content-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2f3e55;
}

/* Subsection Headings (Leadership, Teaching Staff, etc.) */
.content-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7889a4;
}

/* Card Titles / Names (Staff names) */
.staff-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f3e55;
    margin-bottom: 2px;
}

.staff-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6a8caf;
    margin: 0;
}

/* =====================================================
   ACADEMIC STREAM CARD (REUSABLE)
===================================================== */
.stream-card {
    background-color: #ffffff;
    padding: 30px 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.stream-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2f3e55;
}

.stream-card ul {
    padding-left: 18px;
}

.stream-card ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
    color: #555555;
}


/* Mobile */
@media (max-width: 768px) {
    .staff-card {
        padding: 20px 15px;
    }
}

.table th {
    background-color: #eef3fa;
    font-weight: 600;
    color: #2f3e55;
}

.table td {
    font-size: 0.95rem;
}


/* =====================================================
   EVENTS GRID
===================================================== */
.event-card {
    background: #ffffff;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.event-thumb {
    height: 350px;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 10px;
}

.event-title {
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: #2f3e55;
    flex-grow: 1;
}


/* =====================================================
   EVENT LIGHTBOX (FULL SCREEN)
===================================================== */
.event-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    z-index: 9999;
}

.event-lightbox.show {
    display: flex;
}

.event-lightbox-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* LEFT */
.event-lightbox-left {
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-lightbox-left img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* NAV BUTTONS */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
}

.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

/* RIGHT */
.event-lightbox-right {
    width: 35%;
    background: #ffffff;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    border: none;
    background: none;
    cursor: pointer;
}

#lightboxTitle {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #2f3e55;
}

#lightboxDescription {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* MOBILE */
@media (max-width: 768px) {
    .event-lightbox-content {
        flex-direction: column;
    }

    .event-lightbox-left,
    .event-lightbox-right {
        width: 100%;
        height: 50%;
    }
}


/* ================================
   RESULTS PAGE
================================ */
.result-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border: 10px solid #f6f6f6;
    transition: 0.5s;
}

.result-photo:hover {
    border: 4px solid #f1f1f1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}


/* ================================
   CONTACT PAGE
================================ */

.contact-box {
    margin-bottom: 28px;
}

.contact-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2f3e55;
    margin-bottom: 8px;
}

.contact-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.contact-box a {
    color: #6a8caf;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Google Map */
.map-box {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Mobile */
@media (max-width: 767px) {
    .map-box {
        min-height: 300px;
    }
}



/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background-color: #f3f6fb;
    padding: 25px 0;
}

.footer-content p {
    margin: 0;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2f3e55;
}

.footer-location {
    font-size: 0.85rem;
    color: #6a8caf;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 20px 0;
    }
}

/* =====================================================
   GO TO TOP BUTTON (GLOBAL)
===================================================== */
#goToTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #6a8caf;
    color: #ffffff;
    border: none;
    border-radius: 50%;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visible state */
#goToTopBtn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hover */
#goToTopBtn:hover {
    background-color: #2f3e55;
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
    #goToTopBtn {
        width: 40px;
        height: 40px;
        bottom: 18px;
        right: 18px;
        font-size: 18px;
    }
}



/* =====================================================
   FACILITIES PAGE
   Load AFTER style.css. Every class is prefixed
   .facility- so nothing in style.css is affected.
===================================================== */

/* ---------- Facility block ---------- */
.facility-block {
    margin-bottom: 50px;
    background-color: #f7f9fc;
    border-right: 5px solid #c8a24d;
    padding: 30px;
}

/* Every second facility: tinted background + gold accent */
.facility-block.alt {
    background-color: #f7f9fc;
    border-left: 5px solid #c8a24d;
    border-right: none;
    padding: 30px;
}

.facility-block .facility-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2f3e55;
    margin: 0 0 15px;
}

/* ---------- Photo cluster ----------
   4 columns x 2 rows, square-ish tiles.
   Photos are cropped to fill (object-fit: cover), so any
   size or orientation tiles cleanly. The lightbox shows
   the full uncropped photo.
------------------------------------------------------ */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    aspect-ratio: 2 / 1;
}

.facility-tile {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #dce6f2;
    cursor: pointer;
}

.facility-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.facility-tile:hover img {
    transform: scale(1.05);
}

.facility-tile:focus-visible {
    outline: 3px solid #6a8caf;
    outline-offset: 2px;
}

/* 5+ photos (default): first photo large, next four small */
.facility-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Only the first 5 are shown on the page; the rest live in the lightbox */
.facility-tile:nth-child(n+6) {
    display: none;
}

/* "+N" overlay on the 5th tile (added by JS when there are more than 5) */
.facility-tile.facility-more::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(47, 62, 85, 0.72);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
}

/* 1 photo */
.facility-tile:first-child:last-child {
    grid-column: 1 / -1;
}

/* 2 photos */
.facility-tile:first-child:nth-last-child(2),
.facility-tile:nth-child(2):last-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* 3 photos */
.facility-tile:nth-child(2):nth-last-child(2),
.facility-tile:nth-child(3):last-child {
    grid-column: span 2;
}

/* 4 photos */
.facility-tile:nth-child(2):nth-last-child(3) {
    grid-column: span 2;
}

/* ---------- Lightbox ---------- */
.facility-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 9999;
}

.facility-lightbox.show {
    display: flex;
}

.facility-lightbox-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.facility-lightbox-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.facility-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.facility-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
}

.facility-nav.prev { left: 20px; }
.facility-nav.next { right: 20px; }

.facility-lightbox-right {
    /* width: 35%; */
    background: #ffffff;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.facility-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: #2f3e55;
}

#facilityLightboxTitle {
    margin: 0 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2f3e55;
}

#facilityLightboxCaption {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 12px;
}

#facilityLightboxCount {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6a8caf;
    margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .facility-block {
        margin-bottom: 40px;
    }

    .facility-block.alt {
        padding: 20px;
    }

    .facility-gallery {
        gap: 6px;
    }

    .facility-tile.facility-more::after {
        font-size: 1.2rem;
    }

    .facility-lightbox-content {
        flex-direction: column;
    }

    .facility-lightbox-left,
    .facility-lightbox-right {
        width: 100%;
    }

    .facility-lightbox-left {
        height: 62%;
    }

    .facility-lightbox-right {
        height: 38%;
        padding: 20px;
    }

    .facility-nav.prev { left: 6px; }
    .facility-nav.next { right: 6px; }
}
