﻿/* Design tokens (CSS variables) */
:root {
    --primary-blue: #1e40af;
    --secondary-orange: #f59e0b;
    --accent-green: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-gray: #e5e7eb;
    --focus-ring: 3px solid rgba(245,158,11,0.85);
    --base-font: 16px;
    --max-width: 1200px;
}

/* Leadership small round profile images used in Message from Leadership section */
.leader-photo {
    /* Rectangular profile image with slight rounded corners */
    width: 100%;
    height: 10rem;
    border-radius: 0.5rem;
    object-fit: contain;
    border: 0.1875rem solid var(--secondary-orange);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
  .leader-photo {
    width: 5.25rem;
    height: 5.75rem;
  }
}

@media (max-width: 480px) {
  .leader-photo {
    width: 4.5rem;
    height: 5rem;
  }
}

.acc-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .acc-btn[aria-pressed="true"] {
        background-color: yellow;
        color: black;
        border-color: yellow;
    }

/* 3-Column Layout for Home Page */
.home-layout {
/*    display: grid;*/
    grid-template-columns: minmax(16rem, 1.2fr) 3fr minmax(16rem, 1.2fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.home-layout-left {
    order: 1;
    min-width: 0; /* Prevent grid blowout */
}

.home-layout-middle {
    order: 2;
    min-width: 0; /* Prevent grid blowout */
}

.home-layout-right {
    order: 3;
    min-width: 0; /* Prevent grid blowout */
}

/* START: left sidebar styles (moved from inline in Index.cshtml) */
#left-training-heading {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1.25rem; /* 20px */
    text-align: center;
}

/* Add small underline accent like the right sidebar heading */
#left-training-heading {
    position: relative;
    padding-bottom: 12px;
}

#left-training-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.home-layout-left .services-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem; /* 20px */
}

.home-layout-left .service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
}

.home-layout-left .service-card {
    box-shadow: none;
    padding: 1rem; /* 16px */
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem; /* 8px */
    transition: all 0.3s ease;
    background: transparent; /* keep gradient from parent visible */
}

.home-layout-left .service-card .service-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251,191,36,0.15);
    border-radius: 50%;
    border: 1px solid rgba(251,191,36,0.25);
}

.home-layout-left .service-card h4 {
    font-size: 1rem;
    margin-bottom: 0.375rem; /* 6px */
    color: var(--primary-blue);
}

.home-layout-left .service-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-light);
}
/* END: left sidebar styles */

.layout-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    border: none;
    height: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

/* Left sidebar: match right sidebar warm ivory gradient */
.home-layout-left.layout-box {
    background: linear-gradient(170deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 1px solid #fde68a;
}

/* restore default text colors to match right box */
.home-layout-left.layout-box h3,
.home-layout-left.layout-box h4 {
    color: var(--text-dark);
}

.home-layout-left.layout-box .services-sub {
    color: var(--text-light);
}

.home-layout-left .service-card p {
    color: var(--text-light) !important;
}

.home-layout-left .service-card {
    border-color: rgba(0,0,0,0.04) !important;
    background: rgba(255,255,255,0.0) !important;
}

.home-layout-left .service-card:hover {
    background: rgba(0,0,0,0.02) !important;
    border-color: var(--secondary-orange) !important;
}

/* Right sidebar: warm ivory gradient */
.home-layout-right.layout-box {
    background: linear-gradient(170deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 1px solid #fde68a;
}

    .layout-box h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    /* Service cards in sidebar */
    .layout-box .service-card:hover {
        transform: translateX(0.25rem);
        box-shadow: 0 0.25rem 0.75rem rgba(245, 158, 11, 0.2) !important;
        border-color: var(--secondary-orange) !important;
    }

/* Mobile Responsive: Stack vertically with carousel on top */
@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: minmax(16rem, 1fr) 2fr minmax(16rem, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-layout-middle {
        order: 1;
    }

    .home-layout-left {
        order: 2;
    }

    .home-layout-right {
        order: 3;
    }

    .layout-box {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .home-layout {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .layout-box {
        padding: 1rem;
    }

        .layout-box h3 {
            font-size: 1.2rem;
        }
}

html[data-theme="high-contrast"] {
    --primary-blue: #0f1662;
    --secondary-orange: #e97700;
    --accent-green: #047857;
    --text-dark: #000000;
    --text-light: #4b5563;
    --bg-light: #ffffff;
    --white: #ffffff;
    --border-gray: #374151;
    --focus-ring: 3px solid #e97700;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    width: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text-dark);
    background: #f0f2f5;
    line-height: 1.5;
    font-size: var(--base-font);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.125rem;
    width: 100%;
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    left: 6px;
    top: -40px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 10px;
    border-radius: 4px;
    z-index: 2000;
    transition: top .25s ease;
}

    .skip-link:focus {
        top: 6px;
    }

.top-header {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.95rem;
}

    .top-header .top-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        /* padding:8px 0; */
    }

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

    .social-link:hover {
        background: rgba(255,255,255,0.2);
    }

.accessibility-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acc-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.24);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .acc-btn:focus {
        outline: var(--focus-ring);
    }

.main-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 3px solid var(--secondary-orange);
    padding: 1px 0;
}

.header-row {
    display: flex;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 18px;
    /* background: gray; */
    /* padding: 0; */
    /* margin: 0; */
}

.logo-emblem {
    width: 9rem;
    height: auto;
    border-radius: 25%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-gray);
    flex: 0 0 auto;
}

    .logo-emblem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.title-section {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

    .title-section h1 {
        font-size: clamp(28px, 4vw, 42px);
        margin: 0;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
        line-height: 1.4;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
        font-family: "Segoe UI", "Arial", sans-serif;
        position: relative;
        display: inline-block;
        animation: fadeInDown 0.6s ease-out;
    }

        .title-section h1::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #f59e0b, transparent);
            border-radius: 2px;
        }

    .title-section .subtitle, .home_sub_title {
        margin-top: 16px;
        color: #3b82f6;
        font-size: clamp(16px, 2vw, 30px);
        font-weight: 600;
        line-height: 1.4;
        font-family: "Segoe UI", "Noto Sans Devanagari", "Arial", sans-serif;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        animation: fadeInUp 0.6s ease-out 0.2s both;
    }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode for title */
