/* ============================================
   BRITS COLLEGE — PREMIUM DESIGN SYSTEM
   Professional Educational Platform
   Inspired by top WordPress education themes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* === DESIGN TOKENS === */
:root {
    --navy-900: #0a1628;
    --navy-800: #0f1f3d;
    --navy-700: #1a2947;
    --navy-600: #243556;
    --navy-500: #2d3f5f;
    --maroon-700: #6b1414;
    --maroon-600: #8b1a1a;
    --maroon-500: #a52a2a;
    --maroon-400: #c43e3e;
    --gold-600: #b39550;
    --gold-500: #c9a961;
    --gold-400: #d4b876;
    --gold-300: #e2cc96;
    --white: #ffffff;
    --grey-50: #f8fafc;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-400: #94a3b8;
    --grey-500: #64748b;
    --grey-600: #475569;
    --grey-700: #334155;
    --grey-800: #1e293b;
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --info: #2563eb;

    --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(10, 22, 40, .06);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, .08);
    --shadow-lg: 0 8px 24px rgba(10, 22, 40, .1);
    --shadow-xl: 0 12px 36px rgba(10, 22, 40, .12);
    --shadow-2xl: 0 20px 50px rgba(10, 22, 40, .16);
    --shadow-glow: 0 0 40px rgba(201, 169, 97, .12);

    --transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --transition-base: 300ms cubic-bezier(.4, 0, .2, 1);
    --transition-slow: 500ms cubic-bezier(.4, 0, .2, 1);
    --transition-spring: 600ms cubic-bezier(.34, 1.56, .64, 1);

    --container-max: 1280px;
    --container-padding: var(--space-6);
    --header-height: 80px;
}

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--grey-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -.01em;
    font-weight: 400;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scroll reveal class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay utilities */
.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

.delay-4 {
    transition-delay: .4s;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy-900);
    margin-bottom: var(--space-4);
    letter-spacing: -.01em;
}

h1 {
    font-size: var(--text-6xl);
    line-height: 1.08;
    letter-spacing: -.02em;
}

h2 {
    font-size: var(--text-4xl);
    line-height: 1.15;
}

h3 {
    font-size: var(--text-2xl);
    line-height: 1.25;
}

h4 {
    font-size: var(--text-xl);
    font-family: var(--font-sans);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--grey-600);
    line-height: 1.75;
}

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

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Decorative heading underline */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold-500);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--grey-500);
    font-size: var(--text-lg);
    max-width: 620px;
    margin: 0 auto var(--space-12);
    text-align: center;
    line-height: 1.8;
    font-weight: 400;
}

/* === LAYOUT === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* === HEADER === */
.site-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, .08);
}

.header-top {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

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

.header-contact {
    display: flex;
    gap: var(--space-6);
}

.header-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-fast);
}

.header-contact a:hover {
    color: var(--gold-400);
}

.header-main {
    padding: var(--space-4) 0;
}

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

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

.site-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.main-nav ul {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.main-nav a {
    color: var(--grey-600);
    font-weight: 700;
    font-size: var(--text-lg);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
    letter-spacing: .01em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--maroon-600), var(--gold-500));
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--maroon-600);
}

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

.mobile-menu-btn,
.dashboard-menu-btn {
    display: none;
}

/* Ensure consistent header sizing */
html body .site-header .header-main {
    padding: var(--space-4) 0 !important;
}

html body .site-logo img {
    height: 80px !important;
    width: auto !important;
}

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

.site-header .header-top {
    padding: var(--space-2) 0 !important;
}

.site-header .site-logo img {
    height: 80px !important;
    width: auto !important;
}

.site-header .main-nav ul {
    display: flex !important;
    gap: var(--space-8) !important;
    align-items: center !important;
}

.site-header .header-actions .btn {
    height: auto !important;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--maroon-600);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(139, 26, 26, .25);
}

.btn-primary:hover {
    background: var(--maroon-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 26, 26, .35);
}

.btn-secondary {
    background: var(--navy-800);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(10, 22, 40, .2);
}

.btn-secondary:hover {
    background: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 22, 40, .3);
}

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

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

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    box-shadow: 0 2px 8px rgba(201, 169, 97, .25);
}

.btn-gold:hover {
    background: var(--gold-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 169, 97, .35);
}

.btn-glass {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

/* === CARDS === */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--grey-200);
}

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

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--grey-200);
}

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

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
}

/* === FEATURE CARDS (Why Choose Us) === */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--grey-200);
    border-top: 3px solid var(--gold-500);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    display: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--grey-200);
    border-top-color: var(--maroon-600);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--navy-900);
}

.feature-card p {
    color: var(--grey-500);
    font-size: var(--text-sm);
    line-height: 1.75;
    margin: 0;
}

