/* ============================================
   SHIMT - Smart Higher Institute of Management and Technologies
   Charte graphique : Or/Jaune, Noir, Blanc, Gris
   ============================================ */

:root {
    --gold: #F5C518;
    --gold-dark: #D4A913;
    --gold-light: #FFF3CC;
    --black: #1A1A1A;
    --black-light: #2D2D2D;
    --white: #FFFFFF;
    --grey: #8C8C8C;
    --grey-light: #F5F5F5;
    --grey-dark: #555555;
    --bg-light: #FAFAFA;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(245, 197, 24, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-grey { background: var(--bg-light); }
.section-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--black); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 15px; }
.section-header .section-line {
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}
.section-header p { color: var(--grey); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-dark .section-header p { color: #aaa; }

/* ---- Preloader ---- */
#preloader {
    position: fixed; inset: 0;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader-logo { width: 100px; animation: pulse 1.5s ease-in-out infinite; }
.loader-bar { width: 200px; height: 4px; background: var(--grey-light); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.loader-progress { width: 0; height: 100%; background: var(--gold); border-radius: 2px; animation: load 1.5s ease-in-out forwards; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes load { to { width: 100%; } }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--black);
    color: var(--white);
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--gold); font-size: 0.75rem; }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a { color: var(--white); font-size: 0.85rem; }
.top-bar-right a:hover { color: var(--gold); }

/* ---- Navbar ---- */
.navbar {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 60px; transition: var(--transition); }
.navbar.scrolled .nav-logo img { height: 45px; }
.navbar.scrolled { padding: 5px 0; }

.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    border-radius: var(--radius-sm);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute;
    bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover, .nav-link.active { color: var(--gold-dark); }

.btn-nav {
    background: var(--gold) !important;
    color: var(--black) !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--gold-dark) !important; transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown .nav-link i { font-size: 0.65rem; margin-left: 4px; transition: var(--transition); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-menu li a {
    display: block; padding: 10px 20px;
    font-size: 0.88rem; color: var(--black);
}
.dropdown-menu li a:hover { background: var(--gold-light); color: var(--gold-dark); padding-left: 25px; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--black); transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 50%, #3a3a3a 100%);
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(245,197,24,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245,197,24,0.08) 0%, transparent 50%);
}
.hero-particles {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite;
}
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    50% { transform: translateY(-400px) translateX(100px); }
}