html[data-theme="high-contrast"] .title-section h1 {
    background: none;
    -webkit-text-fill-color: #000000;
    color: #000000;
    font-weight: 900;
    text-shadow: none;
}

html[data-theme="high-contrast"] .title-section .subtitle {
    color: #000000;
    font-weight: 700;
    text-shadow: none;
}

html[data-theme="high-contrast"] .title-section h1::after {
    background: #e97700;
    height: 4px;
}

/* Responsive adjustments for title */
@media (max-width: 768px) {
    .title-section {
        padding: 0 10px;
    }

        .title-section h1 {
            font-size: clamp(22px, 5vw, 32px);
            letter-spacing: -0.3px;
        }

            .title-section h1::after {
                width: 80%;
                height: 2px;
                bottom: -6px;
            }

        .title-section .subtitle {
            font-size: clamp(14px, 3vw, 18px);
            margin-top: 12px;
        }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: clamp(18px, 6vw, 26px);
    }

    .title-section .subtitle {
        font-size: clamp(12px, 4vw, 16px);
        margin-top: 10px;
    }

    /* START: Extra small screens - tighten header/logo to prevent wrapping */
    .logo-emblem {
        width: 5rem;
    }

    .govt-logo {
        width: 3rem;
    }

    .title-section h1 {
        font-size: clamp(16px, 6.5vw, 22px);
        line-height: 1.15;
    }
    /* END: Extra small screens */
}

/* Print styles for title */
@media print {
    .title-section h1 {
        background: none;
        -webkit-text-fill-color: #000000;
        color: #000000;
        text-shadow: none;
    }

        .title-section h1::after {
            display: none;
        }
}

.govt-logos {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.govt-logo {
    width: 8rem;
    height: auto;
    border-radius: 4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-gray);
}

    .govt-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* ==========================================================================
   BOOTSTRAP NAVBAR CUSTOMIZATION
   Custom styling for Bootstrap navigation to match site design
   ========================================================================== */

/* Navbar base styling */
.navbar {
    padding: 0 !important;
}

    .navbar .container {
        padding: 0;
    }
/* Navigation links styling */
.navbar-nav .nav-link {
    color: #1f2937 !important;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 2px;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: #1e40af !important;
        color: #ffffff !important;
    }

    /* Active link */
    .navbar-nav .nav-link.active {
        background-color: #1e40af !important;
        color: #ffffff !important;
    }
/* Dropdown menu styling */
.navbar .dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: none;
    padding: 6px 0;
    margin-top: 2px;
}

.navbar .dropdown-item {
    padding: 8px 14px;
    color: #1f2937;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: #f8fafc;
        color: #1e40af;
    }

/* Nested dropdown (dropend) styling */
.navbar .dropend .dropdown-menu {
    margin-left: 2px;
}

/* Dropdown divider */
.navbar .dropdown-divider {
    margin: 4px 0;
    border-color: #e5e7eb;
}

/* Nested dropdowns (dropend) - make them work with hover */
.navbar .dropend {
    position: relative;
}

    .navbar .dropend > .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        /* Fix arrow direction for nested dropdowns */
        .navbar .dropend > .dropdown-toggle::after {
            display: inline-block;
            margin-left: auto;
            vertical-align: 0.255em;
            content: "";
            border-top: 0.3em solid transparent;
            border-right: 0;
            border-bottom: 0.3em solid transparent;
            border-left: 0.3em solid;
            transform: none;
        }

        /* Alternative: Use Font Awesome icon for right arrow */
        .navbar .dropend > .dropdown-toggle::after {
            content: "\f054";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            border: none;
            margin-left: auto;
            font-size: 0.7em;
        }

    .navbar .dropend > .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 0;
        margin-top: 0;
    }

    /* Show nested dropdown on hover */
    .navbar .dropend:hover > .dropdown-menu {
        display: block;
    }

