/**
 * OES Group Theme - Main Stylesheet
 * Matching the corporate OES Group design
 *
 * @version 2.0.0
 */

/* ==========================================================================
   1. CSS VARIABLES (OES Brand)
   ========================================================================== */

:root {
    /* OES Brand Colors - From Main Site */
    --oes-navy: #163b6d;
    --oes-navy-dark: #0d2340;
    --oes-navy-light: #1e4a8a;
    --oes-cream: #e4e2dd;
    --oes-cream-light: #f5f4f2;
    --oes-off-white: #f9f8f7;
    --oes-dark: #1f2937;
    --oes-gray: #6b7280;
    --oes-gray-600: #4b5563;
    --oes-gray-700: #374151;
    --oes-gray-light: #f1f5f9;
    --oes-white: #ffffff;
    --oes-border: #e4e2dd;

    /* Bootstrap Overrides */
    --bs-primary: var(--oes-navy);
    --bs-primary-rgb: 22, 59, 109;
    --bs-body-color: var(--oes-dark);
    --bs-body-bg: var(--oes-white);
    --bs-link-color: var(--oes-navy);
    --bs-link-hover-color: var(--oes-navy-dark);
    --bs-border-radius: 0.25rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.25rem;

    /* Typography - Manrope (matching parent site) */
    --oes-font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
    --oes-font-body: 'Manrope', system-ui, -apple-system, sans-serif;

    /* Font Sizes - Tailwind Scale */
    --oes-text-xs: 0.75rem;      /* 12px */
    --oes-text-sm: 0.875rem;     /* 14px */
    --oes-text-base: 1rem;       /* 16px */
    --oes-text-lg: 1.125rem;     /* 18px */
    --oes-text-xl: 1.25rem;      /* 20px */
    --oes-text-2xl: 1.5rem;      /* 24px */
    --oes-text-3xl: 1.875rem;    /* 30px */
    --oes-text-4xl: 2.25rem;     /* 36px */
    --oes-text-5xl: 3rem;        /* 48px */

    /* Letter Spacing */
    --oes-tracking-tight: -0.025em;
    --oes-tracking-normal: 0;
    --oes-tracking-wide: 0.025em;
    --oes-tracking-widest: 0.1em;

    /* Shadows - Tailwind Scale */
    --oes-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --oes-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --oes-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --oes-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing - Tailwind Scale */
    --oes-space-1: 0.25rem;      /* 4px */
    --oes-space-2: 0.5rem;       /* 8px */
    --oes-space-3: 0.75rem;      /* 12px */
    --oes-space-4: 1rem;         /* 16px */
    --oes-space-5: 1.25rem;      /* 20px */
    --oes-space-6: 1.5rem;       /* 24px */
    --oes-space-8: 2rem;         /* 32px */
    --oes-space-10: 2.5rem;      /* 40px */
    --oes-space-12: 3rem;        /* 48px */
    --oes-space-16: 4rem;        /* 64px */

    /* Container */
    --oes-container-max: 1280px; /* max-w-7xl */

    /* Transitions */
    --oes-transition-fast: 150ms;
    --oes-transition-base: 200ms;
    --oes-transition: 0.2s ease;
    --oes-transition-transform: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Alert State Colors */
    --oes-success-dark: #047857;
    --oes-warning-dark: #b45309;
    --oes-danger-dark: #b91c1c;

    /* Navy with Opacity Variants */
    --oes-navy-rgba-10: rgba(22, 59, 109, 0.1);
    --oes-navy-rgba-25: rgba(22, 59, 109, 0.25);
}

/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--oes-font-body);
    font-size: var(--oes-text-base);
    line-height: 1.6;
    color: var(--oes-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--oes-font-heading);
    font-weight: 700;
    color: var(--oes-dark);
    line-height: 1.2;
    letter-spacing: var(--oes-tracking-tight);
}

/* Responsive heading sizes matching Tailwind */
h1, .h1 {
    font-size: var(--oes-text-3xl);
}
@media (min-width: 768px) {
    h1, .h1 { font-size: var(--oes-text-4xl); }
}
@media (min-width: 1024px) {
    h1, .h1 { font-size: var(--oes-text-5xl); }
}

h2, .h2 {
    font-size: var(--oes-text-2xl);
}
@media (min-width: 768px) {
    h2, .h2 { font-size: var(--oes-text-3xl); }
}

h3, .h3 { font-size: var(--oes-text-xl); }
h4, .h4 { font-size: var(--oes-text-lg); }
h5, .h5 { font-size: var(--oes-text-base); font-weight: 600; }
h6, .h6 { font-size: var(--oes-text-sm); font-weight: 600; }

a {
    color: var(--oes-navy);
    text-decoration: none;
    transition: color var(--oes-transition);
}

a:hover {
    color: var(--oes-navy-dark);
}

/* Eyebrow text - small uppercase labels (matching main site) */
.eyebrow,
.section-eyebrow {
    font-size: var(--oes-text-sm);
    font-weight: 500;
    letter-spacing: var(--oes-tracking-widest);
    text-transform: uppercase;
    color: var(--oes-navy);
    margin-bottom: var(--oes-space-2);
}

/* Section title */
.section-title {
    font-size: var(--oes-text-3xl);
    font-weight: 700;
    letter-spacing: var(--oes-tracking-tight);
    margin-bottom: var(--oes-space-4);
}
@media (min-width: 768px) {
    .section-title {
        font-size: var(--oes-text-4xl);
    }
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.btn {
    font-family: var(--oes-font-body);
    font-weight: 500;
    font-size: var(--oes-text-sm);
    padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
    border-radius: 0.25rem;    /* rounded */
    transition: all var(--oes-transition);
}

/* Primary button with shadow (matching main site) */
.btn-primary {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
    box-shadow: var(--oes-shadow-lg);
}

.btn-primary:hover {
    background-color: var(--oes-navy-dark);
    border-color: var(--oes-navy-dark);
    box-shadow: var(--oes-shadow-xl);
}

.btn-primary:focus {
    box-shadow: var(--oes-shadow-lg), 0 0 0 0.2rem rgba(22, 59, 109, 0.25);
}

/* Outline button with glassmorphism */
.btn-outline-primary {
    color: var(--oes-navy);
    border-color: var(--oes-navy);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-outline-primary:hover {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
    box-shadow: var(--oes-shadow-lg);
}

.btn-white {
    background-color: var(--oes-white);
    border-color: var(--oes-white);
    color: var(--oes-navy);
}

.btn-white:hover {
    background-color: var(--oes-cream);
    border-color: var(--oes-cream);
    color: var(--oes-navy);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--oes-white);
    color: var(--oes-white);
}

.btn-outline-white:hover {
    background-color: var(--oes-white);
    color: var(--oes-navy);
}

.btn-navy {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
}

.btn-navy:hover {
    background-color: var(--oes-navy-dark);
    border-color: var(--oes-navy-dark);
    color: var(--oes-white);
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--oes-navy);
    color: var(--oes-navy);
}

.btn-outline-navy:hover {
    background-color: var(--oes-navy);
    color: var(--oes-white);
}

/* Small nav buttons - match parent site: px-4 py-2 text-sm font-medium rounded */
.oes-btn-nav {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.25rem; /* rounded */
    transition: background-color 0.15s ease, border-color 0.15s ease; /* transition-colors */
    white-space: nowrap;
}

/* Primary nav button - match parent site CTA */
.oes-btn-nav.btn-primary,
.oes-header .btn-primary.oes-btn-nav {
    background-color: #163b6d; /* bg-[#163b6d] */
    border-color: #163b6d;
    color: #fff;
}

.oes-btn-nav.btn-primary:hover,
.oes-btn-nav.btn-primary:focus,
.oes-header .btn-primary.oes-btn-nav:hover,
.oes-header .btn-primary.oes-btn-nav:focus {
    background-color: #0d2340; /* hover:bg-[#0d2340] */
    border-color: #0d2340;
    color: #fff;
}

/* ==========================================================================
   4. HEADER & NAVIGATION - Corporate Style (Matching OES Group Parent Site)
   ========================================================================== */

.oes-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Bootstrap's fixed-top z-index */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e4e2dd;
    padding: 0;
    transition: all var(--oes-transition);
}

/* Add body padding to account for fixed header */
body {
    padding-top: 96px; /* Match header height */
}

/* Admin bar adjustment */
.admin-bar .oes-header {
    top: 32px;
}

.admin-bar body {
    padding-top: 128px; /* 96px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .oes-header {
        top: 46px;
    }
    .admin-bar body {
        padding-top: 142px; /* 96px header + 46px mobile admin bar */
    }
}

/* Override Bootstrap navbar CSS variables for OES styling */
.oes-header .navbar {
    --bs-navbar-color: #374151;
    --bs-navbar-hover-color: #163b6d;
    --bs-navbar-active-color: #163b6d;
    --bs-nav-link-color: #374151;
    --bs-nav-link-hover-color: #163b6d;
    --bs-nav-link-font-weight: 500;
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0;
}

.oes-header .navbar-nav {
    --bs-nav-link-color: #374151;
    --bs-nav-link-hover-color: #163b6d;
    --bs-nav-link-font-weight: 500;
}

