/* ===================================
   Racio Creative College - Main Stylesheet
   UI/UX Pro Max Design System Applied
   Colors: Teal (#1B7D70) + Gold (#F9C203)
   Typography: Outfit (headings) + Work Sans (body)
   =================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --primary: #1B7D70;
    --primary-dark: #0E4B44;
    --primary-light: #20A08F;
    --secondary: #0E4B44;
    --secondary-dark: #072E2A;
    --secondary-light: #1B7D70;
    --accent: #F9C203;
    --accent-dark: #D4A800;
    --accent-light: #FFE066;

    /* Neutral */
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A68;
    --text-muted: #7B7B96;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFA;
    --bg-tertiary: #EFF6F4;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Status */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Shadows - Layered depth system */
    --shadow-xs: 0 1px 2px rgba(14, 75, 68, 0.04);
    --shadow-sm: 0 1px 3px rgba(14, 75, 68, 0.06), 0 1px 2px rgba(14, 75, 68, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(14, 75, 68, 0.08), 0 2px 4px -1px rgba(14, 75, 68, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(14, 75, 68, 0.08), 0 4px 6px -2px rgba(14, 75, 68, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(14, 75, 68, 0.1), 0 10px 10px -5px rgba(14, 75, 68, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(14, 75, 68, 0.2);
    --shadow-glow: 0 0 20px rgba(27, 125, 112, 0.15);

    /* Spacing - 8px grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Border Radius */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition: all var(--duration-normal) var(--ease-out);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States - Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-4);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Keep every element fixed when the pointer moves over it. */
@media (hover: hover) {
    *:hover {
        transform: none !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    max-width: 100%;
    overflow-wrap: break-word; /* headings wrap instead of overflowing their container */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===================================
   Header
   =================================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    padding: var(--space-3) 0;
    transition: all var(--duration-normal) var(--ease-out);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

/* Scrolled state - sticky white header */
.main-header.scrolled {
    position: sticky;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    padding: var(--space-2) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.95) 100%);
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.logo img,
.mobile-nav-logo img,
.login-brand img {
    border-radius: 50% !important;
    clip-path: circle(50%);
}

.logo img:hover {
    transform: scale(1.03);
}

.main-header.scrolled .logo img {
    filter: none;
}

.nav-menu {
    display: flex;
    gap: var(--space-1);
}

.nav-menu a {
    padding: var(--space-2) var(--space-5);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Scrolled state - dark text */
.main-header.scrolled .nav-menu a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.main-header.scrolled .nav-menu a:hover,
.main-header.scrolled .nav-menu a.active {
    color: var(--primary);
}

.main-header.scrolled .nav-menu a::after {
    background: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: var(--space-2);
    border: none;
    background: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    transition: var(--transition);
}

.main-header.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.header-search-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.main-header.scrolled .header-search-btn {
    color: var(--text-secondary);
}

.main-header.scrolled .header-search-btn:hover {
    color: var(--primary);
}

.nav-cta {
    margin-left: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: var(--space-2) var(--space-16);
    border-radius: 0;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.main-header.scrolled .nav-cta {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.main-header.scrolled .nav-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-student-portal {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--text-primary);
    font-size: 0.68rem;
    padding: 6px 11px;
    border-radius: 24px !important;
    white-space: nowrap;
}

.nav-student-portal:hover {
    color: var(--text-primary);
    border-color: var(--accent-dark);
    background: var(--accent);
}

.main-header.scrolled .nav-student-portal {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--text-primary);
}

.main-header.scrolled .nav-student-portal:hover {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: var(--text-primary);
}

.mobile-student-portal {
    margin-top: var(--space-3);
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--text-primary) !important;
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 24px !important;
}

/* ===================================
   Dropdown Menus
   =================================== */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: var(--space-1);
    transition: transform var(--duration-normal) var(--ease-out);
}

.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-5);
    color: var(--text-secondary) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--primary) !important;
    padding-left: var(--space-6);
}

/* Dropdown items never get the underline */
.dropdown-menu a::after {
    display: none !important;
}

/* ===================================
   Search Overlay
   =================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 46, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 0 var(--space-6);
    transform: translateY(30px);
    transition: transform var(--duration-slow) var(--ease-out);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: var(--space-8);
    right: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: var(--space-2);
    transition: border-color var(--duration-normal) var(--ease-out);
}

.search-form:focus-within {
    border-color: var(--accent);
}

.search-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 0 var(--space-4);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-family: 'Work Sans', sans-serif;
    padding: var(--space-3) 0;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-suggestions {
    margin-top: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

.search-suggestions a {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===================================
   Sticky Header Animation
   =================================== */
.main-header {
    animation: headerSlideDown 0.6s var(--ease-out) both;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav link hover effect - single long underline */
.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--duration-normal) var(--ease-out);
    transform: translateX(-50%);
    border-radius: 0;
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before {
    width: 80%;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: calc(var(--z-header) + 10);
    padding: 0;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-header) + 5);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-nav-logo img {
    height: 40px;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-nav-close {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) 0;
    flex: 1;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu > li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    font-size: 1rem;
    padding: var(--space-4) var(--space-6);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-menu a i {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform var(--duration-normal) var(--ease-out);
}

.mobile-nav-menu > li.active > a,
.mobile-nav-menu > li > a:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.mobile-has-dropdown > a.active i,
.mobile-has-dropdown.open > a i {
    transform: rotate(180deg);
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: none;
    background: var(--bg-secondary);
    padding: 0;
}

.mobile-has-dropdown.open .mobile-dropdown {
    display: block;
}

.mobile-dropdown li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-dropdown li:last-child {
    border-bottom: none;
}

.mobile-dropdown a {
    padding: var(--space-3) var(--space-6) var(--space-3) var(--space-10);
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
}

.mobile-dropdown a:hover {
    color: var(--primary) !important;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.mobile-nav-contact a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-nav-contact i {
    color: var(--primary);
    width: 16px;
}

.mobile-nav-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.mobile-nav-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-nav-social a:hover {
    background: var(--primary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   Buttons - Touch-friendly, accessible
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-7);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
    white-space: nowrap;
    min-height: 44px; /* Touch target */
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

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

.btn-white:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary-dark);
    border-color: var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: var(--space-3) var(--space-12);
    font-size: 1rem;
    min-height: 44px;
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: 0.82rem;
    min-height: 36px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh; /* cover the full viewport, even on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--secondary-dark);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 46, 42, 0.82) 0%, rgba(14, 75, 68, 0.65) 50%, rgba(7, 46, 42, 0.78) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) 0 var(--space-20);
}

.hero-content {
    text-align: center;
    max-width: none;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    color: white;
    margin-bottom: var(--space-5);
    line-height: 1.08;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero .hero-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 9rem);
    margin-top: var(--space-20);
    width: 100%;
    max-width: 100%;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

/* Keep the hero title on a single line on larger screens. The size is
   tuned so "Racio Creative College" always fits within its container. */
@media (min-width: 769px) {
    .hero .hero-title {
        white-space: nowrap;
        font-size: clamp(2.8rem, 8vw, 7rem);
    }
}

@media (min-width: 1025px) {
    .hero .hero-title {
        font-size: clamp(4rem, 8vw, 7rem);
        margin-top: calc(var(--space-20) + 24px);
    }
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-lines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-lines.svg') center/cover no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(27, 125, 112, 0.1);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-bg-light {
    background: var(--bg-secondary);
}

.section-bg-dark {
    background: var(--secondary);
    color: white;
}

.section-bg-dark .section-title {
    color: white;
}

.section-bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* ===================================
   Why Choose Us
   =================================== */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
}

.why-card {
    background: var(--bg-primary);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.why-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.why-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.why-card:hover .why-card-image img {
    transform: scale(1.06);
}

.why-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(7, 46, 42, 0.35), transparent);
}