/* Desktop: Show dropdown on hover */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropend:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile toggle button */
.navbar-toggler {
    border-color: #1f2937;
    padding: 4px 8px;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 41, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #f59e0b;
        padding: 10px;
        border-radius: 6px;
        margin-top: 8px;
    }

    .navbar-nav .nav-link {
        margin: 2px 0;
    }

    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-left: 15px;
    }

    .navbar .dropend .dropdown-menu {
        margin-left: 30px;
    }
}

background: var(--white);
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
display: none;
padding: 6px 0;
margin-left: 2px;
}

.dropdown-item-with-submenu:hover .dropdown-nested,
.dropdown-item-with-submenu:focus-within .dropdown-nested {
    display: block;
}

.dropdown-item-with-submenu:hover .submenu-arrow {
    transform: translateX(3px);
}

.dropdown-nested a {
    padding: 8px 14px;
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

    .dropdown-nested a:hover,
    .dropdown-nested a:focus {
        background: var(--bg-light);
        color: var(--primary-blue);
    }

/* ==========================================================================
   END NESTED DROPDOWN SUBMENU SUPPORT
   ========================================================================== */

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid transparent;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
}

.whats-new {
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid var(--secondary-orange);
    position: relative;
}

.whats-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.whats-new-content {
    display: inline-block;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.hero {
    padding: 64px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        animation: heroSlideshow 20s infinite;
        z-index: 0;
        opacity: 0.9;
    }

@keyframes heroSlideshow {
    0%,20% {
        background-image: url("../assets/images/dts-building-exterior.jpg");
    }

    25%,45% {
        background-image: url("http://dts.4review.work/assets/images/Screenshot\ 2025-09-27\ at\ 5.27.43\ PM.png");
    }

    50%,70% {
        background-image: url("http://dts.4review.work/assets/images/Screenshot\ 2025-09-27\ at\ 5.37.33\ PM.png");
    }

    75%,95% {
        background-image: url("http://dts.4review.work/assets/images/Screenshot\ 2025-09-27\ at\ 5.30.28\ PM.png");
    }

    100% {
        background-image: url("../assets/images/dts-building-exterior.jpg");
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .hero-inner {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: clamp(24px,4vw,48px);
    margin: 0 0 12px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(14px,1.6vw,20px);
    opacity: 0.95;
}

.cta-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-orange);
    color: var(--text-dark);
    border-color: var(--secondary-orange);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.stats {
    padding: 42px 0;
    background: var(--primary-blue);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-orange);
    text-shadow: 0 0 20px rgba(245,158,11,0.35);
}

/* ==========================================================================
   START OF WELCOME MESSAGE SECTION
   ========================================================================== */
.welcome-message {
    padding: 60px 0;
    background: var(--bg-light);
}

.welcome-content {
    max-width: 1100px;
    margin: 0 auto;
}

.welcome-intro {
   /* font-size: 1.1rem;
    line-height: 1.8;*/
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

/* START: welcome-intro overrides for Home/Index (moved from inline in Index.cshtml) */
.home-layout-middle .welcome-intro {
   text-align: justify; /* moved from inline */
}
/* END: welcome-intro overrides for Home/Index */

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.welcome-feature-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
}

    .welcome-feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.welcome-feature-item h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 15px 0;
    font-weight: 700;
}

.welcome-feature-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================================
   START: Shared page container & header styles moved from views
   These common rules were previously duplicated inside many Razor views.
   Centralizing here reduces duplication and ensures consistent layout.
   ========================================================================== */
.history-section,
.mission-section,
.objectives-section,
.message-page,
.directors-page,
.courses-page {
    padding: 1.5rem 0;
    background: var(--bg-light);
}

.history-content,
.mission-content,
.objectives-content,
.message-container,
.directors-container,
.courses-container {
    max-width: 1500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.history-header,
.mission-header,
.objectives-header,
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-orange);
    position: relative;
}

.history-header::after,
.mission-header::after,
.objectives-header::after,
.page-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
}

.history-header h2,
.mission-header h2,
.objectives-header h2,
.page-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.history-text,
.mission-text,
.message-text {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: justify;
}

.history-text p,
.mission-text p,
.message-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 20px 25px;
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    margin: 30px 0;
}

.stats-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .history-content,
    .mission-content,
    .objectives-content,
    .message-container,
    .directors-container,
    .courses-container {
        padding: 25px 20px;
    }

    .history-text p,
    .mission-text p,
    .message-text p {
        font-size: 0.95rem;
    }
}
/* ==========================================================================
   END: Shared page container & header styles
   ========================================================================== */


