/* ========================================
   FOOTER PINNING - Ensure footer at bottom
   ======================================== */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#main {
    flex: 1 0 auto;
}

#footer {
    flex-shrink: 0;
}

/* ========================================
   COMPACT BREADCRUMB - Redesigned
   ======================================== */

.breadcrumbs-compact {
    background: var(--brand-blue-50) !important;
    padding: 16px 0 !important;
    min-height: auto !important;
    margin-top: 0 !important;
}

.breadcrumbs-compact .container {
    padding: 0 var(--sp-3);
}

.breadcrumb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ocean-dark) !important;
}

.breadcrumb-title {
    font-family: var(--font-display);
    font-size: 1.125rem !important;
    font-weight: 700;
    color: var(--ocean-dark) !important;
    margin: 0;
    padding: 0 !important;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-nav li {
    color: var(--text-secondary);
}

.breadcrumb-nav a {
    color: var(--brand-blue-800) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--brand-blue) !important;
}

.breadcrumb-separator {
    color: rgba(31, 94, 170, 0.45);
}

/* ========================================
   CONTENT PAGE STYLING
   ======================================== */

.content-section {
    padding: var(--sp-6) 0;
    background: var(--bg-canvas);
    flex: 1;
}

.content-section .section-header {
    margin-bottom: var(--sp-5);
    border-bottom: 2px solid var(--ocean-dark);
    padding-bottom: var(--sp-3);
}

.content-section .page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ocean-dark);
    margin: 0;
}

/* ========================================
   DETAIL PAGE STYLING
   ======================================== */

.detail-section {
    padding: var(--sp-6) 0;
    background: var(--bg-canvas);
    flex: 1;
}

.detail-content {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    box-shadow: 0 4px 20px rgba(7, 29, 44, 0.05);
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    color: var(--ocean-dark);
    margin-bottom: var(--sp-3);
}

.detail-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--sp-3);
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--sp-3) 0;
}

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

.contact-section {
    padding: var(--sp-6) 0;
    background: var(--bg-canvas);
    flex: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--sp-5);
    align-items: start;
}

.contact-info-card {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(7, 29, 44, 0.06);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    background: var(--ocean-light);
    border-bottom: 1px solid rgba(7, 29, 44, 0.06);
}

.contact-info-header i {
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.contact-info-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ocean-dark);
    margin: 0;
}

.contact-info-body {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-info-item {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.25rem;
    color: var(--brand-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item div h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ocean-dark);
    margin: 0 0 4px 0;
}

.contact-info-item div p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.contact-info-item div a {
    color: var(--ocean-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info-item div a:hover {
    color: var(--brand-blue);
}

.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    box-shadow: 0 8px 32px rgba(7, 29, 44, 0.06);
    border-top: 4px solid var(--brand-blue);
}

.contact-form-card .form-group {
    margin-bottom: var(--sp-3);
}

.contact-form-card label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ocean-dark);
    margin-bottom: 8px;
    display: block;
}

.contact-form-card input,
.contact-form-card textarea {
    border: 1px solid rgba(7, 29, 44, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(31, 94, 170, 0.12);
}

.contact-form-card button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 14px 32px;
    background: var(--signal-orange);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.contact-form-card button[type="submit"]:hover {
    background: #25835c;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 158, 111, 0.28);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
}

/* ========================================
   PAGINATION STYLING
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--sp-5);
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination li a {
    background: white;
    color: var(--ocean-dark);
    border: 1px solid rgba(7, 29, 44, 0.1);
}

.pagination li a:hover {
    background: var(--ocean-light);
    border-color: var(--ocean-dark);
    color: var(--ocean-dark);
}

.pagination li.active span {
    background: var(--signal-orange);
    color: white;
    border-color: var(--signal-orange);
}

.pagination li.disabled span {
    background: rgba(7, 29, 44, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(7, 29, 44, 0.1);
}


body {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display) !important;
}

/* ========================================
   NAVBAR REDESIGN - Fixed Layout
   ======================================== */

/* Remove white gap between navbar and slideshow */
.carousel-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#carouselExampleIndicators {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Homepage carousel indicators - solid white, logo blue on hover/active */
#carouselExampleIndicators .carousel-indicators button {
    width: 56px;
    height: 8px;
    margin: 0 4px;
    border: none;
    border-radius: 2px;
    background: #ffffff;
    background-image: none;
    box-shadow: none;
    opacity: 1;
    transition: background-color 0.2s ease;
}