.why-card-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.why-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--accent);
    align-self: flex-start;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* ===================================
   Learning Options
   =================================== */
.learning-options-section {
    background: #F7FAFA;
}

.learning-options-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.learning-options-heading .section-title {
    margin-bottom: var(--space-2);
}

.learning-options-heading .section-subtitle {
    margin-bottom: 0;
    text-align: left;
}

.learning-options-link {
    flex-shrink: 0;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.learning-options-link i,
.learning-option-cta i {
    margin-left: var(--space-1);
    color: var(--primary);
}

.learning-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.learning-option-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: inherit;
}

.learning-option-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
}

.learning-option-icon {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
}

.learning-option-copy h3 {
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.learning-option-copy p {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: var(--space-3);
}

.learning-option-cta {
    margin-top: auto;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.learning-option-image {
    min-height: 190px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.learning-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Courses
   =================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
}

.course-card {
    background: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-light);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.course-card-image {
    height: 200px;
    background: linear-gradient(160deg, var(--secondary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-image i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.85);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.course-card:hover .course-card-image i {
    transform: scale(1.15);
}

.course-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
}

.course-card-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--accent);
    color: var(--secondary-dark);
    padding: var(--space-1) var(--space-3);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    letter-spacing: 0.02em;
}

.course-card-content {
    padding: var(--space-6);
}

.course-card-category {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.course-card-meta i {
    color: var(--primary);
}

/* ===================================
   About Preview
   =================================== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-preview-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-experience-badge {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
    background: var(--primary);
    color: white;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.about-experience-badge .text {
    font-size: 0.82rem;
    opacity: 0.9;
}

.about-preview-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: var(--space-5);
}

.about-preview-content h2 span {
    color: var(--primary);
}

.about-preview-content p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.about-feature-item i {
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.about-feature-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ===================================
   Mission & Vision Cards
   =================================== */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: stretch;
}

.mv-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 28px;
    min-height: 300px;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Selection frame border */
.mv-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid #222;
    pointer-events: none;
    z-index: 1;
}

/* Small square handles at corners & midpoints */
.mv-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #222;
    border: 1.5px solid #fff;
    z-index: 2;
}

.mv-handle-tl { top: -5px; left: -5px; }
.mv-handle-tc { top: -5px; left: 50%; margin-left: -5px; }
.mv-handle-tr { top: -5px; right: -5px; }
.mv-handle-ml { top: 50%; left: -5px; margin-top: -5px; }
.mv-handle-mr { top: 50%; right: -5px; margin-top: -5px; }
.mv-handle-bl { bottom: -5px; left: -5px; }
.mv-handle-bc { bottom: -5px; left: 50%; margin-left: -5px; }
.mv-handle-br { bottom: -5px; right: -5px; }

/* Card content */
.mv-card-content {
    position: relative;
    z-index: 3;
    padding: var(--space-4);
}

/* Title */
.mv-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

/* Body text */
.mv-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    font-family: 'Inter', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .mv-card {
        padding: 20px;
        min-height: 260px;
    }
    .mv-card-content {
        padding: var(--space-4) var(--space-2);
    }
}

/* ===================================
   Courses – Card Grid + Filters
   =================================== */

/* Category filter bar */
.course-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-10);
    justify-content: center;
}

.course-filter-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.course-filter-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

.course-filters {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 6px 0;
    max-width: 100%;
}

.course-filters::-webkit-scrollbar {
    display: none;
}

.course-filter-tab {
    flex-shrink: 0;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-medium);
    background: var(--bg-primary);
    border: 1.5px solid var(--border-light);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.course-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.course-filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27, 125, 112, 0.3);
}

.course-card-price {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    margin-bottom: var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid rgba(27, 125, 112, 0.25);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.course-card-price i {
    color: var(--primary);
}

/* Price filter tabs */
.price-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: calc(var(--space-5) * -1) 0 var(--space-6);
}

.price-filters-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: var(--space-2);
}

.price-filters-label i {
    color: var(--primary);
}

.price-filter-tab {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.price-filter-tab:hover {
    border-color: rgba(27, 125, 112, 0.4);
    color: var(--primary-dark);
}

.price-filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Course cards grid */
.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
}

.course-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card-image {
    position: relative;
    overflow: hidden;
}

.course-card-image > div {
    width: 100%;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-image > div {
    transform: scale(1.05);
}

.course-card-category {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.course-card-body {
    padding: 22px;
}

.course-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.course-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.course-card-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-meta i {
    color: var(--primary);
    font-size: 0.78rem;
}

.course-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-medium);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Course detail panel (inline) */
.course-detail-panel {
    position: relative;
    margin-top: var(--space-10);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border-light);
    animation: slideDown 0.35s ease;
}

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

.course-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.course-detail-close:hover {
    background: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

/* Course detail view */
.course-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.course-detail-image > div {
    width: 100%;
}

.course-detail-body {
    padding-top: var(--space-4);
}

.course-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    line-height: 1.25;
}

.course-detail-desc {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: var(--space-6);
}

.course-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-7);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-meta-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.course-meta-item span {
    font-size: 0.92rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .course-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-cards-grid {
        grid-template-columns: 1fr;
    }
    .course-detail {
        grid-template-columns: 1fr;
    }
    .course-detail-meta {
        grid-template-columns: 1fr;
    }
    .course-filter-arrow {
        display: none;
    }
    .course-detail-panel {
        padding: var(--space-5);
    }
}