/* START: welcome-feature-inline styles (moved from inline in Index.cshtml) */
.welcome-feature-inline {
    padding: 0.75rem;
    border-left: 0.1875rem solid var(--secondary-orange);
    background: var(--bg-light);
    border-radius: 0.375rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-feature-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
/* END: welcome-feature-inline styles */

/* START: welcome-feature-inline text styles (moved from inline in Index.cshtml) */
.welcome-feature-inline h5 {
    margin: 0 0 0.375rem 0; /* 0 0 6px 0 */
    color: var(--primary-blue);
    /*font-size: 0.95rem;*/
}
.welcome-feature-inline p {
    /*font-size: 0.8rem;*/
    margin: 0;
    color: var(--text-dark);
}
/* END: welcome-feature-inline text styles */

/* Responsive design for welcome section */
@media (max-width: 768px) {
    .welcome-message {
        padding: 40px 0;
    }

    .welcome-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .welcome-feature-item {
        padding: 25px 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .welcome-feature-item h4 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   END OF WELCOME MESSAGE SECTION
   ========================================================================== */

/* ==========================================================================
   START OF LEADERSHIP MESSAGES SECTION - Photo Card Row Layout
   ========================================================================== */
/* 
 * This section displays leadership messages (ADG, DTS Director) in a row-by-row layout
 * Photo on left, content on right (or reversed for alternating rows)
 */

.photos-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Main container for each photo card row - displays photo and content side-by-side */
.photo-card-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover effect - lifts card up with enhanced shadow */
    .photo-card-row:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    /* Reverse layout for alternating rows - photo on right, content on left */
    .photo-card-row.reverse {
        flex-direction: row-reverse;
    }





/* Photo container - fixed width on left/right side (reduced by 40% total: 400px → 256px) */
.photo-card-image {
    flex: 0 0 256px;
    height: 288px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    /* Photo image - covers container, scales on hover */
    .photo-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

/* Zoom effect on hover */
.photo-card-row:hover .photo-card-image img {
    transform: scale(1.05);
}

/* Content container - holds designation, name, subtitle, quote, and read more link */
.photo-card-details {
    flex: 1;
    padding: 0px; /*increase space in the content*/
    display: flex;
    flex-direction: column;
    gap: 5px; /*increase space in the content*/
}

/* ==========================================================================
   LEADERSHIP TEXT CONTENT STYLES
   ========================================================================== */

/* Designation text (e.g., "ADDITIONAL DIRECTOR GENERAL (ADG)") - small, uppercase, blue */
.designation {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
}

/* Person's name - large, bold, dark gray */
.person-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Subtitle (e.g., "Maharashtra Police") - medium size, italic, gray */
.subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   QUOTE BLOCKQUOTE STYLING
   ========================================================================== */

/* Blockquote container for leadership messages */
.message-quote {
    position: relative;
    background: #ffffff;
    padding: 16px 20px;
    border-left: 3px solid #1e40af; /* Blue left border for emphasis */
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    /* Quote text - larger font, spaced, italic */
    .message-quote p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #374151;
        margin: 0;
        font-style: italic;
    }

/* Font Awesome quote icons (fa-quote-left, fa-quote-right) */
.quote-icon {
    color: #1e40af;
    font-size: 1rem;
    opacity: 0.6;
}

    /* Spacing for opening quote icon */
    .quote-icon:first-child {
        margin-right: 8px;
    }

    /* Spacing for closing quote icon */
    .quote-icon:last-child {
        margin-left: 8px;
    }

/* START - External links box (Right sidebar) */
.external-links {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.9));
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(30,64,175,0.06);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.external-links h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--primary-blue);
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(30,58,138,0.04), rgba(245,158,11,0.03));
    border: 1px solid rgba(30,58,138,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-weight: 600;
}

.external-link i {
    color: var(--secondary-orange);
    font-size: 0.9rem;
}

.external-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(30,58,138,0.12);
    background: linear-gradient(90deg, rgba(30,58,138,0.06), rgba(245,158,11,0.06));
}

.external-link:focus {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* START: External links favicon styles */
.external-link .favicon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 6px rgba(16,24,40,0.08);
}
/* END: External links favicon styles */


/* END - External links box (Right sidebar) */

/* ==========================================================================
   READ MORE LINK BUTTON
   ========================================================================== */

/* Read More button - blue with arrow icon */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1e40af;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

    /* Hover effect - darker blue, slides right, adds shadow */
    .read-more-link:hover {
        background: #1e3a8a;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    }

    /* Arrow icon animation on hover */
    .read-more-link i {
        transition: transform 0.3s ease;
    }

    /* Arrow moves right on hover */
    .read-more-link:hover i {
        transform: translateX(3px);
    }

/* ==========================================================================
   RESPONSIVE DESIGN FOR PHOTO CARDS
   ========================================================================== */

/* Tablet - reduce photo size and padding (40% total reduction) */
@media (max-width: 1024px) {
    .photo-card-row {
        gap: 25px;
        padding: 18px;
    }

    .photo-card-image {
        flex: 0 0 224px;
        height: 256px;
    }

    .photo-card-details {
        padding: 18px;
    }

    .person-name {
        font-size: 1.3rem;
    }

    .designation {
        font-size: 0.75rem;
    }
}

/* Mobile - stack vertically (photo on top, content below) */
@media (max-width: 768px) {
    /* Remove side-by-side layout, stack vertically */
    .photo-card-row,
    .photo-card-row.reverse {
        flex-direction: column;
        gap: 0;
        padding: 15px;
    }

    /* Full width photo on top (reduced height by 40% total: 350px → 224px) */
    .photo-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: 224px;
        margin-bottom: 15px;
    }

    .photo-card-details {
        padding: 20px 15px;
    }

    .person-name {
        font-size: 1.2rem;
    }

    .designation {
        font-size: 0.7rem;
    }

    .message-quote p {
        font-size: 0.85rem;
    }

    /* Full width Read More button on mobile */
    .read-more-link {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile - further reduce sizes (40% total reduction) */
@media (max-width: 480px) {
    .photos-section {
        padding: 35px 0;
    }

    .photo-card-row {
        margin-bottom: 25px;
        padding: 12px;
    }

    .photo-card-image {
        height: 192px;
        margin-bottom: 12px;
    }

    .photo-card-details {
        padding: 16px 10px;
    }

    .person-name {
        font-size: 1.1rem;
    }

    .designation {
        font-size: 0.7rem;
    }

    .message-quote {
        padding: 14px 16px;
    }

        .message-quote p {
            font-size: 0.8rem;
        }

    .read-more-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   LEGACY PHOTO CARD STYLES (Side-by-side grid)
   Keeping for backward compatibility with other sections
   ========================================================================== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.photo-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-gray);
}

    .photo-card:hover {
        transform: translateY(-5px);
    }

    .photo-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.photo-card-content {
    padding: 20px;
}

.photo-card h3 {
    margin: 0 0 12px 0;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.photo-card p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

section {
    padding: 56px 0;
}

.about {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 50%, var(--accent-green) 100%);
    color: var(--white);
    padding: 4px;
    box-shadow: 0 8px 32px rgba(30,64,175,0.18);
    transition: box-shadow 0.3s ease;
}

.about-image:hover {
    box-shadow: 0 12px 40px rgba(30,64,175,0.28);
}

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 18px;
    /*max-width: 1100px;*/
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--border-gray);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-grid .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    border-color: var(--secondary-orange);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg,var(--primary-blue),var(--secondary-orange));
    color: white;
}

