/* Modern Solar Website Styles - Updated with Projects Section */

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

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Color System - Updated with Brand Colors */
    --primary-gradient: linear-gradient(135deg, #307be7 0%, #4a90e2 50%, #6ba6ef 100%);
    --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
    --accent-gradient: linear-gradient(135deg, #307be7 0%, #4a90e2 50%, #6ba6ef 100%);
    --gold-gradient: linear-gradient(135deg, #307be7 0%, #4a90e2 100%);
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --business-gradient: linear-gradient(135deg, #307be7 0%, #4a90e2 25%, #2563eb 50%, #1d4ed8 75%, #1e40af 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(48, 123, 231, 0.1);
    --glass-border: rgba(48, 123, 231, 0.2);
    --dark-glass: rgba(48, 123, 231, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(48, 123, 231, 0.12);
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.18);
    
    /* Animations */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

::selection {
    background: rgba(48, 123, 231, 0.3);
    color: white;
}

/* Animated Background */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 1; 
    }
}

/* Geometric Background Shapes */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-30px) rotate(120deg); 
    }
    66% { 
        transform: translateY(30px) rotate(240deg); 
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: all 0.3s ease;
}

.logo {
    width: 20% !important;
    height: 70% !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}


.logo:hover {
    transform: scale(1.05);
}

@keyframes glow {
    from { 
        box-shadow: 0 8px 25px rgba(48, 123, 231, 0.3); 
    }
    to { 
        box-shadow: 0 8px 30px rgba(48, 123, 231, 0.5); 
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition-normal);
    background: rgba(48, 123, 231, 0.1);
    border: 2px solid #307be7;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 4px;
    background: #307be7;
    transition: var(--transition-normal);
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.05); */
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition-normal);
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    opacity: 1;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #307be7;
    transform: translateY(-2px);
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    margin-left: 20px;
    display: flex !important;
    align-items: center !important;
}

.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Force custom button styling - override any framework styles */
button.lang-dropdown-btn {
    all: unset !important;
    box-sizing: border-box !important;
}

.lang-dropdown-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    backdrop-filter: blur(20px);
}

/* Add subtle shine effect */
.lang-dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.lang-dropdown-btn:hover {
    background: linear-gradient(135deg, #307be7 0%, #4a90e2 50%, #6ba6ef 100%) !important;
    border-color: #307be7 !important;
    color: white !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(48, 123, 231, 0.25),
        0 4px 12px rgba(48, 123, 231, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.lang-dropdown-btn:hover::before {
    left: 100%;
}

.lang-dropdown-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 15px rgba(48, 123, 231, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.current-lang {
    flex: 1;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fix Kurdish text in language button */
html[lang="ku"] .current-lang {
    letter-spacing: 0 !important;
}


.dropdown-arrow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    opacity: 0.8;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.lang-dropdown-btn:hover .dropdown-arrow {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transform: scale(1.1);
}


.lang-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 16px) !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(30px);
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
    min-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    display: none !important;
    padding: 8px 0;
}

/* Ensure dropdown is absolutely hidden by default */
div.lang-dropdown-menu:not(.show) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.lang-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 4px 8px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 123, 231, 0.1), transparent);
    transition: left 0.5s ease;
}

/* Disabled - using inline styles instead
.lang-option:hover {
    background: linear-gradient(135deg, rgba(48, 123, 231, 0.1) 0%, rgba(76, 144, 226, 0.08) 100%);
    color: #307be7;
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 4px 8px rgba(48, 123, 231, 0.15);
}
*/

/* Disabled - no longer needed
.lang-option:hover::before {
    left: 100%;
}
*/

