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

:root {
    --navy: #0b1a30;
    --navy-light: #142a47;
    --navy-dark: #060e1c;
    --navy-soft: #1a2f4d;
    --black: #000000;
    --white: #ffffff;
    --gold: #c9a961;
    --gold-light: #e0c989;
    --gold-dark: #a38640;
    --gold-glow: rgba(201, 169, 97, 0.18);
    --beige: #f7f3ec;
    --beige-dark: #ebe2cf;
    --gray: #5b6878;
    --gray-light: #f3f5f8;
    --border: rgba(11, 26, 48, 0.08);

    --shadow-sm: 0 2px 8px rgba(11, 26, 48, 0.06);
    --shadow-md: 0 10px 30px rgba(11, 26, 48, 0.10);
    --shadow-lg: 0 20px 60px rgba(11, 26, 48, 0.15);
    --shadow-gold: 0 10px 30px rgba(201, 169, 97, 0.25);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1280px;
    --header-h: 84px;

    --font-ar: "Cairo", "Tahoma", sans-serif;
    --font-en: "Inter", "Cairo", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    background: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: var(--font-en);
}

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

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

ul {
    list-style: none;
}

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

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

.gold {
    color: var(--gold);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
    letter-spacing: 0.2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: inset-inline-start 0.5s ease;
}

.btn:hover::before {
    inset-inline-start: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(201, 169, 97, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-card {
    width: 100%;
    margin-top: auto;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    font-size: 14px;
}

.btn-card:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-header {
    padding: 10px 22px;
    font-size: 13.5px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

html[dir="rtl"] .btn-arrow {
    transform: scaleX(-1);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

html[dir="rtl"] .btn:hover .btn-arrow {
    transform: scaleX(-1) translateX(4px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========================================
   HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: var(--header-h);
    background: rgba(11, 26, 48, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}

.header.scrolled {
    background: rgba(11, 26, 48, 0.98);
    box-shadow: var(--shadow-md);
    height: 72px;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.logo-img-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-en);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-en);
    letter-spacing: 0.3px;
}

.logo-tag {
    font-size: 11.5px;
    color: var(--gold);
    font-weight: 500;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(201, 169, 97, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

.lang-btn[data-lang="en"] {
    font-family: var(--font-en);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(201, 169, 97, 0.1);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 169, 97, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 97, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.6;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.25), transparent 70%);
    top: -100px;
    inset-inline-start: -100px;
    animation: floatOrb 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 47, 77, 0.6), transparent 70%);
    bottom: -100px;
    inset-inline-end: -100px;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.25);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold);
    animation: pulseDot 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.85;
    max-width: 580px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-pill:hover {
    border-color: rgba(201, 169, 97, 0.3);
    background: rgba(201, 169, 97, 0.05);
}

.hero-pill svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* Academy Card (replaces certificate preview) */
.hero-visual {
    animation: fadeIn 1s ease 0.4s both;
}

.academy-card {
    position: relative;
    background: linear-gradient(165deg, rgba(20, 42, 71, 0.85), rgba(11, 26, 48, 0.95));
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.academy-card::before {
    content: '';
    position: absolute;
    top: -2px;
    inset-inline: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.8;
}

.academy-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15), transparent 70%);
    pointer-events: none;
}

.academy-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
}

.academy-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
    flex-shrink: 0;
}

.academy-card-icon svg {
    width: 30px;
    height: 30px;
}

.academy-card-name h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-en);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.academy-card-name p {
    font-size: 12.5px;
    color: var(--gold-light);
    font-weight: 600;
}

.academy-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.academy-stat {
    text-align: center;
    flex: 1;
}

.academy-stat-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.academy-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.academy-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

.academy-card-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.academy-card-divider::before,
.academy-card-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
}

.academy-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.academy-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.academy-card-list li:hover {
    background: rgba(201, 169, 97, 0.05);
    border-color: rgba(201, 169, 97, 0.15);
    transform: translateX(0);
}

html[dir="rtl"] .academy-card-list li:hover { transform: translateX(-4px); }
html[dir="ltr"] .academy-card-list li:hover { transform: translateX(4px); }

.acl-icon {
    width: 32px;
    height: 32px;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.academy-card-list strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.academy-card-list span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.academy-card-footer {
    padding-top: 20px;
    border-top: 1px dashed rgba(201, 169, 97, 0.2);
}

.academy-card-cert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 10px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
}

.academy-card-cert svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ========================================
   STATS