.our_leadership .service-icon {
    width: 9rem;
    height: 9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--secondary-orange);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.news-image {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg,var(--primary-blue),var(--secondary-orange));
    color: white;
    padding: 18px;
}

.news-content {
    padding: 16px;
}

.news-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 36px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--secondary-orange);
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

/* Footer Social Media Section */
.footer-social {
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-social h4 {
        color: var(--secondary-orange);
        margin-bottom: 20px;
        font-size: 1.4rem;
        font-weight: 600;
    }

    .footer-social .social-links {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }

    .footer-social .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: var(--white);
        text-decoration: none;
        font-size: 20px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

        .footer-social .social-link:hover {
            background: var(--secondary-orange);
            border-color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
        }

        .footer-social .social-link:focus {
            outline: 3px solid var(--secondary-orange);
            outline-offset: 3px;
        }

    .footer-social .social-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* Responsive adjustments for footer social */
@media (max-width: 768px) {
    .footer-social .social-links {
        gap: 15px;
    }

    .footer-social .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 18px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

a:focus, button:focus, input:focus, select:focus {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h3 {
        font-size: clamp(24px, 3vw, 36px);
        color: var(--primary-blue);
        margin: 0 0 12px 0;
        display: inline-block;
        position: relative;
        padding-bottom: 10px;
    }

    .section-title h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--secondary-orange);
        border-radius: 2px;
    }

    .section-title p {
        color: var(--text-light);
        max-width: 600px;
        margin: 0 auto;
        font-size: 1.1rem;
    }

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .photos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* START: Responsive header adjustments for mobile/tablet */
    /* Show a reduced govt logo on smaller screens and scale header elements */
    .govt-logos {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .logo-emblem {
        width: 5rem; /* reduce from 9rem */
        flex: 0 0 auto;
    }

    .govt-logo {
        width: 3.75rem; /* smaller round gov logo */
        flex: 0 0 auto;
    }

    .title-section h1 {
        font-size: clamp(20px, 5vw, 30px);
    }
    /* END: Responsive header adjustments for mobile/tablet */

    .mobile-toggle {
        display: inline-block;
        margin-right: 6px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

        .nav-menu.open {
            display: flex;
            background: var(--secondary-orange);
            padding: 8px;
            border-radius: 8px;
        }

    .nav-item a {
        padding: 12px;
    }

    .social-links {
        display: none;
    }

    /* Keep footer social links visible on all screen sizes */
    .footer-social .social-links {
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    .whats-new-content {
        animation: none;
    }
}

/* ==========================================================================
   HERO CAROUSEL / SLIDER SECTION
   Full-width image carousel with text overlay, navigation arrows, and dots
   Auto-plays every 5 seconds with smooth transitions
   ========================================================================== */

/* Main carousel container - full width, 600px height */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 30rem; /* 480px converted to rem */
    overflow: hidden;
    background: #000;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Wrapper for all slides */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide - positioned absolutely, hidden by default */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove background properties from here - will use pseudo-elements */
}

    /* LAYER 1: Blurred background (fills entire space, no black bars) */
    .carousel-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit; /* Inherits from inline style */
        background-size: cover; /* Fills entire space */
        background-position: top;
        background-repeat: no-repeat;
        filter: blur(20px) brightness(0.7); /* Blurred and slightly darkened */
        transform: scale(1.1); /* Scale up to hide blur edges */
        z-index: 0; /* Behind everything */
    }

    /* LAYER 2: Sharp foreground image (preserves quality, fully visible) */
    .carousel-slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit; /* Same image as ::before */
        background-size: contain; /* Shows full image without cropping */
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1; /* Above blurred background */
    }
    

    /* Active slide - visible */
    .carousel-slide.active {
        opacity: 1;
        z-index: 1;
    }

    /* Text content container - centered, above both image layers */
    .carousel-slide .hero-inner {
        position: relative;
        text-align: center;
        color: #fff;
        z-index: 2; /* Above both blurred background and sharp foreground */
        animation: slideInUp 0.8s ease-out; /* Slide up animation when shown */
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Text shadow for readability */
    }