.feature-card .feature-img {
    /* make image visually full-bleed inside the card while keeping rounded corners
       the parent `.feature-card` has overflow:hidden and the outer radius,
       so we pull the image to the edges using negative margins */
    width: calc(100% + var(--space-16));
    margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-5);
    height: 220px;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    /* prefer the upper area of the photo so faces/heads are visible */
    background-position: center 20%;
    background-repeat: no-repeat;
}

.feature-card .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.08);
}

/* === COURSE CARDS (Compact Academic Design) === */
.course-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--grey-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    box-shadow: 0 12px 30px rgba(10, 22, 40, 0.08);
    transform: translateY(-4px);
}

.course-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--grey-100);
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.1);
}

.course-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4) 0%, transparent 60%);
    z-index: 1;
}

.course-card-header {
    background: var(--navy-900);
    padding: 15px 20px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
    /* overlap the image for a card hero effect */
    margin-top: -64px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 8px 20px rgba(10,22,40,0.06);
}

.course-card-header .level-label {
    color: var(--gold-400);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-sans);
}

.course-card-header .header-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
    color: var(--white);
    line-height: 1.25;
}

.course-card-body {
    padding: 20px 20px;
    flex-grow: 1;
}

.course-card-body .sector-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--grey-400);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-sans);
}

.course-card-body .full-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.35;
    margin-bottom: 12px;
    display: block;
}

.course-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-info-list li {
    font-size: 0.88rem;
    color: var(--navy-900);
    line-height: 1.3;
    font-family: var(--font-sans);
}

.course-info-list li strong {
    font-weight: 600;
}

.course-card-footer {
    padding: 12px 20px;
    background: #fbfbfc;
    border-top: 1px solid #f0f0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-card-footer .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--maroon-700);
    font-family: var(--font-sans);
    margin: 0;
}

.course-card-footer .btn-view {
    background: var(--maroon-700);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.course-card-footer .btn-view:hover {
    background: var(--maroon-800);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139,26,26,0.18);
}

.course-card-footer .btn-view:focus,
.course-card-footer .btn-view:active {
    background: var(--maroon-800);
    color: var(--white);
    outline: none;
}

/* Force btn-view visibility and prevent any pseudo-element overlays from hiding text */
.course-card-footer .btn-view {
    position: relative;
    z-index: 3;
    opacity: 1 !important;
}
.course-card-footer .btn-view::before {
    display: none !important;
}
.course-card-footer .btn-view,
.course-card-footer .btn-view:hover,
.course-card-footer .btn-view:focus,
.course-card-footer .btn-view:active {
    background: var(--maroon-700) !important;
    color: var(--white) !important;
    text-shadow: none !important;
}

/* Common Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 650px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .course-card-header .header-title {
        font-size: 1.3rem;
    }

    .course-card-body {
        padding: 25px 20px;
    }

    .course-card-image { height: 160px; }
    .course-card-header { margin-top: -48px; }
}

/* === HERO SECTION === */
.hero {
    background: var(--navy-900);
    color: var(--white);
    padding: var(--space-24) 0 var(--space-20);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 22, 40, .85) 0%, rgba(10, 22, 40, .7) 50%, rgba(10, 22, 40, .8) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(10, 22, 40, .95), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp .8s ease both;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-6);
    font-size: var(--text-5xl);
    font-weight: 400;
}

.hero h1 span {
    color: var(--gold-400);
}

.hero p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, .65);
    max-width: 560px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, .15);
    animation: fadeInUp .8s ease .3s both;
    position: relative;
    z-index: 2;
}

.hero-stat-item .hero-stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--gold-400);
    display: block;
    line-height: 1;
}

.hero-stat-item .hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .5);
    margin-top: var(--space-2);
    display: block;
}

/* Page hero (sub-pages) */
.page-hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

.page-hero .lead {
    flex: 1 1 60%;
    min-width: 260px;
    color: var(--white);
}

.page-hero .lead h1 {
    color: var(--white);
}

.page-hero .side {
    flex: 0 0 420px;
    max-width: 420px;
}

.page-hero .breadcrumbs {
    position: relative;
    z-index: 2;
}

/* === STATS COUNTER SECTION === */
.stats-section {
    background: var(--navy-800);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.stat-counter {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all var(--transition-base);
}

.stat-counter:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-4px);
}

.stat-counter .stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--gold-400);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-counter .stat-label {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, .6);
}