/* ===================================
   Testimonials
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: 0;
    padding: var(--space-7);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-light);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    font-size: 2.5rem;
    color: var(--bg-tertiary);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    margin-bottom: var(--space-4);
}

.testimonial-rating i {
    color: var(--accent);
    font-size: 0.85rem;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: var(--space-5);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.testimonial-author-info span {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ===================================
   News
   =================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-body h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: var(--space-3);
}

.news-card-body h3 a {
    color: var(--text-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.news-card-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: var(--space-4);
    flex: 1;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    align-self: flex-start;
}

.news-card-link i {
    transition: transform var(--duration-normal) var(--ease-out);
}

.news-card-link:hover i {
    transform: translateX(4px);
}

/* Single news article */
.news-masthead {
    background: #210b0b;
    color: #f7ead2;
    padding: 34px 24px 25px;
    text-align: center;
    border-bottom: 4px solid #d0ae73;
    position: relative;
    overflow: hidden;
}

.news-masthead::before {
    content: 'The Racio Times';
    position: absolute;
    inset: 12px -20px auto;
    color: rgba(247, 234, 210, 0.06);
    font: 700 clamp(4rem, 11vw, 9rem)/1 Georgia, serif;
    white-space: nowrap;
}

.news-masthead-meta,
.news-masthead-tagline,
.news-masthead-rule,
.news-masthead-title {
    position: relative;
    z-index: 1;
}