======================================== */
.stats {
    background: var(--beige);
    padding: 70px 0;
    border-bottom: 1px solid var(--beige-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 169, 97, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.12), rgba(201, 169, 97, 0.04));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}

.stat-icon svg {
    width: 30px;
    height: 30px;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-en);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

/* ========================================
   SECTIONS COMMON
======================================== */
section {
    padding: 110px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-inline: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201, 169, 97, 0.1);
    color: var(--gold-dark);
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 18px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.section-divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 22px;
    border-radius: 4px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================
   ABOUT
======================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--navy-light);
    margin-bottom: 32px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-list-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.25);
}

.about-list h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.about-list p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-image-card {
    background: var(--navy);
    color: var(--white);
    padding: 28px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.about-image-card:hover::before {
    opacity: 1;
}

.about-card-2 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); }
.about-card-3 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); }
.about-card-1 { transform: translateY(20px); }
.about-card-3 { transform: translateY(20px); }

.about-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-card-2 .about-card-icon,
.about-card-3 .about-card-icon {
    background: rgba(11, 26, 48, 0.15);
}

.about-card-icon svg {
    width: 30px;
    height: 30px;
}

.about-image-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
}

.about-image-card p {
    font-size: 13px;
    opacity: 0.85;
    position: relative;
}

/* ========================================
   COURSES
======================================== */
.courses {
    background: var(--beige);
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.course-card {
    background: var(--white);
    padding: 30px 26px;
    border-radius: 18px;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: inline-end;
    transition: transform 0.4s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.25);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 18px;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
}

.course-icon svg {
    width: 28px;
    height: 28px;
}

.course-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 12px;
    align-self: flex-start;
    letter-spacing: 0.3px;
}

.course-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--navy-light);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--beige-dark);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.course-meta-item svg {
    color: var(--gold);
    width: 16px;
    height: 16px;
}

/* ========================================
   PROGRAM TABLE
======================================== */
.program {
    background: var(--white);
}

.program-table-wrap {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--beige-dark);
    overflow-x: auto;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.program-table thead {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.program-table th {
    padding: 20px 26px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14.5px;
    text-align: start;
    letter-spacing: 0.3px;
}

.program-table td {
    padding: 18px 26px;
    text-align: start;
    border-bottom: 1px solid var(--beige);
    color: var(--navy);
    font-size: 14.5px;
}

.program-table tbody tr {
    transition: var(--transition);
}

.program-table tbody tr:hover {
    background: var(--beige);
}

.program-table tbody tr:nth-child(even) {
    background: rgba(247, 243, 236, 0.4);
}

.program-table tbody tr:nth-child(even):hover {
    background: var(--beige);
}

.badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-theory {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.badge-practical {
    background: rgba(201, 169, 97, 0.18);
    color: var(--gold-dark);
}

.badge-mixed {
    background: rgba(168, 85, 247, 0.1);
    color: #6b21a8;
}

.program-total {
    background: linear-gradient(135deg, var(--navy), var(--navy-light)) !important;
    color: var(--white) !important;
    text-align: center !important;
    font-size: 17px;
    font-weight: 700;
    padding: 24px !important;
    display: table-cell;
}

.program-total svg {
    vertical-align: middle;
    color: var(--gold);
    margin-inline-end: 8px;
}

/* ========================================
   CERTIFICATES
======================================== */
.certificates {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.certificates::before {
    content: '';
    position: absolute;
    top: -100px;
    inset-inline-start: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1), transparent 70%);
    pointer-events: none;
}

.certificates .section-title { color: var(--white); }
.certificates .section-subtitle { color: rgba(255, 255, 255, 0.75); }

.certificates .section-tag {
    background: rgba(201, 169, 97, 0.12);
    color: var(--gold-light);
    border-color: rgba(201, 169, 97, 0.25);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.certificate-item {
    cursor: pointer;
    transition: var(--transition);
}

.certificate-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--beige), #fdfbf3);
    border-radius: 14px;
    overflow: hidden;
    padding: 10px;
    border: 2px solid var(--gold);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(201, 169, 97, 0.3),
        inset 0 0 0 4px var(--beige),
        inset 0 0 0 5px rgba(201, 169, 97, 0.2);
    transition: var(--transition);
}

.certificate-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition-slow);
}

.certificate-fallback {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    text-align: center;
    gap: 12px;
}