#carouselExampleIndicators .carousel-indicators button:hover,
#carouselExampleIndicators .carousel-indicators button.active {
    background: #57b8d9;
    background-image: none;
    opacity: 1;
}

/* Main Header Redesign - logo-derived brand blue */
#header {
    background: linear-gradient(135deg, #1f5eaa 0%, #2f79bd 100%) !important;
    transition: all 0.3s ease;
    z-index: 997;
    height: 72px !important;
    top: 0 !important;
    padding: 0 !important;
    position: sticky !important;
    box-shadow: 0 4px 30px rgba(31, 94, 170, 0.18);
}

#header .container {
    height: 72px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    padding: 0 var(--sp-3);
    column-gap: var(--sp-3);
}

/* Logo Styling */
#header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

#header .logo img {
    max-height: 48px !important;
    width: auto;
    transition: transform 0.3s ease;
}

#header .logo:hover img {
    transform: scale(1.02);
}

/* Desktop Navigation - 8-Point Grid Spacing */
.klp-navbar {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    min-width: 0;
    justify-content: center;
    justify-self: stretch;
}

.klp-navbar .nav-item {
    position: relative;
    flex: 0 0 auto;
}

.klp-navbar .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
    transform: translateY(0);
    transition: background-color 0.22s ease, color 0.22s ease,
        box-shadow 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.klp-navbar .font-khmer.nav-link {
    font-size: 0.9rem;
    padding: 10px 12px;
}

.klp-navbar .nav-link:hover,
.klp-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 8px 18px rgba(8, 38, 58, 0.16);
    transform: translateY(-1px);
}

.klp-navbar .nav-link.active {
    color: #ffffff !important;
}

/* Language Switcher - Proper Spacing & Visual Hierarchy */
.klp-language-switcher {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex-shrink: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-sm);
}

.klp-language-switcher .lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.klp-language-switcher .lang-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.klp-language-switcher .lang-link img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.klp-language-switcher .lang-link.active {
    color: var(--brand-blue-800);
    background: #ffffff;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
    justify-self: end;
}

/* Constrained desktop header */
@media (max-width: 1440px) {
    #header .container {
        padding: 0 20px;
        column-gap: 12px;
    }

    #header .logo img {
        max-height: 42px !important;
    }

    .klp-navbar {
        gap: 2px;
    }

    .klp-navbar .nav-link {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .header-actions {
        gap: 10px;
    }

    .klp-language-switcher {
        padding: 4px;
        gap: 4px;
    }

    .klp-language-switcher .lang-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .btn-nav-cta {
        display: none !important;
    }
}

@media (max-width: 1399px) {
    .klp-navbar .nav-link {
        padding: 10px 10px;
        font-size: 0.8rem;
    }

    .klp-navbar .font-khmer.nav-link {
        font-size: 0.8rem;
        padding: 10px 10px;
    }

    .klp-language-switcher .lang-link {
        padding: 8px 9px;
    }
}

/* Navigation CTA Button */
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-nav-cta:hover {
    background: #ffffff;
    color: var(--brand-blue-800);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(8, 38, 58, 0.16);
}

.btn-nav-cta i {
    font-size: 1.1rem;
}

/* Mobile Navigation Toggle */
.klp-mobile-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.klp-mobile-toggle:hover,
.klp-mobile-toggle.is-open {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.klp-mobile-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.18s ease;
}

.klp-mobile-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.klp-mobile-toggle span:nth-child(3) {
    transform: translateY(7px);
}

.klp-mobile-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
}