@media (min-width: 992px) {
    .oes-header .navbar {
        min-height: 96px; /* Match parent site h-24 */
    }

    /* Menu items start on left after logo */
    .oes-header .navbar > .container,
    .oes-header .navbar > .container-xl {
        display: flex;
        align-items: center;
        max-width: 1280px; /* Match parent site max-w-7xl */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .oes-header .offcanvas {
        flex-grow: 1;
        display: flex !important;
        position: static;
        visibility: visible !important;
        background: transparent;
        border: none;
        transform: none;
    }

    .oes-header .offcanvas-body {
        display: flex;
        align-items: center;
        padding: 0;
        flex-grow: 1;
    }

    .oes-header .navbar-nav {
        flex-direction: row;
        margin-left: 1.5rem;
        flex-wrap: nowrap;
    }

    /* Hide offcanvas header on desktop */
    .oes-header .offcanvas-header {
        display: none;
    }

    /* Push header actions (CTA button) to the right */
    .oes-header .header-actions {
        margin-left: auto;
        flex-shrink: 0;
    }
}

/* Logo Styling - Match parent site */
.oes-brand {
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.oes-brand img,
.oes-logo {
    height: 50px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .oes-brand img,
    .oes-logo {
        height: 70px; /* Larger logo to match parent site */
        max-height: 70px;
    }
}

/* Hide the dark theme logo duplicate */
.navbar-brand img.d-tl-none {
    display: none !important;
}

/* Navigation Links - Clean Corporate Style */
.navbar-nav {
    gap: 0;
}

/* Navbar with consistent gap between items - match parent site gap-x-3 xl:gap-x-5 */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: center;
        column-gap: 0.75rem; /* gap-x-3 */
    }
}

@media (min-width: 1200px) {
    .navbar-nav {
        column-gap: 1.25rem; /* gap-x-5 */
    }
}

/* Navigation link styling - targets both .nav-link and WordPress menu item links */
/* Match parent site: text-sm xl:text-base font-medium text-gray-700 hover:text-[#163b6d] transition-colors */
.oes-header .navbar-nav .nav-link,
.oes-header .navbar-nav .menu-item > a,
.oes-header .navbar-nav > li > a,
.navbar-nav .nav-link,
.navbar-nav .menu-item > a {
    font-family: var(--oes-font-body), system-ui, sans-serif !important;
    font-size: 0.875rem !important; /* text-sm (14px) */
    font-weight: 500 !important; /* font-medium */
    color: #374151 !important; /* text-gray-700 */
    padding: 0.625rem 0 !important; /* py-2.5 equivalent */
    position: relative;
    transition: color 0.15s ease; /* transition-colors */
    letter-spacing: -0.01em !important;
    white-space: nowrap;
    text-transform: none !important;
    text-decoration: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Larger font on xl screens - match parent site xl:text-base */
@media (min-width: 1200px) {
    .oes-header .navbar-nav .nav-link,
    .oes-header .navbar-nav .menu-item > a,
    .oes-header .navbar-nav > li > a {
        font-size: 1rem !important; /* text-base (16px) */
    }
}

.oes-header .navbar-nav .nav-link:hover,
.oes-header .navbar-nav .nav-link:focus,
.oes-header .navbar-nav .menu-item > a:hover,
.oes-header .navbar-nav .menu-item > a:focus,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .menu-item > a:hover,
.navbar-nav .menu-item > a:focus {
    color: var(--oes-navy, #163b6d) !important; /* Navy on hover */
}

/* Active nav item */
.oes-header .navbar-nav .nav-link.active,
.oes-header .navbar-nav .current-menu-item > a,
.oes-header .navbar-nav .current_page_item > a,
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a {
    color: var(--oes-navy, #163b6d) !important;
    font-weight: 600 !important;
}

/* Nav link underline on hover - subtle */
.navbar-nav .nav-link::after,
.navbar-nav .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--oes-navy, #163b6d);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .menu-item > a:hover::after,
.navbar-nav .menu-item > a:focus::after,
.navbar-nav .current-menu-item > a::after,
.navbar-nav .current_page_item > a::after {
    transform: scaleX(1);
}

/* External Link Indicator - add class 'menu-item-external' to menu item in WP Admin */
/* Icon is injected via PHP filter in inc/filters.php */
.navbar-nav .menu-item-external > .nav-link,
.navbar-nav .menu-item-external > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.oes-external-icon {
    width: 10px;
    height: 10px;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 0.25rem;
    transition: opacity 0.2s ease;
}

.nav-link:hover .oes-external-icon,
.nav-link:focus .oes-external-icon {
    opacity: 1;
}

/* Dropdown Menus - Match parent site styling */
.navbar-nav .dropdown-menu {
    border: 1px solid #e4e2dd; /* Match parent site border-[#e4e2dd] */
    border-radius: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl */
    padding: 0;
    min-width: 260px;
    margin-top: 0.5rem; /* pt-2 equivalent spacing */
    background: var(--oes-white);
}

/* Dropdown arrow indicator */
.navbar-nav .dropdown > .nav-link::after,
.navbar-nav .mega-menu-item > a::after,
.navbar-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
    position: static;
    background: none;
    transform: none;
}

.navbar-nav .dropdown:hover > .nav-link::after,
.navbar-nav .dropdown.show > .nav-link::after,
.navbar-nav .mega-menu-item:hover > a::after,
.navbar-nav .mega-menu-item.show > a::after,
.navbar-nav .menu-item-has-children:hover > a::after,
.navbar-nav .menu-item-has-children.show > a::after {
    transform: rotate(180deg);
}

/* Hover to open dropdown on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        animation: dropdownFadeIn 0.2s ease;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0.5rem; /* pt-2 spacing like parent site */
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown backdrop overlay - match parent site */
.oes-header-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 96px; /* Match header height */
    background: rgba(0, 0, 0, 0.4);
    z-index: 1020;
    transition: opacity 0.2s ease;
}

.oes-header-backdrop.active {
    display: block;
}

.admin-bar .oes-header-backdrop {
    top: 128px; /* 96px + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .oes-header-backdrop {
        top: 142px; /* 96px + 46px mobile admin bar */
    }
}

/* Dropdown Items - Corporate Style */
.navbar-nav .dropdown-item {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--oes-dark);
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: var(--oes-cream-light);
    color: var(--oes-navy);
    border-left-color: var(--oes-navy);
}

/* Dropdown item with icon */
.navbar-nav .dropdown-item .dropdown-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--oes-navy);
    opacity: 0.7;
}

.navbar-nav .dropdown-item:hover .dropdown-icon {
    opacity: 1;
}

/* Dropdown item text wrapper */
.navbar-nav .dropdown-item-text {
    flex: 1;
}

.navbar-nav .dropdown-item-title {
    font-weight: 600;
    color: var(--oes-dark);
    display: block;
    margin-bottom: 0.125rem;
}

.navbar-nav .dropdown-item:hover .dropdown-item-title {
    color: var(--oes-navy);
}

.navbar-nav .dropdown-item-desc {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--oes-gray);
    display: block;
    line-height: 1.4;
}

/* Header Actions */
.header-actions {
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .header-actions {
        gap: 0.75rem;
    }
}

/* Header Login Button - Corporate OES Style */
.oes-header-login {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
    border-width: 2px;
    border-color: var(--oes-navy);
    color: var(--oes-navy);
    background: transparent;
    line-height: 1;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .oes-header-login {
        padding: 0.5rem 0.875rem;
    }
}

@media (min-width: 1200px) {
    .oes-header-login {
        padding: 0.5rem 1rem;
    }
}

.oes-header-login:hover,
.oes-header-login:focus {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
}

.oes-header-login svg {
    flex-shrink: 0;
    transition: opacity var(--oes-transition);
}

.oes-header-login:hover svg,
.oes-header-login:focus svg {
    opacity: 1;
}

/* Header CTA Button */
.oes-header-cta {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .oes-header-cta {
        padding: 0.5rem 1rem;
    }
}

.oes-header-cta svg {
    transition: transform var(--oes-transition);
}

.oes-header-cta:hover svg {
    transform: translateX(4px);
}

/* Nav Toggler - Style only, let Bootstrap handle display */
.nav-toggler {
    background: transparent;
    border: 2px solid var(--oes-navy);
    border-radius: 0;
    color: var(--oes-navy);
    padding: 0.5rem;
}

.nav-toggler:hover,
.nav-toggler:focus {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
}

.nav-toggler svg {
    width: 24px;
    height: 24px;
}

/* Mobile Actions - Cart, User, Menu Toggle */
.oes-mobile-actions {
    margin-left: auto;
}

.oes-mobile-actions .btn-link {
    color: var(--oes-dark);
    font-size: 1.25rem;
}

.oes-mobile-actions .btn-link:hover {
    color: var(--oes-navy);
}

.oes-mobile-actions .navbar-toggler {
    padding: 0.625rem;
    font-size: 1.5rem;
    background-color: var(--oes-cream-light);
    border: 1px solid var(--oes-border);
    border-radius: 0;
    transition: all var(--oes-transition);
}

.oes-mobile-actions .navbar-toggler:hover {
    background-color: var(--oes-cream);
    border-color: var(--oes-navy);
}

.oes-mobile-actions .navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--oes-navy);
}

.oes-mobile-actions .navbar-toggler .bi-list {
    display: block;
    line-height: 1;
}