.certificate-fallback p {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.img-fallback .certificate-fallback { display: flex; }

.certificate-overlay {
    position: absolute;
    inset: 10px;
    background: rgba(11, 26, 48, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0;
    transition: var(--transition);
}

.certificate-item:hover .certificate-frame {
    transform: translateY(-8px);
    box-shadow:
        0 24px 50px rgba(201, 169, 97, 0.25),
        inset 0 0 0 1px rgba(201, 169, 97, 0.3),
        inset 0 0 0 4px var(--beige),
        inset 0 0 0 5px rgba(201, 169, 97, 0.2);
}

.certificate-item:hover .certificate-overlay { opacity: 1; }
.certificate-item:hover .certificate-frame img { transform: scale(1.04); }

.certificate-label {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

.certificates-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
}

.certificates-note svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   WHY US
======================================== */
.why-us {
    background: var(--beige);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.why-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 18px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.25);
}

.why-card:hover::after { opacity: 1; }

.why-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    transform: rotate(-6deg);
}

.why-icon svg {
    width: 30px;
    height: 30px;
}

.why-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    position: relative;
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    position: relative;
}

/* ========================================
   FAQ
======================================== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--beige);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

.faq-question {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: start;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    transition: var(--transition);
}

.faq-question:hover { color: var(--gold-dark); }

.faq-arrow {
    flex-shrink: 0;
    color: var(--gold);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 28px 22px;
    color: var(--gray);
    line-height: 1.9;
    font-size: 15px;
}

/* ========================================
   CONTACT
======================================== */
.contact {
    background: var(--beige);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    background: var(--white);
    padding: 22px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 169, 97, 0.25);
}

html[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }
html[dir="ltr"] .contact-card:hover { transform: translateX(4px); }

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card-body h4 {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15.5px;
    color: var(--navy);
    font-weight: 700;
    word-break: break-word;
}

.contact-card:hover .contact-value { color: var(--gold-dark); }

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

.map-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--gray);
    font-size: 13.5px;
    margin-bottom: 60px;
}

.map-note svg {
    color: var(--gold);
    flex-shrink: 0;
}

.contact-cta {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 50px 32px;
    border-radius: 24px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15), transparent 70%);
    pointer-events: none;
}

.contact-cta h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 16px;
    position: relative;
    max-width: 600px;
    margin-inline: auto;
}

.contact-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-en);
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.footer-col p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

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

html[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
html[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact svg {
    color: var(--gold);
    flex-shrink: 0;
}

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

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(201, 169, 97, 0.5);
}

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 28, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    inset-inline-start: 24px;
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--gold);
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    padding: 12px;
    background: var(--beige);
    border: 3px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

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

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

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

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
    .nav-list {
        gap: 0;
    }
    .nav-link {
        padding: 8px 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-buttons,
    .hero-badges {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }

    .nav {
        position: fixed;
        top: var(--header-h);
        inset-inline-end: -100%;
        width: 85%;
        max-width: 360px;
        height: calc(100vh - var(--header-h));
        background: var(--navy-dark);
        padding: 30px 20px;
        transition: inset-inline-end 0.4s ease;
        overflow-y: auto;
        border-inline-start: 1px solid rgba(201, 169, 97, 0.1);
    }

    .nav.active { inset-inline-end: 0; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 15.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }

    .menu-toggle { display: flex; }
    .btn-header { display: none; }
    .logo-tag { display: none; }
    .logo-name { font-size: 16px; }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11.5px;
    }

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

    .stat-card { padding: 22px 14px; }
    .stat-number { font-size: 30px; }

    .hero { padding: calc(var(--header-h) + 40px) 0 60px; min-height: auto; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .academy-card { padding: 24px 20px; }
    .academy-card-stats { padding: 16px 0; }
    .academy-stat-num { font-size: 24px; }

    .courses-grid,
    .why-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .program-table th,
    .program-table td {
        padding: 14px 16px;
        font-size: 13.5px;
    }

    .back-to-top {
        bottom: 16px;
        inset-inline-end: 16px;
        width: 44px;
        height: 44px;
    }

    .about-image-card { padding: 22px 14px; }
    .about-card-1, .about-card-3 { transform: translateY(0); }

    .contact-cta { padding: 38px 22px; }
    .contact-cta h3 { font-size: 22px; }

    .contact-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-cta-buttons .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 1.65rem; }
    .hero-title { font-size: 1.9rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .lightbox { padding: 16px; }
    .lightbox-close {
        top: 16px;
        inset-inline-start: 16px;
        width: 40px;
        height: 40px;
    }

    .header-container { gap: 10px; }
    .logo-img-wrap { width: 42px; height: 42px; }
}
