/* ========== متغيرات  ========== */
:root {
    --bg: #0a1410;
    --bg-2: #0d1a15;
    --card: #0f1f1a;
    --card-2: #122821;
    --border: rgba(34,197,94,.15);
    --text: #e6f4ee;
    --muted: #8aa39a;
    --accent: #22c55e;
    --accent-2: #16a34a;
    --accent-glow: 0 0 40px rgba(34,197,94,.35);
    --radius: 14px;
}

/* ========== مود ========== */
[data-theme="light"] {
    --bg: #f5faf7;
    --bg-2: #ffffff;
    --card: #ffffff;
    --card-2: #f0f7f3;
    --border: rgba(22,163,74,.18);
    --text: #0a1f15;
    --muted: #5a7568;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1, h2, h3, h4, h5 {
    font-weight: 800;
    line-height: 1.2;
}

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

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

.small {
    font-size: 13px;
}

.lead {
    font-size: 17px;
    max-width: 720px;
    margin: 14px auto 0;
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* ========== نافيجشن ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,20,16,.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav {
    background: rgba(255,255,255,.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    color: #0a1410;
    font-size: 20px;
    box-shadow: var(--accent-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text small {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 4px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 6px 0;
    transition: .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

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

.lang-toggle,
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--accent);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

/* ==========  زراير========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: .25s;
    white-space: nowrap;
}

.btn.lg {
    padding: 15px 28px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #06120c;
    box-shadow: 0 8px 24px rgba(34,197,94,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34,197,94,.45);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== هيرو ========== */
.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,197,94,.18), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(40px,5.5vw,72px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-text>p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.students {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -10px;
    object-fit: cover;
}

.avatars img:first-child {
    margin-left: 0;
}

.students p {
    font-size: 13px;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    aspect-ratio: 1/1;
    max-width: 620px;
    justify-self: end;
    width: 100%;
}

.hero-visual>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.float-card {
    position: absolute;
    background: rgba(15,31,26,.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
    animation: float 4s ease-in-out infinite;
}

[data-theme="light"] .float-card {
    background: rgba(245,250,247,.9);
    color: #0a1410;
    border-color: rgba(34,197,94,.3);
}

.float-card i {
    color: var(--accent);
    font-size: 20px;
}

.f1 {
    top: 8%;
    left: 8%;
}

.f2 {
    top: 38%;
    left: -2%;
    animation-delay: .5s;
}

.f3 {
    bottom: 8%;
    left: 18%;
    animation-delay: 1s;
}

.f4 {
    top: 8%;
    right: 8%;
    animation-delay: 1.5s;
}

.f5 {
    top: 38%;
    right: -2%;
    animation-delay: 2s;
}

.f6 {
    bottom: 8%;
    right: 18%;
    animation-delay: 2.5s;
}

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-2);
}

.section-head {
    margin-bottom: 48px;
}

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

.section-head h2 {
    font-size: clamp(28px,3.5vw,42px);
    margin-top: 10px;
    margin-bottom: 12px;
}

/* ========== ABOUT ========== */
.about-head {
    text-align: center;
    margin-bottom: 50px;
}

.about-head h2 {
    font-size: clamp(30px,4vw,46px);
    margin: 10px 0 16px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    transition: .3s;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(34,197,94,.12);
}

.about-card.highlight {
    background: linear-gradient(135deg,rgba(34,197,94,.12),rgba(22,163,74,.04));
    border-color: var(--accent);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg,var(--accent),var(--accent-2));
    color: #06120c;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--muted);
    font-size: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.stat i {
    font-size: 32px;
    color: var(--accent);
}

.stat h3 {
    font-size: 28px;
}

.stat p {
    font-size: 13px;
    color: var(--muted);
}

/* ========== كورسات  ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 22px;
}

.course-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(34,197,94,.15);
}

.course-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg,#0d2018,#1a3a2a);
    display: grid;
    place-items: center;
    font-size: 54px;
    color: var(--accent);
    position: relative;
}

.course-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,rgba(34,197,94,.22),transparent 70%);
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.course-body h4 {
    font-size: 18px;
}

.course-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
}

.course-meta i {
    color: var(--accent);
    margin-right: 4px;
}

.course-body .btn {
    margin-top: auto;
}

/* ==========  =======حبره=== */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 22px;
}

.trainer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    transition: .3s;
}

.trainer-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.trainer-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
    padding: 3px;
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.trainer-card h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.trainer-card .role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
}