/* === IMAGE+TEXT SECTIONS === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse>* {
    direction: ltr;
}

.split-image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.split-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform .6s ease;
}

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

.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 26, 26, .1) 0%, transparent 100%);
    pointer-events: none;
}

.split-content h2 {
    margin-bottom: var(--space-4);
}

.split-content p {
    color: var(--grey-500);
    line-height: 1.8;
}

.check-list {
    margin: var(--space-6) 0;
}

.check-list li {
    padding: var(--space-3) 0;
    display: flex;
    gap: var(--space-3);
    align-items: center;
    font-size: var(--text-base);
    color: var(--grey-600);
    border-bottom: 1px solid var(--grey-100);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li i {
    color: var(--maroon-600);
    width: 20px;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--navy-900);
    color: var(--white);
    text-align: center;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 169, 97, .08) 0%, transparent 70%);
}

.cta-section h2 {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, .7);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    position: relative;
    z-index: 1;
}

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

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

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: var(--space-2);
    letter-spacing: .01em;
    font-family: var(--font-sans);
}

.form-label-required::after {
    content: '*';
    color: var(--error);
    margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--grey-800);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px rgba(26, 41, 71, .1);
}

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

.form-help {
    font-size: var(--text-sm);
    color: var(--grey-400);
    margin-top: var(--space-2);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--error);
    margin-top: var(--space-2);
}

/* === FILTER SECTION (Qualifications) === */
.filters-section {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

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

.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    color: var(--grey-500);
    font-size: var(--text-sm);
}

.results-summary strong {
    color: var(--navy-900);
    font-weight: 600;
}

.clear-filters {
    color: var(--maroon-600);
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.clear-filters:hover {
    color: var(--maroon-700);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: .5px;
}

.badge-primary {
    background: var(--navy-700);
    color: var(--white);
}

.badge-secondary {
    background: var(--maroon-600);
    color: var(--white);
}

.badge-gold {
    background: var(--gold-500);
    color: var(--navy-900);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-info {
    background: var(--info);
    color: var(--white);
}

/* === ALERTS === */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: var(--error);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #1e40af;
}

/* === TABLES === */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

.table thead {
    background: var(--navy-700);
    color: var(--white);
}

.table th {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--grey-200);
}

.table tbody tr:hover {
    background: var(--grey-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === FILTERS === */
.filters-section {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-8);
    border: 1px solid var(--grey-100);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: var(--navy-700);
    color: var(--white);
    border-radius: var(--radius-xl);
    margin-top: var(--space-6);
}

.results-summary p {
    margin: 0;
    font-weight: 500;
}

.results-summary p i {
    margin-right: var(--space-2);
    color: var(--gold-500);
}

.clear-filters {
    color: var(--gold-500);
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.clear-filters:hover {
    color: var(--white);
    transform: translateX(3px);
}

/* === GRIDS === */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === FOOTER === */
.site-footer {
    background: var(--navy-900);
    color: var(--grey-400);
    padding: var(--space-16) 0 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-section h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    margin-bottom: var(--space-6);
    position: relative;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-section a {
    color: var(--grey-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--gold-400);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: var(--space-6) 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--grey-500);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    font-size: var(--text-sm);
    color: var(--grey-500);
    margin-bottom: var(--space-6);
}

.breadcrumbs a {
    color: var(--navy-700);
}

.breadcrumbs a:hover {
    color: var(--maroon-600);
}

.breadcrumbs-separator {
    color: var(--grey-400);
}

/* === DASHBOARD === */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
    background: var(--white);
    border-right: 1px solid var(--grey-200);
    padding: var(--space-6);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dashboard-nav-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--grey-600);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dashboard-nav-item:hover {
    background: var(--grey-100);
    color: var(--navy-700);
}

.dashboard-nav-item.active {
    background: var(--navy-700);
    color: var(--white);
}

.dashboard-main {
    padding: var(--space-8);
    background: var(--grey-50);
}

.dashboard-header {
    margin-bottom: var(--space-8);
}

.dashboard-title {
    font-size: var(--text-3xl);
    color: var(--navy-700);
    margin-bottom: var(--space-2);
}

.dashboard-subtitle {
    color: var(--grey-500);
    font-size: var(--text-base);
}

/* Stat cards */
.stat-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
}

.stat-card.stat-primary {
    border-color: var(--navy-700);
}

.stat-card.stat-secondary {
    border-color: var(--maroon-600);
}

.stat-card.stat-gold {
    border-color: var(--gold-500);
}

.stat-card.stat-success {
    border-color: var(--success);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--grey-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: var(--space-2);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--navy-900);
}

/* Tabs */
.tabs {
    border-bottom: 2px solid var(--grey-200);
    margin-bottom: var(--space-6);
}

.tabs-list {
    display: flex;
    gap: var(--space-6);
}

.tab-item {
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    color: var(--grey-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tab-item:hover {
    color: var(--navy-700);
}

.tab-item.active {
    color: var(--maroon-600);
    border-bottom-color: var(--maroon-600);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-6);
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--text-2xl);
    color: var(--navy-700);
    margin: 0;
}

.modal-close {
    font-size: var(--text-2xl);
    color: var(--grey-400);
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--grey-100);
    color: var(--maroon-600);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--grey-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-4);
}