.klp-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.klp-mobile-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Compact navigation header */
@media (max-width: 1320px) {
    #header {
        height: 70px !important;
    }

    #header .container {
        height: 70px !important;
        padding: 0 16px;
        grid-template-columns: auto 1fr auto;
        column-gap: 12px;
    }

    #header .logo img {
        max-height: 48px !important;
    }

    .klp-navbar {
        display: none;
    }

    .klp-mobile-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 12px;
    }

    .klp-language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    /* Mobile Menu Overlay */
    .klp-navbar.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%);
        padding: 24px 20px;
        gap: 8px;
        z-index: 996;
        overflow-y: auto;
        align-items: center;
    }

    .klp-navbar.mobile-open .nav-link {
        justify-content: center;
        min-width: min(100%, 280px);
        padding: 14px 22px;
        font-size: 1.1rem;
        border-radius: 18px;
        border: 1px solid transparent;
        background: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease,
            transform 0.2s ease;
    }

    .klp-navbar.mobile-open .nav-link:hover,
    .klp-navbar.mobile-open .nav-link.active {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.24);
        box-shadow: none;
        transform: none;
    }

    .klp-navbar.mobile-open .nav-link:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(0.98);
    }
}

/* Breadcrumbs adjustment for fixed header */
.breadcrumbs {
    background: var(--brand-blue-50) !important;
    margin-top: 0 !important;
    min-height: auto !important;
    padding: 16px 0;
}

/* ========================================
   KLP Design System - Maritime Brutalism
   ======================================== */

:root {
    /* 60-30-10 Color System */
    --bg-canvas: #f5f7f8;
    --bg-surface: #ffffff;
    --text-main: #0b1215;
    --text-secondary: #5c6b73;

    --brand-blue: #1f5eaa;
    --brand-blue-hover: #174f96;
    --brand-blue-light: #57b8d9;
    --brand-blue-50: #eaf6fb;
    --brand-blue-100: #d8eef7;
    --brand-blue-800: #0f477f;

    --ocean-dark: #08263a;
    --ocean-light: #eaf6fb;
    --ocean-muted: rgba(31, 94, 170, 0.08);

    --fresh-green: #2e9e6f;
    --fresh-green-hover: #25835c;
    --fresh-green-soft: rgba(46, 158, 111, 0.12);
    /* Backward-compatible aliases for existing utility classes. */
    --signal-orange: var(--fresh-green);
    --signal-orange-soft: var(--fresh-green-soft);
    --signal-green: var(--fresh-green);

    /* Typography */
    --font-display: "Cabinet Grotesk", Arial, sans-serif;
    --font-body: "Satoshi", Arial, sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;
    --font-khmer: "Battambang", "Noto Sans Khmer", sans-serif;

    /* 8-Point Grid Spacing */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 48px;
    --sp-8: 64px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-pill: 100px;

    /* Layout */
    --max-width: 1400px;
}

/* Typography Utilities */
.font-display {
    font-family: var(--font-display);
}
.font-body {
    font-family: var(--font-body);
}
.font-mono {
    font-family: var(--font-mono);
}
.font-khmer {
    font-family: var(--font-khmer) !important;
}

/* Khmer Language Mode - Apply Battambang to all text elements when language is Khmer */
.lang-kh,
.lang-kh h1, .lang-kh h2, .lang-kh h3, .lang-kh h4, .lang-kh h5, .lang-kh h6,
.lang-kh p, .lang-kh span, .lang-kh a, .lang-kh li, .lang-kh td, .lang-kh th,
.lang-kh label, .lang-kh input, .lang-kh textarea, .lang-kh button,
.lang-kh .font-display, .lang-kh .font-body {
    font-family: var(--font-khmer) !important;
}

/* Preserve mono font for code/technical elements even in Khmer mode */
.lang-kh .mono-text, .lang-kh code, .lang-kh pre {
    font-family: var(--font-mono) !important;
}

.text-ocean {
    color: var(--ocean-dark);
}
.text-orange {
    color: var(--signal-orange);
}
.text-muted {
    color: var(--text-secondary);
}

.bg-ocean {
    background-color: var(--ocean-dark);
}
.bg-orange {
    background-color: var(--signal-orange);
}
.bg-canvas {
    background-color: var(--bg-canvas);
}

/* Mono Text Style */
.mono-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--signal-green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px var(--signal-green);
}

