/* ===================================
   EDUREXA - Main Stylesheet
   Full RTL/LTR Support + Mobile First
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2440;
    --primary-light: #2a5298;
    --accent: #e8443a;
    --accent-hover: #d63a30;
    --gold: #f0a500;
    --gold-light: #ffc947;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-gray: #f1f3f8;
    --border: #e2e6ef;
    --green: #10b981;
    --blue-soft: #3b82f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* RTL Arabic Font */
html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] button {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.3;
    font-weight: 700;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background: var(--primary-dark);
    color: #c5d0e0;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: none;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.top-bar-left i {
    color: var(--gold);
    font-size: 11px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #8a9ab0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all var(--transition);
    font-family: inherit;
}

html[dir="rtl"] .lang-btn {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.lang-btn.active {
    color: var(--gold);
    background: rgba(240, 165, 0, 0.12);
}

.lang-divider {
    color: #4a5568;
    font-size: 12px;
}

.top-bar-right .social-icons {
    display: none;
    align-items: center;
    gap: 4px;
}

.top-bar-right .social-icons a {
    color: #c5d0e0;
    padding: 6px;
    transition: color var(--transition);
    font-size: 12px;
}

.top-bar-right .social-icons a:hover {
    color: var(--gold);
}

.top-bar-right .btn-apply-top {
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--transition);
    white-space: nowrap;
}

.top-bar-right .btn-apply-top:hover {
    background: var(--accent-hover);
}

@media (min-width: 768px) {
    .top-bar .container {
        justify-content: space-between;
    }
    
    .top-bar-right .social-icons {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .top-bar-left {
        display: flex;
    }
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

@media (min-width: 768px) {
    .header .container {
        height: 72px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        border-radius: 10px;
    }
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 24px;
    }
}

.logo-text span {
    color: var(--accent);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 1080px) {
    .nav-desktop {
        display: block;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 24px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary);
}

.nav-menu > li > a i {
    font-size: 9px;
    transition: transform var(--transition);
    margin-top: 1px;
}

.nav-menu > li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* MEGA MENU */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    min-width: 580px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .mega-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(-8px);
}

.mega-menu.mega-wide {
    min-width: 720px;
}

.nav-menu > li.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

html[dir="rtl"] .nav-menu > li.has-dropdown:hover .mega-menu {
    transform: translateX(50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mega-menu-item:hover {
    background: var(--bg-light);
}

.mega-menu-item .mm-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.mega-menu-item:hover .mm-icon {
    background: var(--primary);
    color: #fff;
}

.mega-menu-item h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.mega-menu-item p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Simple Dropdown */
.dropdown-simple {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .dropdown-simple {
    left: auto;
    right: 0;
}

.nav-menu > li.has-dropdown:hover .dropdown-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-simple a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-medium);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.dropdown-simple a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Header CTA */
.header-cta {
    display: none;
    align-items: center;
    gap: 10px;
}

@media (min-width: 1080px) {
    .header-cta {
        display: flex;
    }
}

.btn-outline-header {
    padding: 9px 18px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}

.btn-outline-header:hover {
    background: var(--primary);
    color: #fff;
}

.btn-solid-header {
    padding: 9px 18px;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition);
}

.btn-solid-header:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: var(--primary-dark);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-light);
}

@media (min-width: 1080px) {
    .mobile-toggle {
        display: none;
    }
}