/* Cart Icon */
.oes-cart-icon {
    position: relative;
}

.oes-cart-badge {
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    line-height: 16px;
}

/* Header Actions (Desktop) */
.oes-header-actions {
    gap: 0.5rem;
}

/* Offcanvas Menu */
.offcanvas {
    max-width: 320px;
}

.offcanvas-header {
    border-bottom: 1px solid var(--oes-border);
    padding: 1.25rem 1.5rem;
}

.offcanvas-title {
    font-weight: 600;
    color: var(--oes-dark);
}

.offcanvas-body {
    padding: 1rem 0;
}

.offcanvas-body .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--oes-dark);
    border-bottom: 1px solid var(--oes-cream-light);
}

.offcanvas-body .nav-link:hover {
    background-color: var(--oes-cream-light);
    color: var(--oes-navy);
}

.offcanvas-body .nav-link::after {
    display: none;
}

/* Mobile CTA Buttons in Offcanvas */
.oes-mobile-ctas {
    padding: 1rem 1.5rem;
    border-top-color: var(--oes-cream) !important;
}

.oes-mobile-ctas .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0;
}

.oes-mobile-ctas .btn-outline-primary {
    border-width: 2px;
    border-color: var(--oes-navy);
    color: var(--oes-navy);
}

.oes-mobile-ctas .btn-outline-primary:hover {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
    color: var(--oes-white);
}

.oes-mobile-ctas .btn-primary {
    background-color: var(--oes-navy);
    border-color: var(--oes-navy);
}

.oes-mobile-ctas .btn-primary:hover {
    background-color: var(--oes-navy-dark);
    border-color: var(--oes-navy-dark);
}

/* ==========================================================================
   5. HERO SECTION - Glassmorphism Style
   ========================================================================== */

.oes-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    padding-top: 7rem;
    background-color: var(--oes-cream);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.oes-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.oes-hero > .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Glassmorphism Content Box */
.oes-hero-content {
    max-width: 540px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    padding: 1.5rem;
    border-radius: 0.25rem;
}

.oes-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oes-navy);
    margin-bottom: 0.5rem;
}

.oes-hero-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--oes-dark);
    line-height: 1.1;
    margin-bottom: 0;
}

.oes-hero-title span {
    display: block;
    color: var(--oes-navy);
}

.oes-hero-subtitle {
    font-size: 0.875rem;
    color: var(--oes-gray-700);
    margin-top: 1rem;
    max-width: 28rem;
}

.oes-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.oes-hero-buttons .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .oes-hero {
        padding-top: 8rem;
    }

    .oes-hero > .container {
        padding-top: 4rem;
    }

    .oes-hero-content {
        padding: 1.5rem;
    }
}

/* Smaller hero for internal pages */
.oes-hero-small,
.oes-hero--small {
    min-height: auto;
    padding: 2rem 0 2.5rem;
}

.oes-hero-small .oes-hero-content,
.oes-hero--small .oes-hero-content {
    max-width: 700px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
}

.oes-hero--small .oes-hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oes-hero--small .oes-hero-subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--oes-gray-700);
}

.oes-hero--small .oes-hero-buttons {
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .oes-hero-small,
    .oes-hero--small {
        padding: 3rem 0;
    }
}

/* Medium hero for section landing pages */
.oes-hero--medium {
    min-height: auto;
    padding: 2.5rem 0 3rem;
}

.oes-hero--medium .oes-hero-content {
    max-width: 700px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
}

.oes-hero--medium .oes-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oes-hero--medium .oes-hero-subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--oes-gray-700);
}

.oes-hero--medium .oes-hero-buttons {
    margin-top: 1.25rem;
}

@media (min-width: 992px) {
    .oes-hero--medium {
        padding: 3.5rem 0;
    }
}

/* ==========================================================================
   PAGE HERO - OES Group Style (for internal pages)
   Cream background with navy eyebrow text and dark content
   ========================================================================== */

.oes-page-hero {
    background-color: var(--oes-cream);
    padding: 3rem 0 4rem;
}

@media (min-width: 992px) {
    .oes-page-hero {
        padding: 4rem 0;
    }
}

.oes-page-hero-content {
    max-width: 48rem;
}

/* Eyebrow - small uppercase label in navy */
.oes-page-hero .oes-hero-eyebrow,
.oes-hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oes-navy);
    margin-bottom: 0.75rem;
}

/* Title - dark text on cream */
.oes-page-hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--oes-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .oes-page-hero-title {
        font-size: 2.25rem;
    }
}

/* Subtitle - gray text for readability */
.oes-page-hero-subtitle {
    font-size: 1rem;
    color: var(--oes-text-muted);
    line-height: 1.6;
    max-width: 36rem;
}

/* Hero Light - For login/portal pages */
.oes-hero-light {
    background-color: var(--oes-cream);
    border-bottom: 1px solid var(--oes-border);
}

.oes-hero-light .oes-hero-title {
    color: var(--oes-dark);
    margin-bottom: 0.5rem;
}

.oes-hero-light .oes-hero-subtitle {
    color: var(--oes-gray);
    margin-top: 0;
}

/* ==========================================================================
   6. STATISTICS BAR
   ========================================================================== */

.oes-stats-bar {
    background-color: var(--oes-navy);
    padding: 2rem 0;
}

.oes-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.oes-stat-item {
    color: var(--oes-white);
}

.oes-stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    display: block;
}

.oes-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

@media (max-width: 575.98px) {
    .oes-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   7. SECTIONS - Matching main site spacing (py-16 to py-24)
   ========================================================================== */

.section {
    padding: var(--oes-space-16) 0; /* py-16 = 64px */
}

@media (min-width: 768px) {
    .section {
        padding: var(--oes-space-16) 0;
    }
}

@media (min-width: 1024px) {
    .section--lg {
        padding: 6rem 0; /* py-24 = 96px */
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--oes-space-12);
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

.section-header .eyebrow {
    color: var(--oes-navy);
    font-size: var(--oes-text-sm);
    font-weight: 500;
    letter-spacing: var(--oes-tracking-widest);
    text-transform: uppercase;
    margin-bottom: var(--oes-space-3);
}

.section-header .section-title {
    font-size: var(--oes-text-3xl);
    font-weight: 700;
    letter-spacing: var(--oes-tracking-tight);
    color: var(--oes-dark);
    margin-bottom: var(--oes-space-4);
}

@media (min-width: 768px) {
    .section-header .section-title {
        font-size: var(--oes-text-4xl);
    }
}

.section-subtitle {
    font-size: var(--oes-text-base);
    color: var(--oes-gray);
    margin-top: var(--oes-space-2);
    line-height: 1.6;
}

/* Container override for OES max-width */
.container,
.container-xl {
    max-width: var(--oes-container-max);
}

/* Section content max-width utility */
.section-content-narrow {
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

/* Background Colors */
.bg-oes-navy {
    background-color: var(--oes-navy) !important;
    color: var(--oes-white);
}

.bg-oes-navy .section-title,
.bg-oes-navy h1, .bg-oes-navy h2, .bg-oes-navy h3 {
    color: var(--oes-white);
}

.bg-oes-cream {
    background-color: var(--oes-cream) !important;
}

.bg-oes-cream-light {
    background-color: var(--oes-cream-light) !important;
}

/* ==========================================================================
   8. SERVICE CARDS - Icon + Text Layout
   ========================================================================== */

.oes-services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .oes-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .oes-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.oes-service-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    text-decoration: none;
    transition: all var(--oes-transition);
}

.oes-service-card:hover {
    border-color: var(--oes-navy);
    box-shadow: var(--oes-shadow-lg);
    transform: translateY(-4px);
}

.oes-service-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--oes-navy);
    margin-top: 0.125rem;
    transition: transform var(--oes-transition);
}

.oes-service-card:hover .oes-service-icon {
    transform: scale(1.1);
}

.oes-service-content {
    min-width: 0;
}

.oes-service-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oes-dark);
    margin-bottom: 0.25rem;
    transition: color var(--oes-transition);
}

.oes-service-card:hover .oes-service-title {
    color: var(--oes-navy);
}

.oes-service-desc {
    font-size: 0.75rem;
    color: var(--oes-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   9. ABOUT SECTION WITH STAT BOXES
   ========================================================================== */

.oes-about-section {
    background-color: var(--oes-cream);
}

.oes-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .oes-about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.oes-about-content .eyebrow {
    margin-bottom: 0.5rem;
}

.oes-about-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.oes-about-content p {
    font-size: 0.875rem;
    color: var(--oes-gray);
    margin-bottom: 1rem;
}

.oes-blockquote {
    border-left: 2px solid var(--oes-navy);
    padding-left: 1rem;
    margin: 1rem 0;
}

.oes-blockquote p {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--oes-gray-700);
}

.oes-blockquote cite {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: normal;
    color: var(--oes-dark);
    margin-top: 0.5rem;
}

/* Stats Grid 2x2 */
.oes-stat-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.oes-stat-box {
    background: var(--oes-white);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--oes-transition);
}

.oes-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oes-stat-box-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--oes-navy);
}

.oes-stat-box-label {
    font-size: 0.75rem;
    color: var(--oes-gray);
    margin-top: 0.25rem;
}

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */

.oes-testimonials {
    background: var(--oes-white);
}

.oes-testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.oes-quote-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--oes-cream);
    margin: 0 auto 1.5rem;
}

.oes-testimonial-quote {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--oes-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.oes-testimonial-author {
    font-size: 0.875rem;
}

.oes-testimonial-author strong {
    color: var(--oes-dark);
}

.oes-testimonial-author span {
    color: var(--oes-gray);
}

/* Testimonial dots */
.oes-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.oes-testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--oes-cream);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--oes-transition);
}

.oes-testimonial-dot.active {
    width: 1.5rem;
    background: var(--oes-navy);
}

/* Card-style testimonials (grid) */
.oes-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .oes-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.oes-testimonial-card {
    background: var(--oes-white);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: var(--oes-shadow-sm);
}

.oes-testimonial-card .oes-testimonial-quote {
    font-size: 1rem;
    text-align: left;
    padding-left: 1rem;
    border-left: 2px solid var(--oes-navy);
    margin-bottom: 1rem;
}

.oes-testimonial-card .oes-testimonial-author {
    text-align: left;
}

/* ==========================================================================
   11. ACCREDITATIONS BAR
   ========================================================================== */

.oes-accreditations {
    background: var(--oes-cream-light);
    border-top: 1px solid var(--oes-border);
    border-bottom: 1px solid var(--oes-border);
    padding: 2rem 0;
}

.oes-accreditations-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--oes-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.oes-accreditations-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.oes-accreditation-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    transition: color var(--oes-transition);
    cursor: default;
}

.oes-accreditation-item:hover {
    color: var(--oes-navy);
}

/* ==========================================================================
   12. TRAINING CARDS
   ========================================================================== */

.oes-training-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .oes-training-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.oes-training-card {
    display: block;
    padding: 1.5rem;
    background: var(--oes-cream);
    text-decoration: none;
    transition: all var(--oes-transition);
}

.oes-training-card:hover {
    background: var(--oes-navy);
    box-shadow: var(--oes-shadow-xl);
    transform: translateY(-4px);
}

.oes-training-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.oes-training-card-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--oes-navy);
    transition: color var(--oes-transition);
}

.oes-training-card:hover .oes-training-card-icon {
    color: var(--oes-dark);
}

.oes-training-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--oes-dark);
    transition: color var(--oes-transition);
}

.oes-training-card-desc {
    font-size: 0.875rem;
    color: var(--oes-gray);
    margin-bottom: 1rem;
    transition: color var(--oes-transition);
}

.oes-training-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oes-navy);
    transition: color var(--oes-transition);
}

.oes-training-card:hover .oes-training-card-link {
    color: var(--oes-dark);
}

.oes-training-card-link svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform var(--oes-transition);
}

.oes-training-card:hover .oes-training-card-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   COURSE CATEGORY CARDS
   ========================================================================== */

.oes-course-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .oes-course-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .oes-course-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

.oes-course-category-card {
    display: block;
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--oes-transition);
}

.oes-course-category-card:hover {
    border-color: var(--oes-navy);
    box-shadow: var(--oes-shadow-lg);
    transform: translateY(-4px);
}

.oes-course-category-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--oes-cream);
    margin-bottom: 1rem;
    transition: background var(--oes-transition);
}

.oes-course-category-card:hover .oes-course-category-icon {
    background: var(--oes-navy);
}

.oes-course-category-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--oes-navy);
    transition: color var(--oes-transition);
}

.oes-course-category-card:hover .oes-course-category-icon svg {
    color: var(--oes-white);
}

.oes-course-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--oes-dark);
    margin-bottom: 0.5rem;
    transition: color var(--oes-transition);
}

.oes-course-category-card:hover .oes-course-category-title {
    color: var(--oes-navy);
}

.oes-course-category-desc {
    font-size: 0.875rem;
    color: var(--oes-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.oes-course-category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.oes-course-category-list li {
    font-size: 0.75rem;
    color: var(--oes-gray-600);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.oes-course-category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--oes-navy);
    border-radius: 50%;
}

.oes-course-category-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oes-navy);
    transition: color var(--oes-transition);
}

.oes-course-category-link svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform var(--oes-transition);
}

.oes-course-category-card:hover .oes-course-category-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   COURSE LIST ITEMS (for individual category pages)
   ========================================================================== */

/* Course Accordion */
.oes-course-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oes-course-accordion .accordion-item {
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    border-radius: 0;
    margin-bottom: -1px;
}

.oes-course-accordion .accordion-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.oes-course-accordion .accordion-item:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.oes-course-accordion .accordion-button {
    background: var(--oes-white);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    color: var(--oes-dark);
    box-shadow: none;
}

.oes-course-accordion .accordion-button:not(.collapsed) {
    background: var(--oes-cream-light);
    color: var(--oes-navy);
    box-shadow: none;
}

.oes-course-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--oes-navy);
}

.oes-course-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23163b6d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
}

.oes-course-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23163b6d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.oes-course-accordion .accordion-body {
    padding: 1.5rem;
    background: var(--oes-cream-light);
    border-top: 1px solid var(--oes-border);
}

.oes-course-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.oes-course-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--oes-dark);
    margin: 0;
}

@media (min-width: 768px) {
    .oes-course-item-title {
        font-size: 1.125rem;
    }
}

.oes-course-item-duration {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--oes-navy);
    background: var(--oes-cream);
    padding: 0.25rem 0.75rem;
}

.oes-course-item-desc {
    font-size: 0.9375rem;
    color: var(--oes-dark);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Course Details (Prerequisites & Locations) */
.oes-course-details {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .oes-course-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.oes-course-detail {
    background: var(--oes-white);
    padding: 1rem;
    border-left: 3px solid var(--oes-navy);
}

.oes-course-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oes-navy);
    margin-bottom: 0.5rem;
}

.oes-course-detail-label svg {
    flex-shrink: 0;
}

.oes-course-detail p,
.oes-course-detail ul {
    font-size: 0.875rem;
    color: var(--oes-gray-700);
    margin: 0;
    line-height: 1.5;
}

.oes-course-locations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-course-locations li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oes-course-locations li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--oes-navy);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   13. LOCATIONS / TAGS
   ========================================================================== */

.oes-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

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

@media (min-width: 768px) {
    .oes-locations-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.oes-location-tag {
    background: var(--oes-cream);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--oes-gray-700);
    cursor: pointer;
    transition: all var(--oes-transition);
}

.oes-location-tag:hover {
    background: var(--oes-navy);
    color: var(--oes-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   14. CTA SECTION
   ========================================================================== */

.oes-cta {
    background-color: var(--oes-cream);
    padding: 3rem 0;
    text-align: center;
}

.oes-cta h2 {
    font-size: 1.5rem;
    color: var(--oes-dark);
    margin-bottom: 0.75rem;
}

.oes-cta p {
    font-size: 0.875rem;
    color: var(--oes-text-muted);
    margin-bottom: 1.5rem;
}

.oes-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ==========================================================================
   15. FOOTER - Corporate OES Group Style
   ========================================================================== */

.site-footer,
footer#footer {
    background-color: var(--oes-navy) !important;
    color: var(--oes-white);
}

.oes-footer-top {
    background-color: var(--oes-navy) !important;
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .oes-footer-top {
        padding: 5rem 0;
    }
}

/* Footer Brand */
.oes-footer-brand {
    max-width: 24rem;
}

.oes-footer-logo {
    display: inline-block;
}

.oes-footer-logo img {
    height: 4rem;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
    .oes-footer-logo img {
        height: 6rem;
    }
}

.oes-footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Footer Links */
.oes-footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oes-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.oes-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-footer-links li {
    margin-bottom: 0.75rem;
}

.oes-footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--oes-transition);
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.oes-footer-links a:hover {
    color: var(--oes-white);
}

/* Social Icons */
.oes-social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.oes-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--oes-transition);
}

.oes-social-link:hover {
    color: var(--oes-white);
}

.oes-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Bottom */
.site-info {
    background-color: var(--oes-navy-dark) !important;
    padding: 1.25rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-info a {
    color: rgba(255, 255, 255, 0.8);
}

.site-info a:hover {
    color: var(--oes-white);
}

/* Footer Legal Links */
.oes-footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.oes-footer-legal a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--oes-transition);
}

.oes-footer-legal a:hover {
    color: var(--oes-white);
}

/* Footer Legal Menu (wp_nav_menu) */
.oes-footer-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.oes-footer-legal-menu li {
    margin: 0;
    padding: 0;
}

.oes-footer-legal-menu a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--oes-transition);
}

.oes-footer-legal-menu a:hover {
    color: var(--oes-white);
}

/* ==========================================================================
   16. CONTACT PAGE
   ========================================================================== */

.oes-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .oes-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.oes-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.oes-contact-info-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--oes-navy);
    margin-top: 0.125rem;
}

.oes-contact-info-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--oes-gray);
    margin-bottom: 0.25rem;
}

.oes-contact-info-value {
    font-size: 0.875rem;
    color: var(--oes-dark);
}

.oes-contact-info-value a {
    color: var(--oes-navy);
}

/* ==========================================================================
   17. FORMS (Contact Form 7 + Bootstrap Integration)
   ========================================================================== */

.wpcf7 {
    font-family: var(--oes-font-body);
}

