﻿/* ==========================================================================
   IMPERIAL ACADEMY - MAIN STYLES
   ========================================================================== */

/* CSS Custom Properties for Responsive Design */
:root {
    /* Responsive Breakpoints */
    --ia-mobile-max: 767px;
    --ia-tablet-min: 768px;
    --ia-tablet-max: 1023px;
    --ia-desktop-min: 1024px;
    --ia-large-desktop-min: 1200px;

    /* Mobile-specific spacing */
    --ia-mobile-padding: 16px;
    --ia-mobile-gap: 12px;
    --ia-touch-target: 44px;

    /* Header heights */
    --ia-header-height-mobile: 60px;
    --ia-header-height-desktop: 80px;

    /* Sidebar dimensions */
    --ia-sidebar-width-mobile: 85vw;
    --ia-sidebar-max-width: 350px;

    /* Z-index layers */
    --ia-z-header: 100;
    --ia-z-sidebar: 200;
    --ia-z-overlay: 150;
    --ia-z-modal: 300;

    /* Responsive font sizes */
    --ia-font-size-mobile: 0.9rem;
    --ia-font-size-tablet: 1rem;
    --ia-font-size-desktop: 1rem;

    /* Responsive spacing */
    --ia-spacing-xs: 0.5rem;
    --ia-spacing-sm: 0.75rem;
    --ia-spacing-md: 1rem;
    --ia-spacing-lg: 1.5rem;
    --ia-spacing-xl: 2rem;

    /* Theme colors (light mode defaults) */
    --ia-bg: #ffffff;
    --ia-card-bg: #f8f9fa;
    --ia-text-muted: #666666;
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: var(--ia-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ia-text);
    background-color: var(--ia-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased
}

body.rtl,
html[dir="rtl"] body {
    font-family: var(--ia-font-arabic)
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ia-font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ia-primary);
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.25rem
}

h2 {
    font-size: 1.875rem
}

h3 {
    font-size: 1.5rem
}

h4 {
    font-size: 1.25rem
}

p {
    margin-top: 0;
    margin-bottom: 1rem
}

a {
    color: var(--ia-primary);
    text-decoration: none;
    transition: color var(--ia-transition)
}

a:hover {
    color: var(--ia-secondary)
}

/* Buttons */
.ia-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--ia-radius-md);
    cursor: pointer;
    transition: all var(--ia-transition)
}

.ia-btn-primary {
    background-color: var(--ia-primary);
    color: var(--ia-white);
    border: 1px solid var(--ia-secondary);
    box-shadow: 0 4px 10px rgba(0, 33, 71, 0.2);
}

.ia-btn-primary:hover {
    background-color: var(--ia-primary-light);
    border-color: var(--ia-primary-light);
    color: var(--ia-white)
}

.ia-btn-secondary {
    background-color: var(--ia-secondary);
    color: var(--ia-primary);
    border-color: var(--ia-secondary)
}

.ia-btn-secondary:hover {
    background-color: var(--ia-secondary-dark);
    color: var(--ia-white)
}

.ia-btn-outline {
    background-color: transparent;
    color: var(--ia-primary);
    border-color: var(--ia-primary)
}

.ia-btn-outline:hover {
    background-color: var(--ia-primary);
    color: var(--ia-white)
}

.ia-btn-outline-white {
    background-color: transparent;
    color: var(--ia-white);
    border-color: var(--ia-white)
}

.ia-btn-outline-white:hover {
    background-color: var(--ia-white);
    color: var(--ia-primary)
}

.ia-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem
}

.ia-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem
}

/* Top Bar */
.ia-topbar {
    background-color: var(--ia-white);
    color: var(--ia-primary);
    height: auto;
    min-height: 45px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--ia-border);
    position: relative;
    z-index: 9999
}

.ia-topbar-container {
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem
}

.ia-topbar a {
    color: var(--ia-primary);
    text-decoration: none;
    transition: color var(--ia-transition)
}

.ia-topbar a:hover {
    color: var(--ia-secondary)
}

.ia-topbar-left,
.ia-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative
}

/* Contact Info */
.ia-contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

.ia-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500
}

.ia-contact-item svg {
    color: currentColor
}

/* Social Icons */
.ia-topbar-connect {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ia-topbar-connect a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--ia-primary);
    background: rgba(0, 33, 71, 0.06);
    transition: all 0.3s ease;
}

.ia-topbar-connect a:hover {
    color: #fff;
    background: var(--ia-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 33, 71, 0.2);
}

.ia-topbar-connect svg {
    width: 14px;
    height: 14px;
}

/* Language Dropdown */
.ia-lang-dropdown {
    position: relative
}

.ia-lang-toggle {
    background: transparent;
    border: 1px solid var(--ia-border);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--ia-primary);
    font-size: 0.875rem;
    transition: all var(--ia-transition)
}

.ia-lang-toggle:hover {
    border-color: var(--ia-primary)
}

.ia-lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--ia-white);
    border: 1px solid var(--ia-border);
    border-radius: 4px;
    min-width: 120px;
    box-shadow: var(--ia-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--ia-transition);
    z-index: 99999
}

.ia-lang-dropdown:hover .ia-lang-menu,
.ia-lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.ia-lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--ia-text)
}

.ia-lang-menu a:hover {
    background: var(--ia-background);
    color: var(--ia-primary)
}

.ia-lang-menu a.active {
    font-weight: 600;
    color: var(--ia-primary)
}

[dir="rtl"] .ia-lang-menu {
    right: auto;
    left: 0
}

/* Theme Toggle */
.ia-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ia-primary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ia-transition)
}

.ia-theme-toggle:hover {
    color: var(--ia-secondary)
}

/* Dark Mode Variables - Dark Navy Blue Theme */

html[data-theme="dark"] {
    --ia-primary: #f5f5f5;
    --ia-primary-dark: #e8e8e8;
    --ia-primary-light: #ffffff;
    --ia-secondary: #E5C158;
    --ia-secondary-dark: #F0C040;
    --ia-secondary-light: #F5D06A;
    --ia-text: #f0f0f0;
    --ia-text-light: #c0c0c0;
    --ia-background: #0a1628;
    --ia-white: #0d1e36;
    --ia-border: #1a3a5c;
    --ia-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    --ia-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    /* Additional variables for dark mode */
    --ia-bg: #0a1628;
    --ia-card-bg: #0d1e36;
    --ia-text-muted: #8899aa;
    --ia-success: #22c55e;
    --ia-error: #ef4444;
    --ia-warning: #f59e0b;
    --ia-info: #3b82f6;
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] body {
    background-color: #0a1628;
    color: var(--ia-text);
}

/* Top Bar - Dark Navy */
[data-theme="dark"] .ia-topbar {
    background-color: #061020;
    color: #ffffff;
    border-bottom-color: #1a3a5c;
}

[data-theme="dark"] .ia-topbar a {
    color: #ffffff;
}

[data-theme="dark"] .ia-topbar a:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-contact-item {
    color: #ffffff;
}

[data-theme="dark"] .ia-contact-item svg {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-topbar-connect a {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ia-topbar-connect a:hover {
    color: var(--ia-primary);
    background: var(--ia-secondary);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

/* Header - Dark Navy */
[data-theme="dark"] .ia-header {
    background-color: #0d1e36;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ia-nav-item a {
    color: #ffffff;
}

[data-theme="dark"] .ia-nav-item a:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-nav-item.ia-nav-cta a {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-nav-item.ia-nav-cta a:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

[data-theme="dark"] .ia-menu-toggle span {
    background-color: #ffffff;
}

/* Theme Toggle */
[data-theme="dark"] .ia-theme-toggle {
    color: #ffffff;
}

[data-theme="dark"] .ia-theme-toggle:hover {
    color: var(--ia-secondary);
}

/* Language Dropdown */
[data-theme="dark"] .ia-lang-toggle {
    color: #ffffff;
    border-color: #1a3a5c;
    background-color: transparent;
}

[data-theme="dark"] .ia-lang-toggle:hover {
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-lang-menu {
    background-color: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .ia-lang-menu a {
    color: #ffffff;
}

[data-theme="dark"] .ia-lang-menu a:hover {
    background-color: #122a4a;
    color: var(--ia-secondary);
}

/* Page Header */
[data-theme="dark"] .ia-page-header {
    background-color: #0d1e36;
}

[data-theme="dark"] .ia-page-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .ia-breadcrumbs {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-breadcrumbs a {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-breadcrumbs a:hover {
    color: var(--ia-secondary);
}

/* Course Cards */
[data-theme="dark"] .ia-course-card {
    background-color: #0d1e36;
    border: 1px solid #1a3a5c;
}

[data-theme="dark"] .ia-course-card-title a {
    color: #ffffff;
}

[data-theme="dark"] .ia-course-card-title a:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-course-card-meta {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-course-card-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .ia-course-card-footer {
    border-top-color: #1a3a5c;
}

[data-theme="dark"] .ia-course-card-price {
    color: #ffffff;
}

/* Section Titles */
[data-theme="dark"] .ia-section-title h2 {
    color: #ffffff;
}

[data-theme="dark"] .ia-section-title p {
    color: #c0c0c0;
}

/* Icon Boxes */
[data-theme="dark"] .ia-icon-box {
    background-color: #0d1e36;
}

[data-theme="dark"] .ia-icon-box-icon {
    background-color: rgba(229, 193, 88, 0.15);
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-icon-box:hover .ia-icon-box-icon {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-icon-box-title {
    color: #ffffff;
}

[data-theme="dark"] .ia-icon-box-desc {
    color: #c0c0c0;
}

/* Footer */
[data-theme="dark"] .ia-footer {
    background-color: #061020;
    color: #ffffff;
}

[data-theme="dark"] .ia-footer-col h4 {
    color: #ffffff;
}

[data-theme="dark"] .ia-footer-col ul a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .ia-footer-connect a {
    color: #ffffff;
}

[data-theme="dark"] .ia-footer-bottom {
    border-top-color: #1a3a5c;
}

/* Forms */
[data-theme="dark"] .ia-form-input,
[data-theme="dark"] .ia-form-select,
[data-theme="dark"] .ia-form-textarea {
    background-color: #122a4a;
    border-color: #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-form-input:focus,
[data-theme="dark"] .ia-form-select:focus,
[data-theme="dark"] .ia-form-textarea:focus {
    border-color: var(--ia-secondary);
    box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.2);
}

[data-theme="dark"] .ia-form-input::placeholder {
    color: #8899aa;
}

/* Testimonials */
[data-theme="dark"] .ia-testimonial-card {
    background-color: #0d1e36;
    border: 1px solid #1a3a5c;
}

[data-theme="dark"] .ia-testimonial-quote {
    color: #e0e0e0;
}

/* Sections with background */
[data-theme="dark"] .ia-section[style*="background-color"] {
    background-color: #0d1e36 !important;
}

/* Course Info Card (Sidebar) */
[data-theme="dark"] .ia-course-info-card {
    background-color: #0d1e36;
    border: 1px solid #1a3a5c;
}

[data-theme="dark"] .ia-course-meta-list li {
    border-bottom-color: #1a3a5c;
}

[data-theme="dark"] .ia-meta-label {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-meta-value {
    color: #ffffff;
}

/* Filter Buttons */
[data-theme="dark"] .ia-filter-btn {
    background-color: #0d1e36;
    border-color: #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-filter-btn:hover,
[data-theme="dark"] .ia-filter-btn.active {
    background-color: var(--ia-secondary);
    color: #0a1628;
    border-color: var(--ia-secondary);
}

/* Header */
.ia-header {
    background-color: var(--ia-white);
    box-shadow: var(--ia-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--ia-header-height)
}

.ia-header-container {
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.ia-logo {
    display: flex;
    align-items: center
}

.ia-logo img {
    height: 38px;
    width: auto
}

.ia-nav {
    display: flex;
    align-items: center
}

.ia-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.ia-nav-item a {
    font-weight: 500;
    color: var(--ia-text);
    padding: 0.5rem 0;
    position: relative
}

.ia-nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--ia-secondary);
    transform: scaleX(0);
    transition: transform var(--ia-transition)
}

.ia-nav-item a:hover::after,
.ia-nav-item.active a::after {
    transform: scaleX(1)
}

.ia-nav-item.ia-nav-cta a {
    background-color: var(--ia-secondary);
    color: var(--ia-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--ia-radius-md);
    font-weight: 600
}

.ia-nav-item.ia-nav-cta a:hover {
    background-color: var(--ia-secondary-dark);
    color: var(--ia-white)
}

.ia-nav-item.ia-nav-cta a::after {
    display: none
}

.ia-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem
}

.ia-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--ia-primary);
    margin: 5px 0;
    transition: var(--ia-transition)
}

/* Header Account */
.ia-header-account {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

[dir="rtl"] .ia-header-account {
    margin-left: 0;
    margin-right: 1rem;
}

.ia-header-account .ia-btn-outline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.ia-account-dropdown {
    position: relative;
}

.ia-account-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius-md);
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--ia-text);
    transition: all var(--ia-transition);
}

.ia-account-toggle:hover {
    border-color: var(--ia-primary);
    background: var(--ia-background);
}

.ia-account-toggle img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ia-account-name {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-account-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--ia-white);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius-md);
    min-width: 180px;
    box-shadow: var(--ia-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--ia-transition);
    z-index: 9999;
}

[dir="rtl"] .ia-account-menu {
    right: auto;
    left: 0;
}

.ia-account-dropdown:hover .ia-account-menu,
.ia-account-dropdown.active .ia-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ia-account-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--ia-text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ia-border);
    transition: all var(--ia-transition);
}

.ia-account-menu a:last-child {
    border-bottom: none;
}

.ia-account-menu a:hover {
    background: var(--ia-background);
    color: var(--ia-primary);
}

.ia-account-menu a svg {
    flex-shrink: 0;
    color: var(--ia-text-light);
}

.ia-account-menu a:hover svg {
    color: var(--ia-primary);
}

.ia-account-menu .ia-logout-link:hover {
    color: #ef4444;
}

.ia-account-menu .ia-logout-link:hover svg {
    color: #ef4444;
}

/* Dark Mode - Header Account */
[data-theme="dark"] .ia-account-toggle {
    border-color: #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-account-toggle:hover {
    border-color: var(--ia-secondary);
    background: #122a4a;
}

[data-theme="dark"] .ia-account-menu {
    background: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .ia-account-menu a {
    color: #c0c0c0;
    border-bottom-color: #1a3a5c;
}

[data-theme="dark"] .ia-account-menu a:hover {
    background: #122a4a;
    color: #ffffff;
}

[data-theme="dark"] .ia-account-menu a svg {
    color: #8899aa;
}

[data-theme="dark"] .ia-account-menu a:hover svg {
    color: var(--ia-secondary);
}

/* Mobile - Header Account */
@media (max-width: 768px) {
    .ia-account-name {
        display: none;
    }

    .ia-account-toggle svg:last-child {
        display: none;
    }

    .ia-header-account {
        margin-left: 0.5rem;
    }

    [dir="rtl"] .ia-header-account {
        margin-left: 0;
        margin-right: 0.5rem;
    }
}

/* Hero Section */
.ia-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--ia-white)
}

.ia-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.9) 0%, rgba(0, 21, 46, 0.8) 100%)
}