/* Slide-in animation for text content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Start 30px below */
    }

    to {
        opacity: 1;
        transform: translateY(0); /* End at normal position */
    }
}

/* ==========================================================================
   CAROUSEL TEXT CONTENT STYLES
   ========================================================================== */

/* Main heading - large, bold, with text shadow */
.carousel-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

/* Subheading/description text - medium size, centered */
.carousel-subheading {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   CAROUSEL NAVIGATION CONTROLS
   ========================================================================== */

/* Previous/Next arrow buttons - circular, semi-transparent white */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    font-size: 3rem;
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Glass effect */
}

    /* Hover effect - more opaque, slightly larger */
    .carousel-control:hover {
        background: rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) scale(1.1);
    }

    /* Previous button position */
    .carousel-control.prev {
        left: 1.25rem; /* 20px */
    }

    /* Next button position */
    .carousel-control.next {
        right: 1.25rem; /* 20px */
    }

/* ==========================================================================
   CAROUSEL NAVIGATION DOTS (INDICATORS)
   ========================================================================== */

/* Dots container - centered at bottom */
.carousel-dots {
    position: absolute;
    bottom: 1.875rem; /* 30px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem; /* 12px */
    z-index: 10;
}

/* Individual dot - small circle */
.dot {
    width: 0.75rem; /* 12px */
    height: 0.75rem; /* 12px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    /* Dot hover effect */
    .dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    /* Active dot - elongated pill shape */
    .dot.active {
        background: #fff;
        width: 1.875rem; /* 30px - Wider to show active state */
        border-radius: 0.375rem; /* 6px */
    }

/* ==========================================================================
   CAROUSEL CTA BUTTONS (Call-to-Action)
   ========================================================================== */

/* Button container - centered, wraps on small screens */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button base styles - padded, rounded, with shadow */
.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Primary button - solid blue background */
.btn-primary {
    background: #1e40af;
    color: #fff;
}

    /* Primary button hover - darker, lifts up, enhanced shadow */
    .btn-primary:hover {
        background: #1e3a8a;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(30, 64, 175, 0.5);
    }

/* Secondary button - transparent with white border (glass effect) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
}

    /* Secondary button hover - solid white, text turns blue */
    .btn-secondary:hover {
        background: #fff;
        color: #1e40af;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
    }

/* Highlighted text (e.g., "Crime Investigation Training") - yellow/gold color */
.highlight {
    color: #fbbf24;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   CAROUSEL RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet - reduce sizes */
@media (max-width: 768px) {
    /* Reduce carousel height */
    .hero-carousel {
        height: 20.25rem; /* 500px converted to rem */
    }

    /* Smaller heading text */
    .carousel-heading {
        font-size: 2rem;
    }

    /* Smaller subheading with horizontal padding */
    .carousel-subheading {
        font-size: 1rem;
        padding: 0 1.25rem;
    }

    /* Smaller navigation arrows */
    .carousel-control {
        width: 2.5rem; /* 40px */
        height: 2.5rem; /* 40px */
        font-size: 2rem;
    }

        /* Move arrows closer to edges */
        .carousel-control.prev {
            left: 0.625rem; /* 10px */
        }

        .carousel-control.next {
            right: 0.625rem; /* 10px */
        }

    /* Stack buttons vertically on mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Constrain button width on mobile */
    .btn {
        width: 80%;
        max-width: 18.75rem; /* 300px */
    }
}

/* Small mobile - further reduce sizes */
@media (max-width: 480px) {
    /* Even smaller carousel height */
    .hero-carousel {
        height: 14.125rem; /* 450px converted to rem */
    }

    /* Even smaller heading */
    .carousel-heading {
        font-size: 1.5rem;
    }

    /* Move dots up slightly */
    .carousel-dots {
        bottom: 1.25rem; /* 20px */
    }

    /* Smaller dot size */
    .dot {
        width: 0.625rem; /* 10px */
        height: 0.625rem; /* 10px */
    }

        /* Smaller active dot width */
        .dot.active {
            width: 1.5rem; /* 24px */
        }
}

/* ==========================================================================
   END HERO CAROUSEL STYLES
   ========================================================================== */

/* START: welcome-heading styles (moved from inline in Index.cshtml) */
#welcome-heading {
    color: var(--primary-blue);
    margin-top: 0;
    font-size: 1.7rem; /* originally 1.4rem inline */
    margin-bottom: 1rem; /* ~16px */
    text-align: center;
}
/* END: welcome-heading styles */

/* START: Message from Leadership styles (moved from inline in Index.cshtml) */
#right-leadership-heading {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1.25rem; /* 20px */
    text-align: center;
}

