/* ========================================
   TAIB CONSULTING - Main Stylesheet (Premium Edition)
   ======================================== */

/* Premium CSS Variables */
:root {
    /* Deep Luxury Colors */
    --color-primary: #0A192F;    /* Very deep ocean navy */
    --color-secondary: #172A45;  /* Slate navy */
    --color-accent: #D4AF37;     /* Premium Gold */
    --color-accent-hover: #b5952f;
    --color-accent-glow: rgba(212, 175, 55, 0.3);
    
    --color-white: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-bg: #fafbfc;         /* Ultra clean pearl white */
    --color-border: rgba(0, 0, 0, 0.05);
    
    /* Modern Glassmorphism & Shadows */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.08);
    --shadow-gold: 0 8px 25px var(--color-accent-glow);
    
    --radius-sm: 0.5rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --radius-xl: 2rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header (Glassmorphism)
   ======================================== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

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

/* Icon Spacing */
.nav-link i,
.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--color-accent);
}

.btn-contact {
    background: linear-gradient(135deg, var(--color-accent) 0%, #b5952f 100%);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    color: var(--color-white) !important;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--color-accent-glow);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Dropdown Menu Styles (Desktop) */
.nav-list>li {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    border: 1px solid #e2e8f0;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #f59e0b;
    padding-left: 1.8rem;
}

/* Espace Client Button */
.btn-client-area {
    background-color: #0f172a;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-client-area:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

/* ========================================
   PAGE LAYOUTS (Premium Glass Edition)
   ======================================== */

/* Page Hero (Small) */
.page-hero {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(23, 42, 69, 0.85)), url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 5rem;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

/* Fix Hero overlap with stats-bar globally */
[class$="-hero"] {
    padding-bottom: 80px !important;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-bg);
    transform: skewY(-2deg);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

/* Content Grid Layout */
.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
}

/* Sticky Sidebar */
.sidebar-nav {
    position: sticky;
    top: 120px;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

.sidebar-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-link {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover,
.toc-link.active {
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--color-primary);
    border-left-color: var(--color-accent);
    padding-left: 1.2rem;
    font-weight: 700;
}

/* Main Content Area */
.content-area section {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.03);
    scroll-margin-top: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-area section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading i {
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.1);
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Capago Cards & Grids */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.center-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.center-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.center-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.center-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(212, 175, 55, 0.2));
}

.center-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Video Promo Card */
.video-promo-card {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .video-promo-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.video-text {
    padding: 3rem;
    flex: 1;
    color: var(--color-white);
}

.video-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.video-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.video-thumbnail {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 250px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* --- Video Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}

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

.video-modal-content {
    width: 100%;
    max-width: 900px;
    background: black;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

/* ========================================
   HOME PAGE STYLES (Keep existing)
   ======================================== */
.hero-slider {
    position: relative;
    height: auto;
    min-height: 550px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot-indicator.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.section {
    padding: 3rem 0;
}

.content-section {
    padding: 3rem 0 !important;
}

.bg-light {
    background: var(--color-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

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

/* Study Cards */
.study-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.study-card {
    position: relative;
    height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-md);
}

.study-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 50%, rgba(10, 25, 47, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.study-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.study-card:hover::before {
    opacity: 0.8;
}

.campus-france {
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=800');
}

.europe {
    background-image: url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?w=800');
}

.canada {
    background-image: url('https://images.unsplash.com/photo-1517935706615-2717063c2225?w=800');
}

.study-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    color: var(--color-white);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.study-card:hover .study-content {
    transform: translateY(0);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.study-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.study-content p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-text {
    color: var(--color-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

/* Schengen Grid */
.schengen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.schengen-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.schengen-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.schengen-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.schengen-card:hover::after {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flag-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.card-info {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
}

.country-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.country-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.star-icon {
    margin-left: auto;
    color: #fbbf24;
    font-size: 1rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.view-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.schengen-card:hover .view-link {
    color: var(--color-primary);
}

.schengen-card.hidden {
    display: none;
}

#schengen-search:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* News Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-tag {
    display: inline-block;
    background: #f1f5f9;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-col p,
.footer-col address {
    color: var(--color-text-light);
    font-style: normal;
    line-height: 1.8;
}

.footer-col a {
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
}

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

.static-map {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    opacity: 0.8;
}

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

/* Login Modal Styles */
.login-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #334155;
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-login-submit {
    width: 100%;
    padding: 0.9rem;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-login-submit:hover {
    background-color: #f59e0b;
}

.login-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.login-footer a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

/* Loading Skeleton */
.loading-skeleton {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-nav {
        position: static;
        margin-bottom: 2rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        padding: 2rem;
        text-align: center;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        color: var(--color-white); /* FIX: White text for dark background */
    }

    .nav-link:hover {
        color: var(--color-accent);
    }
    
    .dropdown-item {
        color: var(--color-text); /* Ensure dropdown items stay dark if background is white */
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Global Mobile Typography Improvements */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .slider-btn {
        display: none;
    }

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

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

    /* Mobile Dropdown Fix */
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: var(--color-white);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-accent);
        padding-left: 1rem;
    }

    .nav-link i.fa-chevron-down {
        transition: transform 0.3s;
    }

    .nav-item-dropdown.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HORIZONTAL NAVIGATION (Replaces Sidebar)
   ======================================== */

.sticky-nav-wrapper {
    position: sticky;
    top: 75px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: top 0.3s;
}

.horizontal-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.nav-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    white-space: nowrap;
    text-decoration: none;
}

.nav-tab:hover {
    background: #f1f5f9;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Single Column Layout Adjustment */
.content-area.single-col {
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile Responsiveness for Nav */
@media (max-width: 768px) {
    .horizontal-nav {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .sticky-nav-wrapper {
        top: 60px;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
}

/* ========================================
   RTL SUPPORT (Arabic)
   ======================================== */
html[dir='rtl'] {
    text-align: right;
}

html[dir='rtl'] .nav-link i,
html[dir='rtl'] .dropdown-item i,
html[dir='rtl'] .btn i,
html[dir='rtl'] .accordion-header i:first-child,
html[dir='rtl'] .card-icon {
    margin-right: 0;
    margin-left: 10px;
}

html[dir='rtl'] .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

html[dir='rtl'] .checklist li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir='rtl'] .checklist li::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .timeline {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir='rtl'] .timeline::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .timeline-marker {
    left: auto;
    right: -2.6rem;
}

html[dir='rtl'] .consulate-item {
    border-left: none;
    border-right: 4px solid var(--color-primary);
}

html[dir='rtl'] .alert-box {
    border-left: none;
    border-right: 4px solid #ffc107;
}

html[dir='rtl'] .fa-chevron-down {
    margin-left: 0 !important;
    margin-right: 5px;
}

/* ========================================
   Floating Social Buttons
   ======================================== */
.floating-social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.social-btn.youtube {
    background: #FF0000;
    border: 2px solid #fff;
}

.social-btn.youtube:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transform: translateX(-5px) scale(1.1);
}

.social-btn.facebook {
    background: #1877F2;
    border: 2px solid #fff;
}

.social-btn.facebook:hover {
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    transform: translateX(-5px) scale(1.1);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 2px solid #fff;
}

.social-btn.instagram:hover {
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.6);
    transform: translateX(-5px) scale(1.1);
}

.social-btn.tiktok {
    background: #000000;
    border: 2px solid #fff;
}

.social-btn.tiktok:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    transform: translateX(-5px) scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-social-bar {
        right: 10px;
        gap: 8px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.dot-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot-indicator.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.section {
    padding: 3rem 0;
}

.bg-light {
    background: var(--color-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

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

/* Study Cards */
.study-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.study-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.study-card:hover {
    transform: translateY(-10px);
}

.campus-france {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=800');
}

.europe {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?w=800');
}

.canada {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1517935706615-2717063c2225?w=800');
}

.study-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--color-white);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-text {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.btn-text:hover {
    color: #d97706;
}

/* Schengen Grid */
.schengen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.schengen-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.schengen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flag-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.card-info {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
}

.country-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.country-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.star-icon {
    margin-left: auto;
    color: #fbbf24;
    font-size: 1rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.view-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.schengen-card:hover .view-link {
    color: var(--color-primary);
}

.schengen-card.hidden {
    display: none;
}

#schengen-search:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* News Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-tag {
    display: inline-block;
    background: #f1f5f9;
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-col p,
.footer-col address {
    color: var(--color-text-light);
    font-style: normal;
    line-height: 1.8;
}

.footer-col a {
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
}

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

.static-map {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    opacity: 0.8;
}

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

/* Login Modal Styles */
.login-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #334155;
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-login-submit {
    width: 100%;
    padding: 0.9rem;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-login-submit:hover {
    background-color: #f59e0b;
}

.login-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.login-footer a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

/* Loading Skeleton */
.loading-skeleton {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-nav {
        position: static;
        margin-bottom: 2rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        padding: 2rem;
        text-align: center;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Global Mobile Typography Improvements */
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        margin-bottom: 0.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .slider-btn {
        display: none;
    }

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

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

    /* Mobile Dropdown Fix */
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: var(--color-white);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-accent);
        padding-left: 1rem;
    }

    .nav-link i.fa-chevron-down {
        transition: transform 0.3s;
    }

    .nav-item-dropdown.active .nav-link i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HORIZONTAL NAVIGATION (Replaces Sidebar)
   ======================================== */

.sticky-nav-wrapper {
    position: sticky;
    top: 75px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: top 0.3s;
}

.horizontal-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.nav-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    white-space: nowrap;
    text-decoration: none;
}

.nav-tab:hover {
    background: #f1f5f9;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Single Column Layout Adjustment */
.content-area.single-col {
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile Responsiveness for Nav */
@media (max-width: 768px) {
    .horizontal-nav {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .sticky-nav-wrapper {
        top: 60px;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
}

/* ========================================
   RTL SUPPORT (Arabic)
   ======================================== */
html[dir='rtl'] {
    text-align: right;
}

html[dir='rtl'] .nav-link i,
html[dir='rtl'] .dropdown-item i,
html[dir='rtl'] .btn i,
html[dir='rtl'] .accordion-header i:first-child,
html[dir='rtl'] .card-icon {
    margin-right: 0;
    margin-left: 10px;
}

html[dir='rtl'] .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

html[dir='rtl'] .checklist li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir='rtl'] .checklist li::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .timeline {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir='rtl'] .timeline::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .timeline-marker {
    left: auto;
    right: -2.6rem;
}

html[dir='rtl'] .consulate-item {
    border-left: none;
    border-right: 4px solid var(--color-primary);
}

html[dir='rtl'] .alert-box {
    border-left: none;
    border-right: 4px solid #ffc107;
}

html[dir='rtl'] .fa-chevron-down {
    margin-left: 0 !important;
    margin-right: 5px;
    text-align: right;
}

html[dir='rtl'] body {
    text-align: right;
}

/* Navigation */
html[dir='rtl'] .nav-link i,
html[dir='rtl'] .dropdown-item i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir='rtl'] .nav-item-dropdown .fa-chevron-down {
    margin-left: 0 !important;
    margin-right: 5px;
}

/* Sidebar & TOC */
html[dir='rtl'] .toc-link {
    border-left: none;
    border-right: 3px solid transparent;
}

html[dir='rtl'] .toc-link:hover,
html[dir='rtl'] .toc-link.active {
    padding-left: 0.75rem;
    padding-right: 1rem;
    border-left: none;
    border-right-color: var(--color-accent);
}

/* Cards & Lists */
html[dir='rtl'] .checklist li,
html[dir='rtl'] .visa-card ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir='rtl'] .checklist li::before,
html[dir='rtl'] .visa-card ul li::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .info-card,
html[dir='rtl'] .center-card,
html[dir='rtl'] .consulate-item {
    border-left: none;
    border-right-width: 4px;
    border-right-style: solid;
    /* Color is inherited or defined in specific classes */
}

/* Timeline */
html[dir='rtl'] .timeline {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir='rtl'] .timeline::before {
    left: auto;
    right: 0;
}

html[dir='rtl'] .timeline-marker {
    left: auto;
    right: -2.6rem;
}

/* Forms & Inputs */
html[dir='rtl'] input,
html[dir='rtl'] textarea,
html[dir='rtl'] select {
    text-align: right;
}

/* Footer */
html[dir='rtl'] .footer-col {
    text-align: right;
}

/* Floating Social Bar */
html[dir='rtl'] .floating-social-bar {
    right: auto;
    left: 20px;
}

/* Specific Country Page Fixes */
html[dir='rtl'] .info-card {
    border-left: none !important;
    border-right: 4px solid;
    /* Color will be taken from inline style or specific class */
}

html[dir='rtl'] .alert-box {
    border-left: none !important;
    border-right: 5px solid;
}

/* Table Headers */
html[dir='rtl'] th,
html[dir='rtl'] td {
    text-align: right;
}

/* Mobile Fix for Sticky Nav */
@media (max-width: 768px) {
    .sticky-nav-wrapper {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   HEADLINES / RESOURCES SECTION
   ======================================== */
.headlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.resource-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcfd 100%);
    border-radius: 24px;
    overflow: visible;
    /* Changed for floating effects */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Floating Gradient Blob */
.resource-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.resource-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(15, 23, 42, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.resource-card:hover::before {
    top: -30%;
    opacity: 1;
}

.resource-icon {
    font-size: 3.5rem;
    color: #ef4444;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    background: #fff0f0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.15);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(10deg);
    background: #ef4444;
    color: white;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.resource-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

.resource-content h3:hover {
    color: var(--color-accent);
}

.resource-meta {
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Price Tag */
.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-primary);
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transform: rotate(5deg);
}

.resource-card:hover .price-tag {
    background: var(--color-accent);
    color: white;
    transform: rotate(0deg) scale(1.1);
}

.resource-card .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: white;
    color: var(--color-primary);
    border: 2px solid #e2e8f0;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.resource-card .btn:hover {
    background: var(--color-primary);
    color: white;
    /* Changed from var to raw white for better contrast */
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.section-desc {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* RTL Support for Headlines */
html[dir='rtl'] .resource-card .btn {
    flex-direction: row-reverse;
}

/* ========================================
   PROMO POPUP STYLES
   ======================================== */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark blur overlay */
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-popup-overlay.active .promo-popup {
    transform: scale(1) translateY(0);
}

.promo-image {
    width: 45%;
    object-fit: cover;
    position: relative;
    background: linear-gradient(45deg, #0f172a, #1e293b);
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.promo-content {
    width: 55%;
    padding: 3.5rem;
    position: relative;
    text-align: left;
}

.promo-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.promo-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.promo-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.promo-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.promo-badge {
    background: #fbbf24;
    color: #78350f;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.promo-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.promo-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.promo-feature-item i {
    color: var(--color-accent);
}

/* Mobile Responsive Popup */
@media (max-width: 768px) {
    .promo-popup {
        flex-direction: column;
        max-width: 400px;
    }

    .promo-image {
        width: 100%;
        height: 200px;
    }

    .promo-content {
        width: 100%;
        padding: 2rem;
        text-align: center;
    }

    .promo-features {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .promo-content h2 {
        font-size: 1.8rem;
    }
}

/* RTL Support for Popup */
html[dir='rtl'] .promo-popup {
    flex-direction: row-reverse;
}

html[dir='rtl'] .promo-content {
    text-align: right;
}

html[dir='rtl'] .promo-close {
    right: auto;
    left: 1.5rem;
}

@media (max-width: 768px) {
    html[dir='rtl'] .promo-popup {
        flex-direction: column;
    }
}

/* ========================================
   GLOBAL MOBILE & TABLET RESPONSIVE FIXES
   ======================================== */
@media (max-width: 992px) {
    /* Tablet adjustments */
    html {
        font-size: 15px; /* Scale down rem slightly */
    }
    .container {
        padding: 0 20px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .section {
        padding: 4rem 0 !important;
    }
}

@media (max-width: 768px) {
    /* Smartphone adjustments */
    html {
        scroll-padding-top: 110px;
    }
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important; /* Base font size scaling for fluid typography */
    }

    /* Fluid Typography */
    h1, .section-heading, .section-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }
    h2 { font-size: clamp(1.6rem, 6vw, 2rem) !important; line-height: 1.3 !important; }
    h3 { font-size: clamp(1.3rem, 5vw, 1.6rem) !important; line-height: 1.4 !important; }
    p, li, a, span { 
        font-size: 1rem !important; 
        line-height: 1.6 !important; 
    }

    /* Force grids to single column on mobile */
    .evisa-grid, 
    .study-grid, 
    .schengen-grid, 
    .centers-grid, 
    .doc-grid,
    .contact-grid,
    .footer-grid,
    .stats-grid,
    .pricing-grid,
    .docs-grid,
    [class*="-grid"],
    div[style*="display: grid;"],
    div[style*="display:grid;"] {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Resize Hero sections and their text */
    .page-hero, 
    .page-header,
    .section-hero {
        padding: 5rem 15px 3rem !important;
        min-height: auto !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-slider {
        height: 85vh !important;
        min-height: 500px !important;
    }

    /* Ensure cards and content don't exceed screen width */
    .info-card, 
    .center-card, 
    .card,
    .doc-item,
    .contact-info-card,
    .contact-form-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.5rem 1.2rem !important;
        overflow: hidden !important;
    }

    .evisa-card,
    .study-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .study-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .study-card {
        height: 350px !important;
    }

    /* Global spacing reductions */
    .section {
        padding: 2.5rem 0 !important;
    }
    
    /* Make images and iframes fluid */
    img, iframe {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    iframe {
        min-height: 250px !important;
    }

    /* Fix header / mobile menu */
    .nav-list.active {
        width: 100% !important;
        left: 0 !important;
        box-sizing: border-box !important;
        max-height: calc(100vh - 100px) !important; /* Prevent it from exceeding screen height minus header */
        overflow-y: auto !important; /* Allow scrolling inside the menu */
        padding-bottom: 3rem !important; /* Extra padding at the bottom so last items are easy to tap */
    }
    .nav-link {
        color: white !important;
        font-size: 1.1rem !important;
        padding: 12px 15px !important;
    }
}


/* Documents Button in Header */
.btn-nav-docs {
    background: linear-gradient(45deg, #d4af37, #f5d76e) !important;
    color: #000 !important;
    border-radius: 4px;
    padding: 6px 12px !important;
    font-weight: 800;
    margin: 0 5px;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
    vertical-align: middle;
}
.btn-nav-docs *, .btn-nav-docs i, .btn-nav-docs span {
    color: #000 !important;
}
.btn-nav-docs:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.5);
    color: #000 !important;
}

@media (max-width: 1200px) {
    .btn-nav-docs .doc-text {
        display: none; /* Hide text on medium screens to prevent header breaking */
    }
    .btn-nav-docs {
        padding: 8px 10px !important;
    }
}

@media (max-width: 992px) {
    .btn-nav-docs .doc-text {
        display: inline; /* Bring text back in mobile menu */
    }
    .btn-nav-docs {
        padding: 10px 15px !important;
        justify-content: center;
        margin: 10px auto;
        display: flex !important;
        width: max-content;
    }
}