/* Header consistency - logo-derived institutional blue */
#header {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%) !important;
    transition: all 0.5s;
    z-index: 997;
    height: 72px !important;
    top: 0px !important;
    padding: 0 !important;
}
.navbar-mobile ul {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%) !important;
}
.navbar .dropdown ul {
    visibility: hidden;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%) !important;
}
#footer {
    font-size: 14px;
    background: linear-gradient(135deg, var(--ocean-dark) 0%, #123a5a 100%) !important;
}

/*....*/

.contact .php-email-form button[type="submit"] {
    background: var(--signal-orange) !important;
    border: none;
    padding: 12px 32px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.contact .php-email-form button[type="submit"]:hover {
    background: #25835c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 158, 111, 0.28);
}
.contact .php-email-form {
    width: 100%;
    border-top: 3px solid var(--brand-blue) !important;
    border-bottom: 3px solid var(--brand-blue) !important;
}
h2 {
    color: var(--ocean-dark) !important;
}
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1529px !important;
    }
}
.card-box {
    border: 1px solid #ddd;
    padding: 0;
    box-shadow: 0px 0px 10px 0px #c5c5c5;
    margin-bottom: 30px;
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    height: 350px;
    overflow: hidden;
}
.card-box .card-thumbnail {
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.card-box .card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-box .card-thumbnail:hover img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
.card-box .card-body {
    padding: 15px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card-box .card-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    color: #555;
    text-align: center;
}
.row > [class*="col-"] {
    display: flex;
}
.card-box h3 a {
    font-size: 20px;
    text-decoration: none;
}
@media (max-width: 991px) {
    .mobile-nav-toggle {
        padding-left: 10px !important;
    }
}
.social {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.social a {
    transition: ease-in-out 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    width: 32px;
    height: 32px;
    background: #ecf6fe;
    color: #0665b7;
}
.social a i {
    font-size: 16px;
    margin: 0 2px;
}
.social a:hover {
    background: #0880e8;
    color: #fff;
}
.social a + a {
    margin-left: 8px;
}
.logo .mobile {
    display: none;
}

/* Mobile Bottom Navigation - Enhanced */
#mobile-nav {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#mobile-nav a {
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#mobile-nav a:hover {
    color: #ffffff !important;
}

#mobile-nav a:hover i {
    color: var(--brand-blue-light) !important;
}

#mobile-nav a.active {
    color: #ffffff !important;
}

#mobile-nav a.active i {
    color: var(--brand-blue-light) !important;
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 16px;
        bottom: 88px;
        z-index: 101;
    }
}

@media (max-width: 600px) {
    .logo .mobile {
        display: block;
    }
    .logo .desktop {
        display: none;
    }
}

/* Carousel - Remove old padding rules that push it down */
.carousel-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#carouselExampleIndicators {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.navbar a,
.navbar a:focus {
    color: white !important;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
    color: #fcfcfc !important;
    font-weight: bold;
}
section {
    padding: 12px 0 !important;
    overflow: hidden;
}

.section-title {
    text-align: center;
    padding-bottom: 23px !important;
}
/* ========================================
   Section Headers
   ======================================== */

.section-intro {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ocean-dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Card Components - Bento Grid - Improved
   ======================================== */

.card-klp {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-klp:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(7, 29, 44, 0.1);
    border-color: rgba(7, 29, 44, 0.15);
    color: inherit;
}

.card-klp-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--ocean-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.card-klp-icon i {
    font-size: 2rem;
    color: var(--ocean-dark);
    transition: all 0.3s ease;
}

.card-klp:hover .card-klp-icon {
    background: var(--signal-orange);
}

.card-klp:hover .card-klp-icon i {
    color: white;
}

.card-klp:hover .card-klp-icon {
    background: var(--signal-orange);
    color: white;
    transform: scale(1.1);
}

.card-klp-content {
    flex: 1;
}

.card-klp-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ocean-dark);
}

.card-klp-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(7, 29, 44, 0.05);
    color: var(--ocean-dark);
    margin-top: auto;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.card-arrow i {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(1px, 0);
    transition: transform 0.3s ease;
}

.card-klp:hover .card-arrow {
    background: var(--signal-orange);
    color: white;
    transform: scale(1.04);
}