.ia-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem
}

.ia-hero h1 {
    color: var(--ia-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease
}

.ia-hero .ia-subtitle {
    color: var(--ia-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both
}

.ia-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both
}

/* Hero Responsive - Tablet */
@media (max-width: 1024px) {
    .ia-hero {
        min-height: 60vh;
    }

    .ia-hero h1 {
        font-size: 2.5rem;
    }

    .ia-hero .ia-subtitle {
        font-size: 1.1rem;
    }
}

/* Hero Responsive - Mobile Landscape */
@media (max-width: 768px) {
    .ia-hero {
        min-height: 50vh;
        padding: 1rem;
    }

    .ia-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .ia-hero .ia-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .ia-hero-content {
        padding: 1.5rem 1rem;
    }
}

/* Hero Responsive - Small Mobile */
@media (max-width: 480px) {
    .ia-hero {
        min-height: 40vh;
        padding: 0.75rem;
    }

    .ia-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .ia-hero .ia-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .ia-hero-content {
        padding: 1rem 0.75rem;
    }

    .ia-hero-buttons {
        gap: 0.5rem;
    }

    .ia-hero-buttons .ia-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Course Cards */
.ia-course-card {
    background-color: var(--ia-white);
    border-radius: var(--ia-radius-lg);
    overflow: hidden;
    box-shadow: var(--ia-shadow);
    transition: all var(--ia-transition)
}

.ia-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ia-shadow-lg)
}

.ia-course-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden
}

.ia-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ia-transition)
}

.ia-course-card:hover .ia-course-card-image img {
    transform: scale(1.05)
}

.ia-course-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--ia-secondary);
    color: var(--ia-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase
}

[dir="rtl"] .ia-course-card-badge {
    right: auto;
    left: 0.75rem
}

.ia-course-card-content {
    padding: 1.25rem
}

.ia-course-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem
}

.ia-course-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--ia-text-light);
    margin-bottom: 1rem
}

.ia-course-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem
}

.ia-course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--ia-border)
}

.ia-course-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ia-primary)
}

.ia-course-card-price.free {
    color: #28a745
}

.ia-course-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ia-secondary);
    font-weight: 500
}

.ia-course-card-link:hover {
    color: var(--ia-secondary-dark)
}

/* Stats Counter */
.ia-stats {
    background-color: var(--ia-primary);
    padding: 4rem 0
}

.ia-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0 1rem
}

.ia-stat-item {
    text-align: center;
    color: var(--ia-white)
}

.ia-stat-icon {
    font-size: 3rem;
    color: var(--ia-secondary);
    margin-bottom: 1rem
}

.ia-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem
}

.ia-stat-label {
    font-size: 1rem;
    opacity: 0.9
}

/* Section Title */
.ia-section-title {
    text-align: center;
    margin-bottom: 3rem
}

.ia-section-title h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block
}

.ia-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--ia-secondary)
}

.ia-section-title.text-start h2::after {
    left: 0;
    transform: none
}

[dir="rtl"] .ia-section-title.text-start h2::after {
    left: auto;
    right: 0
}

.ia-section-title p {
    color: var(--ia-text-light);
    max-width: 600px;
    margin: 1.5rem auto 0
}

/* Testimonials */
.ia-testimonial-card {
    background-color: var(--ia-white);
    border-radius: var(--ia-radius-lg);
    padding: 2rem;
    box-shadow: var(--ia-shadow)
}

.ia-testimonial-quote {
    font-size: 1.125rem;
    color: var(--ia-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8
}

.ia-testimonial-rating {
    color: var(--ia-secondary);
    margin-bottom: 1rem
}

.ia-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem
}

.ia-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover
}

.ia-testimonial-info h4 {
    margin: 0;
    font-size: 1rem
}

.ia-testimonial-info span {
    font-size: 0.875rem;
    color: var(--ia-text-light)
}

/* CTA Strip */
.ia-cta-strip {
    background-color: var(--ia-primary);
    padding: 4rem 1rem;
    text-align: center
}

.ia-cta-strip h2 {
    color: var(--ia-white);
    margin-bottom: 1.5rem
}

.ia-cta-strip .ia-btn {
    background-color: var(--ia-white);
    color: var(--ia-primary)
}

.ia-cta-strip .ia-btn:hover {
    background-color: var(--ia-secondary)
}

/* Footer */
.ia-footer {
    background-color: var(--ia-primary-dark);
    color: var(--ia-white);
    padding-top: 4rem
}

.ia-footer-container {
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0 1rem
}

.ia-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem
}

.ia-footer-col h4 {
    color: var(--ia-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem
}

.ia-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--ia-secondary)
}

[dir="rtl"] .ia-footer-col h4::after {
    left: auto;
    right: 0
}

.ia-footer-col p {
    opacity: 0.9;
    line-height: 1.8
}

.ia-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.ia-footer-col ul li {
    margin-bottom: 0.75rem
}

.ia-footer-col ul a {
    color: var(--ia-white);
    opacity: 0.9;
    transition: all var(--ia-transition)
}

.ia-footer-col ul a:hover {
    opacity: 1;
    color: var(--ia-secondary);
    padding-inline-start: 0.5rem
}

.ia-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem
}

.ia-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--ia-white);
    transition: all var(--ia-transition)
}

.ia-footer-social a:hover {
    background-color: var(--ia-secondary);
    color: var(--ia-primary)
}

.ia-footer-newsletter {
    margin-top: 1rem
}

.ia-footer-newsletter form {
    display: flex;
    gap: 0.5rem
}

.ia-footer-newsletter input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--ia-radius-md);
    font-size: 0.875rem
}

.ia-footer-newsletter button {
    background-color: var(--ia-secondary);
    color: var(--ia-primary);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--ia-radius-md);
    cursor: pointer;
    transition: background-color var(--ia-transition)
}

.ia-footer-newsletter button:hover {
    background-color: var(--ia-secondary-dark)
}

.ia-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center
}

.ia-footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem
}

.ia-footer-bottom a {
    color: var(--ia-secondary)
}

/* Page Header */
.ia-page-header {
    background-color: #F0F0F0;
    padding: 3rem 1rem;
    text-align: center
}

.ia-page-header h1 {
    margin-bottom: 1rem
}

.ia-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ia-text-light)
}

.ia-breadcrumbs a {
    color: var(--ia-text-light)
}

.ia-breadcrumbs a:hover {
    color: var(--ia-primary)
}

/* Forms */
.ia-form-group {
    margin-bottom: 1.25rem
}

.ia-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ia-text)
}

.ia-form-input,
.ia-form-select,
.ia-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius-md);
    background-color: var(--ia-white);
    transition: border-color var(--ia-transition), box-shadow var(--ia-transition)
}

.ia-form-input:focus,
.ia-form-select:focus,
.ia-form-textarea:focus {
    outline: none;
    border-color: var(--ia-primary);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1)
}

.ia-form-textarea {
    min-height: 150px;
    resize: vertical
}

/* Icon Boxes */
.ia-icon-box {
    text-align: center;
    padding: 2rem
}

.ia-icon-box-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 33, 71, 0.1);
    border-radius: 50%;
    color: var(--ia-primary);
    font-size: 2rem;
    transition: all var(--ia-transition)
}

.ia-icon-box:hover .ia-icon-box-icon {
    background-color: var(--ia-primary);
    color: var(--ia-white)
}

.ia-icon-box-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem
}

.ia-icon-box-desc {
    color: var(--ia-text-light);
    line-height: 1.7
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Container */
.ia-container {
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0 1rem
}

.ia-section {
    padding: 4rem 0
}

/* Grid */
.ia-grid {
    display: grid;
    gap: 2rem
}

.ia-grid-2 {
    grid-template-columns: repeat(2, 1fr)
}

.ia-grid-3 {
    grid-template-columns: repeat(3, 1fr)
}

.ia-grid-4 {
    grid-template-columns: repeat(4, 1fr)
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

/* Visibility utilities */
.ia-mobile-only {
    display: block;
}

.ia-tablet-up {
    display: none;
}

.ia-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .ia-mobile-only {
        display: none;
    }

    .ia-tablet-up {
        display: block;
    }
}

@media (min-width: 1024px) {
    .ia-desktop-only {
        display: block;
    }
}

/* Spacing utilities */
.ia-mobile-padding {
    padding: var(--ia-mobile-padding);
}

.ia-mobile-gap {
    gap: var(--ia-mobile-gap);
}

.ia-touch-target {
    min-width: var(--ia-touch-target);
    min-height: var(--ia-touch-target);
}

/* Utility classes */
.ia-hidden {
    display: none !important;
}

/* Responsive text alignment */
.ia-text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .ia-text-center-mobile {
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .ia-stats-grid,
    .ia-footer-grid,
    .ia-grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 768px) {
    .ia-nav {
        display: none
    }

    .ia-menu-toggle {
        display: block
    }

    .ia-hero h1 {
        font-size: 2rem
    }

    .ia-stats-grid,
    .ia-footer-grid,
    .ia-grid-2,
    .ia-grid-3,
    .ia-grid-4 {
        grid-template-columns: 1fr
    }
}

/* Footer Logo (always dark background) - only apply filter if no dark logo is set */
.ia-footer-logo img.custom-logo:not(.ia-has-dark-logo) {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */

/* About Hero */
.ia-about-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.ia-about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.92) 0%, rgba(0, 33, 71, 0.8) 100%);
}