/* Utility */
.mt-0 {
    margin-top: 0
}

.mt-2 {
    margin-top: var(--space-2)
}

.mt-4 {
    margin-top: var(--space-4)
}

.mt-6 {
    margin-top: var(--space-6)
}

.mt-8 {
    margin-top: var(--space-8)
}

.mb-0 {
    margin-bottom: 0
}

.mb-2 {
    margin-bottom: var(--space-2)
}

.mb-4 {
    margin-bottom: var(--space-4)
}

.mb-6 {
    margin-bottom: var(--space-6)
}

.mb-8 {
    margin-bottom: var(--space-8)
}

.hidden {
    display: none
}

.block {
    display: block
}

.flex {
    display: flex
}

.inline-flex {
    display: inline-flex
}

.items-center {
    align-items: center
}

.justify-between {
    justify-content: space-between
}

.justify-center {
    justify-content: center
}

.gap-4 {
    gap: var(--space-4)
}

.text-right {
    text-align: right
}

.text-left {
    text-align: left
}

.font-medium {
    font-weight: 500
}

.font-normal {
    font-weight: 400
}

.text-xs {
    font-size: .75rem
}

.text-grey-500 {
    color: var(--grey-500)
}

/* Dashboard overlay */
.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    backdrop-filter: blur(2px);
}

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

/* ============================================
   RESPONSIVE DESIGN SYSTEM
   Professional Grade Breakpoints
   ============================================ */

/* === Fluid Typography & Global Scaling === */
@media (max-width: 1280px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-sm {
        padding: 3rem 0;
    }

    .section-lg {
        padding: 5rem 0;
    }

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

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 991px) {

    /* --- Premium Mobile Navigation --- */
    .header-top {
        display: none;
    }

    .header-main .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem;
    }

    .site-logo {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .site-logo img {
        height: 48px !important;
        width: auto !important;
    }

    .site-logo-text {
        font-size: 1.05rem;
        line-height: 1.1;
        font-weight: 700;
        color: var(--navy-900);
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 32px;
        height: 32px;
        position: relative;
        background: transparent;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2.5px;
        background: var(--navy-900);
        border-radius: 4px;
        transition: all var(--transition-base);
        transform-origin: center;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
        background: var(--maroon-600);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
        background: var(--maroon-600);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        background: var(--white);
        z-index: 1001;
        display: flex !important;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        /* Menu ko completely hide rakho by default - pura right side bahar */
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        /* Smooth transitions */
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    visibility 0.4s ease, 
                    opacity 0.4s ease;
        /* Shadow effect jab menu open ho */
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0);
    }

    /* Jab hamburger click karoge to ye class lagegi */
    .main-nav.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        margin-top: 2rem;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        font-size: 1.5rem;
        font-family: var(--font-display);
        color: var(--navy-900);
        padding: 1rem 0;
        border-bottom: 1px solid var(--grey-100);
    }

    .main-nav a.active {
        color: var(--maroon-600);
    }

    .main-nav a::after {
        display: none;
    }
    
    /* Header actions on mobile - show container but hide buttons except hamburger */
    .header-actions {
        display: flex !important;
    }
    
    .header-actions .btn,
    .header-actions a:not(.mobile-menu-btn),
    .header-actions > span {
        display: none !important;
    }

    /* --- Hero Adjustments --- */
    .hero {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .hero-stat-item {
        flex: 0 0 auto;
        text-align: center;
    }

    /* --- Grid Adjustments --- */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
    }

    .section-heading span {
        font-size: 0.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .split-section {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .split-order-2 {
        order: 2;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-section ul {
        align-items: center;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        z-index: 2000;
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .header-actions .btn {
        display: none;
    }

    /* Hide register/login in small header to avoid overlap */
    .main-nav .header-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-stat-item {
        border: none !important;
        padding: 0 !important;
    }

    .page-hero {
        padding: 3rem 0;
        text-align: center;
    }

    .page-hero .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .breadcrumbs {
        justify-content: center;
    }

    .course-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .course-card-footer .btn-view {
        width: 100%;
        text-align: center;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --text-6xl: 2.1rem;
        --text-5xl: 1.8rem;
    }

    .site-logo-text {
        display: none;
    }

    /* Show only logo icon on very small screens to keep clean */

    .section {
        padding: 3rem 0;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .course-card-header .header-title {
        font-size: 1.25rem;
    }

    .course-card-body {
        padding: 1.25rem;
    }
}

/* === Helper for Header Actions in Mobile Menu === */
/* You might need to add these to header.php mobile view if they don't exist */
@media (min-width: 601px) {
    .nav-auth-mobile {
        display: none !important;
    }
}

/* Fix for Hero Images on Mobile */
@media (max-width: 768px) {

    .hero,
    .page-hero {
        background-attachment: scroll !important;
        /* Parallax often breaks on mobile */
    }
}