/* Form row spacing */
.wpcf7-form .oes-form-row {
    margin-bottom: 1.25rem;
}

.wpcf7-form-control-wrap {
    display: block;
}

/* Labels */
.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--oes-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.wpcf7-form label .required {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Inputs and Textareas */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--oes-cream);
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    background-color: var(--oes-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--oes-navy);
    box-shadow: 0 0 0 3px rgba(22, 59, 109, 0.1);
    outline: none;
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--oes-gray-500);
    opacity: 1;
}

/* Select dropdowns */
.wpcf7 select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Checkboxes and Radio - Bootstrap style */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio,
.wpcf7 .wpcf7-acceptance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wpcf7 .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--oes-navy);
    cursor: pointer;
}

.wpcf7 .wpcf7-list-item-label {
    font-size: 0.875rem;
    color: var(--oes-dark);
    line-height: 1.5;
}

/* Acceptance checkbox (GDPR) */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.8125rem;
    color: var(--oes-gray-600);
}

.wpcf7 .wpcf7-acceptance a {
    color: var(--oes-navy);
    text-decoration: underline;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--oes-navy);
    color: var(--oes-white);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--oes-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 59, 109, 0.3);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* Loading spinner */
.wpcf7 .wpcf7-spinner {
    margin-left: 1rem;
}

/* Response messages - works with bs Contact Form 7 */
.wpcf7 .wpcf7-response-output {
    margin: 1.5rem 0 0 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
    color: #0f5132 !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

/* Field validation errors */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Two-column form layout */
.wpcf7-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.wpcf7-form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .wpcf7-form .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* OES Form Styles */
.oes-contact-form {
    background: var(--oes-white);
}

.oes-contact-form .form-heading {
    color: var(--oes-navy);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--oes-cream);
}

/* ==========================================================================
   18. CARDS (Bootstrap Override)
   ========================================================================== */

.card {
    border: 1px solid var(--oes-border);
    border-radius: 0;
    transition: box-shadow var(--oes-transition), transform var(--oes-transition);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    color: var(--oes-dark);
}

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */

.text-oes-navy { color: var(--oes-navy) !important; }
.text-oes-white { color: var(--oes-white) !important; }
.text-oes-gray { color: var(--oes-gray) !important; }

.bg-oes-white { background-color: var(--oes-white) !important; }

.border-oes-navy { border-color: var(--oes-navy) !important; }

.font-heading { font-family: var(--oes-font-heading) !important; }

/* ==========================================================================
   20. PAGE TEMPLATES
   ========================================================================== */

/* Landing page - full width hero */
.oes-landing-page .oes-hero {
    margin-top: -80px;
    padding-top: calc(80px + 4rem);
}

@media (min-width: 992px) {
    .oes-landing-page .oes-hero {
        margin-top: -88px;
        padding-top: calc(88px + 5rem);
    }
}

/* Remove default content padding on landing */
.oes-landing-page #content {
    padding: 0 !important;
}

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .offcanvas {
        max-width: 300px;
    }

    .oes-hero-content {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .oes-hero {
        min-height: 70vh;
        padding-top: 6rem;
    }

    .oes-hero-content {
        padding: 1.25rem;
    }

    .oes-hero-buttons {
        flex-direction: column;
    }

    .oes-hero-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   22. SCROLL ANIMATIONS
   ========================================================================== */

/* Initial states */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(2rem);
}

.scroll-fade-down {
    opacity: 0;
    transform: translateY(-2rem);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(2rem);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(-2rem);
}

.scroll-zoom-in {
    opacity: 0;
    transform: scale(0.95);
}

/* Animated state (add via JS when in viewport) */
.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 50ms; }
.stagger-children > *:nth-child(3) { transition-delay: 100ms; }
.stagger-children > *:nth-child(4) { transition-delay: 150ms; }
.stagger-children > *:nth-child(5) { transition-delay: 200ms; }
.stagger-children > *:nth-child(6) { transition-delay: 250ms; }

/* Hover lift effect */
.hover-lift {
    transition: transform var(--oes-transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Hover scale effect (for images) */
.hover-scale {
    transition: transform 0.5s ease;
}

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

/* ==========================================================================
   23. MEGA MENU - Courses (OES Grid Style)
   ========================================================================== */

/* Mega Dropdown Positioning */
.mega-menu-item {
    position: relative !important;
}

.mega-menu-item > .dropdown-menu.oes-mega-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0;
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: none;
    border-radius: var(--bs-border-radius);
    background: transparent;
    min-width: 900px;
}

/* Hide original WordPress submenu items in mega menu - content is replaced by JS */
.oes-desktop-menu .mega-menu-item > .dropdown-menu > li.menu-item,
.oes-desktop-menu .mega-menu-item > .sub-menu > li.menu-item {
    display: none !important;
}

/* Hide original submenu before JS runs (prevents flash of unstyled content) */
.oes-desktop-menu .mega-menu-item > .sub-menu:not(.oes-mega-dropdown) {
    display: none !important;
}

/* Ensure mega menu dropdown is visible when active */
.oes-desktop-menu .mega-menu-item > .dropdown-menu.oes-mega-dropdown {
    display: none;
}

.oes-desktop-menu .mega-menu-item:hover > .dropdown-menu.oes-mega-dropdown,
.oes-desktop-menu .mega-menu-item.show > .dropdown-menu.oes-mega-dropdown {
    display: block;
}

/* Mega Menu Container - Match parent site */
.oes-mega-menu-content {
    background: #fff;
    border: 1px solid #e4e2dd; /* border-[#e4e2dd] */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl */
    overflow: hidden;
}

/* Mega Menu Header - Match parent site p-5 styling */
.oes-mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0; /* p-5 top, sides only */
    margin-bottom: 1rem;
}

/* Match parent site: text-base font-semibold text-gray-900 */
.oes-mega-menu-title {
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    color: #111827; /* text-gray-900 */
}

/* Match parent site: text-sm font-medium text-[#163b6d] hover:underline */
.oes-mega-menu-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #163b6d; /* text-[#163b6d] */
    text-decoration: none;
    transition: all 0.15s ease;
}

.oes-mega-menu-viewall:hover {
    text-decoration: underline; /* hover:underline */
    color: #163b6d;
}

.oes-mega-menu-viewall svg {
    transition: transform 0.15s ease;
}

.oes-mega-menu-viewall:hover svg {
    transform: translateX(3px);
}

/* 5-Column Grid */
.oes-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
}

.oes-mega-menu-grid.hidden {
    display: none;
}

/* Category/Course Card - Match parent site styling */
.oes-mega-menu-card {
    display: block;
    text-decoration: none;
    transition: all var(--oes-transition);
}

.oes-mega-menu-card:hover .oes-mega-menu-card-title {
    color: var(--oes-navy, #163b6d);
}

/* Card Image - Match parent site with scale on hover */
.oes-mega-menu-card-image {
    position: relative;
    width: 100%;
    height: 6rem; /* h-24 equivalent */
    background-size: cover;
    background-position: center;
    background-color: #e4e2dd; /* bg-[#e4e2dd] */
    margin-bottom: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease; /* duration-300 */
}

/* Image wrapper for scale effect */
.oes-mega-menu-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.oes-mega-menu-card:hover .oes-mega-menu-card-image::before {
    transform: scale(1.05); /* group-hover:scale-105 */
}

/* Card Content - Match parent site text-sm font-medium */
.oes-mega-menu-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.oes-mega-menu-card-title {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #111827; /* text-gray-900 */
    margin-bottom: 0.125rem; /* mt-0.5 equivalent */
    line-height: 1.4;
    transition: color 0.15s ease; /* transition-colors */
}

/* Match parent site: text-xs text-gray-500 mt-0.5 line-clamp-2 */
.oes-mega-menu-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem; /* text-xs (12px) */
    color: #6b7280; /* text-gray-500 */
    line-height: 1.4;
    margin-top: 0.125rem; /* mt-0.5 */
}

/* Courses Panels Container */
.oes-mega-menu-courses-panels {
    display: none;
}

.oes-mega-menu-courses-panels.active {
    display: block;
}

/* Individual Course Panel */
.oes-mega-menu-courses-panel {
    display: none;
    padding: 1.25rem;
}

.oes-mega-menu-courses-panel.active {
    display: block;
}

/* Back Button */
.oes-mega-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: var(--oes-text-xs);
    font-weight: 500;
    color: var(--oes-navy);
    cursor: pointer;
    transition: color var(--oes-transition);
}

.oes-mega-menu-back:hover {
    color: var(--oes-navy-dark);
}

.oes-mega-menu-back svg {
    transition: transform var(--oes-transition);
}

.oes-mega-menu-back:hover svg {
    transform: translateX(-3px);
}

/* Panel Header */
.oes-mega-menu-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--oes-border);
}

.oes-mega-menu-panel-title {
    font-size: var(--oes-text-base);
    font-weight: 700;
    color: var(--oes-dark);
}

/* More Courses Link */
.oes-mega-menu-more {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--oes-border);
}

.oes-mega-menu-more a {
    font-size: var(--oes-text-xs);
    font-weight: 500;
    color: var(--oes-navy);
    text-decoration: none;
}

.oes-mega-menu-more a:hover {
    text-decoration: underline;
}