.card-klp:hover .card-arrow i {
    transform: translate(1px, 0);
}

/* ========================================
   News / Blog Section
   ======================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--ocean-dark);
    padding-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--ocean-dark);
}

.news-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.news-article {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.news-article:hover {
    border-color: var(--signal-orange);
    color: inherit;
    text-decoration: none;
}

.news-image {
    height: 200px;
    background-color: var(--ocean-light);
    background-position: center;
    background-size: cover;
    position: relative;
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ocean-dark);
    color: white;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* Khmer mode: news category uses Battambang */
.lang-kh .news-category {
    font-family: var(--font-khmer);
    text-transform: none;
}

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

.news-date {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Khmer mode: news date uses Battambang */
.lang-kh .news-date {
    font-family: var(--font-khmer) !important;
}

.news-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ocean-dark);
}

.news-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 24px;
}

.read-more {
    margin-top: auto;
    color: var(--signal-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* ========================================
   Hero Carousel (Image Only) - Enhanced Navigation
   ======================================== */

.hero-carousel-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.hero-carousel-section .carousel-inner {
    position: relative;
}

.hero-carousel-section .carousel-item {
    position: relative;
}

.hero-carousel-section .carousel-item img {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    object-fit: cover;
}

/* Enhanced Navigation Arrows */
.carousel-nav-btn {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-arrow-circle i {
    font-size: 24px;
    color: var(--ocean-dark);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover .nav-arrow-circle {
    background: var(--signal-orange);
    box-shadow: 0 6px 30px rgba(46, 158, 111, 0.34);
}

.carousel-nav-btn:hover .nav-arrow-circle i {
    color: white;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 24px;
    gap: 8px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators button.active {
    background: var(--brand-blue-light);
    border-color: white;
    transform: scale(1.2);
}

.hero-carousel-section .carousel-inner {
    position: relative;
}

.hero-carousel-section .carousel-item {
    position: relative;
}

.hero-carousel-section .carousel-item img {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    object-fit: cover;
}

/* Carousel Navigation */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 16px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.carousel-indicators {
    bottom: 20px;
    gap: 8px;
}

.carousel-indicators button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--brand-blue-light);
    width: 50px;
}

@media (max-width: 991px) {
    .hero-carousel-section .carousel-item {
        min-height: 250px;
        max-height: 40vh;
    }

    .hero-carousel-section .carousel-item img {
        height: 40vh;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section .carousel-item img {
        height: 35vh;
        min-height: 200px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ========================================
   Hero Section - REDESIGNED
   ======================================== */

.hero-section-redesigned {
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: start;
}

/* Main Content Column */
.hero-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main Headline */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ocean-dark);
    line-height: 1.1;
    margin: 0;
}

.hero-headline .text-accent {
    color: var(--signal-orange);
}

/* Description */
.hero-description-redesigned {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0;
}

/* CTA Row */
.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-hero-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--signal-orange);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(46, 158, 111, 0.24);
}

.btn-hero-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 158, 111, 0.34);
    color: white;
    text-decoration: none;
}

.btn-hero-main i {
    transition: transform 0.2s ease;
}

.btn-hero-main:hover i {
    transform: translateX(4px);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--ocean-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid rgba(7, 29, 44, 0.2);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: var(--ocean-dark);
    border-color: var(--ocean-dark);
    color: white;
    text-decoration: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(7, 29, 44, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ocean-dark);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(7, 29, 44, 0.15);
}

/* Contact Card Column */
.hero-contact-col {
    position: sticky;
    top: 100px;
}

.contact-card-compact {
    background: white;
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(7, 29, 44, 0.06);
    border-left: 4px solid var(--brand-blue);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--ocean-light);
    border-bottom: 1px solid rgba(7, 29, 44, 0.06);
}

.contact-card-header i {
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.contact-card-header span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ocean-dark);
}