.ia-about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.ia-about-hero h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ia-about-hero .ia-breadcrumbs {
    justify-content: center;
}

.ia-about-hero .ia-breadcrumbs,
.ia-about-hero .ia-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.ia-about-hero .ia-breadcrumbs a:hover {
    color: var(--ia-secondary);
}

/* Eyebrow Text */
.ia-eyebrow {
    display: inline-block;
    color: var(--ia-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Who We Are Split Layout */
.ia-who-we-are {
    padding: 5rem 0;
    overflow-x: hidden;
}

.ia-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ia-split-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--ia-primary);
}

.ia-split-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.ia-check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.ia-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--ia-primary);
    font-weight: 500;
}

.ia-check-list svg {
    color: var(--ia-secondary);
    flex-shrink: 0;
}

/* Image Stack */
.ia-image-stack {
    position: relative;
}

.ia-image-stack img {
    border-radius: 20px;
    box-shadow: 30px 30px 0 #F5F0E6;
}

.ia-experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--ia-primary);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--ia-shadow-lg);
}

.ia-badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ia-secondary);
    line-height: 1;
}

.ia-badge-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Vision & Mission Cards */
.ia-vision-mission {
    padding: 5rem 0;
}

.ia-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ia-info-card {
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: transform var(--ia-transition), box-shadow var(--ia-transition);
}

.ia-info-card:hover {
    transform: translateY(-5px);
}

.ia-vision-card {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ia-vision-card .ia-card-icon {
    color: var(--ia-secondary);
}

.ia-vision-card h3 {
    color: var(--ia-primary);
}

.ia-vision-card p {
    color: #555;
    line-height: 1.9;
}

.ia-mission-card {
    background: var(--ia-primary);
    box-shadow: 0 10px 40px rgba(0, 33, 71, 0.3);
}

.ia-mission-card .ia-card-icon {
    color: var(--ia-secondary);
}

.ia-mission-card h3 {
    color: #fff;
}

.ia-mission-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.ia-card-icon {
    margin-bottom: 1.5rem;
}

.ia-info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Core Values */
.ia-values {
    padding: 5rem 0;
}

.ia-values .ia-section-title {
    margin-bottom: 3rem;
}

.ia-values .ia-section-title .ia-eyebrow {
    display: block;
    text-align: center;
}

.ia-values-grid {
    gap: 1.5rem;
}

.ia-value-box {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all var(--ia-transition);
    border: 1px solid transparent;
}

.ia-value-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--ia-secondary);
}

.ia-value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50%;
    color: var(--ia-secondary);
    transition: all var(--ia-transition);
}

.ia-value-box:hover .ia-value-icon {
    background: var(--ia-secondary);
    color: var(--ia-primary);
    transform: scale(1.1);
}

.ia-value-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--ia-primary);
}

.ia-value-box p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Gallery Grid */
.ia-gallery {
    padding: 5rem 0;
}

.ia-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ia-gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ia-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ia-gallery-item:hover img {
    transform: scale(1.1);
}

/* About CTA */
.ia-about-cta {
    background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.ia-about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.95) 0%, rgba(0, 33, 71, 0.88) 100%);
}

.ia-about-cta .ia-container {
    position: relative;
    z-index: 1;
}

.ia-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInRight 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Page Responsive */
@media (max-width: 1024px) {

    .ia-split-layout,
    .ia-cards-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ia-split-image {
        order: -1;
    }

    .ia-about-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ia-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ia-about-hero h1 {
        font-size: 2rem;
    }

    .ia-split-content h2 {
        font-size: 2rem;
    }

    .ia-experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        display: inline-block;
    }

    .ia-image-stack img {
        box-shadow: 15px 15px 0 #F5F0E6;
    }
}

/* Dark Mode - About Page */
[data-theme="dark"] .ia-about-hero h1 {
    color: #ffffff;
}

[data-theme="dark"] .ia-split-content h2,
[data-theme="dark"] .ia-value-box h4,
[data-theme="dark"] .ia-check-list li {
    color: #ffffff;
}

[data-theme="dark"] .ia-split-content p,
[data-theme="dark"] .ia-vision-card p,
[data-theme="dark"] .ia-value-box p {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-vision-card {
    background-color: #0d1e36;
    border: 1px solid #1a3a5c;
}

[data-theme="dark"] .ia-vision-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .ia-value-box {
    background-color: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .ia-value-box:hover {
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-image-stack img {
    box-shadow: 30px 30px 0 #122a4a;
}

[data-theme="dark"] .ia-gallery-item {
    border: 1px solid #1a3a5c;
}

/* ==========================================================================
   ACCOUNT PAGE STYLES
   ========================================================================== */

/* Account Hero */
.ia-account-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ia-primary) 0%, var(--ia-primary-dark) 100%);
}

.ia-account-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 50px 50px;
}

.ia-account-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.ia-account-hero h1 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ia-account-hero .ia-eyebrow {
    color: var(--ia-secondary);
}

.ia-account-hero .ia-breadcrumbs,
.ia-account-hero .ia-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.ia-account-hero .ia-breadcrumbs a:hover {
    color: var(--ia-secondary);
}

/* Account Section */
.ia-account-section {
    padding: 4rem 0;
    background-color: var(--ia-background);
}

/* Alerts */
.ia-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--ia-radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ia-alert svg {
    flex-shrink: 0;
}

.ia-alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.ia-alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.ia-alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Auth Wrapper */
.ia-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
}

.ia-auth-container {
    width: 100%;
    max-width: 550px;
}

/* Auth Card */
.ia-auth-card {
    background: var(--ia-white);
    border-radius: var(--ia-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border: 1px solid var(--ia-border);
}

.ia-auth-card-wide {
    max-width: 900px;
}

.ia-auth-card-wide .ia-auth-container {
    max-width: 900px;
}

.ia-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ia-auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.08) 0%, rgba(0, 33, 71, 0.03) 100%);
    border-radius: 50%;
    color: var(--ia-primary);
}

.ia-auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--ia-primary);
}

.ia-auth-header p {
    color: var(--ia-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Auth Form */
.ia-auth-form {
    margin-bottom: 1.5rem;
}

.ia-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ia-form-group {
    margin-bottom: 1.25rem;
}

.ia-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ia-text);
    font-size: 0.9rem;
}

.ia-form-label .required {
    color: #ef4444;
}

.ia-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ia-input-wrapper svg {
    position: absolute;
    left: 1rem;
    color: var(--ia-text-light);
    pointer-events: none;
    z-index: 1;
}

[dir="rtl"] .ia-input-wrapper svg {
    left: auto;
    right: 1rem;
}

.ia-input-wrapper .ia-form-input {
    padding-left: 3rem;
}

[dir="rtl"] .ia-input-wrapper .ia-form-input {
    padding-left: 1rem;
    padding-right: 3rem;
}

.ia-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius-md);
    background-color: var(--ia-white);
    transition: all var(--ia-transition);
    font-family: inherit;
}

.ia-form-input:focus {
    outline: none;
    border-color: var(--ia-primary);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.ia-form-input::placeholder {
    color: var(--ia-text-light);
    opacity: 0.7;
}

.ia-form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--ia-text-light);
}

/* Password Toggle */
.ia-password-wrapper .ia-form-input {
    padding-right: 3rem;
}

[dir="rtl"] .ia-password-wrapper .ia-form-input {
    padding-right: 3rem;
    padding-left: 3rem;
}

.ia-toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ia-text-light);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ia-transition);
}

[dir="rtl"] .ia-toggle-password {
    right: auto;
    left: 0.75rem;
}

.ia-toggle-password:hover {
    color: var(--ia-primary);
}

/* Password Strength */
.ia-password-strength {
    margin-top: 0.5rem;
}

.ia-strength-bar {
    height: 4px;
    background-color: var(--ia-border);
    border-radius: 2px;
    overflow: hidden;
}

.ia-strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.ia-strength-text {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Checkbox */
.ia-form-checkbox {
    margin-bottom: 1.25rem;
}

.ia-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ia-text);
    line-height: 1.5;
}

.ia-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ia-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ia-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ia-transition);
    margin-top: 2px;
}

.ia-checkbox-label input:checked~.ia-checkmark {
    background-color: var(--ia-primary);
    border-color: var(--ia-primary);
}

.ia-checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ia-checkbox-label input:checked~.ia-checkmark::after {
    display: block;
}

.ia-checkbox-label a {
    color: var(--ia-primary);
    text-decoration: underline;
}

.ia-checkbox-label a:hover {
    color: var(--ia-secondary);
}

/* Form Extras Row */
.ia-form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ia-form-extras .ia-form-group {
    margin-bottom: 0;
}

.ia-forgot-link {
    font-size: 0.9rem;
    color: var(--ia-primary);
}

.ia-forgot-link:hover {
    color: var(--ia-secondary);
}

/* Button Block */
.ia-btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ia-btn-loading {
    display: inline-flex;
    align-items: center;
}

.ia-spinner {
    animation: ia-spin 1s linear infinite;
}

@keyframes ia-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Form Message */
.ia-form-message {
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border-radius: var(--ia-radius-md);
    font-size: 0.9rem;
    text-align: center;
}

.ia-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ia-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Auth Footer */
.ia-auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ia-border);
}

.ia-auth-footer p {
    margin: 0;
    color: var(--ia-text-light);
    font-size: 0.95rem;
}

.ia-auth-footer a {
    color: var(--ia-primary);
    font-weight: 600;
}

.ia-auth-footer a:hover {
    color: var(--ia-secondary);
}

/* Dashboard Wrapper */
.ia-dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Dashboard Sidebar */
.ia-dashboard-sidebar {
    background: var(--ia-white);
    border-radius: var(--ia-radius-lg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    border: 1px solid var(--ia-border);
}

.ia-dashboard-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ia-border);
}

.ia-user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ia-user-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--ia-primary);
}

.ia-user-role {
    font-size: 0.8rem;
    color: var(--ia-text-light);
    background: var(--ia-background);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

.ia-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ia-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--ia-radius-md);
    color: var(--ia-text);
    font-weight: 500;
    transition: all var(--ia-transition);
}

.ia-dashboard-nav a:hover {
    background: var(--ia-background);
    color: var(--ia-primary);
}

.ia-dashboard-nav a.active {
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.08) 0%, rgba(0, 33, 71, 0.03) 100%);
    color: var(--ia-primary);
}

.ia-dashboard-nav a svg {
    flex-shrink: 0;
}

.ia-logout-link {
    margin-top: 1rem;
    border-top: 1px solid var(--ia-border);
    padding-top: 1rem !important;
}

.ia-logout-link:hover {
    color: #ef4444 !important;
}

/* Dashboard Content */
.ia-dashboard-content {
    min-height: 400px;
}

.ia-dashboard-welcome {
    margin-bottom: 2rem;
}

.ia-dashboard-welcome h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.ia-dashboard-welcome p {
    color: var(--ia-text-light);
    margin: 0;
}

.ia-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ia-dashboard-card {
    background: var(--ia-white);
    border-radius: var(--ia-radius-lg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border: 1px solid var(--ia-border);
}

.ia-dashboard-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ia-border);
}

/* Quick Actions */
.ia-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ia-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--ia-radius-md);
    background: var(--ia-background);
    color: var(--ia-text);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--ia-transition);
}

.ia-quick-action:hover {
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.1) 0%, rgba(0, 33, 71, 0.05) 100%);
    color: var(--ia-primary);
    transform: translateY(-2px);
}

.ia-quick-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ia-white);
    border-radius: 50%;
    color: var(--ia-primary);
}