/* Empty State */
.oes-mega-menu-empty {
    padding: 2rem 1.25rem;
    text-align: center;
}

.oes-mega-menu-empty p {
    font-size: var(--oes-text-sm);
    color: var(--oes-gray);
    margin-bottom: 1rem;
}

/* Mega Menu Footer - Match parent site mt-4 pt-3 border-t styling */
.oes-mega-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem; /* pt-3 equivalent */
    margin: 0 1.25rem 1.25rem; /* margin within the container */
    border-top: 1px solid #e4e2dd; /* border-[#e4e2dd] */
}

/* Match parent site: text-sm text-gray-600 */
.oes-mega-menu-footer-text {
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
}

/* Match parent site CTA button style */
.oes-mega-menu-footer .btn {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    background-color: #163b6d;
    border-color: #163b6d;
    color: #fff;
    border-radius: 0;
    transition: background-color 0.15s ease;
}

.oes-mega-menu-footer .btn:hover {
    background-color: #0d2340;
    border-color: #0d2340;
}

/* Desktop: Show on hover */
@media (min-width: 992px) {
    .mega-menu-item:hover > .dropdown-menu.oes-mega-dropdown,
    .mega-menu-item.show > .dropdown-menu.oes-mega-dropdown {
        display: block;
    }
}

/* Mobile: Hide mega menu, show regular dropdown */
@media (max-width: 991.98px) {
    .oes-mega-menu-content {
        display: none !important;
    }

    .mega-menu-item > .dropdown-menu.oes-mega-dropdown {
        position: static !important;
        transform: none !important;
        left: auto !important;
        min-width: auto !important;
    }
}

/* Mobile menu - ensure offcanvas is hidden on desktop */
@media (min-width: 992px) {
    #offcanvas-navbar {
        display: none !important;
        visibility: hidden !important;
    }

    .oes-mobile-menu {
        display: none !important;
    }
}

/* ==========================================================================
   MOBILE MENU STYLES
   ========================================================================== */

/* Mobile menu base styles */
.oes-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-mobile-menu .menu-item {
    border-bottom: 1px solid var(--oes-cream);
}

.oes-mobile-menu .menu-item:last-child {
    border-bottom: none;
}

.oes-mobile-menu .menu-item > a,
.oes-mobile-menu .nav-link {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--oes-dark);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.oes-mobile-menu .menu-item > a:hover,
.oes-mobile-menu .nav-link:hover {
    background-color: var(--oes-cream-light);
    color: var(--oes-navy);
}

/* Dropdown toggle arrow */
.oes-mobile-menu .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
    border: none;
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.oes-mobile-menu .dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown menu / Submenu */
.oes-mobile-menu .dropdown-menu,
.oes-mobile-menu .sub-menu {
    position: static !important;
    transform: none !important;
    float: none !important;
    width: 100%;
    min-width: auto;
    padding: 0;
    margin: 0;
    background-color: var(--oes-cream-light);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
}

.oes-mobile-menu .dropdown.show > .dropdown-menu,
.oes-mobile-menu .dropdown.show > .sub-menu {
    display: block;
}

/* Submenu items */
.oes-mobile-menu .dropdown-menu .menu-item,
.oes-mobile-menu .sub-menu .menu-item {
    border-bottom: 1px solid var(--oes-cream);
}

.oes-mobile-menu .dropdown-menu .menu-item:last-child,
.oes-mobile-menu .sub-menu .menu-item:last-child {
    border-bottom: none;
}

.oes-mobile-menu .dropdown-menu .menu-item > a,
.oes-mobile-menu .sub-menu .menu-item > a,
.oes-mobile-menu .dropdown-item {
    padding: 0.75rem 1.5rem 0.75rem 2.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--oes-gray-700);
    background: transparent;
    white-space: normal;
}

.oes-mobile-menu .dropdown-menu .menu-item > a:hover,
.oes-mobile-menu .sub-menu .menu-item > a:hover,
.oes-mobile-menu .dropdown-item:hover {
    background-color: var(--oes-cream);
    color: var(--oes-navy);
}

/* Mega menu item - flatten for mobile */
.oes-mobile-menu .mega-menu-item > .dropdown-menu,
.oes-mobile-menu .mega-menu-item > .sub-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--oes-cream-light) !important;
    padding: 0 !important;
    min-width: auto !important;
}

/* Hide mega menu content in mobile menu */
.oes-mobile-menu .oes-mega-menu-content {
    display: none !important;
}

/* WordPress menu-item-has-children support */
.oes-mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 2.5rem;
}

.oes-mobile-menu .menu-item-has-children > a::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.oes-mobile-menu .menu-item-has-children.show > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.oes-mobile-menu .menu-item-has-children > .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--oes-cream-light);
}

.oes-mobile-menu .menu-item-has-children.show > .sub-menu {
    display: block;
}

/* ==========================================================================
   25. HOMEPAGE STYLES
   ========================================================================== */

/* Hero Section - Home (matching parent site glassmorphism style) */
.oes-hero--home {
    position: relative;
    min-height: 60vh;
    min-height: min(60vh, 600px);
    max-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Background image container */
.oes-hero--home .oes-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.oes-hero--home .oes-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fallback gradient if no image */
.oes-hero--home .oes-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--oes-cream) 0%, var(--oes-cream-light) 100%);
    z-index: -1;
}

.oes-hero--home .container {
    z-index: 2;
}

/* Glassmorphism content box - matching parent site */
.oes-hero--home .oes-hero-content {
    max-width: 540px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 1.5rem;
    border-radius: 0.25rem;
    animation: fadeInUp 0.6s ease-out both;
}

.oes-hero--home .oes-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oes-navy);
    margin-bottom: 0.5rem;
}

.oes-hero--home .oes-hero-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--oes-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0;
}

.oes-hero--home .oes-hero-title span {
    display: block;
    color: var(--oes-navy);
}

.oes-hero--home .oes-hero-subtitle {
    font-size: 0.875rem;
    color: var(--oes-gray-700);
    margin-top: 1rem;
    max-width: 32rem;
    line-height: 1.6;
}

.oes-hero--home .oes-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .oes-hero--home .oes-hero-buttons {
        flex-direction: row;
    }
}

.oes-hero--home .oes-hero-buttons .btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    box-shadow: var(--oes-shadow-lg);
}

.oes-hero--home .oes-hero-buttons .btn-primary {
    background: var(--oes-navy);
    border-color: var(--oes-navy);
}

.oes-hero--home .oes-hero-buttons .btn-primary:hover {
    background: var(--oes-navy-dark);
    border-color: var(--oes-navy-dark);
}

.oes-hero--home .oes-hero-buttons .btn-outline-primary {
    color: var(--oes-navy);
    border-color: var(--oes-navy);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.oes-hero--home .oes-hero-buttons .btn-outline-primary:hover {
    background: var(--oes-navy);
    color: var(--oes-white);
}

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

/* Responsive hero */
@media (min-width: 992px) {
    .oes-hero--home {
        padding-top: 2rem;
    }

    .oes-hero--home .oes-hero-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .oes-hero--home {
        min-height: 50vh;
        padding-top: 1.5rem;
    }

    .oes-hero--home .oes-hero-content {
        margin: 0 1rem;
    }
}

/* Stats Bar Section */
.oes-stats-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oes-stats-bar .h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}

.oes-stats-bar .small {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}

@media (max-width: 767.98px) {
    .oes-stats-bar {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .oes-stats-bar .h3 {
        font-size: 1.25rem;
    }
}

.min-vh-75 {
    min-height: 75vh;
}

/* Icon Circle */
.oes-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Option Cards */
.oes-option-card {
    background-color: var(--oes-cream);
    transition: transform var(--oes-transition), box-shadow var(--oes-transition);
}

.oes-option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--oes-shadow-xl) !important;
}

/* Course Cards on Homepage */
.front-page .oes-course-card {
    transition: transform var(--oes-transition), box-shadow var(--oes-transition);
}

.front-page .oes-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--oes-shadow-lg) !important;
}

.front-page .oes-course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Category Cards */
.oes-category-card {
    transition: transform var(--oes-transition), box-shadow var(--oes-transition);
}

.oes-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--oes-shadow-md) !important;
}

.oes-category-card:hover .oes-category-icon i {
    transform: scale(1.1);
}

.oes-category-icon i {
    transition: transform var(--oes-transition);
}

/* Category Carousel */
.oes-category-carousel {
    padding: 0 3rem;
}

.oes-category-carousel-wrapper {
    overflow: hidden;
}

.oes-category-carousel-track {
    gap: 1rem;
    transition: transform 0.4s ease;
}

.oes-category-slide {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
}

@media (min-width: 576px) {
    .oes-category-slide {
        flex: 0 0 calc(33.333% - 0.667rem);
        min-width: calc(33.333% - 0.667rem);
    }
}

@media (min-width: 768px) {
    .oes-category-slide {
        flex: 0 0 calc(25% - 0.75rem);
        min-width: calc(25% - 0.75rem);
    }
}

@media (min-width: 992px) {
    .oes-category-slide {
        flex: 0 0 calc(16.666% - 0.833rem);
        min-width: calc(16.666% - 0.833rem);
    }
}

.oes-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--oes-white);
    border: none;
    box-shadow: var(--oes-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--oes-transition);
    color: var(--oes-navy);
    z-index: 10;
}