.contact-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-row i {
    font-size: 1.25rem;
    color: var(--brand-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-row p,
.contact-row a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-row a {
    color: var(--ocean-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-row a:hover {
    color: var(--brand-blue);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section-redesigned {
        padding: 60px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-contact-col {
        position: static;
        max-width: 500px;
    }

    .hero-headline {
        font-size: clamp(2.25rem, 6vw, 3rem);
    }

    .hero-description-redesigned {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section-redesigned {
        padding: 24px 0 40px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .btn-hero-main,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 991px) {
    .hero-carousel-section .carousel-item img {
        height: 40vh;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section .carousel-item {
        min-height: 200px;
        max-height: 35vh;
    }

    .hero-section {
        padding: var(--sp-4) 0;
    }

    .hero-heading {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ========================================
   Hero Carousel Overlays & CTAs
   ======================================== */

.hero-carousel-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.hero-carousel-section .carousel-inner {
    position: relative;
}

.hero-carousel-section .carousel-item {
    position: relative;
    max-height: 70vh;
    min-height: 400px;
}

.hero-carousel-section .carousel-item img {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    object-fit: cover;
    filter: none;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--sp-8);
    background: linear-gradient(
        90deg,
        rgba(7, 29, 44, 0.85) 0%,
        rgba(7, 29, 44, 0.4) 60%,
        transparent 100%
    );
}

.carousel-content {
    max-width: 700px;
    animation: fadeUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: var(--sp-2);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--sp-4);
    line-height: 1.5;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 16px 32px;
    background: var(--signal-orange);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 158, 111, 0.34);
    color: #ffffff;
    text-decoration: none;
}

.btn-hero-primary i {
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 16px 32px;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
}

/* Carousel Navigation Arrows Enhancement */
.carousel-control-prev,
.carousel-control-next {
    display: none;
}

/* ========================================
   Hero Section (Below Carousel)
   ======================================== */

.hero-section {
    padding: var(--sp-8) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 6px 16px;
    background: var(--ocean-light);
    color: var(--ocean-dark);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: var(--sp-3);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ocean-dark);
    margin-bottom: var(--sp-3);
    line-height: 1.1;
}

.hero-heading .text-accent {
    color: var(--signal-orange);
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--sp-4);
    line-height: 1.6;
}

/* Hero Info Card */
.hero-info-card {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(7, 29, 44, 0.05);
}

.info-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ocean-dark);
    padding: var(--sp-3);
    margin: 0;
    border-bottom: 1px solid rgba(7, 29, 44, 0.08);
    background: var(--ocean-light);
}

.info-card-body {
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.info-item {
    display: flex;
    gap: var(--sp-2);
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--signal-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ocean-dark);
    margin-bottom: 4px;
}

.info-item p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Carousel Images */
.hero-carousel-section .carousel-inner {
    position: relative;
}

.hero-carousel-section .carousel-item {
    position: relative;
}

.hero-carousel-section .carousel-item img {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    object-fit: cover;
    filter: none;
}

@media (max-width: 991px) {
    .hero-carousel-section .carousel-item {
        min-height: 250px;
        max-height: 40vh;
    }

    .hero-carousel-section .carousel-item img {
        height: 40vh;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section .carousel-item {
        min-height: 200px;
        max-height: 35vh;
    }

    .hero-section {
        padding: var(--sp-4) 0;
    }

    .hero-heading {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-carousel-section .carousel-item img {
        height: 35vh;
        min-height: 200px;
        max-height: 35vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* Keep the homepage carousel indicators over the slideshow instead of in the gap above the hero copy. */
#carouselExampleIndicators {
    position: relative;
}

#carouselExampleIndicators .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 5;
    gap: 10px;
    padding: 8px 12px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 999px;
    background: rgba(7, 29, 44, 0.32);
    box-shadow: 0 8px 24px rgba(7, 29, 44, 0.24);
    backdrop-filter: blur(6px);
}

#carouselExampleIndicators .carousel-indicators button {
    width: 54px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    opacity: 1;
    box-shadow: 0 1px 6px rgba(7, 29, 44, 0.3);
}

#carouselExampleIndicators .carousel-indicators button:hover,
#carouselExampleIndicators .carousel-indicators button.active {
    width: 54px;
    background: var(--brand-blue-light);
    opacity: 1;
}

@media (max-width: 768px) {
    #carouselExampleIndicators .carousel-indicators {
        bottom: 12px;
        gap: 8px;
        padding: 7px 10px;
    }

    #carouselExampleIndicators .carousel-indicators button,
    #carouselExampleIndicators .carousel-indicators button:hover,
    #carouselExampleIndicators .carousel-indicators button.active {
        width: 34px;
        height: 7px;
    }
}

/* ========================================
  Bento Grid Layout
   ======================================== */

.bento-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Final mobile guardrail: keep indicators on-image by preventing 400px slide height from legacy blocks. */
@media (max-width: 991px) {
    #carouselExampleIndicators .carousel-item {
        height: 40vh !important;
        min-height: 250px !important;
        max-height: 40vh !important;
    }

    #carouselExampleIndicators .carousel-item > img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        filter: none !important;
    }
}