.ia-quick-action:hover .ia-quick-icon {
    background: var(--ia-secondary);
    color: var(--ia-primary);
}

/* Info List */
.ia-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ia-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ia-border);
}

.ia-info-list li:last-child {
    border-bottom: none;
}

.ia-info-label {
    color: var(--ia-text-light);
    font-size: 0.9rem;
}

.ia-info-value {
    font-weight: 500;
    color: var(--ia-text);
}

/* Profile Form */
#ia-profile-form .ia-form-row {
    margin-bottom: 0;
}

/* Account Page Responsive */
@media (max-width: 1024px) {
    .ia-dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .ia-dashboard-sidebar {
        position: static;
    }

    .ia-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ia-account-hero h1 {
        font-size: 2rem;
    }

    .ia-form-row {
        grid-template-columns: 1fr;
    }

    .ia-form-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .ia-auth-card {
        padding: 1.5rem;
    }

    .ia-quick-actions {
        grid-template-columns: 1fr;
    }

    .ia-dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ia-dashboard-nav a {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }

    .ia-logout-link {
        margin-top: 0;
        border-top: none;
        padding-top: 0.875rem !important;
    }
}

/* Dark Mode - Account Page */
[data-theme="dark"] .ia-account-hero {
    background: linear-gradient(135deg, #0d1e36 0%, #061020 100%);
}

[data-theme="dark"] .ia-alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .ia-alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .ia-alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .ia-auth-card,
[data-theme="dark"] .ia-dashboard-sidebar,
[data-theme="dark"] .ia-dashboard-card {
    background: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .ia-auth-icon {
    background: linear-gradient(135deg, rgba(229, 193, 88, 0.15) 0%, rgba(229, 193, 88, 0.05) 100%);
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-auth-header h2,
[data-theme="dark"] .ia-dashboard-welcome h2,
[data-theme="dark"] .ia-dashboard-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .ia-form-input {
    background-color: #122a4a;
    border-color: #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-form-input:focus {
    border-color: var(--ia-secondary);
    box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.2);
}

[data-theme="dark"] .ia-form-input::placeholder {
    color: #8899aa;
}

[data-theme="dark"] .ia-input-wrapper svg,
[data-theme="dark"] .ia-toggle-password {
    color: #8899aa;
}

[data-theme="dark"] .ia-toggle-password:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-checkmark {
    border-color: #1a3a5c;
    background: #122a4a;
}

[data-theme="dark"] .ia-checkbox-label input:checked~.ia-checkmark {
    background-color: var(--ia-secondary);
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-checkbox-label input:checked~.ia-checkmark::after {
    border-color: #0a1628;
}

[data-theme="dark"] .ia-auth-footer {
    border-top-color: #1a3a5c;
}

[data-theme="dark"] .ia-auth-footer a {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-user-info h4 {
    color: #ffffff;
}

[data-theme="dark"] .ia-user-role {
    background: #122a4a;
    color: #c0c0c0;
}

[data-theme="dark"] .ia-dashboard-nav a {
    color: #c0c0c0;
}

[data-theme="dark"] .ia-dashboard-nav a:hover {
    background: #122a4a;
    color: #ffffff;
}

[data-theme="dark"] .ia-dashboard-nav a.active {
    background: linear-gradient(135deg, rgba(229, 193, 88, 0.15) 0%, rgba(229, 193, 88, 0.05) 100%);
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-logout-link:hover {
    color: #ef4444 !important;
}

[data-theme="dark"] .ia-quick-action {
    background: #122a4a;
    color: #c0c0c0;
}

[data-theme="dark"] .ia-quick-action:hover {
    background: linear-gradient(135deg, rgba(229, 193, 88, 0.15) 0%, rgba(229, 193, 88, 0.05) 100%);
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-quick-icon {
    background: #0d1e36;
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-quick-action:hover .ia-quick-icon {
    background: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-info-list li {
    border-bottom-color: #1a3a5c;
}

[data-theme="dark"] .ia-info-value {
    color: #ffffff;
}

[data-theme="dark"] .ia-message-success {
    background-color: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .ia-message-error {
    background-color: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .ia-strength-bar {
    background-color: #1a3a5c;
}


/* ==========================================================================
   ABOUT US SECTION - RTL (ARABIC)
   ========================================================================== */

/* Fix animation direction — .animate-fade-right shifts LEFT by -30px,
   which overflows the RTL viewport. Reverse it so it shifts RIGHT (inward). */
[dir="rtl"] .animate-fade-right {
    transform: translateX(30px);
    animation-name: fadeInLeft;
}

[dir="rtl"] .animate-fade-left {
    transform: translateX(-30px);
    animation-name: fadeInRight;
}

/* On tablet/mobile, use vertical-only animations to prevent any horizontal overflow */
@media (max-width: 1024px) {

    [dir="rtl"] .animate-fade-right,
    [dir="rtl"] .animate-fade-left,
    [dir="rtl"] .animate-fade-up {
        transform: translateY(30px);
        animation-name: fadeInUp;
    }
}

/* Desktop RTL: reverse grid column order naturally via direction:rtl */
[dir="rtl"] .ia-split-layout {
    direction: rtl;
}

/* RTL text alignment */
[dir="rtl"] .ia-split-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .ia-split-content h2,
[dir="rtl"] .ia-split-content p {
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL: Fix image shadow direction */
[dir="rtl"] .ia-image-stack img {
    box-shadow: -30px 30px 0 #F5F0E6;
}

[data-theme="dark"] [dir="rtl"] .ia-image-stack img {
    box-shadow: -30px 30px 0 #122a4a;
}

/* RTL: Fix experience badge position */
[dir="rtl"] .ia-experience-badge {
    left: auto;
    right: -30px;
}

/* RTL: Check list items */
[dir="rtl"] .ia-check-list li {
    flex-direction: row-reverse;
}

/* RTL: Vision/Mission cards */
[dir="rtl"] .ia-cards-grid {
    direction: rtl;
}

/* RTL: Value boxes */
[dir="rtl"] .ia-value-box {
    direction: rtl;
}

/* RTL Mobile resets */
@media (max-width: 1024px) {
    [dir="rtl"] .ia-experience-badge {
        right: auto;
        left: auto;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .ia-experience-badge {
        position: relative;
        right: auto;
        left: auto;
        margin-top: 1.5rem;
        display: inline-block;
    }

    [dir="rtl"] .ia-image-stack img {
        box-shadow: -15px 15px 0 #F5F0E6;
    }

    [data-theme="dark"] [dir="rtl"] .ia-image-stack img {
        box-shadow: -15px 15px 0 #122a4a;
    }

    [dir="rtl"] .ia-split-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    [dir="rtl"] .ia-split-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* ==========================================================================
   IMPERIAL ACADEMY - BUG FIXES & ENHANCEMENTS
   ========================================================================== */

/* BUG-001: Newsletter Form Dark Mode Styling */
[data-theme="dark"] .ia-footer-newsletter input {
    background-color: #122a4a;
    border: 1px solid #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-footer-newsletter input::placeholder {
    color: #8899aa;
}

[data-theme="dark"] .ia-footer-newsletter input:focus {
    border-color: var(--ia-secondary);
    box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.2);
    outline: none;
}

[data-theme="dark"] .ia-footer-newsletter button {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-footer-newsletter button:hover {
    background-color: var(--ia-secondary-dark);
}


/* BUG-007: Footer Social Icons Dark Mode Visibility */
[data-theme="dark"] .ia-footer-social a svg {
    color: #ffffff;
}

[data-theme="dark"] .ia-footer-social a svg path,
[data-theme="dark"] .ia-footer-social a svg rect,
[data-theme="dark"] .ia-footer-social a svg circle,
[data-theme="dark"] .ia-footer-social a svg line,
[data-theme="dark"] .ia-footer-social a svg polygon {
    fill: currentColor;
}

/* Instagram icon uses stroke, needs special handling */
[data-theme="dark"] .ia-footer-social a[aria-label="Instagram"] svg {
    fill: none;
    stroke: #ffffff;
}

[data-theme="dark"] .ia-footer-social a[aria-label="Instagram"] svg rect,
[data-theme="dark"] .ia-footer-social a[aria-label="Instagram"] svg path,
[data-theme="dark"] .ia-footer-social a[aria-label="Instagram"] svg line {
    fill: none;
    stroke: currentColor;
}

[data-theme="dark"] .ia-footer-social a:hover svg {
    color: var(--ia-primary);
}


/* BUG-012: Contact List SVG Icons in Footer Dark Mode */
[data-theme="dark"] .ia-contact-list svg {
    color: var(--ia-secondary);
    stroke: var(--ia-secondary);
}

[data-theme="dark"] .ia-contact-list a {
    color: #ffffff;
}

[data-theme="dark"] .ia-contact-list a:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-contact-list li {
    color: #c0c0c0;
}


/* BUG-006: Topbar Mobile Layout - Single row */
@media (max-width: 576px) {
    .ia-topbar-container {
        flex-direction: row;
        padding: 0 0.75rem;
        gap: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .ia-topbar-left,
    .ia-topbar-right {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .ia-topbar-right {
        justify-content: flex-end;
    }

    .ia-contact-info {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .ia-contact-item span {
        display: none;
    }

    .ia-theme-toggle {
        min-width: 30px;
        min-height: 30px;
    }
}

/* BUG-014: Mobile Touch Targets - Ensure minimum 44px touch targets */
@media (max-width: 768px) {
    .ia-topbar-socials a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ia-footer-social a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ia-lang-toggle {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .ia-nav-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .ia-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}


/* BUG-015: Focus States - Only show for keyboard navigation, not mouse clicks */
/* Hide outline on mouse click, keep for keyboard (fallback for older browsers) */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Visible focus ring for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--ia-secondary);
    outline-offset: 2px;
}

/* For buttons and form elements, use subtle shadow instead */
.ia-btn:focus-visible,
.ia-form-input:focus-visible,
.ia-form-select:focus-visible,
.ia-form-textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Remove focus styles for mouse clicks */
.ia-btn:focus:not(:focus-visible),
.ia-theme-toggle:focus:not(:focus-visible),
.ia-lang-toggle:focus:not(:focus-visible),
.ia-menu-toggle:focus:not(:focus-visible),
.ia-account-toggle:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

[data-theme="dark"] *:focus-visible {
    outline-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-btn:focus-visible,
[data-theme="dark"] .ia-form-input:focus-visible {
    box-shadow: 0 0 0 2px rgba(229, 193, 88, 0.3);
}

/* Skip link focus */
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    background: var(--ia-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: var(--ia-radius-md);
}

/* BUG-009: Sticky Header Content Jump Fix */
.ia-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Add padding to body when header is sticky */
body.header-sticky {
    padding-top: var(--ia-header-height, 80px);
}

/* BUG-008: Course Card Image Aspect Ratio Fallback */
.ia-course-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16/10) {
    .ia-course-card-image {
        padding-top: 62.5%;
        /* 10/16 = 0.625 */
    }

    .ia-course-card-image img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Placeholder background for missing images */
.ia-course-card-image img {
    background-color: var(--ia-background);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><rect fill="%23f0f0f0" width="400" height="250"/><text x="50%" y="50%" fill="%23999" font-family="sans-serif" font-size="16" text-anchor="middle" dy=".3em">No Image</text></svg>');
    background-size: cover;
    background-position: center;
}

/* BUG-011: Print Stylesheet */
@media print {

    .ia-topbar,
    .ia-header,
    .ia-footer,
    .ia-menu-toggle,
    .ia-theme-toggle,
    .ia-lang-dropdown,
    .ia-footer-newsletter,
    .ia-account-dropdown,
    .skip-link {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        padding-top: 0 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    .ia-course-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .ia-hero::before {
        display: none;
    }

    .ia-hero {
        background: #f5f5f5 !important;
        color: #000 !important;
        min-height: auto;
        padding: 2rem;
    }

    .ia-hero h1 {
        color: #000 !important;
    }

    .ia-btn {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION FIX
   ========================================================================== */

@media (max-width: 768px) {

    /* ── TOPBAR: single-line on mobile ── */
    /* [📞] [✉️]  ──── space ────  [🌐▾] [🌙] */
    .ia-topbar {
        min-height: auto;
        height: 40px;
    }

    .ia-topbar-container {
        padding: 0 0.75rem;
        gap: 0;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        overflow: visible;
    }

    .ia-topbar-left {
        flex-wrap: nowrap !important;
        flex-shrink: 0;
        gap: 0.5rem;
        align-items: center;
    }

    .ia-topbar-right {
        flex-wrap: nowrap !important;
        flex-shrink: 0;
        gap: 0.5rem;
        align-items: center;
        margin-inline-start: auto;
    }

    /* Contact icons only — hide text labels */
    .ia-topbar-left .ia-contact-info {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        align-items: center;
    }

    .ia-topbar-left .ia-contact-item {
        padding: 0;
        gap: 0;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }

    .ia-topbar-left .ia-contact-item span {
        display: none !important;
    }

    .ia-topbar-left .ia-contact-item svg {
        width: 18px;
        height: 18px;
    }

    /* Hide socials on mobile */
    .ia-topbar-socials {
        display: none !important;
    }

    /* Compact lang switcher */
    .ia-lang-toggle {
        padding: 4px 6px !important;
        min-height: auto !important;
        height: 30px;
        font-size: 0.75rem;
        gap: 2px;
        display: inline-flex;
        align-items: center;
    }

    .ia-lang-toggle #current-lang-text {
        display: none !important;
    }

    /* Compact theme toggle */
    .ia-theme-toggle {
        padding: 0;
        width: 30px;
        height: 30px;
        min-width: auto;
        min-height: auto !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Override 576px breakpoint styles that cause stacking */
    .ia-contact-info {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        min-height: 60px;
    }

    .ia-header-container {
        padding: 0 0.75rem;
        min-height: 60px;
    }

    .ia-logo img {
        height: 29px;
    }

    /* ── MOBILE NAV OVERLAY ── */
    .ia-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        animation: fadeIn 0.25s ease;
    }

    .ia-nav.active {
        display: block !important;
    }

    .ia-nav .ia-nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--ia-white);
        flex-direction: column;
        padding: 5rem 0 2rem;
        gap: 0;
        margin: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        animation: slideInRight 0.3s ease;
        z-index: 9999;
    }

    [dir="rtl"] .ia-nav .ia-nav-list {
        right: auto;
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        animation: slideInLeft 0.3s ease;
    }

    /* Dark mode mobile nav */
    [data-theme="dark"] .ia-nav {
        background: rgba(0, 0, 0, 0.7);
    }

    [data-theme="dark"] .ia-nav .ia-nav-list {
        background: #0d1e36;
    }

    /* Nav items in mobile view */
    .ia-nav .ia-nav-item {
        width: 100%;
        border-bottom: 1px solid var(--ia-border);
    }

    .ia-nav .ia-nav-item:last-child {
        border-bottom: none;
    }

    .ia-nav .ia-nav-item a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--ia-text);
        font-size: 1rem;
    }

    [data-theme="dark"] .ia-nav .ia-nav-item a {
        color: rgba(255, 255, 255, 0.9);
    }

    .ia-nav .ia-nav-item a:hover {
        background: var(--ia-background);
        color: var(--ia-primary);
    }

    [data-theme="dark"] .ia-nav .ia-nav-item a:hover {
        background: #122a4a;
        color: #fff;
    }

    /* CTA button in mobile nav */
    .ia-nav .ia-nav-cta a {
        background: var(--ia-secondary);
        color: var(--ia-primary) !important;
        border-radius: var(--ia-radius-md);
        margin: 0.75rem 1.5rem;
        text-align: center;
    }

    /* Hamburger menu button */
    .ia-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: var(--ia-white);
        border: 1px solid var(--ia-border);
        border-radius: 4px;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        margin-left: 0.5rem;
    }

    /* RTL: toggle is on the LEFT so margin-left gives breathing from left edge */
    [dir="rtl"] .ia-menu-toggle {
        order: 1;
        /* Leftmost in mobile RTL */
        margin-left: 0.5rem;
        margin-right: 0;
    }

    /* Mobile RTL: override desktop order — group [☰][Account] on left, [Logo] on right */
    [dir="rtl"] .ia-header-account {
        order: 2;
        /* Right of toggle */
        margin-left: 0;
        margin-right: 0;
    }

    [dir="rtl"] .ia-logo {
        order: 4;
        /* Rightmost */
        margin-left: auto;
        /* Pushes logo to far right, creating space */
    }

    .ia-menu-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        background: var(--ia-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
        margin: 0 auto;
    }

    [data-theme="dark"] .ia-menu-toggle {
        background: #0d1e36;
        border-color: #1a3a5c;
    }

    [data-theme="dark"] .ia-menu-toggle span {
        background: #fff;
    }

    /* Account dropdown in mobile — LTR: push right with auto margin */
    .ia-header-account {
        margin-left: auto;
    }

    /* RTL mobile: order handles placement (overrides rtl.css desktop values) — reset margin */
    [dir="rtl"] .ia-header-account {
        margin-left: 0;
        margin-right: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .ia-menu-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   DARK MODE ENHANCEMENTS FOR ELEMENTOR CONTENT
   ========================================================================== */

/* Apply dark mode to common Elementor section backgrounds */
[data-theme="dark"] .elementor-section:not([data-settings*="background"]),
[data-theme="dark"] .elementor-section-wrap {
    background-color: var(--ia-background);
}

[data-theme="dark"] .elementor-section.elementor-section-boxed>.elementor-container {
    background-color: transparent;
}

/* Text color in dark mode for Elementor */
[data-theme="dark"] .elementor-widget-text-editor,
[data-theme="dark"] .elementor-heading-title,
[data-theme="dark"] .elementor-widget-heading .elementor-heading-title {
    color: inherit;
}

/* Button adjustments in dark mode */
[data-theme="dark"] .elementor-button {
    transition: all 0.3s ease;
}

/* Icon box and image box in dark mode */
[data-theme="dark"] .elementor-icon-box-title,
[data-theme="dark"] .elementor-image-box-title {
    color: var(--ia-text);
}

[data-theme="dark"] .elementor-icon-box-description,
[data-theme="dark"] .elementor-image-box-description {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   BROKEN IMAGE & EMPTY CARD FALLBACKS
   ========================================================================== */

/* Broken images - requires JavaScript to add .broken-image class */
img.broken-image {
    min-height: 150px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1e36 100%);
    border-radius: var(--ia-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper for broken image placeholder */
.broken-image-wrapper {
    min-height: 150px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1e36 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.broken-image-wrapper::before {
    content: 'ðŸ–¼ï¸ Image unavailable';
}

/* Empty Elementor text/content widgets */
.elementor-widget-text-editor:empty,
.elementor-widget-heading:empty {
    display: none;
}

/* Minimum height for card-like elements with empty content */
.elementor-widget-image-box .elementor-image-box-content:empty,
.elementor-widget-icon-box .elementor-icon-box-content:empty {
    min-height: 50px;
    background: var(--ia-background);
}

/* ==========================================================================
   CINEMATIC HOMEPAGE â€” "The Cinematic Academy"
   ========================================================================== */

/* â€” Shared Utilities â€” */
.cm-container {
    max-width: var(--ia-container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.cm-section {
    padding: 100px 0;
}

.cm-section--light {
    background: #f4f6f9;
}

.cm-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ia-secondary);
    margin-bottom: 10px;
}

.cm-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.cm-section__head h2 {
    font-family: var(--ia-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 0;
    line-height: 1.2;
    color: var(--ia-primary);
    transition: color 0.4s ease;
}

.cm-section__sub {
    max-width: 600px;
    color: var(--ia-text-light);
    margin: 8px 0 0;
    /* small gap below h2, flush left */
    text-align: left;
    /* aligned with title above it */
}

.cm-link {
    font-weight: 600;
    color: var(--ia-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--ia-transition);
}

.cm-link:hover {
    color: var(--ia-secondary-dark);
}

/* â€” Buttons â€” */
.cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ia-transition);
}

.cm-btn--gold {
    background: var(--ia-secondary);
    color: var(--ia-primary);
}

.cm-btn--gold:hover {
    background: var(--ia-secondary-dark);
    color: #fff;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.cm-btn--navy {
    background: var(--ia-primary);
    color: #fff;
}

.cm-btn--navy:hover {
    background: var(--ia-primary-light);
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.3);
}

.cm-btn--primary {
    background: var(--ia-primary);
    color: #fff;
    border: 2px solid var(--ia-primary);
}

.cm-btn--primary:hover {
    background: var(--ia-secondary);
    color: var(--ia-primary);
    border-color: var(--ia-secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

[data-theme="dark"] .cm-btn--primary {
    background: var(--ia-secondary);
    color: var(--ia-primary);
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .cm-btn--primary:hover {
    background: transparent;
    color: var(--ia-secondary);
    border-color: var(--ia-secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.cm-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.cm-btn--lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

/* ==================== 1. VIDEO HERO ==================== */
.cm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cm-hero__video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cm-hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 21, 46, 0.88) 0%, rgba(0, 33, 71, 0.75) 100%);
}

.cm-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 80px;
}

.cm-hero__badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--ia-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(10px);
}

.cm-hero__content h1 {
    font-family: var(--ia-font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.cm-hero__content>p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 35px;
}

/* Hero Search */
.cm-hero__search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 6px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 560px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    /* suppress mobile tap highlight */
}

.cm-hero__search svg {
    flex-shrink: 0;
    margin-left: 14px;
}

.cm-hero__search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 8px;
    font-size: 1rem;
    outline: none !important;
    /* !important prevents mobile browser override */
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    color: #fff;
}

.cm-hero__search input:focus,
.cm-hero__search input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.cm-hero__search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cm-hero__search .cm-btn {
    border-radius: 8px;
    padding: 12px 24px;
}

/* Hero Stats */
.cm-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.5vw, 30px);
    margin-top: 50px;
    max-width: 100%;
}

.cm-hero__stat {
    text-align: center;
    flex-shrink: 1;
    min-width: 0;
}

.cm-hero__stat strong {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #fff;
    white-space: nowrap;
}

.cm-hero__stat span {
    font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.cm-hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== SCROLL ANIMATION ENGINE ==================== */
[data-anim] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="fade"] {
    transform: none;
}

[data-anim="fade-up"] {
    transform: translateY(30px);
}

[data-anim="scale-in"] {
    transform: scale(0.92);
}

[data-anim="slide-right"] {
    transform: translateX(-40px);
}

[data-anim="slide-left"] {
    transform: translateX(40px);
}

[data-anim].cm-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ==================== 2. BENTO GRID ==================== */
.cm-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.cm-bento__card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform var(--ia-transition), box-shadow var(--ia-transition);
}

.cm-bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 21, 46, 0.85) 0%, transparent 60%);
    transition: background var(--ia-transition);
}

.cm-bento__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cm-bento__card:hover::before {
    background: linear-gradient(to top, rgba(0, 21, 46, 0.95) 0%, rgba(0, 21, 46, 0.2) 100%);
}

.cm-bento__card--lg {
    grid-column: span 2;
}

.cm-bento__label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 24px;
    letter-spacing: 0.01em;
}

/* ==================== 3. ABOUT ==================== */
.cm-about {
    background: var(--ia-primary);
    padding: 100px 0;
    color: #fff;
}

.cm-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cm-about__media {
    position: relative;
}

.cm-about__media img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.cm-about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--ia-secondary);
    color: var(--ia-primary);
    padding: 20px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cm-about__badge-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.cm-about__badge-txt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cm-about__content .cm-label {
    color: var(--ia-secondary);
}

.cm-about__content h2 {
    font-family: var(--ia-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 20px;
}

.cm-about__content>p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.cm-about__features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cm-about__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cm-about__features svg {
    flex-shrink: 0;
}

/* ==================== 4. STATS ==================== */
.cm-stats {
    background: var(--ia-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
}

.cm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.cm-stats__item {
    padding: 20px;
}

.cm-stats__item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-stats__num {
    display: block;
    font-family: var(--ia-font-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ia-secondary);
}

.cm-stats__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    display: block;
}

/* ==================== 5. INSTRUCTORS ==================== */
.cm-scroll-wrap {
    overflow-x: auto;
    padding: 0 2rem 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ia-secondary) transparent;
}

.cm-instructors {
    display: flex;
    gap: 24px;
    padding-bottom: 10px;
    min-width: max-content;
}

.cm-inst-card {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all var(--ia-transition);
    text-align: center;
}

.cm-inst-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ia-shadow-lg);
    border-color: var(--ia-secondary);
}

.cm-inst-card__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.cm-inst-card h4 {
    font-size: 1.1rem;
    margin: 18px 0 4px;
    padding: 0 16px;
}

.cm-inst-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--ia-secondary);
    font-weight: 600;
    padding: 0 16px 20px;
}

/* ==================== MOBILE NAVIGATION FIX ==================== */
@media (max-width: 768px) {

    /* ── TOPBAR: single-line on mobile ── */
    /* [📞] [✉️]  ──── space ────  [🌐▾] [🌙] */
    .ia-topbar {
        min-height: auto;
        height: 40px;
    }

    .ia-topbar-container {
        padding: 0 0.75rem;
        gap: 0;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        overflow: visible;
    }

    /* Hide socials on mobile */
    .ia-topbar-socials {
        display: none !important;
    }

    /* ── MOBILE NAV OVERLAY ── */
    .ia-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 9998;
    }

    .ia-nav.active {
        opacity: 1;
        visibility: visible;
    }

    /* RTL: toggle is on the LEFT edge — margin-left is the outer gap */
    [dir="rtl"] .ia-menu-toggle {
        margin-left: 0.5rem;
        margin-right: 0;
    }

    /* RTL: Use direction:ltr + explicit order. Mobile overrides desktop rtl.css orders. */
    [dir="rtl"] .ia-header-container {
        direction: ltr;
    }

    /* Mobile RTL: [☰ LEFT][Account][·space·][Logo RIGHT] */
    [dir="rtl"] .ia-menu-toggle {
        order: 1 !important;
        margin-left: 0.5rem;
        margin-right: 0;
    }

    [dir="rtl"] .ia-header-account {
        order: 2 !important;
        margin-left: 0;
        margin-right: 0;
    }

    [dir="rtl"] .ia-logo {
        order: 4 !important;
        margin-left: auto;
        /* pushes logo to far right */
    }

    /* Mobile nav sidebar */
    .ia-nav .ia-nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--ia-white);
        flex-direction: column;
        padding: 5rem 0 2rem;
        gap: 0;
        margin: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        animation: slideInRight 0.3s ease;
        z-index: 9999;
    }

    /* RTL: Mobile nav sidebar slides from left */
    [dir="rtl"] .ia-nav .ia-nav-list {
        right: auto;
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        animation: slideInLeft 0.3s ease;
    }

    /* Dark mode mobile nav */
    [data-theme="dark"] .ia-nav {
        background: rgba(0, 0, 0, 0.7);
    }

    [data-theme="dark"] .ia-nav .ia-nav-list {
        background: #0d1e36;
    }

    /* Nav items in mobile view - ensure vertical layout */
    .ia-nav .ia-nav-item {
        width: 100%;
        border-bottom: 1px solid var(--ia-border);
    }

    .ia-nav .ia-nav-item:last-child {
        border-bottom: none;
    }

    .ia-nav .ia-nav-item a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--ia-text);
        font-size: 1rem;
    }

    [data-theme="dark"] .ia-nav .ia-nav-item a {
        color: rgba(255, 255, 255, 0.9);
    }

    .ia-nav .ia-nav-item a:hover {
        background: var(--ia-background);
        color: var(--ia-primary);
    }

    [data-theme="dark"] .ia-nav .ia-nav-item a:hover {
        background: #122a4a;
        color: #fff;
    }

    /* CTA button in mobile nav - fix contrast */
    .ia-nav .ia-nav-cta a {
        margin: 1rem 1.5rem;
        text-align: center;
        background-color: var(--ia-secondary);
        color: var(--ia-primary);
        border-radius: var(--ia-radius-md);
        padding: 0.75rem 1rem;
    }

    /* Dark mode: Ensure CTA button has proper contrast */
    [data-theme="dark"] .ia-nav .ia-nav-cta a {
        background-color: var(--ia-secondary);
        color: #0a1628;
        font-weight: 600;
    }

    /* Hamburger menu button - ensure proper positioning */
    .ia-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    /* RTL: direction:ltr + order approach (same as first mobile block) */
    [dir="rtl"] .ia-header-container {
        direction: ltr !important;
        flex-direction: row !important;
    }

    /* RTL: Nav items stacked vertically with right alignment */
    [dir="rtl"] .ia-nav .ia-nav-list {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: right !important;
    }

    [dir="rtl"] .ia-nav .ia-nav-item {
        width: 100% !important;
        text-align: right !important;
    }

    [dir="rtl"] .ia-nav .ia-nav-item a {
        text-align: right !important;
        justify-content: flex-end !important;
        flex-direction: row-reverse !important;
        padding: 1rem 1.5rem !important;
    }

    .ia-menu-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        background: var(--ia-primary);
        transition: all 0.3s ease;
    }

    [data-theme="dark"] .ia-menu-toggle {
        background: transparent;
        border: 1px solid transparent;
    }

    [data-theme="dark"] .ia-menu-toggle span {
        background: #fff;
    }

    /* Active state for menu toggle */
    .ia-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .ia-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .ia-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Account dropdown in mobile — LTR: push right with auto margin */
    /* RTL visual: order values set above handle placement — margin-left:auto on logo creates the space */
    .ia-header-account {
        margin-left: auto;
    }

    /* RTL: order from mobile overrides handle placement; reset auto margin */
    [dir="rtl"] .ia-header-account {
        margin-left: 0;
        margin-right: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .ia-menu-toggle {
        display: none !important;
    }
}