.oes-carousel-btn:hover {
    background: var(--oes-navy);
    color: var(--oes-white);
}

.oes-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oes-carousel-prev {
    left: 0;
}

.oes-carousel-next {
    right: 0;
}

/* Feature Cards */
.oes-feature-card {
    transition: transform var(--oes-transition), box-shadow var(--oes-transition);
}

.oes-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--oes-shadow-xl);
}

/* Why Us Section */
.oes-why-us {
    /* Background set via utility class in HTML */
}

/* CTA Section */
.oes-cta {
    background-color: var(--oes-navy);
}

.oes-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.oes-cta .btn-light {
    background: var(--oes-white);
    border-color: var(--oes-white);
}

.oes-cta .btn-light:hover {
    background: var(--oes-cream);
    border-color: var(--oes-cream);
}

.oes-cta .btn-outline-light {
    border-width: 2px;
}

.oes-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Accreditations */
.oes-accreditations {
    border-top: 1px solid rgba(22, 59, 109, 0.1);
    border-bottom: 1px solid rgba(22, 59, 109, 0.1);
}

.oes-accreditations .tracking-wide {
    letter-spacing: 0.1em;
}

/* Accreditation badges - Navy themed */
.oes-accreditation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--oes-white);
    border: 2px solid var(--oes-navy);
    color: var(--oes-navy);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.oes-accreditation-badge:hover {
    background: var(--oes-navy);
    color: var(--oes-white);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .oes-hero--home .oes-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 767.98px) {
    .oes-hero--home .oes-hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .oes-hero-image-wrapper {
        display: none;
    }
}

/* ==========================================================================
   26. CONTENT PAGES (About, Contact, FAQ, Terms, Privacy)
   ========================================================================== */

/* Page Container */
.page-content,
.entry-content,
.oes-content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Wide content for full width pages */
.page-content.wide,
.entry-content.wide {
    max-width: 1200px;
}

/* Page Header */
.oes-page-header {
    background: var(--oes-cream-light);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.oes-page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.oes-page-header .lead {
    font-size: 1.125rem;
    color: var(--oes-gray);
}

/* Content Typography */
.entry-content h2,
.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--oes-cream);
}

.entry-content h3,
.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p,
.page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li,
.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* Blockquotes */
.entry-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--oes-navy);
    background: var(--oes-cream-light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.entry-content blockquote cite,
.page-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--oes-gray);
    font-style: normal;
}

/* Tables */
.entry-content table,
.page-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--oes-border);
    text-align: left;
}

.entry-content th,
.page-content th {
    background: var(--oes-cream-light);
    font-weight: 600;
}

.entry-content tr:nth-child(even),
.page-content tr:nth-child(even) {
    background: var(--oes-off-white);
}

/* Contact Page Specific */
.oes-contact-page {
    background: var(--oes-off-white);
}

.oes-contact-form {
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    padding: 2rem;
    box-shadow: var(--oes-shadow-md);
}

.oes-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--oes-dark);
}

.oes-contact-form input,
.oes-contact-form textarea,
.oes-contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--oes-border);
    margin-bottom: 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--oes-transition), box-shadow var(--oes-transition);
}

.oes-contact-form input:focus,
.oes-contact-form textarea:focus,
.oes-contact-form select:focus {
    border-color: var(--oes-navy);
    box-shadow: 0 0 0 3px rgba(22, 59, 109, 0.1);
    outline: none;
}

.oes-contact-info {
    background: var(--oes-cream-light);
    padding: 2rem;
    height: 100%;
}

.oes-contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--oes-dark);
}

.oes-contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.oes-contact-info li i {
    color: var(--oes-navy);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/* FAQ Page Specific */
.oes-faq-section {
    margin-bottom: 3rem;
}

.oes-faq-section h2 {
    margin-bottom: 1.5rem;
}

.oes-faq-item {
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    margin-bottom: 0.75rem;
}

.oes-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--oes-transition);
}

.oes-faq-question:hover {
    background: var(--oes-cream-light);
}

.oes-faq-question[aria-expanded="true"] {
    background: var(--oes-cream-light);
    border-bottom: 1px solid var(--oes-border);
}

.oes-faq-question i {
    transition: transform var(--oes-transition);
}

.oes-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.oes-faq-answer {
    padding: 1.25rem;
    line-height: 1.75;
    color: var(--oes-gray-700);
}

/* About Page Specific */
.oes-about-hero {
    background: linear-gradient(135deg, var(--oes-navy) 0%, var(--oes-navy-dark) 100%);
    color: var(--oes-white);
    padding: 4rem 0;
}

.oes-about-hero h1 {
    color: var(--oes-white);
}

.oes-about-section {
    padding: 4rem 0;
}

.oes-about-section:nth-child(even) {
    background: var(--oes-cream-light);
}

.oes-team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.oes-team-card {
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    text-align: center;
    padding: 2rem;
    transition: box-shadow var(--oes-transition), transform var(--oes-transition);
}

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

.oes-team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.oes-team-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.oes-team-role {
    color: var(--oes-gray);
    font-size: 0.875rem;
}

/* Terms & Privacy Specific */
.oes-legal-content {
    background: var(--oes-white);
    padding: 2.5rem;
    border: 1px solid var(--oes-border);
    box-shadow: var(--oes-shadow-sm);
}

.oes-legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.oes-legal-content h2:first-child {
    margin-top: 0;
}

.oes-legal-content p {
    font-size: 0.9375rem;
    color: var(--oes-gray-700);
}

.oes-legal-toc {
    background: var(--oes-cream-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.oes-legal-toc h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.oes-legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-legal-toc li {
    margin-bottom: 0.5rem;
}

.oes-legal-toc a {
    font-size: 0.875rem;
}

/* Last Updated Notice */
.oes-last-updated {
    font-size: 0.875rem;
    color: var(--oes-gray);
    padding: 0.75rem 1rem;
    background: var(--oes-cream-light);
    margin-bottom: 2rem;
}

/* Cookie Policy / Policy Pages */
.oes-policy-content {
    line-height: 1.8;
}

.oes-policy-content h2 {
    font-size: 1.375rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--oes-cream);
    color: var(--oes-dark);
}

.oes-policy-content h2:first-child {
    margin-top: 0;
}

.oes-policy-content h3 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--oes-dark);
}

.oes-policy-content p {
    margin-bottom: 1.25rem;
    color: var(--oes-gray-700);
}

.oes-policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.oes-policy-content li {
    margin-bottom: 0.5rem;
}

/* Policy Sidebar */
.oes-policy-sidebar {
    margin-top: 0;
}

.oes-policy-nav {
    background: var(--oes-white);
    border: 1px solid var(--oes-border);
    padding: 1.5rem;
}

.oes-policy-nav h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--oes-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--oes-border);
}

.oes-policy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-policy-nav li {
    margin-bottom: 0.75rem;
}

.oes-policy-nav li:last-child {
    margin-bottom: 0;
}

.oes-policy-nav a {
    font-size: 0.9375rem;
    color: var(--oes-gray-700);
    display: inline-flex;
    align-items: center;
    transition: color var(--oes-transition);
}

.oes-policy-nav a:hover {
    color: var(--oes-navy);
}

/* Cookie Manage Section */
.oes-cookie-manage-section {
    background: var(--oes-cream-light);
    padding: 1.5rem;
    margin: 2rem 0;
}

.oes-cookie-manage-section h3 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--oes-dark);
}

.oes-cookie-manage-section p {
    margin-bottom: 1rem;
    color: var(--oes-gray-700);
}

/* Page Title for Legal Pages */
.oes-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--oes-dark);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   27. AMELIA BOOKING INTEGRATION
   ========================================================================== */

/* Events Section */
.oes-events-section {
    background: var(--oes-off-white);
}

.oes-events-header h2 {
    color: var(--oes-dark);
    font-weight: 600;
}