@media (max-width: 768px) {
    #carouselExampleIndicators .carousel-item {
        height: 35vh !important;
        min-height: 200px !important;
        max-height: 35vh !important;
    }
}

@media (max-height: 760px) and (min-width: 769px) {
    #carouselExampleIndicators .carousel-item {
        height: 34vh !important;
        min-height: 220px !important;
        max-height: 260px !important;
    }

    .hero-carousel-section {
        min-height: 34vh;
    }

    #carouselExampleIndicators .carousel-indicators {
        bottom: 14px;
    }
}

/* Keep the slideshow section in normal document flow so the hero content below cannot overlap it. */
.hero-carousel-section {
    position: relative;
    min-height: 50vh;
}

@media (max-width: 991px) {
    .hero-carousel-section {
        min-height: 40vh;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section {
        min-height: 35vh;
    }
}

/* ========================================
   ENHANCED CONTACT PAGE DESIGN
   ======================================== */

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ocean-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Contact Grid */
.contact-grid-enhanced {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Info Cards */
.info-card {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(7, 29, 44, 0.1);
    border-color: rgba(46, 158, 111, 0.28);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--signal-orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    background: var(--signal-orange);
}

.info-card-icon i {
    font-size: 1.5rem;
    color: var(--signal-orange);
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon i {
    color: white;
}

.info-card-content {
    flex: 1;
}

.info-card-content h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px 0;
}

.info-card-content p,
.info-card-content a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ocean-dark);
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
    font-weight: 600;
}

.info-card-content a:hover {
    color: var(--signal-orange);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--bg-surface);
    border: 1px solid rgba(7, 29, 44, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(7, 29, 44, 0.08);
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2f79bd 100%);
    color: white;
}

.contact-form-header i {
    font-size: 1.5rem;
    color: var(--brand-blue-light);
}

.contact-form-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Alert Messages */
.alert-success,
.alert-error {
    margin: 24px 32px 0;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00b348;
}

.alert-error {
    background: rgba(46, 158, 111, 0.12);
    border: 1px solid rgba(46, 158, 111, 0.28);
    color: var(--signal-orange);
}

.alert-success i,
.alert-error i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

/* Enhanced Form */
.contact-form-enhanced {
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ocean-dark);
    margin-bottom: 8px;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.input-wrapper i,
.textarea-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.textarea-wrapper i {
    top: 16px;
    transform: none;
}

.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(7, 29, 44, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    transition: all 0.2s ease;
}

.textarea-wrapper textarea {
    padding: 12px 16px 12px 44px;
    min-height: 120px;
    resize: vertical;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--signal-orange);
    box-shadow: 0 0 0 3px rgba(46, 158, 111, 0.12);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus ~ i,
.textarea-wrapper textarea:focus ~ i {
    color: var(--signal-orange);
}

.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 32px;
    background: var(--signal-orange);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 8px;
}

.submit-btn:hover {
    background: #25835c;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 158, 111, 0.34);
}

.submit-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-form-enhanced {
        padding: 24px;
    }

    .contact-form-header {
        padding: 20px 24px;
    }

    .alert-success,
    .alert-error {
        margin: 16px 24px 0;
    }
}

@media (max-width: 640px) {
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-enhanced {
        padding: 20px;
    }

    .info-card {
        padding: 16px;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .info-card-icon i {
        font-size: 1.25rem;
    }
}