/* ==================== 6. MAGAZINE BLOG ==================== */
.cm-magazine {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    min-height: 500px;
}

.cm-magazine__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: all var(--ia-transition);
}

.cm-magazine__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ia-shadow-lg);
}

.cm-magazine__card--featured {
    grid-row: span 2;
}

.cm-magazine__img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cm-magazine__card--featured .cm-magazine__img {
    height: 100%;
    min-height: 280px;
    flex: 1;
}

.cm-magazine__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ia-secondary);
    color: var(--ia-primary);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cm-magazine__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cm-magazine__body time {
    font-size: 0.8rem;
    color: var(--ia-text-light);
}

.cm-magazine__body h3 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.4;
}

.cm-magazine__body h3 a {
    color: var(--ia-primary);
    text-decoration: none;
}

.cm-magazine__body h3 a:hover {
    color: var(--ia-secondary);
}

.cm-magazine__body>p {
    color: var(--ia-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== 7. CTA ==================== */
.cm-cta {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.cm-cta h2 {
    font-family: var(--ia-font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    margin-bottom: 16px;
}

.cm-cta p {
    font-size: 1.15rem;
    opacity: 0.75;
    max-width: 550px;
    margin: 0 auto 40px;
}

/* ==================== SMOOTH MODE TRANSITIONS ==================== */
body,
.cm-section,
.cm-section--light,
.cm-hero,
.cm-inst-card,
.cm-magazine__card,
.cm-magazine__body h3 a,
.ia-course-card,
.ia-course-card-content {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ==================== RTL ==================== */
[dir="rtl"] .cm-hero__search svg {
    margin-left: 0;
    margin-right: 14px;
}

[dir="rtl"] .cm-section__sub {
    text-align: right;
    /* natural RTL alignment, matches title */
}

[dir="rtl"] .cm-about__badge {
    right: auto;
    left: -20px;
}

[dir="rtl"] .cm-magazine__cat {
    left: auto;
    right: 14px;
}

[dir="rtl"] .cm-stats__item:not(:last-child) {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] [data-anim="slide-right"] {
    transform: translateX(40px);
}

[dir="rtl"] [data-anim="slide-left"] {
    transform: translateX(-40px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .cm-hero__content {
        padding: 100px 2rem 60px;
    }

    .cm-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .cm-bento__card--lg {
        grid-column: span 1;
    }

    .cm-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cm-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-stats__item:nth-child(2) {
        border-right: none;
    }

    .cm-magazine {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .cm-magazine__card--featured {
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .cm-section {
        padding: 60px 0;
    }

    .cm-container {
        padding: 0 1rem;
    }

    .cm-hero {
        min-height: 90vh;
        overflow: hidden;
    }

    .cm-hero__content {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cm-hero__content h1 {
        font-size: 2rem;
    }

    .cm-hero__video-bg video {
        display: none;
    }

    .cm-hero__video-bg {
        background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80&w=800') center/cover;
    }

    .cm-hero__search {
        flex-direction: row;
        padding: 8px;
        border-radius: 30px;
        gap: 0;
        border: none;
    }

    .cm-hero__search svg {
        display: none;
    }

    .cm-hero__search input {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 0;
    }

    .cm-hero__search .cm-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .cm-hero__stats {
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: center;
        padding: 0;
        margin-top: 30px;
    }

    .cm-hero__stat-divider {
        height: 24px;
        flex-shrink: 0;
    }

    .cm-hero__stat {
        flex-shrink: 1;
        min-width: 0;
    }

    .cm-hero__stat strong {
        font-size: clamp(0.8rem, 3.2vw, 1.1rem);
        white-space: nowrap;
    }

    .cm-hero__stat span {
        font-size: clamp(0.45rem, 1.8vw, 0.65rem);
        line-height: 1.15;
        letter-spacing: 0;
    }

    /* ── ABOUT: mobile stack ── */
    .cm-about {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .cm-about__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .cm-about__media {
        max-width: 100%;
        margin: 0 auto;
        position: relative;
    }

    .cm-about__media img {
        border-radius: 14px;
        width: 100%;
        height: auto;
        display: block;
    }

    .cm-about__badge {
        position: absolute;
        bottom: -15px;
        right: 15px;
        padding: 14px 18px;
        border-radius: 12px;
    }

    [dir="rtl"] .cm-about__badge {
        right: auto;
        left: 15px;
    }

    .cm-about__badge-num {
        font-size: 1.6rem;
    }

    .cm-about__badge-txt {
        font-size: 0.65rem;
    }

    .cm-about__content {
        text-align: start;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .cm-about__content h2 {
        font-size: 1.5rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .cm-about__content>p {
        font-size: 0.9rem;
        line-height: 1.7;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .cm-about__features {
        grid-template-columns: 1fr;
    }

    .cm-about__features li {
        font-size: 0.85rem;
    }

    .cm-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .cm-stats__item {
        border-right: none !important;
        border-left: none !important;
    }

    .cm-inst-card {
        width: 220px;
    }

    .cm-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] .cm-section--light {
    background: #0d1e36;
}

[data-theme="dark"] .cm-inst-card {
    background: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .cm-inst-card h4 {
    color: #fff;
}

[data-theme="dark"] .cm-magazine__card {
    background: #0d1e36;
    border-color: #1a3a5c;
}

[data-theme="dark"] .cm-magazine__body h3 a {
    color: #fff;
}

[data-theme="dark"] .cm-bento__card {
    border: 1px solid #1a3a5c;
}

[data-theme="dark"] .cm-section__head h2 {
    color: #fff;
}

[data-theme="dark"] .cm-section__sub {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .cm-section {
    background: #0a1628;
}

/* ── Dark mode: About Us section ──
   .cm-about uses background: var(--ia-primary) which can be overridden to
   a light colour when dark mode redefines the variable. Pin it explicitly. */
[data-theme="dark"] .cm-about {
    background: #0a1628;
    color: #fff;
}

[data-theme="dark"] .cm-about__content h2 {
    color: #fff;
}

[data-theme="dark"] .cm-about__features li {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Dark mode: Statistics section ──
   Same issue as .cm-about — pin the background so it stays dark. */
[data-theme="dark"] .cm-stats {
    background: #0d1e36;
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cm-stats__num {
    color: var(--ia-secondary);
}

[data-theme="dark"] .cm-stats__label {
    color: rgba(255, 255, 255, 0.65);
}


[data-theme="dark"] .cm-about__content>p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .cm-magazine__body time {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .cm-magazine__body>p {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .cm-inst-card span {
    color: var(--ia-secondary);
}

/* ==========================================================================
   RESPONSIVE COURSE CARD GRID
   ========================================================================== */
@media (max-width: 1024px) {
    .ia-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .ia-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .ia-course-card-title {
        font-size: 1rem;
    }

    .ia-course-card-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

/* Course card instructor mini-badge */
.ia-course-card-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ia-border);
}

.ia-course-card-instructor img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ia-secondary);
}

.ia-course-card-instructor span {
    font-size: 0.8rem;
    color: var(--ia-text-light);
    font-weight: 500;
}

.ia-course-card-instructor a {
    color: var(--ia-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.ia-course-card-instructor a:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-course-card-instructor span,
[data-theme="dark"] .ia-course-card-instructor a {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   LUXURY INSTRUCTOR CARDS REDESIGN
   ========================================================================== */
.cm-instructors {
    display: flex;
    gap: 28px;
    padding-bottom: 10px;
    min-width: max-content;
}

.cm-inst-card {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cm-inst-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, var(--ia-secondary) 70%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.cm-inst-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cm-inst-card:hover::before {
    opacity: 1;
}

.cm-inst-card__img {
    position: relative;
    overflow: hidden;
}

.cm-inst-card__img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 21, 46, 0.5) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.cm-inst-card:hover .cm-inst-card__img::after {
    opacity: 1;
}

.cm-inst-card__img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cm-inst-card:hover .cm-inst-card__img img {
    transform: scale(1.08);
}

.cm-inst-card__body {
    padding: 22px 20px 26px;
    position: relative;
}

.cm-inst-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ia-primary);
    transition: color 0.3s;
}

.cm-inst-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--ia-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cm-inst-card__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.cm-inst-card:hover .cm-inst-card__socials {
    opacity: 1;
    transform: translateY(0);
}

.cm-inst-card__socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    color: var(--ia-secondary);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
}

.cm-inst-card__socials a:hover {
    background: var(--ia-secondary);
    color: #fff;
    transform: scale(1.1);
}

/* Dark mode luxury instructor */
[data-theme="dark"] .cm-inst-card {
    background: linear-gradient(145deg, #0d1e36, #132d50);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cm-inst-card:hover {
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.12), 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cm-inst-card h4 {
    color: #fff;
}

/* ==========================================================================
   PREMIUM ANIMATIONS
   ========================================================================== */

/* Staggered children animations */
[data-anim].is-visible .cm-bento__card,
[data-anim].is-visible .cm-inst-card,
[data-anim].is-visible .cm-magazine__card,
[data-anim].is-visible .ia-course-card,
[data-anim].is-visible .cm-stats__item {
    animation: premiumFadeUp 0.6s ease forwards;
    opacity: 0;
}

[data-anim].is-visible *:nth-child(1) {
    animation-delay: 0s;
}

[data-anim].is-visible *:nth-child(2) {
    animation-delay: 0.1s;
}

[data-anim].is-visible *:nth-child(3) {
    animation-delay: 0.2s;
}

[data-anim].is-visible *:nth-child(4) {
    animation-delay: 0.3s;
}

[data-anim].is-visible *:nth-child(5) {
    animation-delay: 0.4s;
}

[data-anim].is-visible *:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes premiumFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section heading entrance */
.cm-section__head {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-visible .cm-section__head,
[data-anim].is-visible .cm-section__head {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax floating elements */
@keyframes shimmerGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0);
    }

    50% {
        box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
    }
}

.cm-stats__item {
    transition: transform 0.3s ease;
}

.cm-stats__item:hover {
    transform: scale(1.05);
}

.cm-stats__num {
    transition: transform 0.3s ease;
}

.cm-stats__item:hover .cm-stats__num {
    transform: scale(1.1);
}

/* Magazine card premium hover */
.cm-magazine__card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cm-magazine__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CTA shimmer effect */
.cm-cta {
    position: relative;
    overflow: hidden;
}

.cm-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    animation: ctaShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShimmer {

    0%,
    100% {
        transform: translateX(-30%) translateY(-30%) scale(1);
    }

    50% {
        transform: translateX(30%) translateY(30%) scale(1.2);
    }
}

/* Category bento cards enhanced */
.cm-bento__card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cm-bento__card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Button pulse on CTA */
.cm-cta .cm-btn {
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
    }
}

/* Scroll indicator on hero */
.cm-hero__scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.cm-hero__scroll-hint span {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    position: relative;
}

.cm-hero__scroll-hint span::after {
    content: '';
    width: 3px;
    height: 8px;
    background: var(--ia-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@keyframes scrollDot {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive instructor */
@media (max-width: 640px) {
    .cm-inst-card {
        width: 240px;
    }

    .cm-inst-card__img img {
        height: 260px;
    }
}

/* Blog magazine responsive */
@media (max-width: 640px) {
    .cm-magazine {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .cm-magazine__card--featured {
        grid-row: span 1 !important;
    }
}

/* ==========================================================================
   DARK MODE BUTTON CONTRAST FIXES
   ========================================================================== */

/* Primary button - ensure good contrast */
[data-theme="dark"] .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    border-color: var(--ia-secondary);
    box-shadow: 0 4px 15px rgba(229, 193, 88, 0.3);
}

[data-theme="dark"] .ia-btn-primary:hover {
    background-color: var(--ia-secondary-dark);
    border-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Secondary button - fix contrast */
[data-theme="dark"] .ia-btn-secondary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-btn-secondary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
    border-color: var(--ia-secondary-dark);
}

/* Outline button - ensure visibility */
[data-theme="dark"] .ia-btn-outline {
    background-color: transparent;
    color: var(--ia-secondary);
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-btn-outline:hover {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

/* Header register button - specific fix */
[data-theme="dark"] .ia-header-account .ia-btn-secondary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-header-account .ia-btn-secondary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* CTA buttons - ensure visibility */
[data-theme="dark"] .ia-cta-strip .ia-btn {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-cta-strip .ia-btn:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Hero buttons - ensure contrast */
[data-theme="dark"] .ia-hero {
    color: #ffffff;
}

[data-theme="dark"] .ia-hero h1 {
    color: #ffffff;
}

[data-theme="dark"] .ia-hero-buttons .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-hero-buttons .ia-btn-outline-white {
    border-color: var(--ia-secondary);
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-hero-buttons .ia-btn-outline-white:hover {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

/* Account page buttons - fix contrast */
[data-theme="dark"] .ia-account-page .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-account-page .ia-btn-secondary {
    background-color: transparent;
    color: var(--ia-secondary);
    border-color: var(--ia-secondary);
}

[data-theme="dark"] .ia-account-page .ia-btn-secondary:hover {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

/* Dashboard buttons */
[data-theme="dark"] .ia-dashboard-content .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-dashboard-content .ia-btn-primary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Auth buttons (login/register) */
[data-theme="dark"] .ia-auth-card .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-auth-card .ia-btn-primary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Link buttons - ensure visibility */
[data-theme="dark"] .ia-btn-link {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-btn-link:hover {
    color: var(--ia-secondary-light);
}

/* Small buttons */
[data-theme="dark"] .ia-btn-sm.ia-btn-secondary {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

/* Course card buttons */
[data-theme="dark"] .ia-course-card .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
}

[data-theme="dark"] .ia-course-card .ia-btn-primary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Quick action buttons */
[data-theme="dark"] .ia-quick-action {
    background: linear-gradient(145deg, #0d1e36, #122a4a);
    border-color: #1a3a5c;
}

[data-theme="dark"] .ia-quick-action:hover {
    border-color: var(--ia-secondary);
    background: linear-gradient(145deg, #122a4a, #1a3a5c);
}

[data-theme="dark"] .ia-quick-action span {
    color: #ffffff;
}

/* View all links */
[data-theme="dark"] .ia-view-all {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-view-all:hover {
    color: var(--ia-secondary-light);
}

/* Course card footer link */
[data-theme="dark"] .ia-course-card-link {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-course-card-link:hover {
    color: var(--ia-secondary-light);
}

/* Filter buttons */
[data-theme="dark"] .ia-filter-btn {
    background-color: #0d1e36;
    border-color: #1a3a5c;
    color: #ffffff;
}

[data-theme="dark"] .ia-filter-btn:hover,
[data-theme="dark"] .ia-filter-btn.active {
    background-color: var(--ia-secondary);
    color: #0a1628;
    border-color: var(--ia-secondary);
}

/* Tab buttons */
[data-theme="dark"] .ia-tab-btn {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .ia-tab-btn:hover {
    color: var(--ia-secondary);
}

[data-theme="dark"] .ia-tab-btn.active {
    color: var(--ia-secondary);
    border-bottom-color: var(--ia-secondary);
}

/* Footer subscribe button */
[data-theme="dark"] .ia-footer-newsletter .ia-btn {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-footer-newsletter .ia-btn:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Form submit buttons */
[data-theme="dark"] .ia-form .ia-btn-primary {
    background-color: var(--ia-secondary);
    color: #0a1628;
    font-weight: 600;
}

[data-theme="dark"] .ia-form .ia-btn-primary:hover {
    background-color: var(--ia-secondary-dark);
    color: #0a1628;
}

/* Password toggle button */
[data-theme="dark"] .ia-toggle-password {
    color: #8899aa;
}

[data-theme="dark"] .ia-toggle-password:hover {
    color: var(--ia-secondary);
}

/* ==========================================================================
   ABOUT US PAGE — CINEMATIC STYLES
   ========================================================================== */

/* ── 1. HERO BANNER ─────────────────────────────────────────────────────── */
.ab-hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.ab-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 33, 71, 0.55) 0%,
            rgba(0, 33, 71, 0.75) 60%,
            rgba(0, 33, 71, 0.9) 100%);
}

.ab-hero__content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 120px;
    text-align: center;
}

.ab-hero__content h1 {
    font-family: var(--ia-font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    margin: 12px auto 20px;
    line-height: 1.2;
    max-width: 800px;
}

.ab-hero__content>p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    line-height: 1.8;
    margin: 0 auto 36px;
}

.ab-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.ab-breadcrumbs a {
    color: var(--ia-secondary);
    text-decoration: none;
}

.ab-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Animations (same pattern as cm-hero) */
.ab-hero [data-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ab-hero [data-anim].cm-visible {
    opacity: 1;
    transform: none;
}

/* ── 2. WHO WE ARE SPLIT ────────────────────────────────────────────────── */
.ab-who {
    padding: 100px 0;
}

.ab-who__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Media side */
.ab-who__media {
    position: relative;
}

.ab-who__img-wrap {
    position: relative;
}

.ab-who__img-wrap img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 33, 71, 0.18);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.ab-who__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--ia-secondary);
    color: var(--ia-primary);
    padding: 22px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    min-width: 120px;
}

.ab-who__badge-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.ab-who__badge-txt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ab-who__accent-card {
    position: absolute;
    top: 30px;
    left: -30px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ia-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ab-who__accent-card svg {
    color: var(--ia-secondary);
    flex-shrink: 0;
}

/* Content side */
.ab-who__content h2 {
    font-family: var(--ia-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--ia-primary);
    margin: 12px 0 24px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.ab-who__content p {
    color: var(--ia-text-light);
    line-height: 1.85;
    margin-bottom: 20px;
    font-size: 1.05rem;
    transition: color 0.4s ease;
}

.ab-who__features {
    list-style: none;
    padding: 0;
    margin: 28px 0 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ab-who__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ia-text);
    transition: color 0.4s ease;
}

.ab-who__check {
    width: 24px;
    height: 24px;
    background: var(--ia-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ia-primary);
}

/* ── 4. VISION & MISSION ─────────────────────────────────────────────────── */
.ab-vm {
    padding: 100px 0;
}

.ab-vm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 60px;
}

.ab-vm__card {
    background: #fff;
    border-radius: 24px;
    padding: 50px 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 33, 71, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

.ab-vm__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.14);
}

.ab-vm__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.ab-vm__card--vision::before {
    background: var(--ia-secondary);
}

.ab-vm__card--mission::before {
    background: #3498db;
}

.ab-vm__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.ab-vm__card--vision .ab-vm__icon {
    background: rgba(170, 140, 90, 0.12);
    color: var(--ia-secondary);
}

.ab-vm__card--mission .ab-vm__icon {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
}

.ab-vm__card h3 {
    font-family: var(--ia-font-serif);
    font-size: 1.6rem;
    color: var(--ia-primary);
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

.ab-vm__card p {
    color: var(--ia-text-light);
    line-height: 1.85;
    font-size: 1.02rem;
    transition: color 0.4s ease;
}

/* ── 5. CORE VALUES ──────────────────────────────────────────────────────── */
.ab-values {
    padding: 100px 0;
}

.ab-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.ab-values__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(6px);
}

.ab-values__card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
}

.ab-values__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.ab-values__icon svg {
    width: 36px;
    height: 36px;
}

.ab-values__card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.ab-values__card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── 7. PHOTO GALLERY ────────────────────────────────────────────────────── */
.ab-gallery {
    padding: 100px 0;
}

.ab-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 60px;
}

.ab-gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.ab-gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 16 / 7;
}

.ab-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ab-gallery__item:hover img {
    transform: scale(1.06);
}

.ab-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ab-gallery__item:hover .ab-gallery__overlay {
    opacity: 1;
}

.ab-gallery__overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── DARK MODE OVERRIDES ─────────────────────────────────────────────────── */
[data-theme="dark"] .ab-who__content h2 {
    color: #fff;
}

[data-theme="dark"] .ab-who__content p,
[data-theme="dark"] .ab-who__features li {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .ab-who__accent-card {
    background: #0d1e36;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .ab-vm__card {
    background: #0d1e36;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .ab-vm__card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ab-vm__card h3 {
    color: #fff;
}

[data-theme="dark"] .ab-vm__card p {
    color: rgba(255, 255, 255, 0.68);
}

[data-theme="dark"] .ab-gallery__item {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .ab-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-gallery__item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .ab-hero {
        min-height: 440px;
        padding-bottom: 50px;
    }

    .ab-hero__content h1 {
        font-size: 2rem;
    }

    .ab-who__grid,
    .ab-vm__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ab-who__badge {
        right: 12px;
        bottom: -16px;
    }

    .ab-who__accent-card {
        display: none;
        /* hide floating card on mobile to avoid overflow */
    }

    .ab-who__features {
        grid-template-columns: 1fr;
    }

    .ab-values__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ab-values__card {
        padding: 28px 20px;
    }

    .ab-gallery__grid {
        grid-template-columns: 1fr;
    }

    .ab-gallery__item--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .ab-vm__card {
        padding: 36px 28px;
    }
}

/* RTL Mirror adjustments for About Us */

/* Hero: centered layout works in both LTR and RTL — no override needed */

/* Breadcrumbs: centered — base already has justify-content: center */

/* Hero CTA button: mirror arrow icon */
[dir="rtl"] .ab-hero__content .cm-btn svg,
[dir="rtl"] .ab-hero__content a svg {
    transform: scaleX(-1);
}

/* Who We Are: grid inherits dir="rtl" from html — no explicit direction needed */

[dir="rtl"] .ab-who__badge {
    right: auto;
    left: -20px;
}

[dir="rtl"] .ab-who__accent-card {
    left: auto;
    right: -30px;
}

[dir="rtl"] .ab-who__content {
    text-align: right;
}

[dir="rtl"] .ab-who__content h2,
[dir="rtl"] .ab-who__content p {
    text-align: right;
}

/* Features li: dir="rtl" already reverses flex row — just ensure right-aligned text */
[dir="rtl"] .ab-who__features li {
    text-align: right;
}

/* Vision & Mission: right-align card content */
[dir="rtl"] .ab-vm__card h3,
[dir="rtl"] .ab-vm__card p {
    text-align: right;
}

/* Gallery overlay: right-align */
[dir="rtl"] .ab-gallery__overlay {
    text-align: right;
}

/* Instructors section header: right-align */
[dir="rtl"] .cm-section__head {
    text-align: right;
}

[dir="rtl"] .cm-section__head h2,
[dir="rtl"] .cm-section__head .cm-label,
[dir="rtl"] .cm-section__sub {
    text-align: right;
}

/* Centered sections override — keep centered in RTL */
[dir="rtl"] .ab-vm .cm-section__head,
[dir="rtl"] .ab-gallery .cm-section__head,
[dir="rtl"] .ab-values .cm-section__head {
    text-align: center;
}

[dir="rtl"] .ab-vm .cm-section__head h2,
[dir="rtl"] .ab-vm .cm-section__head .cm-label,
[dir="rtl"] .ab-gallery .cm-section__head h2,
[dir="rtl"] .ab-gallery .cm-section__head .cm-label,
[dir="rtl"] .ab-values .cm-section__head h2,
[dir="rtl"] .ab-values .cm-section__head .cm-label {
    text-align: center;
}

/* Instructors horizontal scroll: RTL direction */
[dir="rtl"] .cm-instructors {
    direction: rtl;
}

[dir="rtl"] .cm-inst-card__body {
    text-align: right;
}

/* ==========================================================================
   ABOUT US — CRITICAL ANIMATION REVEAL + MOBILE FIXES
   ========================================================================== */

/* ── Global scroll-animation system ───────────────────────────────────────
   Without this block every [data-anim] element stays invisible forever.
   The IntersectionObserver adds .cm-visible; these rules reveal elements.   */

[data-anim="fade"],
[data-anim="fade-up"],
[data-anim="slide-right"],
[data-anim="slide-left"],
[data-anim="scale-in"] {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

[data-anim="fade-up"] {
    transform: translateY(30px);
}

[data-anim="slide-right"] {
    transform: translateX(-40px);
}

[data-anim="slide-left"] {
    transform: translateX(40px);
}

[data-anim="scale-in"] {
    transform: scale(0.92);
}

[data-anim="fade"] {
    transform: none;
}

[data-anim].cm-visible,
[data-anim].is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Safety: immediately reveal if JS fails / slow paint */
.no-js [data-anim],
[data-anim].cm-visible {
    opacity: 1;
    transform: none;
}

/* ── Overflow safety — prevent any page-level horizontal scrollbar ─────── */
.site-main.ia-front-page,
.ab-who,
.ab-vm,
.ab-values,
.ab-gallery {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── WHO WE ARE — remove negative offsets that cause overflow ──────────── */
.ab-who__grid {
    overflow: visible;
}

/* Badge must stay within image boundaries on all screens */
.ab-who__badge {
    right: -8px;
    bottom: -8px;
}

/* ── TABLET (≤ 1024px) ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ab-who {
        padding: 70px 0;
    }

    .ab-who__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* On tablet image goes ABOVE content */
    .ab-who__media {
        order: -1;
    }

    .ab-who__img-wrap img {
        aspect-ratio: 16 / 9;
        max-height: 420px;
    }

    .ab-who__badge {
        right: 8px;
        bottom: -8px;
    }

    .ab-who__features {
        grid-template-columns: 1fr 1fr;
    }

    .ab-vm {
        padding: 70px 0;
    }

    .ab-values {
        padding: 70px 0;
    }

    .ab-values__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .ab-gallery {
        padding: 70px 0;
    }

    .ab-gallery__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 40px;
    }

    .ab-gallery__item--wide {
        grid-column: span 2;
    }

    .ab-vm__grid {
        gap: 20px;
        margin-top: 40px;
    }
}

/* ── MOBILE (≤ 767px) ──────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Hero */
    .ab-hero {
        min-height: 380px;
        padding: 20px 0 48px;
        background-attachment: scroll;
        /* parallax kills performance on mobile */
    }

    .ab-hero__content {
        padding-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .ab-hero__content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin: 8px 0 14px;
    }

    .ab-hero__content>p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .ab-breadcrumbs {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }

    .cm-btn {
        padding: 11px 22px;
        font-size: 0.9rem;
    }

    /* Who We Are */
    .ab-who {
        padding: 56px 0;
    }

    .ab-who__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ab-who__media {
        order: -1;
    }

    .ab-who__img-wrap img {
        aspect-ratio: 4 / 3;
        max-height: 280px;
        width: 100%;
        object-fit: cover;
    }

    .ab-who__badge {
        right: 6px;
        bottom: -6px;
        padding: 14px 18px;
        min-width: 90px;
        border-radius: 12px;
    }

    .ab-who__badge-num {
        font-size: 1.6rem;
    }

    .ab-who__badge-txt {
        font-size: 0.65rem;
    }

    /* Hide floating accent card — causes overflow on small screens */
    .ab-who__accent-card {
        display: none;
    }

    .ab-who__content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .ab-who__features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0 28px;
    }

    .ab-who__content a.cm-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Stats */
    .cm-stats {
        padding: 40px 0;
    }

    .cm-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cm-stats__num {
        font-size: 2rem;
    }

    .cm-stats__label {
        font-size: 0.78rem;
    }

    /* Vision & Mission */
    .ab-vm {
        padding: 56px 0;
    }

    .ab-vm__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .ab-vm__card {
        padding: 30px 22px;
    }

    .ab-vm__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .ab-vm__card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .ab-vm__card p {
        font-size: 0.93rem;
    }

    /* Core Values */
    .ab-values {
        padding: 56px 0;
    }

    .ab-values__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-top: 32px;
    }

    .ab-values__card {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .ab-values__icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .ab-values__icon svg {
        width: 28px;
        height: 28px;
    }

    .ab-values__card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .ab-values__card p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    /* Gallery */
    .ab-gallery {
        padding: 56px 0;
    }

    .ab-gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .ab-gallery__item,
    .ab-gallery__item--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    /* Show overlay permanently on touch (no hover) */
    .ab-gallery__overlay {
        opacity: 1;
    }

    /* Section headings */
    .cm-section__head h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    /* Instructors horizontal scroll — shorter on mobile */
    .cm-instructors {
        gap: 14px;
        padding-bottom: 16px;
    }

    .cm-inst-card {
        min-width: 180px;
        max-width: 200px;
    }
}

/* ── Extra small (≤ 380px) ─────────────────────────────────────────────── */
@media (max-width: 380px) {
    .ab-values__grid {
        grid-template-columns: 1fr;
    }

    .ab-who__features {
        gap: 8px;
    }
}

/* ── RTL mobile badge override ─────────────────────────────────────────── */
@media (max-width: 767px) {
    [dir="rtl"] .ab-who__badge {
        left: 6px;
        bottom: -6px;
    }
}

/* ==========================================================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   WP admin bar: position fixed, top 0, z-index 99999.
   WP injects inline: html { margin-top: 32px !important }
   and @media ≤782px: html { margin-top: 46px !important }
   
   Problem 1: margin-top on html creates a visible gap above the admin bar
   Fix: convert margin-top to padding-top so background fills the gap
   
   Problem 2: sticky/fixed header overlaps admin bar
   Fix: offset header top by admin bar height
   ========================================================================== */

/* Convert WP's html margin-top to padding-top to eliminate the gap */
html.wp-toolbar {
    padding-top: 32px !important;
    margin-top: 0 !important;
}

@media screen and (max-width: 782px) {
    html.wp-toolbar {
        padding-top: 46px !important;
        margin-top: 0 !important;
    }
}

/* Desktop: offset sticky header by admin bar height (32px) */
.admin-bar .ia-header.sticky {
    top: 32px;
}

/* Mobile ≤782px: admin bar is 46px */
@media screen and (max-width: 782px) {
    .admin-bar .ia-header.sticky {
        top: 46px;
    }
}

/* ≤600px: WP admin bar becomes position:absolute (scrolls away) */
@media screen and (max-width: 600px) {
    .admin-bar .ia-header.sticky {
        top: 0;
    }
}