.trainer-card p {
    margin-bottom: 16px;
    min-height: 80px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials.center {
    justify-content: center;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text);
    transition: .2s;
}

.socials a:hover {
    background: var(--accent);
    color: #06120c;
    border-color: var(--accent);
}

/* ========== OFFERS ========== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 22px;
}

.offer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(34,197,94,.15);
}

.offer-img {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.offer-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent,rgba(10,20,16,.55));
}

.discount {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #06120c;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1;
}

.offer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.prices .old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 14px;
}

.prices .new {
    color: var(--accent);
    font-weight: 800;
    font-size: 22px;
}

.offer-body .btn {
    margin-top: auto;
}

/* ========== TABS & GALLERY ========== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.tab {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.tab:hover {
    border-color: var(--accent);
}

.tab.active {
    background: var(--accent);
    color: #06120c;
    border-color: var(--accent);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 18px;
}

.g-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    display: block;
}

.g-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.g-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.g-item figcaption {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.g-item figcaption i {
    color: var(--accent);
}

.g-video {
    aspect-ratio: 16/9;
    background: #000;
}

.g-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 30px;
}

.lightbox.open {
    display: flex;
}

.lb-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #06120c;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* ========== TESTIMONIALS ========== */
.testi-slider {
    max-width: 780px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testi-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testi-slide {
    flex: 0 0 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    box-sizing: border-box;
}

.testi-slide .stars {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 14px;
}

.testi-slide p {
    font-size: 16px;
    color: var(--text);
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.7;
}

.testi-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testi-foot img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.testi-foot strong {
    display: block;
    font-size: 15px;
    text-align: left;
}

.testi-foot small {
    color: var(--muted);
    font-size: 13px;
}

.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.testi-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: .2s;
}

.testi-controls button:hover {
    background: var(--accent);
    color: #06120c;
    border-color: var(--accent);
}

.testi-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: .2s;
}

.dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 8px;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: .2s;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
}

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

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-card i {
    font-size: 20px;
    color: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(34,197,94,.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.info-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.map-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    height: 200px;
}

.map-link iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(.2);
}

.map-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: #06120c;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h5 {
    font-size: 15px;
    margin-bottom: 18px;
    color: var(--text);
}

.footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
    transition: .2s;
}

.footer .socials a {
    margin-bottom: 0;
    display: grid;
}

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

.footer .logo {
    margin-bottom: 16px;
}

.footer .muted {
    font-size: 13px;
    margin-bottom: 18px;
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #06120c;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 40;
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ========== COURSE DETAIL ========== */
.course-hero {
    padding: 60px 0;
    background: radial-gradient(ellipse at top,rgba(34,197,94,.15),transparent 60%);
    border-bottom: 1px solid var(--border);
}

.course-hero-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.back-link:hover {
    color: var(--accent);
}

.course-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg,var(--accent),var(--accent-2));
    color: #06120c;
    display: grid;
    place-items: center;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: var(--accent-glow);
}

.course-hero h1 {
    font-size: clamp(32px,5vw,52px);
    margin: 10px 0 16px;
}

.course-hero .lead {
    margin-bottom: 28px;
}

.cd-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.cd-grid h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.cd-grid h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list i {
    color: var(--accent);
    margin-right: 10px;
}