.home-layout-right .lead-card {
    margin-bottom: 1.75rem; /* 28px */
    padding-bottom: 1.25rem; /* 20px */
    border-bottom: 0.125rem solid var(--border-gray); /* 2px */
}

.home-layout-right .lead-image-wrap {
    text-align: center;
    margin-bottom: 0.75rem; /* 12px */
}

/*.home-layout-right .lead-designation {
    color: var(--secondary-orange);
    font-size: 0.85rem;*/ /* increased for readability */
    /*margin: 0.5rem 0 0.25rem 0;*/ /* 8px 0 4px 0 */
    /*text-align: center;
    text-transform: uppercase;
}*/

.lead-designation {
    color: var(--secondary-orange);
    font-size: 0.85rem; /* increased for readability */
    margin: 0.5rem 0 0.25rem 0; /* 8px 0 4px 0 */
    text-align: center;
    text-transform: uppercase;
}

/*.home-layout-right .lead-name {
    color: var(--primary-blue);
    margin: 0.25rem 0;
    font-size: 1.125rem;*/ /* slightly larger */
    /*font-weight: 700;
    text-align: center;
}*/

.lead-name {
    color: var(--primary-blue);
    margin: 0.25rem 0;
    font-size: 1.125rem; /* slightly larger */
    font-weight: 700;
    text-align: center;
}

/*.home-layout-right .lead-subtitle {
    font-size: 0.85rem;*/ /* increased */
    /*color: var(--text-light);
    margin: 0.25rem 0 0.75rem 0;*/ /* 4px 0 12px 0 */
    /*text-align: center;
    font-weight: 500;
}*/

.lead-subtitle {
    font-size: 0.85rem; /* increased */
    color: var(--text-light);
    margin: 0.25rem 0 0.75rem 0; /* 4px 0 12px 0 */
    text-align: center;
    font-weight: 500;
}


#leader-quote-adg,
#leader-quote-dts {
    font-size: 0.98rem; /* larger for legibility */
    line-height: 1.65; /* increased line-height for better reading */
    color: var(--text-dark);
    font-style: italic;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-layout-right .lead-read-more {
    font-size: 0.95rem; /* slightly larger */
    color: var(--secondary-orange);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem; /* 8px */
    background: transparent;
    padding: 0.5rem 1rem;
    border: none;
}

@media (max-width: 1024px) {
    .home-layout-right .lead-name { font-size: 1.05rem; }
    #leader-quote-adg, #leader-quote-dts { font-size: 0.95rem; line-height: 1.55; }
}

@media (max-width: 480px) {
    .home-layout-right .lead-designation, .home-layout-right .lead-subtitle { font-size: 0.8rem; }
    .home-layout-right .lead-name { font-size: 1rem; }
    #leader-quote-adg, #leader-quote-dts { font-size: 0.9rem; line-height: 1.5; }
}
/* END: Message from Leadership styles */

/* START: Facilities listing page styles */

/* Hero */
.fac-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #2563eb 100%);
    padding: 20px 5% 0px;
    overflow: hidden;
}
.fac-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245,158,11,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.fac-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20zM40 40V20L20 40z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.fac-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.fac-hero-title {
    color: #fff;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.fac-hero-sub {
    color: rgba(255,255,255,0.82);
    font-size: clamp(14px, 2vw, 1.1rem);
    margin: 0 0 24px;
    line-height: 1.5;
}
.fac-hero-stats {
    display: inline-flex;
    gap: 32px;
}
.fac-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fac-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-orange);
    line-height: 1.1;
}
.fac-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section */
.fac-section {
    padding: 40px 0 56px;
    background: var(--bg-light);
}

/* Category groups */
.fac-category {
    margin-bottom: 44px;
}
.fac-category:last-child {
    margin-bottom: 0;
}
.fac-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-gray);
    position: relative;
}
.fac-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-orange);
    border-radius: 1px;
}
.fac-cat-icon {
    font-size: 1.4em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30,64,175,0.08), rgba(245,158,11,0.1));
    flex-shrink: 0;
}

/* Grid */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    max-width: 1200px;
}

/* Card link */
.fac-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 16px;
    outline-offset: 3px;
}
.fac-card-link:focus-visible {
    outline: var(--focus-ring);
}

/* Card */
.fac-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-gray);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1), border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30,64,175,0.12);
    border-color: var(--secondary-orange);
}

/* Thumbnail area */
.fac-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}
.fac-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
}
.fac-card:hover .fac-card-img {
    transform: scale(1.08);
}
.fac-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #fef3c7 100%);
}