.news-masthead-meta {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 18px;
    color: rgba(247, 234, 210, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-masthead-title {
    font: 700 clamp(3.2rem, 8vw, 7rem)/0.95 Georgia, serif;
    letter-spacing: -0.04em;
}

.news-masthead-tagline {
    margin-top: 14px;
    color: rgba(247, 234, 210, 0.76);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-masthead-rule {
    width: 76px;
    height: 3px;
    margin: 17px auto 0;
    background: #d0ae73;
}

.news-single {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-top: 1px solid #222;
}

.news-paper-header {
    padding: 22px 30px 18px;
    border-bottom: 1px solid #222;
}

.news-paper-header .news-card-meta {
    margin-bottom: 13px;
}

.news-paper-header .news-card-meta span {
    color: #555;
    font-size: 0.68rem;
}

.news-paper-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 30px;
    padding: 22px 30px 30px;
}

.news-single-body {
    padding: var(--space-8);
}

.news-single-title {
    font: 700 clamp(2.4rem, 5vw, 4rem)/0.98 Georgia, serif;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.news-paper-byline {
    color: #444;
    font: 0.78rem Georgia, serif;
}

.news-single-content p {
    color: #1f1f1f;
    font: 1rem/1.65 Georgia, serif;
    margin-bottom: 18px;
    text-align: justify;
}

.news-single-image {
    margin: 0;
    align-self: start;
}

.news-single-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-single-image figcaption {
    margin-top: 7px;
    color: #555;
    font: 0.75rem Georgia, serif;
}

.admin-news-image-preview {
    width: 180px;
    height: 110px;
    margin-top: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(160deg, var(--secondary-dark), var(--primary-dark), #0A3D37);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: white;
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: var(--space-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.main-footer {
    position: relative;
    background: var(--secondary-dark);
    color: white;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

/* Slim two-line footer */
.footer-slim {
    padding: var(--space-5) var(--space-6);
}

.footer-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    padding: var(--space-2) 0;
    font-size: 0.85rem;
    color: #FFFFFF;
}

.footer-line + .footer-line {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-line span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-line i {
    color: var(--accent);
    font-size: 0.85rem;
}

.footer-line a {
    color: var(--primary-light);
}

.footer-line a:hover {
    color: var(--accent);
}

.footer-content {
    padding: var(--space-10) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer-logo img {
    height: 50px;
}

.footer-col > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--primary-light);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: var(--space-1);
}

.footer-contact li {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-contact i {
    width: 18px;
    color: var(--accent);
    margin-top: 3px;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-5) 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-7);
    right: var(--space-7);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-dropdown);
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Page Banner
   =================================== */
.page-banner {
    background: linear-gradient(160deg, var(--secondary-dark), var(--primary-dark));
    padding: calc(var(--space-16) + 40px) 0 var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.page-banner h1 {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.page-banner h1 span {
    color: var(--accent);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    list-style: none;
    position: relative;
    z-index: 1;
    margin-top: var(--space-4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
    color: var(--accent);
    font-weight: 500;
}

/* ===================================
   Forms
   =================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--bg-primary);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 125, 112, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Admin workspace refinements */
.admin-content {
    background: #F4F8F8;
    padding: 28px 32px 48px;
}

.admin-header {
    min-height: 82px;
    margin-bottom: 24px;
    padding: 22px 28px;
    background: linear-gradient(110deg, #0E4B44 0%, #1B7D70 72%, #20A08F 100%);
    box-shadow: 0 6px 18px rgba(14, 75, 68, 0.12);
}

.admin-header h1 {
    font-size: 1.65rem;
    letter-spacing: 0;
}

.admin-stats {
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    min-height: 92px;
    padding: 18px 20px;
    border-color: #E5EEEE;
    box-shadow: 0 2px 5px rgba(14, 75, 68, 0.07);
    transition: border-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.admin-stat-card:hover {
    border-color: #B7D9D3;
    box-shadow: 0 5px 14px rgba(14, 75, 68, 0.1);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    background: #EDF5F3;
    color: var(--primary);
    font-size: 1.08rem;
}

.admin-stat-info h3 {
    color: #10172C;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
}

.admin-stat-info p {
    margin-top: 7px;
    color: #73819A;
    font-size: 0.75rem;
    line-height: 1.2;
}

.admin-card {
    padding: 26px 28px;
    border-color: #E5EEEE;
    box-shadow: 0 2px 6px rgba(14, 75, 68, 0.06);
}

.admin-card > h3 {
    color: #10172C;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.admin-card .form-group label {
    color: #10204A;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-card .form-control {
    min-height: 44px;
    border-color: #D9E3ED;
    color: #111827;
    font-size: 0.86rem;
    background: #FFFFFF;
}

.admin-card textarea.form-control {
    min-height: 120px;
    line-height: 1.45;
}

.admin-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 125, 112, 0.1);
}

.admin-card .btn {
    min-height: 42px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Homepage image upload cards (flow left to right) */
.homepage-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.homepage-image-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid #E5EEEE;
    border-radius: 10px;
    background: var(--bg-secondary);
}

.homepage-image-card strong {
    color: #10204A;
    font-size: 0.85rem;
}

.homepage-image-card img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.homepage-image-card .form-control {
    min-height: 44px;
}

.homepage-image-card .form-group {
    margin-bottom: 0;
}

.homepage-image-card textarea.form-control {
    min-height: 76px;
    resize: vertical;
}

.homepage-image-card small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 1100px) {
    .homepage-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .homepage-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-content {
        padding: 22px 20px 40px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .admin-content {
        padding: 16px 14px 32px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-card {
        padding: 20px 16px;
    }
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237B7B96' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* ===================================
   Alerts
   =================================== */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: 0;
    margin-bottom: var(--space-5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-5);
    cursor: pointer;
    background: var(--bg-primary);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question i {
    color: var(--primary);
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-answer-content {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===================================
   Contact
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
}

.contact-info-text p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.contact-form {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

/* ===================================
   Admissions Steps - Infographic Timeline
   =================================== */
.steps-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}



/* ===================================
   Application Steps (Admissions)
   =================================== */
.apply-steps {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.apply-steps::before {
    display: none;
}

.apply-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.apply-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 125, 112, 0.25);
}

.apply-step-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 6px var(--bg-primary), var(--shadow-md);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.apply-step:hover .apply-step-marker {
    transform: none;
}

.apply-step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.apply-step-marker i {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.apply-step-marker,
.apply-step-marker * {
    pointer-events: none;
    cursor: default;
}

.apply-step-body {
    flex: 1;
}

.apply-step-body h3 {
    font-size: 1.12rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.apply-step-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   PDF Application Form Panel
   =================================== */


/* ===================================
   Online Application Page (apply.php)
   =================================== */
.online-apply-wrap {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-10);
    align-items: start;
}

.online-apply-form {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .online-apply-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.step-row {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    position: relative;
    padding-bottom: var(--space-10);
}

.step-row:last-child {
    padding-bottom: 0;
}

/* Connecting line from hexagon toward the next step */
.step-row::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 150px;
    right: -30px;
    height: 2px;
    background: rgba(14, 75, 68, 0.3);
}

.step-row.reverse::before {
    left: -30px;
    right: 150px;
}

.step-row:last-child::before {
    display: none;
}

.step-hexwrap {
    position: relative;
    width: 150px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 22px;
}

.step-hex {
    width: 126px;
    height: 114px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 2;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.step-row:hover .step-hex {
    transform: scale(1.06);
}

.step-row:nth-child(odd) .step-hex {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.step-row:nth-child(even) .step-hex {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}

.step-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.92;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

/* Ellipse base under each hexagon */
.step-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 158px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-dark);
    z-index: 1;
}

.step-base::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 22px;
    right: 22px;
    bottom: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.55;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 420px;
}

/* Mirror layout for reverse rows */
.step-row.reverse {
    flex-direction: row-reverse;
}

.step-row.reverse .step-content {
    text-align: right;
}

.step-row.reverse .step-content p {
    margin-left: auto;
}

/* ===================================
   About Page
   =================================== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-intro-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.about-intro-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.value-card {
    text-align: center;
    padding: var(--space-7) var(--space-5);
    background: var(--bg-primary);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 1.3rem;
    color: var(--primary);
}

.value-card h3 {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ===================================
   Gallery
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(160deg, var(--secondary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay span {
    max-width: 75%;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 125, 112, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.5rem;
    color: white;
}

/* ===================================
   Admin Styles
   =================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--secondary-dark);
    color: white;
    padding: var(--space-5) 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0 var(--space-5) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-5);
}

.admin-sidebar-header h2 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-right: var(--space-3);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-nav a i {
    width: 18px;
}

.admin-content {
    padding: var(--space-8);
    background: var(--bg-secondary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    background: linear-gradient(160deg, var(--secondary-dark), var(--primary-dark));
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.admin-header > * {
    position: relative;
    z-index: 1;
}

.admin-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
}

.admin-header h1 span {
    color: var(--accent);
}

.admin-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-5);
    border: 1px solid var(--border-light);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.admin-stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    border: 1px solid var(--border-light);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.admin-stat-info h3 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.admin-stat-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===================================
   Tables
   =================================== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    font-size: 0.88rem;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-success {
    background: #ECFDF5;
    color: #065F46;
}

.badge-warning {
    background: #FFFBEB;
    color: #92400E;
}

.badge-danger {
    background: #FEF2F2;
    color: #991B1B;
}

/* ===================================
   Login Page
   =================================== */
.login-body {
    margin: 0;
    padding: 0;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0E4B44 0%, #1B7D70 40%, #20A08F 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Side */
.login-left {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.login-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.login-welcome {
    margin-bottom: 32px;
}

.login-welcome-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 4px 0;
}

.login-welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.login-input-wrapper {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #1B7D70;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 125, 112, 0.12);
}

.login-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.login-input:focus ~ .login-input-icon {
    opacity: 1;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: #1B7D70;
}

.login-forgot {
    color: #1B7D70;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #1B7D70;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: #0E4B44;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 125, 112, 0.4);
}

.login-signup {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #888;
}

.login-signup a {
    color: #1B7D70;
    text-decoration: none;
    font-weight: 600;
}

.login-signup a:hover {
    text-decoration: underline;
}

.login-footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 0.82rem;
    color: #aaa;
}

.login-footer-links a {
    color: #888;
    text-decoration: none;
}

.login-footer-links a:hover {
    color: #1B7D70;
}

/* Right Side */
.login-right {
    background: linear-gradient(160deg, #0E4B44, #1B7D70);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.login-about p {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0 0 24px 0;
}

.login-about h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px 0;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.login-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.login-illustration {
    margin-top: auto;
}

.login-illustration svg {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .login-right {
        display: none;
    }
    .login-left {
        padding: 36px 28px;
    }
}

/* Admin login: blue split-panel layout */
.login-body {
    background: #0E4B44;
    font-family: 'Inter', sans-serif;
}

.login-page {
    min-height: 100vh;
    padding: 56px 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 18%, transparent 18% 68%, rgba(255, 255, 255, 0.05) 68% 78%, transparent 78%),
        #0E4B44;
}

.login-page::before,
.login-page::after {
    border-radius: 0 !important;
    clip-path: polygon(0 18%, 72% 0, 100% 36%, 38% 100%, 0 76%);
    background: rgba(255, 255, 255, 0.04);
}

.login-page::before {
    top: -28%;
    right: -8%;
    width: 720px;
    height: 520px;
}

.login-page::after {
    bottom: -30%;
    left: 24%;
    width: 660px;
    height: 430px;
}

.login-card {
    grid-template-columns: 44% 56%;
    max-width: 1000px;
    min-height: 586px;
    background: #fff;
    box-shadow: 0 24px 55px rgba(7, 46, 42, 0.28);
    overflow: hidden;
}

.login-left {
    padding: 54px 64px 42px 76px;
    justify-content: flex-start;
}

.login-brand {
    margin-bottom: 46px;
}

.login-brand img {
    height: 34px !important;
    width: auto !important;
}

.login-brand-name {
    color: #39404F;
    font-size: 1.05rem;
}

.login-welcome {
    margin-bottom: 46px;
}

.login-welcome-label {
    color: #687080;
    font-size: 0.88rem;
}

.login-welcome-title {
    color: #303746;
    font-size: 2.25rem;
    line-height: 1.08;
}

.login-form {
    gap: 21px;
}

.login-field label {
    color: #9AA0AE;
    font-size: 0.72rem;
    margin-bottom: 5px;
}

.login-input {
    padding: 11px 0;
    border: 0;
    border-bottom: 2px solid #E4E7EE;
    background: #fff;
    color: #303746;
    font-size: 0.85rem;
}

.login-input:focus {
    border-color: #69C6A8;
    box-shadow: none;
}

.login-input-icon {
    right: 0;
    color: #4CC096;
}

.login-options {
    color: #C3C7D1;
    font-size: 0.7rem;
}

.login-remember {
    color: #C3C7D1;
}

.login-remember input {
    width: 12px;
    height: 12px;
    accent-color: #1B7D70;
}

.login-forgot {
    color: #20A08F;
}

.login-btn {
    margin-top: 2px;
    padding: 13px;
    background: #1B7D70;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    box-shadow: 0 9px 18px rgba(27, 125, 112, 0.2);
}

.login-btn:hover {
    background: #155F55;
    box-shadow: 0 9px 18px rgba(27, 125, 112, 0.28);
}

.login-signup {
    margin-top: 15px;
    color: #A4A9B5;
    font-size: 0.7rem;
}

.login-footer-links {
    margin-top: auto;
    color: #A4A9B5;
    font-size: 0.68rem;
}

.login-footer-links a {
    color: #858C9C;
}

.login-right {
    min-width: 0;
    padding: 66px 74px 28px 116px;
    background: #1B7D70;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
        linear-gradient(180deg, #1B7D70 0%, #124C44 100%);
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 26% 100%, 15% 88%, 0 50%, 9% 12%);
}

.login-about h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.login-about p {
    max-width: 390px;
    font-size: 0.74rem;
    line-height: 1.55;
    margin-bottom: 22px;
}

.login-about h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.login-features li {
    padding-left: 14px;
    margin-bottom: 10px;
    font-size: 0.73rem;
    line-height: 1.4;
}

.login-features li::before {
    width: 5px;
    height: 5px;
    top: 7px;
}

.login-illustration {
    opacity: 0.92;
}

@media (max-width: 900px) {
    .login-left {
        padding-left: 52px;
        padding-right: 42px;
    }

    .login-right {
        padding-left: 82px;
        padding-right: 42px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 24px 16px;
    }

    .login-card {
        max-width: 480px;
    }

    .login-left {
        padding: 40px 32px 34px;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .hero-title {
        font-size: clamp(3rem, 9.5vw, 5.5rem);
        margin-top: var(--space-12);
    }
    .courses-grid, .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-timeline { max-width: 100%; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--space-4); }

    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .header-search-btn { display: none; }
    .logo img { height: 44px; }

    /* Keep the hamburger/any header actions pinned to the right edge
       (space-between alone centers the hamburger when actions are empty) */
    .main-header .container { justify-content: flex-start; }
    .main-nav { margin-left: auto; }

    .hero { min-height: 520px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .hero-title {
        font-size: clamp(2.4rem, 10.5vw, 3.6rem);
        margin-top: var(--space-10);
        letter-spacing: -0.03em;
    }
    .hero-content-wrapper { padding: var(--space-14, 88px) 0 var(--space-12); }
    .hero { display: flex; align-items: flex-end; }
    .section-title { font-size: 1.8rem; }
    .section { padding: var(--space-14, 88px) 0; }

    /* Prevent iOS auto-zoom on input focus */
    .form-control { font-size: 1rem; }

    .courses-grid, .why-choose-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .news-grid { grid-template-columns: 1fr; }
    .news-single-image { height: 220px; }
    .news-single-body { padding: var(--space-5); }
    .about-preview, .about-intro-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .step-row,
    .step-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
        padding-bottom: var(--space-8);
    }

    .step-row::before,
    .step-row.reverse::before {
        display: none;
    }
    .step-row.reverse .step-content {
        text-align: center;
    }
    .step-row.reverse .step-content p {
        margin-left: 0;
    }
    .step-content p { margin: 0 auto; }
    .apply-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-4);
    }
    .apply-steps {
        grid-template-columns: 1fr;
    }
    .apply-steps::before { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .page-banner h1 { font-size: 1.8rem; }
    .page-banner { padding: calc(var(--space-14, 88px) + 20px) 0 var(--space-10); }

    .cta-section { padding: var(--space-14, 88px) 0; }
    .cta-content h2 { font-size: 1.7rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { width: 100%; }

    .about-preview-image { height: 320px; }
    .about-preview-image > div { height: 320px !important; }
    .about-experience-badge { padding: var(--space-4) var(--space-5); }
    .about-experience-badge .number { font-size: 1.6rem; }

    .contact-form { padding: var(--space-6); }

    .footer-bottom .container {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .footer-line {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-content { padding: var(--space-5); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    /* Course filters - wrap neatly on mobile */
    .text-center.mb-4 .course-filter,
    .course-filter {
        display: inline-block;
        margin: var(--space-1) var(--space-1);
    }

    .why-card-image { height: 160px; }
}

@media (max-width: 480px) {
    .hero { min-height: 82vh; }
    .hero h1 { font-size: 1.8rem; }
    .hero .hero-title {
        font-size: clamp(2rem, 11vw, 2.7rem);
        margin-top: var(--space-8);
    }
    .hero p { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .section { padding: var(--space-12) 0; }
    .section-title { font-size: 1.55rem; }
    .section-subtitle { font-size: 0.95rem; }
    .values-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }

    /* Keep all Why Choose Us card copy available on small screens. */
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
    .why-card-image { height: 110px; }
    .why-card-body {
        padding: var(--space-2) var(--space-3) var(--space-3);
    }
    .why-card h3 {
        font-size: 0.66rem;
        line-height: 1.35;
        margin-bottom: 0;
    }
    .logo img { height: 36px; }
    .btn { padding: var(--space-3) var(--space-6); }
    .btn-lg { padding: var(--space-3) var(--space-8); min-height: 40px; }
    .data-table th, .data-table td { padding: var(--space-2) var(--space-3); }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: white; }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-5); }
.mt-3 { margin-top: var(--space-8); }
.mt-4 { margin-top: var(--space-10); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-5); }
.mb-3 { margin-bottom: var(--space-8); }
.mb-4 { margin-bottom: var(--space-10); }

@media (max-width: 900px) {
    .learning-options-grid {
        grid-template-columns: 1fr;
    }

    .learning-option-card {
        min-height: 170px;
        grid-template-columns: 1.4fr 1fr;
    }
}

@media (max-width: 600px) {
    .learning-options-heading {
        display: block;
    }

    .learning-options-heading .section-subtitle {
        margin-bottom: var(--space-4);
    }

    .learning-options-link {
        display: inline-block;
    }

    .learning-option-card {
        grid-template-columns: 1fr;
    }

    .learning-option-image {
        min-height: 150px;
        order: -1;
    }
}

/* Keep feature-card information visible while the page is displayed. */
.why-card-body {
    display: flex !important;
    visibility: visible !important;
}

/* Shared bone-loader treatment for content that is still being prepared. */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    background: #EEF3F3 !important;
    color: transparent !important;
    border-color: #EEF3F3 !important;
}

.skeleton-loading > * {
    visibility: hidden !important;
}

.skeleton-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.65) 45%, transparent 90%);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-loading::after { animation: none; }
}

/* Keep the homepage feature-card copy visible on every screen size. */
.why-card-body,
.why-card h3,
.why-card-tag,
.why-card p {
    display: block !important;
    visibility: visible !important;
}

.why-card-body {
    display: flex !important;
}

.why-card h3,
.why-card-tag,
.why-card p {
    display: block !important;
    visibility: visible !important;
}

/* Final admin workspace styling */
.admin-content {
    background: #F4F8F8;
    padding: 28px 32px 48px;
}

.admin-header {
    min-height: 82px;
    margin-bottom: 24px;
    padding: 22px 28px;
    background: linear-gradient(110deg, #0E4B44 0%, #1B7D70 72%, #20A08F 100%);
    box-shadow: 0 6px 18px rgba(14, 75, 68, 0.12);
}

.admin-header h1 {
    font-size: 1.65rem;
    letter-spacing: 0;
}

.admin-stats {
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    min-height: 92px;
    padding: 18px 20px;
    border-color: #E5EEEE;
    box-shadow: 0 2px 5px rgba(14, 75, 68, 0.07);
}

.admin-stat-icon {
    background: #EDF5F3;
    color: var(--primary);
}

.admin-stat-info h3 {
    color: #10172C;
    font-size: 1.45rem;
    line-height: 1;
}

.admin-stat-info p {
    margin-top: 7px;
    color: #73819A;
    font-size: 0.75rem;
    line-height: 1.2;
}

.admin-card {
    padding: 26px 28px;
    border-color: #E5EEEE;
    box-shadow: 0 2px 6px rgba(14, 75, 68, 0.06);
}

.admin-card > h3 {
    color: #10172C;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.admin-card .form-group label {
    color: #10204A;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-card .form-control {
    min-height: 44px;
    border-color: #D9E3ED;
    color: #111827;
    font-size: 0.86rem;
    background: #FFFFFF;
}

.admin-card textarea.form-control {
    min-height: 120px;
}

.homepage-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.homepage-image-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #E5EEEE;
    background: #F9FBFB;
}

.homepage-image-card strong {
    display: block;
    color: #10204A;
    font-size: 0.82rem;
}

.homepage-image-card img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 8px 0 10px;
}

/* Search overlay close control: keep the X clear of the search field. */
.search-overlay-content {
    position: relative;
}

.search-overlay-content .search-close {
    top: -42px;
    right: var(--space-6);
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.search-overlay-content .search-close:hover {
    background: transparent !important;
    color: var(--accent);
}

/* Contact page reference layout */
.contact-reference-section {
    background: var(--bg-secondary);
}

.contact-reference-section .contact-grid {
    max-width: 1080px;
    margin: 0 auto;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 0;
    background: #FFFFFF;
    border: 1px solid #E4EAF2;
    box-shadow: 0 3px 12px rgba(26, 35, 66, 0.06);
}

.contact-reference-section .contact-info {
    gap: 0;
    padding: 34px 30px;
    background: var(--bg-tertiary);
}

.contact-reference-section .contact-info > h2 {
    margin: 0 0 12px;
    color: #1B2035;
    font-size: 1.55rem;
}

.contact-reference-section .contact-info > h2 span {
    color: var(--primary);
}

.contact-reference-section .contact-intro {
    margin: 0 0 22px;
    color: #69738A;
    font-size: 0.76rem;
    line-height: 1.55;
}

.contact-reference-section .contact-info-item {
    gap: 14px;
    padding: 13px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #DDE4EE;
    box-shadow: none;
    transition: none;
}

.contact-reference-section .contact-info-item:hover {
    transform: none;
    box-shadow: none;
}

.contact-reference-section .contact-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50% !important;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.95rem;
}

.contact-reference-section .contact-info-text h4 {
    margin: 0 0 3px;
    color: #20263B;
    font-size: 0.82rem;
}

.contact-reference-section .contact-info-text p,
.contact-reference-section .contact-info-text p a {
    color: #69738A !important;
    font-size: 0.72rem;
    line-height: 1.45;
}

.contact-reference-section .contact-info-item:last-child {
    padding-bottom: 0;
}

.contact-reference-section .contact-info-item:last-child .contact-info-icon {
    background: var(--primary);
}

.contact-reference-section .contact-info-item:last-child > .contact-info-text > div {
    gap: 7px !important;
}

.contact-reference-section .contact-info-item:last-child > .contact-info-text > div a {
    width: 30px !important;
    height: 30px !important;
    background: var(--primary) !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
}

.contact-reference-section .contact-form {
    padding: 34px 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #FFFFFF;
}

.contact-reference-section .contact-form h3 {
    margin-bottom: 22px;
    color: #17213D;
    font-size: 1.45rem;
}

.contact-reference-section .contact-form .form-group {
    margin-bottom: 15px;
}

.contact-reference-section .contact-form label {
    margin-bottom: 5px;
    color: #30384D;
    font-size: 0.7rem;
}

.contact-reference-section .contact-form .form-control {
    min-height: 40px;
    padding: 10px 13px;
    border: 0;
    background: var(--bg-secondary);
    color: #30384D;
    font-size: 0.75rem;
}

.contact-reference-section .contact-form textarea.form-control {
    min-height: 105px;
}

.contact-reference-section .contact-form .btn-primary {
    min-height: 40px;
    background: var(--primary);
    border-color: var(--primary);
    font-size: 0.76rem;
}

.contact-map-section {
    position: relative;
    background: var(--bg-secondary);
}

.contact-map-frame {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: saturate(0.72) contrast(0.95);
}

.contact-map-card {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(500px, calc(100% - 32px));
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-map-card > i {
    color: var(--primary);
    font-size: 1.35rem;
}

.contact-map-card div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.contact-map-card strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.contact-map-card span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.contact-map-card .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Final visual cleanup: quiet surfaces and lighter decorative icons. */
.why-card,
.course-card,
.news-card,
.testimonial-card,
.value-card,
.apply-step,
.contact-info-item,
.admin-card,
.admin-stat-card,
.pdf-form-panel,
.contact-map-card {
    box-shadow: var(--shadow-xs);
}

.why-card:hover,
.course-card:hover,
.news-card:hover,
.testimonial-card:hover,
.value-card:hover,
.apply-step:hover,
.contact-info-item:hover,
.admin-stat-card:hover {
    box-shadow: var(--shadow-xs);
    transform: none;
}

.why-card-image i,
.course-card-image i,
.contact-info-icon i,
.apply-step-marker i,
.learning-option-icon,
.gallery-item i,
.admin-stat-icon i {
    font-weight: 400;
}

.btn,
.course-filter-tab,
.course-filter-arrow,
.nav-student-portal {
    box-shadow: none;
}

@media (max-width: 600px) {
    .contact-map-frame {
        height: 340px;
    }

    .contact-map-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .contact-map-card .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .contact-reference-section .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-reference-section .contact-info,
    .contact-reference-section .contact-form {
        padding: 26px 22px;
    }

    .contact-reference-section .contact-form > form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

/* Final navigation and admissions presentation overrides. */
.main-header .header-actions a.nav-student-portal,
.main-header.scrolled .header-actions a.nav-student-portal,
.main-header .header-actions a.nav-student-portal:hover,
.main-header.scrolled .header-actions a.nav-student-portal:hover {
    background: #F9C203 !important;
    border: 1px solid #F9C203 !important;
    color: #FFFFFF !important;
    font-size: 0.68rem !important;
    padding: 6px 11px !important;
    border-radius: 24px !important;
}

.mobile-nav-footer a.mobile-student-portal,
.mobile-nav-footer a.mobile-student-portal:hover {
    background: #F9C203 !important;
    border: 1px solid #F9C203 !important;
    color: #FFFFFF !important;
    border-radius: 24px !important;
}

.admissions-download-section .contact-grid {
    display: block;
    max-width: 760px;
    margin: 0 auto;
}

.admissions-download-section .contact-info {
    max-width: 560px;
    margin: 0 auto;
}

.admissions-download-section .contact-info > h2 {
    color: #20243A;
    font-size: 1.55rem !important;
    margin-bottom: 14px !important;
}

.admissions-download-section .contact-info > p {
    color: #667085 !important;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px !important;
}

.admissions-download-section .pdf-form-panel {
    margin-top: 0;
}

.homepage-image-card small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.course-card-image > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .admin-content { padding: 22px 20px 40px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .admin-content { padding: 16px 14px 32px; }
    .admin-stats { grid-template-columns: 1fr; gap: 12px; }
    .admin-card { padding: 20px 16px; }

    .admin-card [style*="grid-template-columns"],
    .course-basic-grid,
    .course-meta-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-card [style*="display:flex"] {
        flex-wrap: wrap;
    }

    .homepage-image-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .homepage-image-card {
        min-width: 0;
        padding: 14px;
        border: 1px solid #E5EEEE;
        background: #F9FBFB;
    }

    .homepage-image-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        margin: 8px 0 10px;
    }

    .homepage-image-card .form-control {
        min-width: 0;
        font-size: 0.8rem;
    }

    .admin-card .btn {
        max-width: 100%;
    }
}

/* ===================================
   PDF Application Form — Receipt design
   (paper sliding out of a dark printer slot)
   =================================== */
.pdf-form-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px var(--space-4) var(--space-4);
    margin: 0 auto var(--space-5);
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.pdf-form-panel:hover {
    border-color: rgba(27, 125, 112, 0.35);
    box-shadow: var(--shadow-xl);
}

/* Dark printer slot the receipt slides out of */
.pdf-slot {
    position: relative;
    z-index: 2;
    height: 34px;
    width: 86%;
    margin: 0 auto;
    background: linear-gradient(180deg, #0F463E, #072E2A);
    border-radius: 10px 10px 16px 16px;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.45), 0 2px 5px rgba(14, 75, 68, 0.2);
}

/* The receipt paper */
.pdf-receipt {
    position: relative;
    z-index: 1;
    margin-top: -8px;
    padding: 20px 16px 16px;
    background: linear-gradient(180deg, #F3F6F5, #FCFDFC 24%, #F7F9F8);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(14, 75, 68, 0.08);
}

.pdf-receipt-head {
    font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px dashed #C9D4CE;
}

.pdf-receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px;
    font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}

.pdf-receipt-row > span:first-child {
    color: var(--text-secondary);
}

.pdf-receipt-row > span:last-child {
    color: var(--text-primary);
    font-weight: 700;
}

.pdf-stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    color: #16A34A;
    background: #EAF9F0;
    border: 1px solid #BFE8CF;
}

/* Status panel with tracker dots */
.pdf-status-panel {
    margin-top: 14px;
    padding: 14px 14px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(14, 75, 68, 0.06);
}

.pdf-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pdf-status-head strong {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.pdf-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 4px;
}

.pdf-track::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 3px;
    background: #DCE5E0;
}

.pdf-track .dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22B573;
    color: #fff;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.pdf-track .dot.big {
    width: 26px;
    height: 26px;
    background: #10312B;
    font-size: 0.62rem;
}

/* Tear-off line */
.pdf-receipt-tear {
    margin: 14px 2px;
    border-top: 2px dashed #C9D4CE;
}

/* Buttons inside the receipt */
.pdf-form-panel-actions {
    display: flex;
    gap: 10px;
}

.pdf-form-panel-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 7px;
}

.pdf-form-panel-actions .btn-primary {
    background: linear-gradient(180deg, #10463D, var(--secondary-dark));
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(7, 46, 42, 0.25);
}

.pdf-form-panel-actions .btn-outline {
    background: var(--bg-primary);
    border-color: #D9E2E0;
    color: var(--text-primary);
}

/* Footer row under the receipt */
.pdf-receipt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pdf-chip {
    width: 46px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Big primary CTA */
.pdf-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #10463D, #072E2A);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 8px 16px rgba(7, 46, 42, 0.3);
    transition: var(--transition);
}

.pdf-pay-btn:hover {
    background: linear-gradient(180deg, #0C3A33, #05221F);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(7, 46, 42, 0.35);
}

@media (max-width: 480px) {
    .pdf-form-panel {
        padding: 4px var(--space-3) var(--space-3);
    }

    .pdf-receipt {
        padding: 16px 12px 12px;
    }
}

/* =====================================================
   Online Application Form — PDF-style sections,
   photo upload, declaration (apply.php)
   ===================================================== */
.apply-section {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    background: #fff;
}
.apply-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary);
}
.apply-section-num {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}
.apply-section-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--heading-color, #143);
}
.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.apply-grid .form-group { margin-bottom: 0; }
.apply-full { grid-column: 1 / -1; }
.apply-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: var(--space-4);
}
.apply-info-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 25px;
    background: #F0F7F5;
    border: 1px solid #CFE5E0;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-medium);
}
.apply-info-note i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; }
@media (max-width: 640px) {
    .apply-grid { grid-template-columns: 1fr; }
    .apply-section { padding: var(--space-4); }
}