.hero .container { position: relative; z-index: 2; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text { color: var(--white); }
.hero-badge {
    display: inline-block;
    background: rgba(245,197,24,0.15);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(245,197,24,0.3);
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text h1 span { color: var(--gold); }
.hero-text p { font-size: 1.1rem; color: #ccc; margin-bottom: 35px; max-width: 500px; line-height: 1.8; }

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); transform: translateY(-3px); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-logo-container {
    position: relative;
    width: 350px; height: 350px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-ring {
    position: absolute; inset: 0;
    border: 2px solid rgba(245,197,24,0.2);
    border-radius: 50%;
    animation: spin-slow 20s linear infinite;
}
.hero-logo-ring::before {
    content: ''; position: absolute;
    top: -5px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
}
.hero-logo-ring-2 {
    position: absolute; inset: 20px;
    border: 1px solid rgba(245,197,24,0.1);
    border-radius: 50%;
    animation: spin-slow 15s linear infinite reverse;
}
.hero-logo-img {
    width: 200px;
    filter: drop-shadow(0 0 30px rgba(245,197,24,0.3));
    animation: float 4s ease-in-out infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.hero-stats {
    display: flex; gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat h3 { color: var(--gold); font-size: 2rem; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.hero-stat p { color: #999; font-size: 0.85rem; }

/* ---- Feature Cards ---- */
.features { margin-top: -60px; position: relative; z-index: 5; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.feature-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-bottom-color: var(--gold); }
.feature-icon {
    width: 65px; height: 65px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem; color: var(--gold-dark);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--gold); color: var(--white); transform: scale(1.1); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { color: var(--grey); font-size: 0.9rem; }

/* ---- About Preview ---- */
.about-preview { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-image-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--gold);
    color: var(--black);
    padding: 20px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-gold);
}
.about-image-badge h3 { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; }
.about-image-badge p { font-size: 0.85rem; font-weight: 600; }

.about-content h2 { margin-bottom: 20px; }
.about-content h2 span { color: var(--gold-dark); }
.about-content > p { color: var(--grey-dark); margin-bottom: 25px; }

.smart-values { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.smart-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.smart-item:hover { background: var(--gold-light); }
.smart-letter {
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.smart-item span { font-size: 0.88rem; font-weight: 500; }

/* ---- Programs Section ---- */
.programs-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--grey-light);
    border-radius: 50px;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--grey);
}
.tab-btn:hover, .tab-btn.active { border-color: var(--gold); background: var(--gold); color: var(--black); }

.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.program-card::before {
    content: ''; position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: var(--gold-light);
    border-radius: 0 0 0 80px;
    transition: var(--transition);
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-card:hover::before { width: 100px; height: 100px; background: rgba(245,197,24,0.15); }
.program-card .program-icon { position: relative; z-index: 1; font-size: 1.8rem; color: var(--gold-dark); margin-bottom: 15px; }
.program-card h3 { font-size: 1.05rem; margin-bottom: 8px; position: relative; z-index: 1; }
.program-card p { color: var(--grey); font-size: 0.85rem; position: relative; z-index: 1; }
.program-card .program-level {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    position: relative; z-index: 1;
}

/* ---- Why SHIMT ---- */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.reason-card {
    display: flex; gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.reason-card:hover { transform: translateX(10px); box-shadow: var(--shadow-lg); }
.reason-number {
    width: 50px; height: 50px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    flex-shrink: 0;
}
.reason-card h3 { font-size: 1rem; margin-bottom: 8px; }
.reason-card p { color: var(--grey); font-size: 0.88rem; }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(245,197,24,0.1) 0%, transparent 60%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 15px; position: relative; }
.cta-banner p { color: #aaa; margin-bottom: 30px; position: relative; font-size: 1.05rem; }
.cta-banner .btn { position: relative; }

/* ---- Services Cards ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card-header {
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}
.service-card-header::after {
    content: ''; position: absolute;
    bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 15px solid var(--black-light);
}
.service-card-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; }
.service-card-body { padding: 30px; }
.service-card-body p { color: var(--grey-dark); font-size: 0.9rem; margin-bottom: 20px; }
.service-card-body ul { margin-bottom: 20px; }
.service-card-body li { padding: 6px 0; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px; }
.service-card-body li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); font-size: 0.8rem; margin-top: 4px; }

/* ---- Contact Section ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
    display: flex; align-items: center; gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateX(5px); border-left: 3px solid var(--gold); }
.contact-info-icon {
    width: 55px; height: 55px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--gold-dark);
    flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--grey); font-size: 0.88rem; }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--grey-light);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
}
.page-hero::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: ellipse(70% 100% at 50% 100%);
}
.page-hero h1 { margin-bottom: 15px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: #aaa; font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 20px; font-size: 0.88rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: #666; }

/* ---- Counter Section ---- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-item h3 { font-size: 2.5rem; font-family: 'Montserrat', sans-serif; font-weight: 800; margin-bottom: 5px; }
.section-gold .counter-item h3 { color: var(--black); }
.counter-item p { font-weight: 500; font-size: 0.9rem; }

/* ---- Accordion ---- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: var(--white);
    border: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.accordion-header:hover { background: var(--gold-light); }
.accordion-header.active { background: var(--gold); color: var(--black); }
.accordion-header i { transition: var(--transition); }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: var(--white); }
.accordion-body-inner { padding: 20px 24px; color: var(--grey-dark); font-size: 0.9rem; line-height: 1.8; }

/* ---- Inscription Form ---- */
.inscription-form { max-width: 800px; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}
.footer-wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.footer-wave svg { width: 100%; height: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 80px; margin-bottom: 15px; }
.footer-desc { color: #aaa; font-size: 0.88rem; margin-bottom: 10px; }
.footer-slogan { color: var(--gold); font-size: 0.85rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--black); transform: translateY(-3px); }

.footer-col h4 { color: var(--gold); margin-bottom: 20px; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact p { color: #aaa; font-size: 0.85rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: var(--gold); margin-top: 3px; }

.newsletter-form { margin-top: 20px; }
.newsletter-form h5 { color: var(--white); margin-bottom: 10px; font-size: 0.9rem; }
.newsletter-input { display: flex; }
.newsletter-input input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}
.newsletter-input button {
    padding: 10px 18px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-input button:hover { background: var(--gold-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
}
.footer-bottom p { color: #666; font-size: 0.82rem; margin-bottom: 5px; }

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ---- Alert Messages ---- */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 35px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-container { width: 250px; height: 250px; }
    .hero-logo-img { width: 150px; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 500px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .counters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; z-index: 1000; }
    .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--grey-light); }
    .btn-nav { text-align: center; margin-top: 15px; }
    .has-dropdown .dropdown-menu {
        position: static; box-shadow: none;
        opacity: 1; visibility: visible;
        transform: none; display: none;
        padding-left: 15px;
    }
    .has-dropdown.open .dropdown-menu { display: block; }

    .hero { min-height: 80vh; }
    .hero-stats { gap: 20px; }
    .hero-stat h3 { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .smart-values { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .programs-tabs { gap: 5px; }
    .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ---- Timeline (About page) ---- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 3px; height: 100%;
    background: var(--gold-light);
}
.timeline-item { display: flex; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 18px; height: 18px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    z-index: 2;
}
.timeline-content {
    width: 45%;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.timeline-content h3 { color: var(--gold-dark); font-size: 1rem; margin-bottom: 8px; }
.timeline-content p { color: var(--grey); font-size: 0.88rem; }

/* ---- Map ---- */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---- Formation Detail List ---- */
.formation-list { columns: 2; gap: 15px; }
.formation-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 0.9rem;
    break-inside: avoid;
}
.formation-list li::before {
    content: '\f19d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* ---- Loading spinner ---- */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
