/* -------------------------------------------------------------------------- */
/* EXCELLOR AUTOMOBILE - TAJAWAL FONT & FONTAWESOME ICON FIX                  */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* Apply Tajawal font globally to all text containers */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, textarea, select, button, option {
    font-family: 'Tajawal', sans-serif;
}

/* EXPLICITLY PRESERVE FONTAWESOME ICON FONTS & PREVENT GLYPH TOFU BOXES */
i.fa-solid, i.fa-regular, i.fa-brands, i.fa, i.fas, i.far, i.fab,
.fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

i.fa-brands, .fa-brands, i.fab, .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

i.fa-regular, .fa-regular, i.far, .far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

i::before, i::after,
.fa-solid::before, .fa-regular::before, .fa-brands::before,
[class*="fa-"]::before {
    font-family: inherit !important;
}

:root {
    --primary-blue: #024EAC;
    --primary-blue-light: #0066FF;
    --primary-blue-dark: #003780;
    --primary-red: #E50914;
    --primary-red-hover: #C1070F;
    --secondary-blue-bg: #F0F4F8;
    
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    
    --text-dark: #0F172A;
    --text-muted: #475569;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;
    
    --border-color: #E2E8F0;
    --border-accent: #CBD5E1;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(2, 78, 172, 0.08);
    --shadow-lg: 0 12px 32px rgba(2, 78, 172, 0.12);
    --shadow-hover: 0 20px 40px rgba(2, 78, 172, 0.18);
    --shadow-3d: 0 10px 20px rgba(2, 78, 172, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-main: 'Tajawal', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* GLOBAL RESET & BASE                                                       */
/* -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

html[dir="rtl"] .icon-dir {
    transform: rotate(180deg);
}

/* -------------------------------------------------------------------------- */
/* BUTTONS & BADGES                                                          */
/* -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(2, 78, 172, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    box-shadow: 0 6px 20px rgba(2, 78, 172, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}

.btn-secondary:hover {
    background-color: var(--primary-red-hover);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background-color: #F1F5F9;
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Section Titles */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.title-underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVBAR                                                           */
/* -------------------------------------------------------------------------- */

.navbar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.top-bar {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 0.45rem 0;
    font-size: 0.85rem;
}

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

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-info a {
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-info a:hover {
    color: var(--text-white);
}

.contact-info .hours {
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #CBD5E1;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-divider {
    color: #475569;
}

/* Main Navigation */
.main-nav {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav-cta {
    display: none;
    margin-top: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION                                                              */
/* -------------------------------------------------------------------------- */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F6FF 60%, #E6F0FF 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(2, 78, 172, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(2, 78, 172, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(2, 78, 172, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--bg-white);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pill-icon-3d {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-red), #B80710);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 3px 6px rgba(229, 9, 20, 0.3);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hero-card-display {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(2, 78, 172, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}

.hero-bg-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-card-glass {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(2, 78, 172, 0.92), rgba(0, 55, 128, 0.95));
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 25px rgba(2, 78, 172, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFD166;
}

.glass-stat-item .stat-label {
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0.95;
}

.glass-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------- */
/* STATS BAR                                                                 */
/* -------------------------------------------------------------------------- */

.stats-bar-section {
    background-color: var(--bg-white);
    padding: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-icon.3d-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #0066FF 0%, #024EAC 100%);
    color: var(--text-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-3d);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-text h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
}

.stat-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* ABOUT SECTION                                                             */
/* -------------------------------------------------------------------------- */

.about-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

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

.about-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.about-image-frame:hover .about-img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: var(--bg-white);
    padding: 1.2rem 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--primary-red);
}

html[dir="rtl"] .experience-badge {
    left: auto;
    right: 2rem;
    border-left: none;
    border-right: 5px solid var(--primary-red);
}

.badge-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.badge-txt {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2rem;
    line-height: 1.8;
}

.about-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bullet-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bullet-icon.3d-bullet {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF1A1A, var(--primary-red));
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    box-shadow: 0 6px 14px rgba(229, 9, 20, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.4);
}

.bullet-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.bullet-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* POINTS FORTS (FEATURES) WITH 3D ICONS                                      */
/* -------------------------------------------------------------------------- */

.features-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

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

.feature-card {
    background-color: var(--bg-light);
    padding: 2.5rem 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(2, 78, 172, 0.3);
}

.feature-icon-wrapper.3d-card-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-3d);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.feature-icon-wrapper.3d-card-icon.red {
    background: linear-gradient(135deg, #FF3B30 0%, var(--primary-red) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.feature-icon-wrapper.3d-card-icon.blue {
    background: linear-gradient(135deg, #0066FF 0%, var(--primary-blue) 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(2, 78, 172, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* FORMATIONS CATALOG (1:1 SQUARE FULL DISPLAY ASPECT RATIO)                  */
/* -------------------------------------------------------------------------- */

.formations-section {
    padding: 6rem 0;
    background-color: var(--secondary-blue-bg);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.formation-card {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 78, 172, 0.4);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: var(--primary-red);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 900;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
}

html[dir="rtl"] .card-badge {
    right: auto;
    left: 1rem;
}

.card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.formation-card:hover .card-img {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.formation-card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.card-subtitle-ar {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.card-highlights {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-highlights li {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-highlights li i {
    color: #10B981;
    font-size: 0.85rem;
}

.card-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* UPCOMING FORMATIONS                                                       */
/* -------------------------------------------------------------------------- */

.upcoming-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.upcoming-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 3rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.upcoming-content {
    max-width: 650px;
}

.upcoming-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.upcoming-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.upcoming-content p {
    color: #94A3B8;
    margin-bottom: 1.5rem;
}

.upcoming-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.upcoming-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upcoming-item i {
    color: #F59E0B;
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

.upcoming-item h4 {
    font-size: 1rem;
    font-weight: 800;
}

.upcoming-item p {
    font-size: 0.85rem;
    color: #CBD5E1;
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* INSCRIPTION FORM SECTION                                                  */
/* -------------------------------------------------------------------------- */

.inscription-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
}

.inscription-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.light-text {
    color: var(--text-white) !important;
}

.inscription-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.7;
}

.contact-quick-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.qc-icon.3d-qc-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF1A1A, var(--primary-red));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.4);
}

.qc-label {
    display: block;
    font-size: 0.85rem;
    color: #94A3B8;
}

.qc-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-white);
}

.inscription-form-col {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

html[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    transition: border-color var(--transition-fast);
}

html[dir="rtl"] .form-control {
    padding: 0.85rem 2.8rem 0.85rem 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--bg-white);
}

.mode-badge-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--secondary-blue-bg);
    color: var(--primary-blue);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    border: 1px solid rgba(2, 78, 172, 0.2);
}

.mode-badge-box i {
    font-size: 1.2rem;
    color: var(--primary-red);
}

/* -------------------------------------------------------------------------- */
/* CONTACT SECTION                                                           */
/* -------------------------------------------------------------------------- */

.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-card {
    background-color: var(--bg-white);
    padding: 2.2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.c-icon.3d-c-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0066FF 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.2rem;
    box-shadow: var(--shadow-3d);
}

.contact-card h4 {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                    */
/* -------------------------------------------------------------------------- */

.footer {
    background-color: #0B1120;
    color: #94A3B8;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    height: 65px;
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1);
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94A3B8;
}

.footer-heading {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: var(--radius-full);
}

html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--primary-blue-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* COURSE DETAIL MODAL                                                       */
/* -------------------------------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-dialog {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

html[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 1.2rem;
}

.modal-close-btn:hover {
    background: var(--primary-red);
}

.modal-header-img {
    height: 280px;
    width: 100%;
    background-color: #0F172A;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-body {
    padding: 2.2rem;
}

.modal-body h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.modal-tags {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
}

.modal-tag-item {
    background-color: rgba(2, 78, 172, 0.1);
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.modal-curriculum-heading {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.modal-curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.modal-curriculum-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background-color: var(--bg-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-blue);
}

html[dir="rtl"] .modal-curriculum-list li {
    border-left: none;
    border-right: 4px solid var(--primary-blue);
}

.modal-curriculum-list li i {
    color: var(--primary-blue);
    margin-top: 0.2rem;
}

.modal-footer-actions {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/* FLOATING WHATSAPP BUTTON                                                  */
/* -------------------------------------------------------------------------- */

.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition-normal);
    animation: floatPulse 3s infinite;
}

html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 2rem;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

html[dir="rtl"] .wa-tooltip {
    right: auto;
    left: 70px;
}

.floating-whatsapp:hover .wa-tooltip {
    opacity: 1;
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-features-pills, .hero-buttons {
        justify-content: center;
    }
    
    .hero-card-display {
        margin-top: 2rem;
    }
    
    .about-grid, .inscription-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .formations-grid, .features-grid, .stats-grid, .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 105px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 105px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
        overflow-y: auto;
    }
    
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }
    
    html[dir="rtl"] .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .mobile-nav-cta {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .formations-grid, .features-grid, .stats-grid, .contact-cards-grid, .upcoming-items {
        grid-template-columns: 1fr;
    }

    .upcoming-box {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 2rem;
    }

    .card-footer, .modal-footer-actions {
        grid-template-columns: 1fr;
    }

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