.cd-side {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.cd-side h4 {
    font-size: 18px;
    margin-bottom: 18px;
}

.cd-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cd-row i {
    font-size: 18px;
    color: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(34,197,94,.12);
    display: grid;
    place-items: center;
}

.cd-row small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.cd-row strong {
    font-size: 14px;
}

.cd-side .btn {
    margin-top: 18px;
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links a.active::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-cta .btn i,
[dir="rtl"] .btn i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .float-card {
    direction: ltr;
}

[dir="rtl"] .stats .stat {
    flex-direction: row-reverse;
}

[dir="rtl"] .testi-foot strong,
[dir="rtl"] .testi-foot small {
    text-align: right;
}

[dir="rtl"] .info-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer a i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .cd-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .check-list i {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .back-link i {
    margin-left: 8px;
    margin-right: 0;
    transform: rotate(180deg);
}

[dir="rtl"] .nav-actions .btn i {
    margin-right: 8px;
    margin-left: 0;
}

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

.hero-text,
.hero-visual,
.section-head,
.about-card,
.course-card,
.trainer-card,
.offer-card,
.g-item,
.testi-slide,
.contact-form,
.contact-info .info-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-visual {
    animation-delay: 0.1s;
}

.section-head {
    animation-delay: 0.05s;
}

.about-card:nth-child(1) {
    animation-delay: 0.05s;
}

.about-card:nth-child(2) {
    animation-delay: 0.1s;
}

.about-card:nth-child(3) {
    animation-delay: 0.15s;
}

.course-card:nth-child(1) {
    animation-delay: 0s;
}

.course-card:nth-child(2) {
    animation-delay: 0.05s;
}

.course-card:nth-child(3) {
    animation-delay: 0.1s;
}

.course-card:nth-child(4) {
    animation-delay: 0.15s;
}

.course-card:nth-child(5) {
    animation-delay: 0.2s;
}

.course-card:nth-child(6) {
    animation-delay: 0.25s;
}

.course-card:nth-child(7) {
    animation-delay: 0.3s;
}

.trainer-card:nth-child(1) {
    animation-delay: 0s;
}

.trainer-card:nth-child(2) {
    animation-delay: 0.05s;
}

.trainer-card:nth-child(3) {
    animation-delay: 0.1s;
}

.trainer-card:nth-child(4) {
    animation-delay: 0.15s;
}

.trainer-card:nth-child(5) {
    animation-delay: 0.2s;
}

.trainer-card:nth-child(6) {
    animation-delay: 0.25s;
}

.trainer-card:nth-child(7) {
    animation-delay: 0.3s;
}

.trainer-card:nth-child(8) {
    animation-delay: 0.35s;
}

.trainer-card:nth-child(9) {
    animation-delay: 0.4s;
}

.trainer-card:nth-child(10) {
    animation-delay: 0.45s;
}

.offer-card:nth-child(1) {
    animation-delay: 0s;
}

.offer-card:nth-child(2) {
    animation-delay: 0.05s;
}

.offer-card:nth-child(3) {
    animation-delay: 0.1s;
}

.offer-card:nth-child(4) {
    animation-delay: 0.15s;
}

.offer-card:nth-child(5) {
    animation-delay: 0.2s;
}

.offer-card:nth-child(6) {
    animation-delay: 0.25s;
}

.offer-card:nth-child(7) {
    animation-delay: 0.3s;
}

.g-item {
    animation-delay: 0.05s;
}

.testi-slide {
    animation-delay: 0.1s;
}

.contact-form {
    animation-delay: 0.1s;
}

.contact-info .info-card:nth-child(1) {
    animation-delay: 0.05s;
}

.contact-info .info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-info .info-card:nth-child(3) {
    animation-delay: 0.15s;
}

/* ========== RESPONSIVE ========== */
@media (max-width:980px) {
    .nav-links,
    .nav-actions .btn {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-2);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 14px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2,1fr);
    }
    .contact-grid,
    .cd-grid {
        grid-template-columns: 1fr;
    }
    .cd-side {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .stats,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 40px;
    }
}

/* RTL fixes */
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .about-grid,
html[dir="rtl"] .contact-grid {
    direction: rtl;
}

html[dir="rtl"] .testi-slider {
    direction: ltr;
}

html[dir="rtl"] .testi-slide {
    direction: rtl;
    text-align: center;
}