.lang-option.active {
    background: linear-gradient(135deg, #307be7 0%, #4a90e2 50%, #6ba6ef 100%);
    color: white;
    font-weight: 600;
    box-shadow: 
        0 4px 8px rgba(48, 123, 231, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.lang-option.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #5b9ceb 100%);
    color: white;
    transform: translateX(4px) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(48, 123, 231, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-name {
    font-weight: 500;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-name::before {
    content: attr(data-flag);
    font-size: 18px;
    opacity: 0.8;
}

.lang-code {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.7;
    background: rgba(71, 85, 105, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(71, 85, 105, 0.1);
}

/* Disabled - no longer using lang-code
.lang-option:hover .lang-code {
    background: rgba(48, 123, 231, 0.15);
    border-color: rgba(48, 123, 231, 0.2);
    opacity: 1;
}
*/

.lang-option.active .lang-code {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 0.95;
    color: white;
}

/* RTL Support */
[dir="rtl"] .language-dropdown {
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .current-lang {
    text-align: right;
}

[dir="rtl"] .lang-name {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-dropdown {
        margin-left: 12px;
    }
    
    [dir="rtl"] .language-dropdown {
        margin-right: 12px;
        margin-left: 0;
    }
    
    .lang-dropdown-btn {
        padding: 12px 16px !important;
        min-width: 120px;
        font-size: 13px !important;
        border-radius: 14px !important;
    }
    
    
    .lang-dropdown-menu {
        min-width: 180px;
        border-radius: 14px !important;
        top: calc(100% + 12px) !important;
    }
    
    .lang-option {
        padding: 14px 16px;
        margin: 2px 6px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .lang-name::before {
        font-size: 16px;
    }
    
    .lang-code {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .lang-dropdown-btn {
        min-width: 110px;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
    
    .current-lang {
        font-size: 12px;
    }
    
    .lang-option {
        padding: 12px 14px;
        font-size: 12px;
    }
}

/* Hero Section - White background (Section 1) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}


.hero-section .section-title,
.hero-section .section-subtitle {
    color: var(--text-primary);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-slider {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 3px solid #307be7;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-out;
}

.slide.active .slide-image {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(48, 123, 231, 0.9));
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.slide.active .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-overlay h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.slide-overlay p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* RTL language support for slider text centering */
[dir="rtl"] .slide-overlay {
    text-align: center;
    direction: rtl;
}

[dir="rtl"] .slide-overlay h2 {
    text-align: center;
    margin: 0 auto 16px auto;
    direction: rtl;
}

[dir="rtl"] .slide-overlay p {
    text-align: center;
    margin: 0 auto;
    direction: rtl;
}

/* Language-specific improvements for Arabic and Kurdish */
html[lang="ar"] .slide-overlay,
html[lang="ku"] .slide-overlay {
    text-align: center !important;
    direction: rtl !important;
}

html[lang="ar"] .slide-overlay h2,
html[lang="ku"] .slide-overlay h2 {
    text-align: center !important;
    margin: 0 auto 16px auto !important;
    direction: rtl !important;
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
}

html[lang="ar"] .slide-overlay p,
html[lang="ku"] .slide-overlay p {
    text-align: center !important;
    margin: 0 auto !important;
    direction: rtl !important;
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
}

/* Kurdish text fix - simple approach */
html[lang="ku"] .nav-menu li a {
    letter-spacing: normal !important;
}


/* ABSOLUTE OVERRIDE - Force center all slider text */
.hero-section .slide-overlay {
    text-align: center !important;
}

.hero-section .slide-overlay h2 {
    text-align: center !important;
    margin: 0 auto 16px auto !important;
    width: 100% !important;
    display: block !important;
}

.hero-section .slide-overlay p {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: block !important;
}

/* RTL specific absolute override */
.hero-section .slide-overlay[style*="text-align: center"] h2,
.hero-section .slide-overlay[style*="text-align: center"] p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transform: translateY(-50%);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-primary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Styling */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}


.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #307be7 0%, #64b5f6 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section - White background (Section 3) */
.services-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
}


.services-section .section-title,
.services-section .section-subtitle {
    color: var(--text-primary);
}

.services-section .section-footer {
    text-align: center;
    margin-top: 60px;
}

.services-section .section-btn {
    background: var(--primary-gradient);
    border: 2px solid transparent;
    color: white;
}

.services-section .section-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.services-section .section-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(48, 123, 231, 0.3);
}

.services-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.service-card {
    flex: 0 0 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(48, 123, 231, 0.1);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(48, 123, 231, 0.3);
}

.service-card.featured {
    border: 2px solid #307be7;
    box-shadow: 0 0 40px rgba(48, 123, 231, 0.3);
}

/* Product Badge Styles */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-badge:not(.featured) {
    background: rgba(48, 123, 231, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(48, 123, 231, 0.3);
}

.product-badge.featured {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Product Content Structure */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
    flex-grow: 1;
}

.product-features .feature {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
    padding: 4px 0;
    border-left: 2px solid rgba(48, 123, 231, 0.2);
    padding-left: 12px;
    transition: var(--transition-fast);
}

.service-card:hover .product-features .feature {
    border-left-color: #307be7;
    color: var(--text-primary);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #307be7;
    text-align: center;
    padding: 10px 16px;
    background: rgba(48, 123, 231, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(48, 123, 231, 0.15);
    margin-top: auto;
    transition: var(--transition-fast);
}

.service-card:hover .product-price {
    background: rgba(48, 123, 231, 0.12);
    border-color: rgba(48, 123, 231, 0.25);
    transform: translateY(-2px);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
}

.product-image {
    width: 100%;
    height: 150px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.service-card:hover .product-img {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.2;
    animation: iconPulse 3s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.2; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.4; 
    }
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-model {
    background: rgba(48, 123, 231, 0.1);
    color: #307be7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid rgba(48, 123, 231, 0.2);
    letter-spacing: 0.5px;
}

.service-description {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #307be7;
    font-weight: bold;
}

.service-price {
    font-size: 28px;
    font-weight: 800;
    color: #307be7;
    text-align: center;
}

/* Services Section Scroll Controls */
.services-section .scroll-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.services-section .scroll-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(48, 123, 231, 0.3);
}

.services-section .scroll-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 123, 231, 0.4);
}

.services-section .scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* About Us Section - #307be7 background (Section 2) */
.about-section {
    padding: 120px 0;
    background: #307be7;
}


.about-section .section-title,
.about-section .section-subtitle {
    color: white;
}

.about-section .section-title::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.about-story {
    margin-top: 40px;
}

.story-paragraph {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.team-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.team-image:hover .team-photo {
    transform: scale(1.05);
}

.company-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.stat-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

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

.stat-number-large {
    font-size: 36px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: block;
}

.stat-label-large {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    font-weight: 500;
}

/* Contact Map Section */
.contact-map {
    margin-top: 80px;
    width: 100%;
    height: 100%;
}

.map-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
}

.map-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.map-description {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 32px;
}



.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
}

.map-container:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(48, 123, 231, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    cursor: pointer;
}

.map-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.map-overlay h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.map-overlay p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    color: white;
}

.map-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 16px;
    display: block;
}

/* Projects Section - BLUE BACKGROUND FOR CONSISTENCY */
section.projects-section#projects {
    padding: 80px 0 !important;
    background: #307be7 !important;
    background-color: #307be7 !important;
    position: relative !important;
    min-height: 600px !important;
}

/* Modern Section Header */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #00d4aa;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    width: fit-content;
}

.section-title-modern {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin: 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a202c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #307be7;
    transform: translateX(4px);
}

.view-all-link svg {
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(2px) translateY(-2px);
}

/* Clean Projects Section Header */
.section-header-clean {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge-modern {
    display: inline-block;
    background: #00d4aa;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title-clean {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.section-subtitle-clean {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Clean Projects Grid */
.projects-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Clean Project Cards */
.project-card-clean {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.project-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* Clean Project Image */
.project-image-clean {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-img-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card-clean:hover .project-img-clean {
    transform: scale(1.03);
}

.project-category-clean {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(48, 123, 231, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Clean Project Info */
.project-info-clean {
    padding: 24px;
}

.project-title-clean {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.project-location-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-location-clean svg {
    color: #94a3b8;
}

/* Clean Project Stats */
.project-stats-clean {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

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

.stat-value-clean {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #307be7;
    margin-bottom: 4px;
}

.stat-label-clean {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Clean Project Footer */
.project-footer-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #307be7;
    font-weight: 600;
}

.view-project-text {
    font-size: 14px;
}

.project-footer-clean svg {
    transition: transform 0.3s ease;
}

.project-card-clean:hover .project-footer-clean svg {
    transform: translateX(4px) translateY(-2px);
}

/* No Projects Clean */
.no-projects-clean {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-projects-clean p {
    font-size: 18px;
    margin: 0;
}

/* Projects CTA */
.projects-cta {
    text-align: center;
}

.cta-button-projects {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #307be7;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.cta-button-projects:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
    color: #307be7;
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-button-projects svg {
    transition: transform 0.3s ease;
}

.cta-button-projects:hover svg {
    transform: translateX(4px) translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid-clean {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .section-title-clean {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section-title-clean {
        font-size: 32px;
    }
    
    .projects-grid-clean {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-info-clean {
        padding: 20px;
    }
    
    .project-stats-clean {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-clean {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .section-badge-modern {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .section-title-clean {
        font-size: 28px;
    }
    
    .section-subtitle-clean {
        font-size: 16px;
    }
    
    .project-title-clean {
        font-size: 18px;
    }
}

.projects-section .section-footer {
    text-align: center;
    margin-top: 60px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-md);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 216, 155, 0.5);
}

/* Project Image */
.project-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Project Info */
.project-info {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.location-icon {
    font-size: 14px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(48, 123, 231, 0.05);
    border-radius: 14px;
    padding: 15px;
    border: 1px solid rgba(48, 123, 231, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #307be7;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 0 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-image {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-description {
    margin-bottom: 24px;
}

.project-description p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-features h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #307be7;
    font-weight: bold;
}

.modal-footer {
    padding: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 123, 231, 0.3);
}


/* Subsection Headers */
.subsection-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.subsection-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
    text-align: center;
}

/* Training Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 30px 25px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: #307be7;
}

.program-card.featured {
    border: 2px solid #307be7;
    box-shadow: 0 0 40px rgba(48, 123, 231, 0.2);
}

.program-card.featured::before {
    content: var(--most-popular-text, 'Most Popular');
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--transition-normal);
}

.icon-wrapper.certification { background: rgba(16, 185, 129, 0.1); }
.icon-wrapper.advanced { background: rgba(245, 158, 11, 0.1); }
.icon-wrapper.maintenance { background: rgba(239, 68, 68, 0.1); }
.icon-wrapper.business { background: rgba(139, 92, 246, 0.1); }

.program-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.program-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.3;
}

.program-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.program-details {
    background: rgba(48, 123, 231, 0.05);
    border: 1px solid rgba(48, 123, 231, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}


.program-price {
    font-size: 28px;
    font-weight: 800;
    color: #307be7;
    text-align: center;
    margin-top: auto;
    padding: 15px 0;
    border-top: 1px solid rgba(48, 123, 231, 0.1);
}

/* Simplified Training Elements */
.program-icon {
    width: 60px;
    height: 60px;
    background: rgba(48, 123, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto;
    transition: var(--transition-normal);
}

.program-card:hover .program-icon {
    background: rgba(48, 123, 231, 0.2);
    transform: scale(1.1);
}


.program-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Design Services */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.design-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.design-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition-normal);
}

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

.design-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.6;
    font-size: 15px;
}

/* Design Packages */
.packages-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.package-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.package-card {
    background: white;
    border: 2px solid rgba(48, 123, 231, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-normal);
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #307be7;
}

.package-card.premium {
    border-color: #307be7;
    background: rgba(48, 123, 231, 0.02);
}

.package-card.premium::before {
    content: var(--package-recommended-text, 'Recommended');
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.package-price {
    font-size: 24px;
    font-weight: 800;
    color: #307be7;
}

.package-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.package-features li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #307be7;
    font-weight: bold;
}

.package-timeline {
    background: rgba(48, 123, 231, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
}

.package-timeline span {
    font-size: 13px;
    color: #307be7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Training Center */
.training-center {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    margin-top: 80px;
}

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

.center-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.center-description {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.facility-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.facility-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.facility-feature .feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.5;
}

.center-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.center-stats .stat-item {
    background: white;
    border: 1px solid rgba(48, 123, 231, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    transition: var(--transition-normal);
}

.center-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.center-stats .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #307be7;
    display: block;
    margin-bottom: 8px;
}

.center-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.center-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.center-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.facility-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.center-image:hover .facility-img {
    transform: scale(1.05);
}

/* News Section - Blue background matching About/Projects pattern */
.news-section {
    padding: 120px 0;
    background: #307be7;
    position: relative;
    overflow: hidden;
}


.news-section .section-title,
.news-section .section-subtitle {
    color: white;
}

.news-section .section-title::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
}

/* Featured News */
.featured-news {
    margin-bottom: 80px;
}

.featured-news-card {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.6s ease;
}

.featured-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(48, 123, 231, 0.3);
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-news-card:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-block;
}

.featured-text {
    background: rgba(48, 123, 231, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.featured-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.featured-category.technology { background: rgba(48, 123, 231, 0.9); color: white; }
.featured-category.policy { background: rgba(139, 92, 246, 0.9); color: white; }
.featured-category.market { background: rgba(245, 158, 11, 0.9); color: white; }
.featured-category.innovation { background: rgba(239, 68, 68, 0.9); color: white; }
.featured-category.environment { background: rgba(16, 185, 129, 0.9); color: white; }
.featured-category.business { background: rgba(139, 92, 246, 0.9); color: white; }

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: white;
    border-radius: 0 0 16px 16px;
    color: #1a202c;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.featured-date {
    font-weight: 500;
}

.featured-read-time {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    color: #64748b;
}

.featured-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a202c;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 24px;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #307be7 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
}

.author-role {
    font-size: 12px;
    color: #64748b;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(48, 123, 231, 0.15);
    border-color: rgba(48, 123, 231, 0.3);
    background: rgba(255, 255, 255, 1);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.news-category.technology { background: rgba(48, 123, 231, 0.9); color: white; }
.news-category.policy { background: rgba(139, 92, 246, 0.9); color: white; }
.news-category.market { background: rgba(245, 158, 11, 0.9); color: white; }
.news-category.innovation { background: rgba(239, 68, 68, 0.9); color: white; }
.news-category.environment { background: rgba(16, 185, 129, 0.9); color: white; }
.news-category.business { background: rgba(139, 92, 246, 0.9); color: white; }

.news-date-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.news-day {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
}

.news-card-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: #666;
}

.news-read-time {
    background: rgba(48, 123, 231, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    color: #307be7;
}

.news-author {
    font-weight: 500;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.read-more {
    font-size: 12px;
    font-weight: 600;
    color: #307be7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-arrow {
    font-size: 16px;
    color: #307be7;
    transition: transform 0.3s ease;
}

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

/* Section Footer */
.section-footer {
    text-align: center;
}

.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.section-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.section-btn:hover::before {
    left: 100%;
}

.section-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.section-btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

/* News Section Responsive Design */
@media (max-width: 768px) {
    .featured-link {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .featured-content {
        padding: 20px;
    }
    
    .featured-badge {
        top: 16px;
        left: 16px;
    }
    
    .news-category {
        top: 12px;
        left: 12px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .news-date-overlay {
        top: 12px;
        right: 12px;
        padding: 6px 8px;
    }
    
    .news-card-content {
        padding: 20px;
    }
}

/* Contact Section - White background with 2-Column Design (Section 7) */
.contact-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
}


.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--text-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-form-wrapper .section-header .section-title,
.contact-form-wrapper .section-header .section-subtitle {
    color: var(--text-primary);
}

.contact-form .form-label {
    color: var(--text-primary);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: 1px solid rgba(48, 123, 231, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: #307be7;
    box-shadow: 0 0 20px rgba(48, 123, 231, 0.3);
    background: white;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input option {
    background: white;
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(48, 123, 231, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

.contact-map {
    margin-top: 0;
}

/* Footer - Modern Professional Design */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(48, 123, 231, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 80px 0 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
}

/* Brand Section */
.footer-brand {
    max-width: 400px;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 16px;
}

.footer-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #64b5f6;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    border-radius: 2px;
}

/* RTL support for footer title underlines */
[dir="rtl"] .footer-title::after,
.footer-title.rtl-text::after {
    left: auto !important;
    right: 0 !important;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #64b5f6;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 12px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64b5f6;
    text-align: center;
    flex-shrink: 0;
}

.contact-icon svg {
    display: block;
    margin: auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Social Section */
.social-section {
    margin-top: 24px;
}

.social-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    border-color: rgba(100, 181, 246, 0.3);
    transform: translateY(-2px);
}

.social-link svg {
    position: relative;
    z-index: 1;
}

.social-link.facebook:hover { border-color: #1877f2; }
.social-link.twitter:hover { border-color: #1da1f2; }
.social-link.linkedin:hover { border-color: #0077b5; }
.social-link.instagram:hover { border-color: #e4405f; }

/* Simplified Contact Section */
.contact-simple {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-simple p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.contact-simple strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Section Social Links */
.footer-section .social-links {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

/* Updated Footer Grid for 3-column layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    margin-top: 60px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.back-to-top {
    margin-left: auto;
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

/* Training Section */
.training-section {
    background: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="training-pattern" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1.5" fill="rgba(48,123,231,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23training-pattern)"/></svg>');
    opacity: 0.5;
}

.training-intro {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.training-intro h2 {
    color: #1a1a1a;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.training-intro h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #307be7;
    margin: 16px auto 0;
    border-radius: 2px;
}

.training-intro p {
    color: #666;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.training-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.training-feature {
    text-align: center;
    padding: 40px 30px;
    background: rgba(48, 123, 231, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(48, 123, 231, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.training-feature:hover {
    transform: translateY(-5px);
    background: rgba(48, 123, 231, 0.12);
    box-shadow: 0 20px 40px rgba(48, 123, 231, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(48, 123, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #307be7;
}

.training-feature h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.training-feature p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.training-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.training-stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(48, 123, 231, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(48, 123, 231, 0.1);
    backdrop-filter: blur(10px);
}

.training-stat .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #307be7;
    margin-bottom: 8px;
}

.training-stat .stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.programs-section {
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.programs-section h3 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

.programs-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #307be7;
    margin: 16px auto 0;
    border-radius: 2px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.program-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.program-card.popular {
    border-color: #ffd700;
    position: relative;
}

.program-card.popular::before {
    content: var(--most-popular-text, 'Most Popular');
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.program-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: capitalize;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    min-height: 20px;
    width: fit-content;
    max-width: max-content;
}

.program-card h4 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.program-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.program-features {
    list-style: none;
    margin-bottom: 30px;
}

.program-features li {
    color: #333;
    padding: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.program-features li::before {
    content: '✓';
    color: #307be7;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.program-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.program-duration,
.program-price {
    text-align: center;
}

.program-duration span,
.program-price span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.program-duration strong,
.program-price strong {
    color: #307be7;
    font-size: 1.25rem;
    font-weight: 600;
}

.program-cta {
    text-align: center;
}

.enroll-btn {
    background: linear-gradient(135deg, #307be7, #1976d2);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(48, 123, 231, 0.3);
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 123, 231, 0.4);
    background: linear-gradient(135deg, #1976d2, #1565c0);
}


.training-cta {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.training-cta-btn {
    background: #307be7;
    color: white;
    padding: 20px 40px;
    border: 2px solid #307be7;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(48, 123, 231, 0.3);
}

.training-cta-btn:hover {
    background: transparent;
    color: #307be7;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(48, 123, 231, 0.3);
}

/* Training Image Overlay */
.intro-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.training-facility-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 30px;
    border-radius: 0 0 20px 20px;
}

.overlay-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.overlay-stat {
    text-align: center;
    color: white;
}

.overlay-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Image Overlay Responsive */
@media (max-width: 768px) {
    .overlay-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .overlay-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .overlay-stat .stat-label {
        font-size: 0.8rem;
    }
}

/* Training Section Responsive */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
}

@media (max-width: 768px) {
    .training-section {
        padding: 80px 0;
    }
    
    .training-intro h2 {
        font-size: 2.5rem;
    }
    
    .training-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .training-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .program-card {
        margin-top: 15px;
    }
    
    .program-card.popular {
        margin-top: 20px;
    }
    
    .program-card.popular::before {
        top: -16px;
        padding: 7px 15px;
        font-size: 0.75rem;
    }
    
    .programs-section h3 {
        font-size: 2rem;
    }
    
}

@media (max-width: 480px) {
    .training-intro h2 {
        font-size: 2rem;
    }
    
    .program-card {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .program-card.popular {
        margin-top: 25px;
    }
    
    .program-card.popular::before {
        top: -18px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .training-stats {
        grid-template-columns: 1fr;
    }
    
    .training-stat .stat-number {
        font-size: 2.5rem;
    }
    
    .programs-grid {
        gap: 25px;
    }
    
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #307be7;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

/* Services Modal Styles */
.modal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.modal-service-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.modal-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(48, 123, 231, 0.1);
    border-color: #307be7;
}

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

.modal-service-card h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-service-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.modal-service-card li {
    color: #444;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.modal-service-card li::before {
    content: '✓';
    color: #307be7;
    font-weight: bold;
    margin-right: 0.5rem;
}

.service-price {
    background: #307be7;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Projects Modal Styles */
.modal-projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.modal-project-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.modal-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(48, 123, 231, 0.1);
    border-color: #307be7;
}

.project-image {
    border-radius: 12px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.spec-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.spec-value {
    display: block;
    font-weight: 600;
    color: #307be7;
    font-size: 1.1rem;
}

.project-details p {
    color: #666;
    line-height: 1.6;
}

/* Modal CTA */
.modal-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.modal-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn.primary {
    background: #307be7;
    color: white;
    border: 2px solid #307be7;
}

.modal-btn.primary:hover {
    background: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 123, 231, 0.3);
}

.modal-btn.secondary {
    background: transparent;
    color: #307be7;
    border: 2px solid #307be7;
}

.modal-btn.secondary:hover {
    background: #307be7;
    color: white;
    transform: translateY(-2px);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-project-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image img {
        height: 180px;
    }
    
    .modal-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Responsive Design */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.2fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-bottom: 20px;
    }

    .footer-main {
        padding: 50px 0 0;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .brand-content {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .footer-description {
        font-size: 15px;
        line-height: 1.6;
        max-width: 85%;
        margin: 0 auto 25px auto;
        text-align: center;
    }

    .footer-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
        display: block;
        width: 100%;
    }

    .footer-title {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .footer-links {
        align-items: center;
        text-align: center;
    }

    .footer-links a {
        padding: 8px 0;
        font-size: 14px;
    }

    .contact-simple {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .contact-simple p {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
    }

    .contact-simple p:last-child {
        margin-bottom: 0;
    }

    .contact-simple strong {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
    }

    .social-section {
        text-align: center;
        margin-top: 15px;
        width: 100%;
    }

    .social-title {
        text-align: center;
        margin-bottom: 12px;
    }

    /* FORCE HIDE all social links everywhere except contact section */
    .footer-brand .social-links,
    .footer-brand div.social-links,
    .social-links:not(.footer-section .social-links) {
        display: none !important;
        visibility: hidden !important;
    }

    /* FORCE SHOW social links ONLY in contact section at bottom */
    .footer-section:last-child .social-links,
    div.footer-section .social-links,
    .footer-section .contact-simple + .social-links {
        display: flex !important;
        visibility: visible !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 35px auto 0 auto !important;
        text-align: center !important;
        clear: both !important;
        position: relative !important;
        bottom: 0 !important;
        order: 999 !important;
    }

    /* Override any conflicting styles */
    @media screen and (max-width: 768px) {
        /* NUCLEAR OPTION: Hide ALL social links except in contact section */
        .social-links {
            display: none !important;
            visibility: hidden !important;
            position: absolute !important;
            left: -9999px !important;
            top: -9999px !important;
        }

        /* FORCE SHOW only in contact section */
        .footer-section .social-links,
        div.footer-section .social-links {
            display: flex !important;
            visibility: visible !important;
            position: static !important;
            left: auto !important;
            top: auto !important;
            margin-top: 35px !important;
            justify-content: center !important;
            transform: none !important;
        }
    }

    .social-link {
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }

    /* Center footer title underlines on mobile */
    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .contact-items {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .footer-bottom {
        padding: 25px 0 20px;
        margin-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        align-items: center;
    }

    .copyright {
        order: 2;
    }

    .copyright p {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }

    .footer-legal {
        order: 1;
        display: none; /* Hide legal links on mobile for cleaner look */
    }

    .back-to-top {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-main {
        padding: 35px 0 0;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-brand {
        padding: 0 10px;
    }

    .brand-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 18px;
        text-align: center;
    }

    .footer-description {
        font-size: 14px;
        line-height: 1.5;
        max-width: 95%;
        margin: 0 auto 16px auto;
    }

    .footer-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-stat {
        align-items: center;
        text-align: center;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-links a {
        font-size: 13px;
        padding: 6px 0;
    }

    .contact-simple {
        margin-bottom: 25px;
    }

    .contact-simple p {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .social-section {
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

    /* Hide social links in brand section on small mobile */
    .footer-brand .social-links {
        display: none !important;
    }

    /* Show and position social links in contact section */
    .footer-section .social-links {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
        display: flex !important;
        margin: 25px auto 0 auto !important;
        text-align: center !important;
        clear: both !important;
        position: static !important;
    }

    /* General social links fallback */
    .social-links {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
        display: flex !important;
        margin: 25px auto 0 auto !important;
        text-align: center !important;
        clear: both !important;
    }

    .social-link {
        margin: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* Center footer title underlines on small mobile */
    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .footer-bottom {
        padding: 20px 0 16px;
        margin-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom-content {
        gap: 10px;
        align-items: center;
    }

    .copyright p {
        font-size: 12px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
        text-align: center;
    }

    .footer-legal {
        display: none; /* Hide on small mobile for cleaner look */
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .footer-container {
        padding: 0 12px;
    }

    .footer-main {
        padding: 30px 0 0;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-brand {
        padding: 0 5px;
    }

    /* Hide social links in brand section on extra small mobile */
    .footer-brand .social-links {
        display: none !important;
    }

    .footer-logo {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 16px;
    }

    .footer-description {
        font-size: 13px;
        max-width: 100%;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 5px 0;
    }

    .contact-simple {
        margin-bottom: 20px;
    }

    .contact-simple p {
        font-size: 12px;
        word-break: break-word;
        margin-bottom: 5px;
    }

    .social-link {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* Center footer title underlines on extra small mobile */
    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .footer-bottom {
        padding: 16px 0 12px;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .copyright p {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
        text-align: center;
    }

    .footer-legal {
        display: none; /* Keep hidden for clean mobile experience */
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .services-content {
        gap: 60px;
    }
    
    .center-content {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
}

/* Large tablets and small laptops */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 35px;
        height: 78px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu li a {
        font-size: 15px;
        padding: 8px 14px;
    }
}


/* Enhanced mobile activation for all tablets and medium screens */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0 20px;
        height: 72px;
    }

    .logo {
        width: auto !important;
        height: 50px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 85px 20px 40px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        z-index: 1001;
        gap: 0;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 8px;
    }

    .nav-menu li a {
        display: block;
        padding: 16px 20px;
        border-radius: 12px;
        width: 100%;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover {
        background: rgba(48, 123, 231, 0.1);
        color: #307be7;
        transform: translateX(5px);
    }

    .language-dropdown {
        width: 100%;
        margin: 20px 0 0 0;
        order: 999;
    }
}

/* ULTIMATE FOOTER MOBILE FIX - ENSURE SOCIAL ICONS ARE CENTERED */
@media (max-width: 768px) {
    footer .social-section,
    .footer .social-section,
    .footer-section .social-section {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }

    footer .social-links,
    .footer .social-links,
    .footer-section .social-links {
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    footer .social-link,
    .footer .social-link,
    .footer-section .social-link {
        margin: 6px !important;
        flex-shrink: 0 !important;
    }

    /* Extra specific targeting */
    div.footer-section div.social-section {
        text-align: center !important;
        width: 100% !important;
    }

    div.footer-section div.social-links {
        justify-content: center !important;
        display: flex !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .footer .social-section {
        text-align: center !important;
        width: 100% !important;
    }

    .footer .social-links {
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .footer .social-link {
        margin: 8px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* Transition to mobile menu for smaller tablets */
@media (max-width: 1000px) {
    .header {
        padding: 0;
    }

    .nav-container {
        padding: 0 25px;
        height: 72px;
    }

    .logo {
        width: auto !important;
        height: 52px !important;
        max-height: 52px;
    }

}

@media (max-width: 768px) {
    
    .hero-container {
        height: 70vh;
        padding: 0 20px;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .slide-overlay {
        padding: 40px 20px 30px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .contact-content {
        display: block;
    }
    
    .contact-map {
        margin-top: 60px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .training-content {
        gap: 80px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .package-options {
        gap: 20px;
    }
    
    .center-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .center-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .center-stats .stat-number {
        font-size: 28px;
        word-break: keep-all;
    }
    
    .facility-img {
        height: 250px;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 20px 20px 0;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 0 20px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-footer {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text .section-header {
        text-align: center;
    }

    .stat-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-number-large {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .scroll-controls {
        margin-top: 20px;
        justify-content: center;
    }
    
    .news-scroll-container::before,
    .news-scroll-container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        padding: 0 16px;
        height: 65px;
    }

    .logo {
        width: auto !important;
        height: 45px !important;
        max-height: 45px;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .nav-menu {
        width: 100vw;
        right: -100vw;
        padding: 80px 16px 40px;
    }

    .nav-menu li a {
        padding: 14px 16px;
        font-size: 15px;
    }

    .language-dropdown {
        margin: 16px 0 0 0;
    }

    .section-container,
    .hero-container,
    .footer-container {
        padding: 0 16px;
    }
    

    /* Training Center Mobile Fixes */
    .center-stats .stat-number {
        font-size: 20px !important;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.1;
    }

    .center-stats .stat-label {
        font-size: 10px !important;
        line-height: 1.3;
    }
    
    .center-stats .stat-item {
        padding: 16px 12px !important;
        min-width: 0;
        overflow: hidden;
    }
    
    .hero-container {
        height: 60vh;
    }
    
    .slide-overlay h2 {
        font-size: 24px;
    }

    .slide-overlay p {
        font-size: 16px;
    }

    /* RTL mobile text centering */
    html[lang="ar"] .slide-overlay h2,
    html[lang="ku"] .slide-overlay h2,
    html[lang="ar"] .slide-overlay p,
    html[lang="ku"] .slide-overlay p {
        text-align: center !important;
        direction: rtl !important;
    }
    
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 20px 15px;
        margin: 0 -15px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    }

    .services-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    
    .service-card {
        flex: 0 0 300px; /* Slightly wider for better content display */
        padding: 24px 20px;
        min-height: 420px;
    }
    
    .service-card .product-image {
        height: 180px; /* Larger images on mobile */
        margin-bottom: 20px;
    }
    
    .service-card .service-title {
        font-size: 20px; /* Larger, more readable title */
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .service-card .product-model {
        font-size: 13px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    
    .service-card .product-features .feature {
        font-size: 14px; /* Larger features text */
        padding: 6px 0;
        padding-left: 14px;
        line-height: 1.4;
    }
    
    .service-card .product-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .service-card:last-child {
        margin-right: 15px; /* Extra margin for last card */
    }


    .contact-form,
    .info-card {
        padding: 30px 20px;
    }

    .stat-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .scroll-news-card {
        flex: 0 0 300px;
    }
    
    .program-card {
        padding: 30px 20px;
    }
    
    .program-price {
        font-size: 28px;
    }
    
    .subsection-title {
        font-size: 28px;
    }
    
    .training-center {
        padding: 40px 20px;
        margin-top: 40px;
        border-radius: 20px;
    }
    
    .center-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .center-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .center-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .center-stats .stat-item {
        padding: 20px 16px;
        min-height: auto;
    }
    
    .center-stats .stat-number {
        font-size: 24px;
        line-height: 1.2;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .center-stats .stat-label {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .package-card {
        padding: 24px 20px;
    }
    
    .package-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .facility-img {
        height: 200px;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .modal-image {
        height: 180px;
    }
    
    .contact-form-wrapper .section-header {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Additional Utility Styles */
.keyboard-navigation *:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.animations-paused * {
    animation-play-state: paused !important;
    transition: none !important;
}

.form-input.valid {
    border-color: #11998e;
    box-shadow: 0 0 10px rgba(17, 153, 142, 0.3);
}

.form-input.invalid {
    border-color: #ff416c;
    box-shadow: 0 0 10px rgba(255, 65, 108, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.loaded {
    animation: fadeIn 0.5s ease-in-out;
}

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

.project-card:hover {
    cursor: pointer;
}

.scroll-news-card:hover {
    transform: translateY(-8px);
}

/* Smooth scrolling for older browsers */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* CRITICAL: Force Projects Section Blue Background - OVERRIDE ALL */
body section#projects.projects-section {
    background: #307be7 !important;
    background-color: #307be7 !important;
}

html body section#projects.projects-section {
    background: #307be7 !important;
    background-color: #307be7 !important;
}

/* ULTIMATE MOBILE MENU FIX - MAXIMUM PRIORITY - COVERS 962px AND ALL PROBLEMATIC SIZES */
@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10000 !important;
        background: #307be7 !important;
        border: 3px solid #fff !important;
        padding: 12px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
        cursor: pointer !important;
        min-width: 50px !important;
        min-height: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .mobile-menu-toggle span {
        background: white !important;
        width: 25px !important;
        height: 3px !important;
        display: block !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 320px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 100px 20px 40px !important;
        z-index: 9999 !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3) !important;
        overflow-y: auto !important;
        display: flex !important;
    }

    .nav-menu.active {
        right: 0 !important;
        transform: translateX(0) !important;
        background: #ffffff !important;
        border-left: 5px solid #307be7 !important;
    }

    /* Ensure hamburger animation works */
    .mobile-menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px) !important;
        background: white !important;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(20px) !important;
    }

    .mobile-menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px) !important;
        background: white !important;
    }

    .nav-menu li {
        width: 100% !important;
        margin-bottom: 10px !important;
        list-style: none !important;
    }

    .nav-menu li a {
        display: block !important;
        padding: 15px 20px !important;
        border-radius: 8px !important;
        background: rgba(48, 123, 231, 0.1) !important;
        color: #333 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border: 1px solid rgba(48, 123, 231, 0.2) !important;
        margin-bottom: 5px !important;
    }

    .nav-menu li a:hover {
        background: #307be7 !important;
        color: white !important;
    }

    .language-dropdown {
        width: 100% !important;
        margin: 20px 0 0 0 !important;
        order: 999 !important;
    }
}

/* ABSOLUTE POSITIONING OVERRIDE - FORCE SOCIAL ICONS CENTER */
@media screen and (max-width: 768px) {
    /* Force the social section to use relative positioning */
    .social-section,
    .footer-section .social-section,
    footer .social-section,
    .footer .social-section,
    #socialSection {
        position: relative !important;
        width: 100% !important;
        height: 100px !important;
        text-align: center !important;
        margin: 20px 0 !important;
    }

    /* Force social title to center */
    .social-title,
    .footer-section .social-title,
    .social-section .social-title {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 16px auto !important;
        display: block !important;
        position: relative !important;
    }

    /* Absolute position the social links container */
    .social-links,
    .footer-section .social-links,
    .social-section .social-links,
    footer .social-links,
    .footer .social-links,
    #socialLinks {
        position: absolute !important;
        top: 40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 15px !important;
        white-space: nowrap !important;
        z-index: 10 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    /* Individual social link styling */
    .social-link,
    .footer-section .social-link,
    .social-section .social-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Override any conflicting footer section styles */
    .footer-section:nth-child(4) {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* RTL Layout Support */
.rtl-text {
    direction: rtl !important;
    text-align: right !important;
    width: 100% !important;
    display: block !important;
}

.rtl-layout {
    direction: rtl !important;
    text-align: right !important;
}

/* RTL Navigation Support */
.rtl-layout .nav-menu li a,
[dir="rtl"] .nav-menu li a {
    white-space: nowrap !important;
    text-align: center !important;
    min-width: fit-content !important;
}

/* Training Section RTL Support */
.training-content.rtl-layout {
    direction: rtl !important;
    text-align: right !important;
}

/* Fix Training Section Title and Subtitle Colors */
.training-section .section-title-clean {
    color: #1a1a1a !important;
}

.training-section .section-subtitle-clean {
    color: #666 !important;
}

.training-content.rtl-layout .training-intro {
    text-align: right !important;
    direction: rtl !important;
}

.training-content.rtl-layout .intro-text {
    text-align: right !important;
    direction: rtl !important;
}

.training-content.rtl-layout .intro-title {
    text-align: right !important;
    direction: rtl !important;
}

.training-content.rtl-layout .intro-description {
    text-align: right !important;
    direction: rtl !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Base Feature Item Layout */
.feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

.feature-item .feature-icon {
    flex-shrink: 0 !important;
    order: 1 !important;
}

.feature-item .feature-content {
    flex: 1 !important;
    text-align: left !important;
    order: 2 !important;
}

.training-content.rtl-layout .training-features {
    direction: rtl !important;
}

.training-content.rtl-layout .training-feature {
    text-align: right !important;
    direction: rtl !important;
}

.training-content.rtl-layout .training-feature h3 {
    text-align: right !important;
    direction: rtl !important;
}

.training-content.rtl-layout .training-feature p {
    text-align: right !important;
    direction: rtl !important;
}

/* Feature Item RTL Layout */
.feature-item.rtl-layout {
    flex-direction: row-reverse !important;
    text-align: right !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    direction: rtl !important;
}

.feature-item.rtl-layout .feature-icon {
    margin: 0 0 0 16px !important;
    flex-shrink: 0 !important;
    order: 2 !important;
}

.feature-item.rtl-layout .feature-content {
    flex: 1 !important;
    text-align: right !important;
    direction: rtl !important;
    order: 1 !important;
}

.feature-item.rtl-layout .feature-content h3,
.feature-item.rtl-layout .feature-content h4,
.feature-item.rtl-layout .feature-title {
    text-align: right !important;
    direction: rtl !important;
    margin-bottom: 8px !important;
}

.feature-item.rtl-layout .feature-content p,
.feature-item.rtl-layout .feature-desc {
    text-align: right !important;
    direction: rtl !important;
    line-height: 1.6 !important;
}

/* Fix pseudo-element conflicts in RTL */
.feature-item.rtl-layout::before {
    display: none !important;
}

.feature-item.rtl-layout .feature-content::before {
    display: none !important;
}

.training-content.rtl-layout .feature-icon::before {
    display: none !important;
}

/* Fix training section background pseudo-element for RTL */
.training-section.rtl-layout::before {
    background-position: right top !important;
    direction: rtl !important;
}

/* Ensure training section has proper positioning context */
.training-section {
    position: relative !important;
    z-index: 1 !important;
}

.training-section .section-container {
    position: relative !important;
    z-index: 2 !important;
}

/* Training Programs RTL Layout */
.training-programs.rtl-layout {
    direction: rtl !important;
}

.training-programs.rtl-layout .program-grid {
    direction: rtl !important;
}

.training-programs.rtl-layout .program-card {
    text-align: right !important;
    direction: rtl !important;
}

.training-programs.rtl-layout .program-card h3,
.training-programs.rtl-layout .program-card p,
.training-programs.rtl-layout .program-card li {
    text-align: right !important;
    direction: rtl !important;
}

.training-programs.rtl-layout .program-features {
    text-align: right !important;
    direction: rtl !important;
}

.training-programs.rtl-layout .program-features li {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
}

.training-programs.rtl-layout .program-features li::before {
    right: 0 !important;
    left: auto !important;
}

/* Individual Program Card RTL Layout */
.program-card.rtl-layout {
    text-align: right !important;
    direction: rtl !important;
}

.program-card.rtl-layout .program-header {
    text-align: right !important;
    direction: rtl !important;
}

.program-card.rtl-layout .program-level {
    text-align: right !important;
    direction: rtl !important;
}

.program-card.rtl-layout .program-title {
    text-align: right !important;
    direction: rtl !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.program-card.rtl-layout .program-content {
    text-align: right !important;
    direction: rtl !important;
}

.program-card.rtl-layout .program-description {
    text-align: right !important;
    direction: rtl !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Base program description fix */
.program-description {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.program-card.rtl-layout .program-features {
    text-align: right !important;
    direction: rtl !important;
    list-style: none !important;
    padding: 0 !important;
}

.program-card.rtl-layout .program-features li {
    text-align: right !important;
    direction: rtl !important;
    position: relative !important;
    padding-right: 25px !important;
    padding-left: 0 !important;
    margin-bottom: 8px !important;
}

.program-card.rtl-layout .program-features li::before {
    content: '✓' !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 0 !important;
    color: #307be7 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.program-card.rtl-layout .program-details {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.program-card.rtl-layout .detail-item {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.program-card.rtl-layout .detail-label {
    direction: rtl !important;
    text-align: right !important;
    display: inline-block !important;
    margin: 0 !important;
}

.program-card.rtl-layout .detail-value {
    direction: rtl !important;
    text-align: right !important;
    display: inline-block !important;
    margin: 0 !important;
    white-space: nowrap !important;
    unicode-bidi: embed !important;
    font-feature-settings: normal !important;
}

/* Fix for mixed RTL text and numbers */
.rtl-text {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: embed !important;
    white-space: nowrap !important;
}

/* Specific fix for detail values with numbers and Arabic text */
.program-card.rtl-layout .detail-value.rtl-text {
    direction: rtl !important;
    unicode-bidi: bidi-override !important;
    text-align: right !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Alternative approach - force LTR for numbers in RTL context */
.detail-value.rtl-text {
    direction: rtl !important;
    unicode-bidi: plaintext !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.program-card.rtl-layout .program-footer {
    direction: rtl !important;
    text-align: right !important;
}

.program-card.rtl-layout .program-btn {
    direction: rtl !important;
    text-align: center !important;
}

/* Fix MOST POPULAR tag positioning for RTL */
.program-card.featured.rtl-layout::before {
    content: var(--most-popular-text, 'MOST POPULAR') !important;
    position: absolute !important;
    top: 20px !important;
    right: auto !important;
    left: 20px !important;
    transform: none !important;
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 10 !important;
    white-space: nowrap !important;
}

.program-card.featured.rtl-layout {
    margin-top: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

.program-card.featured.rtl-layout .program-level {
    margin-top: 10px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Also fix for LTR - ensure tag doesn't overlap */
.program-card.featured::before {
    z-index: 10 !important;
}

/* === TARGETED MOBILE HORIZONTAL SCROLL FIX === */
/* Prevent horizontal scrolling without breaking slider */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive images and media */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Fix for tables */
table {
    width: 100%;
    overflow-x: auto;
}

/* Fix for text content that might overflow */
pre, code {
    overflow-x: auto;
    word-wrap: break-word;
}

/* Mobile specific targeted fixes */
@media (max-width: 768px) {
    /* Prevent body overflow but allow slider to function */
    body {
        overflow-x: hidden;
    }

    /* Ensure main containers don't cause overflow */
    .nav-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hero-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .footer-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Fix specific sections that might overflow */
    section:not(.hero-section) {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .nav-container, .hero-container, .footer-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