/* ===================================
   MOBILE NAV
   =================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    height: 100dvh;
    background: var(--bg-white);
    z-index: 2001;
    transition: right 0.35s ease, left 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

html[dir="rtl"] .mobile-nav {
    right: auto;
    left: -100%;
}

.mobile-nav.active {
    right: 0;
}

html[dir="rtl"] .mobile-nav.active {
    right: auto;
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    color: var(--text-dark);
    transition: all var(--transition);
}

.mobile-nav-close:hover {
    background: var(--bg-gray);
}

.mobile-lang-toggle {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--bg-gray);
    flex-shrink: 0;
}

.mobile-lang-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

html[dir="rtl"] .mobile-lang-btn {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

.mobile-lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mobile-nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-nav-menu ul {
    list-style: none;
}

.mobile-nav-menu ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-gray);
    transition: all var(--transition);
}

.mobile-nav-menu ul li a:hover,
.mobile-nav-menu ul li a:active {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-cta {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-cta a {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.mobile-cta-outline {
    background: var(--bg-gray);
    color: var(--primary);
}

.mobile-cta-outline:hover,
.mobile-cta-outline:active {
    background: var(--primary);
    color: #fff;
}

.mobile-cta-solid {
    background: var(--accent);
    color: #fff;
}

.mobile-cta-solid:hover,
.mobile-cta-solid:active {
    background: var(--accent-hover);
}

/* ===================================
   HERO BANNER
   =================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 40px 0 50px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 0 70px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 0 90px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: #fff;
}

.hero-shapes .s1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.hero-shapes .s2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.hero-shapes .s3 { width: 80px; height: 80px; top: 40%; left: 5%; display: none; }
.hero-shapes .s4 { width: 60px; height: 60px; top: 20%; right: 15%; display: none; }

@media (min-width: 768px) {
    .hero-shapes .s1 { width: 400px; height: 400px; }
    .hero-shapes .s2 { width: 250px; height: 250px; }
    .hero-shapes .s3, .hero-shapes .s4 { display: block; }
}

html[dir="rtl"] .hero-shapes .s1 { right: auto; left: -100px; }
html[dir="rtl"] .hero-shapes .s2 { left: auto; right: -60px; }
html[dir="rtl"] .hero-shapes .s3 { left: auto; right: 5%; }
html[dir="rtl"] .hero-shapes .s4 { right: auto; left: 15%; }

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
    
    html[dir="rtl"] .hero-text {
        text-align: right;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 50px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-badge {
        font-size: 13px;
        padding: 6px 16px;
    }
}

.hero-badge i {
    font-size: 10px;
}

.hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
}

@media (min-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }
}

.hero h1 .highlight,
.hero h1 span {
    color: var(--gold);
}

.hero-text > p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
    max-width: 520px;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-text > p {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-text > p {
        margin-left: 0;
        margin-right: 0;
    }
    
    html[dir="rtl"] .hero-text > p {
        margin-right: 0;
    }
}

@media (max-width: 1023px) {
    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

@media (min-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .hero-stats {
        display: flex;
        gap: 32px;
        justify-content: flex-start;
    }
    
    html[dir="rtl"] .hero-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 1023px) {
    .hero-stats {
        justify-content: center;
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
}

@media (min-width: 768px) {
    .hero-stat .number {
        font-size: 28px;
    }
}

.hero-stat .label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .hero-stat .label {
        font-size: 12px;
    }
}

/* SEARCH BOX IN HERO */
.hero-search-box {
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
}

@media (min-width: 768px) {
    .hero-search-box {
        padding: 32px;
    }
}

.hero-search-box h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .hero-search-box h3 {
        font-size: 18px;
    }
}

.hero-search-box h3 i {
    font-size: 14px;
}

.hero-search-box > p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-search-box > p {
        font-size: 13px;
    }
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-field {
    position: relative;
}

.search-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
}

html[dir="rtl"] .search-field i {
    left: auto;
    right: 14px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

html[dir="rtl"] .search-field input,
html[dir="rtl"] .search-field select {
    padding: 14px 42px 14px 14px;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.2);
}

.search-field input::placeholder {
    color: var(--text-light);
}

.search-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

html[dir="rtl"] .search-field select {
    background-position: left 14px center;
    padding-right: 42px;
    padding-left: 36px;
}

.search-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .search-form-row {
        flex-direction: row;
    }
    
    .search-form-row .search-field {
        flex: 1;
    }
}

.btn-search {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search:hover {
    background: var(--accent-hover);
}

.btn-search:active {
    transform: scale(0.98);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
}

.search-tags span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.search-tags a {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 20px;
    transition: all var(--transition);
}

.search-tags a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ===================================
   TRUST BAR
   =================================== */
.trust-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .trust-bar {
        padding: 22px 0;
        overflow-x: visible;
    }
}

.trust-items {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    min-width: max-content;
    padding: 0 4px;
}

@media (min-width: 768px) {
    .trust-items {
        justify-content: center;
        gap: 40px;
        min-width: auto;
    }
}