/* Photo upload */
.apply-photo-upload {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    background: var(--bg-secondary);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.apply-photo-upload:hover { border-color: var(--primary); background: #F4FAF8; }
.apply-photo-upload img,
.apply-photo-placeholder {
    width: 96px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.apply-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E4EFEC;
    color: var(--primary);
    font-size: 2rem;
    border: 1px solid #CFE5E0;
}
.apply-photo-text { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.apply-photo-text span { color: var(--text-muted); font-size: 0.82rem; }
.apply-photo-btn { margin-left: auto; cursor: pointer; }
@media (max-width: 640px) {
    .apply-photo-upload { flex-direction: column; text-align: center; }
    .apply-photo-btn { margin-left: 0; }
}

/* Declaration */
.apply-declaration {
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    background: #FBFDFC;
}
.apply-declaration-text {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0 0 var(--space-4);
}
.apply-declaration-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}
.apply-declaration-check input { margin-top: 4px; accent-color: var(--primary); }
.apply-submit-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 12px;
}

/* Admin application detail layout */
.app-detail-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    align-items: start;
}
.app-photo-card { position: sticky; top: 20px; }
.app-detail-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.app-detail-table > div {
    background: #fff;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-detail-table > div span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.app-detail-table > div strong { font-size: 0.95rem; word-break: break-word; }
@media (max-width: 768px) {
    .app-detail-grid { grid-template-columns: 1fr; }
    .app-photo-card { position: static; max-width: 260px; }
    .app-detail-table { grid-template-columns: 1fr; }
}

/* =====================================================
   Application fee (N$200) + certified documents
   ===================================================== */
.fee-bank-box {
    margin-top: var(--space-4);
    border: 1px solid #CFE5E0;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    background: #F0F7F5;
    padding: var(--space-4);
}
.fee-bank-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}
.fee-bank-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}
.fee-bank-details > div { display: flex; flex-direction: column; gap: 2px; }
.fee-bank-details > div span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.fee-bank-details > div strong { font-size: 0.95rem; }
@media (max-width: 640px) {
    .fee-bank-details { grid-template-columns: 1fr; gap: var(--space-2); }
    .fee-ref-field.fee-ref-hidden { display: none; }
}