/* Hover overlay */
.fac-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(30,64,175,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fac-card:hover .fac-card-overlay {
    opacity: 1;
}
.fac-card-view {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(245,158,11,0.85);
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}
.fac-card:hover .fac-card-view {
    transform: translateY(0);
}

/* Photo count badge */
.fac-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Card body */
.fac-card-body {
    display: flex;
    gap: 14px;
    padding: 16px 18px 18px;
    flex: 1;
}
.fac-card-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30,64,175,0.08), rgba(245,158,11,0.1));
    flex-shrink: 0;
}
.fac-card-text {
    flex: 1;
    min-width: 0;
}
.fac-card-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.35;
    transition: color 0.2s;
}
.fac-card:hover .fac-card-text h4 {
    color: var(--primary-blue);
}
.fac-card-text p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .fac-hero { padding: 40px 4% 36px; }
    .fac-hero-stats { gap: 24px; }
    .fac-stat-num { font-size: 1.6rem; }
    .fac-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .fac-card-thumb { height: 150px; }
    .fac-card-body { padding: 14px 14px 16px; gap: 10px; }
    .fac-card-icon { width: 38px; height: 38px; min-width: 38px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .fac-hero { padding: 32px 4% 28px; }
    .fac-hero-stats { gap: 20px; }
    .fac-stat-num { font-size: 1.4rem; }
    .fac-stat-label { font-size: 0.75rem; }
    .fac-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .fac-card-thumb { height: 170px; }
    .fac-category-title { font-size: 1.1rem; gap: 8px; }
    .fac-cat-icon { width: 36px; height: 36px; font-size: 1.2em; }
}
/* END: Facilities listing page styles */

/* START: Facility Gallery styles */

/* Hero banner */
.fg-hero {
    position: relative;
    height: 185px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.fg-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.55);
    transform: scale(1.08);
}
.fg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,64,175,0.35) 0%, rgba(30,64,175,0.85) 100%);
}
.fg-hero-content {
    position: relative;
    z-index: 2;
    padding: 28px 5%;
    width: 100%;
}
.fg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 14px;
    transition: background 0.2s, color 0.2s;
}
.fg-back-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.fg-hero-title {
    color: #fff;
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.fg-photo-count {
    display: inline-block;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 4px 14px;
}

/* Gallery section */
.fg-section {
    padding: 36px 0 52px;
    background: var(--bg-light);
}

/* Grid */
.fg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.fg-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid var(--border-gray);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}
.fg-card:hover,
.fg-card:focus-visible {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 14px 36px rgba(30,64,175,0.13);
    border-color: var(--secondary-orange);
    outline: none;
}
.fg-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(.25,.8,.25,1);
}
.fg-card:hover .fg-card-img {
    transform: scale(1.07);
}

/* Hover overlay */
.fg-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,64,175,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fg-card:hover .fg-card-overlay,
.fg-card:focus-visible .fg-card-overlay {
    opacity: 1;
}
.fg-zoom-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.92);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.fg-card:hover .fg-zoom-icon {
    transform: scale(1);
}

/* Photo number badge */
.fg-card-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 26px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    backdrop-filter: blur(4px);
}

/* Empty state */
.fg-empty {
    text-align: center;
    padding: 60px 20px;
}
.fg-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    opacity: 0.6;
}
.fg-empty h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.fg-empty p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 18px;
}
.fg-empty-link {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.fg-empty-link:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* ── Lightbox ── */
.fg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fgFadeIn 0.25s ease;
}
@keyframes fgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Top bar */
.fg-lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
    z-index: 10002;
}
.fg-lb-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fg-lb-counter {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-right: 18px;
    white-space: nowrap;
}
.fg-lb-close {
    color: #fff;
    font-size: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.fg-lb-close:hover {
    background: rgba(245,158,11,0.6);
}

/* Stage (main image) */
.fg-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 70px 10px;
    min-height: 0;
}
.fg-lb-stage img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 6px 40px rgba(0,0,0,0.45);
    animation: fgSlideIn 0.3s ease;
}
@keyframes fgSlideIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* Prev / Next */
.fg-lb-prev,
.fg-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 10001;
    backdrop-filter: blur(6px);
}
.fg-lb-prev { left: 16px; }
.fg-lb-next { right: 16px; }
.fg-lb-prev:hover,
.fg-lb-next:hover {
    background: rgba(245,158,11,0.55);
    transform: translateY(-50%) scale(1.08);
}

/* Thumbnail strip */
.fg-lb-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.fg-lb-thumbs::-webkit-scrollbar {
    height: 5px;
}
.fg-lb-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}
.fg-lb-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.fg-lb-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
.fg-lb-thumb.active {
    opacity: 1;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .fg-hero { height: 200px; }
    .fg-hero-title { font-size: clamp(18px, 5vw, 26px); }
    .fg-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .fg-card-img { height: 180px; }
    .fg-lb-prev, .fg-lb-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .fg-lb-prev { left: 8px; }
    .fg-lb-next { right: 8px; }
    .fg-lb-stage { padding: 56px 48px 8px; }
    .fg-lb-thumb { width: 48px; height: 36px; }
}

@media (max-width: 480px) {
    .fg-hero { height: 180px; }
    .fg-hero-content { padding: 20px 4%; }
    .fg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .fg-card-img { height: 150px; }
    .fg-card-number { top: 6px; right: 6px; min-width: 22px; height: 22px; font-size: 0.65rem; }
    .fg-lb-stage { padding: 52px 12px 8px; }
    .fg-lb-stage img { max-height: 60vh; }
    .fg-lb-thumbs { padding: 8px 10px 12px; gap: 6px; }
    .fg-lb-thumb { width: 40px; height: 30px; }
}
/* END: Facility Gallery styles */