@media (min-width: 1024px) {
    .trust-items {
        gap: 48px;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .trust-item {
        font-size: 13px;
    }
}

.trust-item i {
    font-size: 16px;
    color: var(--primary);
}

@media (min-width: 768px) {
    .trust-item i {
        font-size: 18px;
    }
}

.trust-item .t-number {
    font-weight: 700;
    color: var(--text-dark);
}

/* ===================================
   SECTION COMMON
   =================================== */
.section {
    padding: 50px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 70px 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 50px;
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,58,95,0.06);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .section-label {
        font-size: 12px;
        padding: 6px 16px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 30px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 15px;
    }
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-view-all:hover {
    background: var(--primary-dark);
    gap: 12px;
}

html[dir="rtl"] .btn-view-all i {
    transform: rotate(180deg);
}

/* ===================================
   WHY EDUREXA
   =================================== */
.why-section {
    background: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .why-card {
        padding: 32px 24px;
    }
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 20px;
}

@media (min-width: 768px) {
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}

.why-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .why-card h3 {
        font-size: 16px;
    }
}

.why-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
}

/* ===================================
   SERVICES
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .service-card {
        padding: 32px 28px;
    }
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-card .s-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .service-card .s-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.service-card:hover .s-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .service-card h3 {
        font-size: 17px;
    }
}

.service-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.service-card .s-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition), color var(--transition);
}

.service-card:hover .s-link {
    gap: 10px;
    color: var(--accent);
}

html[dir="rtl"] .service-card .s-link i {
    transform: rotate(180deg);
}

/* ===================================
   UNIVERSITIES
   =================================== */
.uni-section {
    background: var(--bg-light);
}

.uni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .uni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .uni-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.uni-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.uni-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.uni-banner {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .uni-banner {
        height: 120px;
    }
}

.uni-banner .uni-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, #fff 10px, #fff 11px);
}

.uni-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 768px) {
    .uni-logo-wrap {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
}

.uni-info {
    padding: 16px;
}

@media (min-width: 768px) {
    .uni-info {
        padding: 20px;
    }
}

.uni-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .uni-info h3 {
        font-size: 15px;
    }
}

.uni-info .uni-type {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .uni-info .uni-type {
        font-size: 12px;
    }
}

.uni-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.uni-tags span {
    font-size: 10px;
    background: var(--bg-gray);
    color: var(--text-medium);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .uni-tags span {
        font-size: 11px;
        padding: 4px 10px;
    }
}

.uni-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.uni-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.uni-meta .view-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .uni-meta .view-link {
        font-size: 12px;
    }
}

html[dir="rtl"] .uni-meta .view-link i {
    transform: rotate(180deg);
}

/* ===================================
   PROGRAMS
   =================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.program-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    transition: all var(--transition);
    text-align: center;
}

@media (min-width: 768px) {
    .program-card {
        padding: 24px 20px;
    }
}

.program-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.program-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: var(--primary);
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .program-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

.program-card:hover .program-icon {
    background: var(--primary);
    color: #fff;
}

.program-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .program-card h4 {
        font-size: 14px;
    }
}

.program-card .prog-count {
    font-size: 11px;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .program-card .prog-count {
        font-size: 12px;
    }
}

/* ===================================
   LEVELS
   =================================== */
.levels-section {
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.levels-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-10l-40 40zm40 0v-10l-40-40h10z'/%3E%3C/g%3E%3C/svg%3E");
}

.levels-section .section-label {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.levels-section .section-title {
    color: #fff;
}

.levels-section .section-subtitle {
    color: rgba(255,255,255,0.6);
}

.levels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 480px) {
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .levels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.level-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .level-card {
        padding: 32px 24px;
    }
}

.level-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.level-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    .level-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

.level-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .level-card h3 {
        font-size: 18px;
    }
}

.level-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .level-card p {
        font-size: 13px;
    }
}

.level-card .level-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.level-card:hover .level-btn {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
}

html[dir="rtl"] .level-card .level-btn i {
    transform: rotate(180deg);
}