.doc-upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.doc-upload-row:hover { border-color: var(--primary); background: #F4FAF8; }
.doc-upload-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-upload-info strong { font-size: 0.95rem; }
.doc-upload-info span { color: var(--text-muted); font-size: 0.82rem; }
.doc-upload-info .doc-chosen {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    word-break: break-all;
}
.doc-upload-btn { flex-shrink: 0; cursor: pointer; }
@media (max-width: 640px) {
    .doc-upload-row { flex-direction: column; align-items: stretch; text-align: center; }
    .doc-upload-btn { width: 100%; justify-content: center; }
}

/* Admin: certified document list */
.app-doc-list { display: flex; flex-direction: column; gap: var(--space-3); }
.app-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    background: #fff;
}
.app-doc-item > i { font-size: 1.4rem; color: var(--primary); width: 28px; text-align: center; }
.app-doc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.app-doc-meta strong { font-size: 0.92rem; }
.app-doc-meta span { color: var(--text-muted); font-size: 0.82rem; word-break: break-all; }
@media (max-width: 640px) {
    .app-doc-item { flex-wrap: wrap; }
    .app-doc-meta { flex-basis: 100%; order: 3; }
}

/* =====================================================
   Mobile fit pass — whole application flow
   ===================================================== */
@media (max-width: 640px) {
    /* Form controls: comfortable tap targets, no iOS zoom */
    .form-control { font-size: 16px; padding: 12px 14px; }
    select.form-control { -webkit-appearance: none; 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='%23556' width='14'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
    textarea.form-control { min-height: 110px; }
    .form-group label { font-size: 0.88rem; }

    /* Page banner tighter on phones */
    .page-banner { padding-top: calc(var(--space-14, 96px) + 20px); padding-bottom: var(--space-8); }
    .page-banner h1 { font-size: 1.6rem; }

    /* Apply page column stack + paddings */
    .online-apply-form { padding: var(--space-5) var(--space-4); }
    .apply-section { padding: var(--space-4) var(--space-3); }
    .apply-section-head h3 { font-size: 0.98rem; }
    .apply-section-num { width: 30px; height: 30px; font-size: 0.85rem; }
    .apply-info-note { padding: 13px 14px; }

    /* Buttons full-width and thumb-friendly */
    .online-apply-form .btn-lg { min-height: 50px; font-size: 1rem; }
    .pdf-form-panel-actions { flex-direction: column; }
    .pdf-form-panel-actions .btn { width: 100%; justify-content: center; }

    /* Declaration checkbox wraps nicely */
    .apply-declaration { padding: var(--space-4); }

    /* Admin pages on phones */
    .admin-content { padding: 16px 12px; }
    .admin-header { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .admin-header h1 { font-size: 1.3rem; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .admin-card { padding: 16px 12px; }

    /* Admin tables: consistent readable horizontal scroll */
    .table-responsive { margin: 0 -12px; }
    .data-table th, .data-table td { padding: 10px 12px; white-space: nowrap; }

    /* Admin detail view */
    .app-detail-table { grid-template-columns: 1fr; }
    .app-photo-card { max-width: 220px; }

    /* Detail action buttons wrap into a tidy column */
    .admin-card div[style*="display:flex;gap:10px;flex-wrap:wrap"] { gap: 8px !important; }
    .admin-card div[style*="display:flex;gap:10px;flex-wrap:wrap"] .btn { flex: 1 1 46%; justify-content: center; }
}

/* Very narrow phones (iPhone SE class) */
@media (max-width: 380px) {
    .apply-grid { gap: var(--space-3); }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .page-banner h1 { font-size: 1.35rem; }
}

/* Grid/flex children must be allowed to shrink so wide admin tables scroll
   inside .table-responsive instead of stretching the whole page (mobile). */
@media (max-width: 768px) {
    .admin-layout > * { min-width: 0; }
    .admin-content { min-width: 0; max-width: 100%; }
    .admin-card { min-width: 0; }
    .table-responsive { max-width: 100%; -webkit-overflow-scrolling: touch; }
}