/* Amelia Events Container */
.oes-amelia-events,
.oes-amelia-panel {
    background: var(--oes-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Amelia Brand Overrides - Match OES Navy */
.amelia-app-booking .am-button--primary,
.amelia-app-booking button.am-button--primary,
.amelia-front-booking .am-button--primary {
    background-color: var(--oes-navy) !important;
    border-color: var(--oes-navy) !important;
}

.amelia-app-booking .am-button--primary:hover,
.amelia-front-booking .am-button--primary:hover {
    background-color: var(--oes-navy-dark) !important;
    border-color: var(--oes-navy-dark) !important;
}

.amelia-app-booking .am-link,
.amelia-front-booking .am-link {
    color: var(--oes-navy) !important;
}

.amelia-app-booking .am-link:hover,
.amelia-front-booking .am-link:hover {
    color: var(--oes-navy-dark) !important;
}

/* Amelia Event Cards */
.amelia-app-booking .am-event-card,
.amelia-front-booking .am-event-card {
    border-radius: 0.5rem;
    border: 1px solid var(--oes-border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.amelia-app-booking .am-event-card:hover,
.amelia-front-booking .am-event-card:hover {
    box-shadow: 0 4px 12px rgba(22, 59, 109, 0.15);
    transform: translateY(-2px);
}

/* Amelia Calendar */
.amelia-app-booking .am-calendar .am-day--selected,
.amelia-front-booking .am-calendar .am-day--selected {
    background-color: var(--oes-navy) !important;
}

.amelia-app-booking .am-calendar .am-day--today,
.amelia-front-booking .am-calendar .am-day--today {
    border-color: var(--oes-navy) !important;
}

/* Login Required Card */
.oes-login-card {
    background: var(--oes-white);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--oes-border);
}

.oes-login-required {
    background: var(--oes-off-white);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bookings Section */
.oes-bookings-section {
    min-height: 400px;
}

/* ==========================================================================
   28. CORPORATE TRAINING PAGE
   ========================================================================== */

/* How It Works Section */
.oes-how-it-works {
    background: linear-gradient(180deg, var(--oes-cream-light) 0%, #fff 100%);
}

/* Training Cards */
.oes-training-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--oes-cream);
    transition: all 0.3s ease;
    position: relative;
}

.oes-training-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: var(--oes-navy);
    border-color: var(--oes-navy);
}

.oes-training-card:hover .oes-training-card-body {
    background: var(--oes-navy);
}

/* Force white text on hover */
.oes-training-card:hover .oes-training-card-body h3,
.oes-training-card:hover .oes-training-card-body h3.text-oes-navy,
.oes-training-card:hover .oes-training-card-body .h4,
.oes-training-card:hover .oes-training-card-body .h4.text-oes-navy,
.oes-training-card:hover .oes-training-card-body p,
.oes-training-card:hover .oes-training-card-body p.text-muted,
.oes-training-card:hover .oes-training-card-body .text-muted,
.oes-training-card:hover .oes-feature-list li,
.oes-training-card:hover .oes-feature-list li span {
    color: #fff !important;
}

.oes-training-card:hover .oes-feature-list li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.oes-training-card:hover .oes-feature-list li i.text-success,
.oes-training-card:hover .oes-feature-list li i {
    color: var(--oes-cream) !important;
}

/* Card Body */
.oes-training-card-body {
    padding: 1.5rem;
    transition: background 0.3s ease;
}

/* Card Header - icon inline with title */
.oes-training-card-body h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Icon box next to heading */
.oes-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--oes-navy) 0%, #1a3a5c 100%);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.oes-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.oes-training-card:hover .oes-card-icon {
    background: var(--oes-navy-light);
}

/* Feature List in Cards */
.oes-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oes-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px dashed var(--oes-cream);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.oes-feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oes-feature-list li i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    transition: color 0.3s ease;
}

/* ==========================================================================
   29. MENU ACCORDION (Corporate Training)
   ========================================================================== */

.oes-menu-accordion-wrapper {
    margin: 2rem 0;
}

/* Section Header above accordion */
.oes-menu-accordion-wrapper .oes-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--oes-cream);
}

.oes-menu-accordion-wrapper .oes-section-header h2 {
    color: var(--oes-navy);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.oes-menu-accordion-wrapper .oes-section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--oes-navy);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.oes-menu-accordion-wrapper .oes-section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Accordion container */
.oes-menu-accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--oes-cream);
}

/* Accordion items */
.oes-menu-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--oes-cream);
    background: #fff;
}

.oes-menu-accordion .accordion-item:last-child {
    border-bottom: none;
}

/* Accordion header */
.oes-menu-accordion .accordion-header {
    margin: 0;
}

/* Accordion header buttons */
.oes-menu-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--oes-navy);
    background-color: #fff !important;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
    transition: all 0.25s ease;
    gap: 0.75rem;
}

.oes-menu-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--oes-navy) 0%, #1a3a5c 100%) !important;
    color: #fff;
}

.oes-menu-accordion .accordion-button:hover {
    background-color: var(--oes-cream-light) !important;
}

.oes-menu-accordion .accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, var(--oes-navy) 0%, #1a3a5c 100%) !important;
}

/* Number badge before title */
.oes-menu-accordion .accordion-button::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--oes-navy);
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.oes-menu-accordion .accordion-item:nth-child(1) .accordion-button::before { content: '1'; }
.oes-menu-accordion .accordion-item:nth-child(2) .accordion-button::before { content: '2'; }
.oes-menu-accordion .accordion-item:nth-child(3) .accordion-button::before { content: '3'; }
.oes-menu-accordion .accordion-item:nth-child(4) .accordion-button::before { content: '4'; }
.oes-menu-accordion .accordion-item:nth-child(5) .accordion-button::before { content: '5'; }
.oes-menu-accordion .accordion-item:nth-child(6) .accordion-button::before { content: '6'; }
.oes-menu-accordion .accordion-item:nth-child(7) .accordion-button::before { content: '7'; }
.oes-menu-accordion .accordion-item:nth-child(8) .accordion-button::before { content: '8'; }
.oes-menu-accordion .accordion-item:nth-child(9) .accordion-button::before { content: '9'; }
.oes-menu-accordion .accordion-item:nth-child(10) .accordion-button::before { content: '10'; }

/* Arrow icon */
.oes-menu-accordion .accordion-button::after {
    background-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-left: auto;
}

.oes-menu-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Icon in button */
.oes-menu-accordion .accordion-button i {
    font-size: 1.25rem;
    color: var(--oes-navy);
}

.oes-menu-accordion .accordion-button:not(.collapsed) i {
    color: #fff;
}

/* Accordion body - cream background */
.oes-menu-accordion .accordion-body {
    padding: 1.5rem 2rem;
    background-color: var(--oes-cream-light) !important;
    background: var(--oes-cream-light) !important;
    border-left: 4px solid var(--oes-navy);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Override Bootstrap accordion collapse background */
.oes-menu-accordion .accordion-collapse {
    background-color: #fff !important;
}

.oes-menu-accordion .oes-accordion-description {
    color: #444;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.oes-menu-accordion .oes-accordion-description p {
    margin-bottom: 1rem;
}

.oes-menu-accordion .oes-accordion-description p:last-child {
    margin-bottom: 0;
}

/* Sub-items list */
.oes-menu-accordion .oes-accordion-sub-items {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem !important;
    margin-top: 1.25rem;
    border: 1px solid var(--oes-cream);
}

.oes-menu-accordion .oes-accordion-sub-items li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--oes-cream);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.oes-menu-accordion .oes-accordion-sub-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oes-menu-accordion .oes-accordion-sub-items a {
    color: var(--oes-navy);
    text-decoration: none;
    font-weight: 500;
}

.oes-menu-accordion .oes-accordion-sub-items a:hover {
    color: var(--oes-navy-light);
}

/* Buttons in accordion body */
.oes-menu-accordion .accordion-body .btn {
    margin-top: 1.25rem;
    font-weight: 600;
}

/* Request a Quote button - uses theme primary (navy) */
.oes-menu-accordion .oes-quote-btn {
    display: inline-flex;
    align-items: center;
    background: var(--oes-navy) !important;
    border-color: var(--oes-navy) !important;
    color: #fff !important;
}

.oes-menu-accordion .oes-quote-btn:hover {
    background: var(--oes-navy-dark) !important;
    border-color: var(--oes-navy-dark) !important;
    color: #fff !important;
}

/* Focus states for accessibility */
.oes-menu-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(22, 59, 109, 0.25) !important;
    outline: none;
}

/* Accordion responsive */
@media (max-width: 767.98px) {
    .oes-menu-accordion-wrapper .oes-section-header h2 {
        font-size: 1.5rem;
    }

    .oes-menu-accordion .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .oes-menu-accordion .accordion-button::before {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .oes-menu-accordion .accordion-body {
        padding: 1.25rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .oes-training-card {
        margin-bottom: 1rem;
    }
}

/* Courses Section */
.oes-courses-section {
    background: var(--oes-cream-light);
}

/* Contact CTA Section */
.oes-contact-cta {
    background: var(--oes-navy);
}

.oes-contact-cta .btn-light {
    color: var(--oes-navy);
    font-weight: 600;
}

.oes-contact-cta .btn-light:hover {
    background: var(--oes-navy-dark);
    border-color: var(--oes-navy-dark);
    color: #fff;
}

.oes-contact-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   30. CLIENT PORTAL (Amelia Customer Panel)
   ========================================================================== */

.oes-client-portal {
    background: var(--oes-cream-light);
    min-height: 50vh;
}

.oes-portal-info-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--oes-cream);
    transition: all 0.3s ease;
}

.oes-portal-info-card:hover {
    border-color: var(--oes-navy);
    box-shadow: 0 4px 15px rgba(22, 59, 109, 0.1);
}

.oes-portal-info-card i {
    display: block;
}

.oes-amelia-panel {
    border: 1px solid var(--oes-cream);
}

.oes-portal-help {
    border: 1px dashed var(--oes-cream);
}

/* Compact hero for portal pages */
.oes-page-hero-compact {
    padding: 3rem 0 2rem;
}

.oes-page-hero-compact .oes-page-hero-title {
    font-size: 2rem;
}

.oes-page-hero-compact .oes-page-hero-subtitle {
    font-size: 1rem;
}

/* Amelia panel styling overrides */
.oes-amelia-panel .am-asi-customer-panel {
    font-family: inherit;
}

/* ==========================================================================
   31. PRINT STYLES
   ========================================================================== */

@media print {
    .oes-header,
    .site-footer,
    .oes-cta {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