/* ===================================
   HOW IT WORKS
   =================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 480px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 768px) {
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

.step-card:nth-child(2) .step-number { background: var(--primary-light); }
.step-card:nth-child(3) .step-number { background: var(--accent); }
.step-card:nth-child(4) .step-number { background: var(--green); }

.step-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .step-card h3 {
        font-size: 16px;
    }
}

.step-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.step-connector {
    display: none;
}

@media (min-width: 1024px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 28px;
        right: -12px;
        width: 24px;
        height: 2px;
        background: var(--border);
    }

    html[dir="rtl"] .step-connector {
        right: auto;
        left: -12px;
    }

    .step-connector::after {
        content: '';
        position: absolute;
        right: -2px;
        top: -4px;
        width: 0;
        height: 0;
        border-left: 6px solid var(--border);
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
    }

    html[dir="rtl"] .step-connector::after {
        right: auto;
        left: -2px;
        border-left: none;
        border-right: 6px solid var(--border);
    }

    .step-card:last-child .step-connector {
        display: none;
    }
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 28px;
    }
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.testimonial-stars i {
    color: var(--gold);
    font-size: 12px;
}

@media (min-width: 768px) {
    .testimonial-stars i {
        font-size: 13px;
    }
}

.testimonial-card .quote {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}

@media (min-width: 768px) {
    .testimonial-card .quote {
        font-size: 14px;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

.testimonial-author h4 {
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .testimonial-author h4 {
        font-size: 14px;
    }
}

.testimonial-author p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .testimonial-author p {
        font-size: 12px;
    }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 70px 0;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -150px;
    right: -100px;
}

@media (min-width: 768px) {
    .cta-section::before {
        width: 500px;
        height: 500px;
        top: -200px;
    }
}

html[dir="rtl"] .cta-section::before {
    right: auto;
    left: -100px;
}

.cta-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 32px;
    }
}

.cta-section > .container > p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cta-section > .container > p {
        font-size: 16px;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    border: 2px solid transparent;
}

@media (min-width: 768px) {
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 14px 36px;
        font-size: 15px;
    }
}

.btn-cta-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-cta-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-cta-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ===================================
   PARTNERS
   =================================== */
.partners-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .partners-bar {
        padding: 50px 0;
    }
}

.partners-bar h4 {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .partners-bar h4 {
        font-size: 13px;
        margin-bottom: 30px;
    }
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .partners-logos {
        gap: 48px;
    }
}

.partner-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--border);
    transition: color var(--transition);
    cursor: default;
}

@media (min-width: 768px) {
    .partner-logo {
        font-size: 18px;
    }
}

.partner-logo:hover {
    color: var(--text-light);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 70px 0 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
        gap: 40px;
        padding-bottom: 50px;
    }
}

.footer-about {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .footer-about {
        grid-column: auto;
        text-align: left;
    }
    
    html[dir="rtl"] .footer-about {
        text-align: right;
    }
}

.footer-about .logo {
    justify-content: center;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .footer-about .logo {
        justify-content: flex-start;
    }
    
    html[dir="rtl"] .footer-about .logo {
        justify-content: flex-start;
    }
}

.footer-about .logo .logo-text {
    color: #fff;
}

.footer-about > p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.55);
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .footer-about > p {
        margin-left: 0;
        margin-right: 0;
    }
    
    html[dir="rtl"] .footer-about > p {
        margin-right: 0;
    }
}

.footer-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-col {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-col {
        text-align: left;
    }
    
    html[dir="rtl"] .footer-col {
        text-align: right;
    }
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 18px;
    }
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .footer-col ul li {
        margin-bottom: 10px;
    }
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    justify-content: center;
    text-align: left;
}

@media (min-width: 640px) {
    .footer-contact-item {
        justify-content: flex-start;
    }
}

html[dir="rtl"] .footer-contact-item {
    text-align: right;
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 3px;
    font-size: 13px;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .footer-contact-item span {
        font-size: 13px;
    }
}

.footer-newsletter {
    margin-top: 18px;
}

.footer-newsletter p {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
        gap: 6px;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 13px;
    outline: none;
    min-width: 0;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--gold);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        padding: 24px 0;
    }
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

@media (min-width: 768px) {
    .footer-bottom p {
        font-size: 13px;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        gap: 24px;
    }
}

.footer-bottom-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}

@media (min-width: 768px) {
    .footer-bottom-links a {
        font-size: 13px;
    }
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.7);
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ===================================
   ANIMATIONS
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .why-card,
    .service-card,
    .uni-card,
    .program-card,
    .level-card,
    .step-card,
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .why-card.animate,
    .service-card.animate,
    .uni-card.animate,
    .program-card.animate,
    .level-card.animate,
    .step-card.animate,
    .testimonial-card.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}