/* Font Display Optimization - Prevents layout shift */
@font-face {
    font-family: 'Cairo';
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-display: swap;
}

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

body {
    
    font-family: 'Cairo', 'Roboto', sans-serif;  
    line-height: 1.6;      

    color: #333;           
    background: #f5f7fa;   
    
    min-height: 100vh;     
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.security-badge {
    position: fixed;        
    bottom: 20px;          
    right: 20px;           
    background: white;     
    padding: 12px 18px;    
    border-radius: 30px;   
    box-shadow: 0 5px 25px rgba(30, 64, 150, 0.2);  
    font-size: 0.9rem;     
    color: #1e4096;        
    z-index: 100003;       
    display: flex;
    align-items: center;
    gap: 10px;             
    border: 2px solid #e8f0fe;  
    animation: slideInUp 0.5s ease;  
    font-weight: 600;      
    cursor: help;          
}

.security-badge i {
    font-size: 1.3rem;     
    color: #1e4096;        
}

.security-badge::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: linear-gradient(135deg, #1e4096, #2c5aa0);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    box-shadow: 0 8px 20px rgba(30, 64, 150, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100004;       
    pointer-events: none;
}

.security-badge::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #1e4096;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100004;       
}

.security-badge:hover::before,
.security-badge:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-circular {
    position: fixed;
    bottom: 90px;          
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
    animation: slideInUp 0.6s ease;
}

.whatsapp-circular:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-circular i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

@media (max-width: 768px) {
    .whatsapp-circular {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .security-badge::before {
        max-width: 250px;
        font-size: 0.8rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
    
    .security-badge:hover::before {
        transform: translateX(-50%) translateY(0);
    }
    
    .security-badge::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .whatsapp-circular {
        bottom: 75px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .security-badge {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .security-badge i {
        font-size: 1.1rem;
    }
    
    .security-badge::before {
        max-width: 200px;
        font-size: 0.75rem;
        padding: 10px 12px;
    }
}

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

.main-content {
    background: transparent;  
    padding: 20px 0;         
}

.header {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 50%, #3d6eb5 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(30, 64, 150, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    color: #ffffff;
}

.lang-btn.active {
    background: #ffffff;
    color: #1e4096;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.lang-separator {
    color: rgba(255,255,255,0.7);
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.search-bar:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

#searchInput {
    background: none;
    border: none;
    color: white;
    padding: 8px 10px;
    outline: none;
    width: 200px;
}

#searchInput::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: dropdownFade 0.3s ease;
}

[dir="ltr"] .search-dropdown {
    left: 0;
    right: 0;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    padding-right: 20px;
}

[dir="ltr"] .search-result-item:hover,
[dir="ltr"] .search-result-item.selected {
    padding-left: 20px;
    padding-right: 16px;
}

.search-result-item i:first-child {
    font-size: 18px;
    color: #1e4096;
    min-width: 24px;
    text-align: center;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: #1e4096;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.search-result-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.search-result-arrow {
    font-size: 12px;
    color: #999;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.selected .search-result-arrow {
    color: #1e4096;
    transform: translateX(-3px);
}

[dir="ltr"] .search-result-item:hover .search-result-arrow,
[dir="ltr"] .search-result-item.selected .search-result-arrow {
    transform: translateX(3px);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

#searchBtn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.header-main {
    display: flex;                      
    justify-content: space-between;     
    align-items: center;                
    padding: 20px 0;                   
    gap: 30px;                         
    flex-wrap: nowrap;
}

[dir="ltr"] .header-main {
    gap: 20px;
}

[dir="rtl"] .header-main {
    flex-direction: row;
}

[dir="ltr"] .header-main {
    flex-direction: row;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    min-width: fit-content;
}

[dir="ltr"] .header-actions {
    gap: 8px;
}

[dir="rtl"] .header-actions {
    flex-direction: row;
}

[dir="ltr"] .header-actions {
    flex-direction: row;
}

.portal-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: none; /* Hidden until Training Zone is ready */
}

[dir="ltr"] .portal-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.portal-btn::before {
    content: '';
    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.5s;
}

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

.portal-btn:hover {
    background: white;
    color: #1e4096;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.portal-btn.student-portal:hover {
    background: white;
    color: #1e4096;
}

.portal-btn.instructor-portal:hover {
    background: white;
    color: #1e4096;
}

.logo {
    display: flex;         
    align-items: center;   
    gap: 15px;            
    flex-shrink: 0;       
    min-width: fit-content; 
}

.logo,
.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
    color: inherit;
    text-decoration: none;
}

[dir="rtl"] .logo {
    flex-direction: row;
}

[dir="ltr"] .logo {
    flex-direction: row;
}

.logo img {
    width: 60px;          
    height: 60px;         
    border-radius: 12px;  
    border: 3px solid white;  
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);  
    transition: all 0.3s; 
}

.logo:hover img {
    transform: scale(1.05);  
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);  
}

.logo-text h1 {
    font-size: 1.8rem;     
    font-weight: 700;      
    margin-bottom: 5px;
    color: white !important;
}

[dir="ltr"] .logo-text h1 {
    font-size: 1.6rem;
    color: white !important;
}

.logo-text p {
    font-size: 0.9rem;     
    opacity: 0.9;          
    font-weight: 300;
    color: white !important;
}

[dir="ltr"] .logo-text p {
    font-size: 0.85rem;
    color: white !important;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

[dir="ltr"] .main-nav ul {
    gap: 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

[dir="ltr"] .nav-link {
    padding: 10px 16px;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.25);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.news-ticker {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4096 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
    font-size: 0.9rem;
}

/* Pause animation on hover */
.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-content span {
    margin-right: 30px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes scrollRTL {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

[dir="rtl"] .ticker-content {
    animation: scrollRTL 30s linear infinite;
}

/* Ensure ticker works on all devices */
.main-content {
    padding: 20px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fff url('partials/Images/BTI logo.JPG') center center no-repeat;
    background-size: 60% auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background-color: transparent;
}

/* The poster attribute will show the logo when video is not playing */
/* The background on .video-wrapper provides a fallback if poster fails to load */

.content-layout > .main-section > section {
    margin-bottom: 0;
}

.content-layout > .main-section > section + section {
    margin-top: 30px;
}

.sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
    border: 2px solid #e8f0fe;
    transition: all 0.2s ease;
    
    max-height: calc(100vh - 140px);  
    overflow-y: scroll !important;     
    overflow-x: hidden;                
}

.sidebar:hover {
    box-shadow: 0 8px 30px rgba(30, 64, 150, 0.15);
}

.sidebar::-webkit-scrollbar {
    width: 10px;                       
}

.sidebar::-webkit-scrollbar-track {
    background: #f5f7fa;               
    border-radius: 10px;
    margin: 10px 0;                    
}

.sidebar::-webkit-scrollbar-thumb {
    background: #1e4096;               
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #2c5aa0;               
}

.sidebar {
    scrollbar-width: auto !important;  
    scrollbar-color: #1e4096 #f5f7fa !important;  
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #1e4096;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e8f0fe;
    position: relative;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: #1e4096;
    border-radius: 2px;
}

.course-list,
.section-list,
.info-list {
    list-style: none;
}

.course-list li,
.section-list li,
.info-list li {
    margin-bottom: 10px;
}

.course-list a,
.section-list a,
.info-list a {
    color: #555;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.course-list a:hover,
.section-list a:hover,
.info-list a:hover {
    background: linear-gradient(to left, #e8f0fe, #ffffff);
    border-right-color: #1e4096;
    color: #1e4096;
    transform: translateX(-5px);
}

.main-section {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.hero-section {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white !important;
    overflow: hidden;
    margin-bottom: 0;
    z-index: 1;
}

.hero-section * {
    color: white !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div {
    color: white !important;
}

.hero-slideshow {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.slide-content {
    text-align: center;
    max-width: 900px;
    padding: 0 100px;
    margin: 0 auto;
    color: white !important;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.slide-content * {
    color: white !important;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: white !important;
    max-width: 100%;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: white !important;
    line-height: 1.6;
    max-width: 100%;
}

.cta-button {
    background: rgba(255,255,255,0.2);
    color: white !important;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    display: inline-block;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.cta-button:hover {
    background: white !important;
    color: #1e4096 !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.cta-button:active,
.cta-button:focus {
    background: white !important;
    color: #1e4096 !important;
    text-decoration: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cta-button:visited {
    color: white !important;
    text-decoration: none !important;
}

.cta-button:visited:hover {
    color: #1e4096 !important;
    text-decoration: none !important;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 30;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 31;
    position: relative;
    font-size: 0.9rem;
}

.prev-btn i,
.next-btn i {
    font-size: 0.9rem;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.prev-btn:active,
.next-btn:active {
    background: rgba(255,255,255,0.5);
    transform: scale(0.95);
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
    pointer-events: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 31;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.institute-intro {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
}

.institute-intro h3 {
    color: #1e4096;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.institute-intro h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 2px;
}

.institute-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #1e4096;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(30, 64, 150, 0.15);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.feature-badge i {
    color: #1e4096;
    font-size: 1.2rem;
}

.feature-badge span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.news-section {
    padding: 0;
    background: transparent;
    margin: 40px 0;
}

.news-section h3 {
    color: #1e4096;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.news-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
    transition: all 0.2s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.news-date {
    color: #1e4096;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #1e4096;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.news-link:hover {
    color: #2c5aa0;
    gap: 10px;
}

.quick-links-section {
    padding: 0;
    background: transparent;
    margin: 30px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-link-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.2s;
    border: 2px solid #e8f0fe;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.quick-link-card i {
    font-size: 3rem;
    color: #1e4096;
    margin-bottom: 20px;
    display: block;
    transition: all 0.2s;
}

.quick-link-card:hover i {
    transform: scale(1.1);
    color: #2c5aa0;
}

.quick-link-card h4 {
    color: #1e4096;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    transition: all 0.2s;
}

.quick-link-card:hover h4 {
    color: #2c5aa0;
}

.quick-link-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.link-btn {
    display: inline-block;
    background: #1e4096;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.register-now-btn {
    background: #1e4096;
}

.register-now-btn:hover {
    background: #2c5aa0;
}

.statistics-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(30, 64, 150, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.featured-courses-section {
    padding: 0;
    background: transparent;
    margin: 40px 0;
}

.featured-courses-section h3 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-course-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
    transition: all 0.2s;
    position: relative;
    overflow: visible;
}

.featured-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 0 0 2px 2px;
}

.featured-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e4096;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge.new {
    background: #2c5aa0;
}

.course-badge.specialized {
    background: #d32f2f; 
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.course-icon {
    font-size: 4rem;
    color: #1e4096;
    margin-bottom: 20px;
    display: block;
    transition: all 0.2s;
}

.featured-course-card:hover .course-icon {
    transform: scale(1.1);
    color: #2c5aa0;
}

.featured-course-card h4 {
    color: #1e4096;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.course-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.course-meta span {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta i {
    color: #1e4096;
}

.course-btn {
    display: inline-block;
    background: #1e4096;
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(30, 64, 150, 0.2);
}

.course-btn:hover {
    transform: translateY(-2px);
    background: #2c5aa0;
    box-shadow: 0 6px 20px rgba(30, 64, 150, 0.3);
}

.footer {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 50%, #3d6eb5 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.5) 25%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0.5) 75%, 
        transparent 100%
    );
}

.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 50%, #3d6eb5 100%);
    clip-path: ellipse(100% 100% at 50% 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, white, rgba(255,255,255,0.3));
    border-radius: 2px;
}

[dir="rtl"] .footer-section h4 {
    text-align: center;
}

[dir="rtl"] .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .footer-section {
    text-align: center;
}

[dir="rtl"] .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[dir="rtl"] .contact-info p {
    justify-content: center;
}

[dir="rtl"] .contact-info p:hover {
    transform: translateX(0);
}

[dir="rtl"] .social-links {
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
}

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

.footer-section p {
    line-height: 1.8;
    opacity: 0.95;
    font-size: 0.95rem;
    color: white !important;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    color: white !important;
}

.contact-info p:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.contact-info span,
.contact-info a {
    color: white !important;
}

.contact-info i {
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 6px;
    font-size: 0.9rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.social-link:hover {
    color: #1e4096;
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border-color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    
    [dir="ltr"] .header-main {
        gap: 15px;
    }
    
    [dir="ltr"] .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    [dir="ltr"] .portal-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .header-main {
        gap: 20px;
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .main-nav {
        flex: 1 1 100%;
        order: 3;
    }
    
    .header-actions {
        flex: 0 0 auto;
    }
    
    .main-nav ul {
        gap: 10px;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .portal-btn {
        font-size: 0.85rem;
        padding: 9px 18px;
    }
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    /* Modern Mobile First Design */
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    body {
        width: 100vw;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Clean Mobile Header */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    /* Simplified header main */
    .header-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        gap: 10px;
    }
    
    /* Mobile Language Toggle - Show on mobile */
    .header-top {
        display: flex !important;
        justify-content: center;
        padding: 6px 0;
        border-bottom: 1px solid rgba(230, 230, 230, 0.3);
    }
    
    .language-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f5f5f5;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .lang-btn {
        cursor: pointer;
        padding: 6px 14px;
        border-radius: 15px;
        transition: all 0.3s ease;
        font-size: 0.85rem;
        font-weight: 600;
        color: #666;
    }
    
    .lang-btn.active {
        background: linear-gradient(135deg, #1e4096, #3d6eb5);
        color: white;
        box-shadow: 0 2px 6px rgba(30, 64, 150, 0.3);
    }
    
    .lang-separator {
        color: #ccc;
        font-weight: 600;
    }
    
    .search-bar {
        display: none !important;
    }
    
    /* Compact logo */
    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .logo img {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(30, 64, 150, 0.15);
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
        margin: 0;
        line-height: 1.3;
        font-weight: 700;
        color: white !important;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: white;
        background-clip: unset;
        letter-spacing: 0.3px;
    }
    
    .logo-text p {
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.2;
        color: white !important;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Keep English text on one line - make logo smaller */
    [dir="ltr"] .logo {
        gap: 8px;
    }
    
    [dir="ltr"] .logo img {
        width: 45px;
        height: 45px;
    }
    
    [dir="ltr"] .logo-text h1 {
        font-size: 1rem;
        letter-spacing: 0.5px;
        color: white !important;
    }
    
    [dir="ltr"] .logo-text p {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        color: white !important;
    }
    
    /* Better menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 100001;
        background: transparent;
        border: none;
        width: 40px;
        height: 40px;
        padding: 8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background: #1e4096;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(5px);
        background: white;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-5px);
        background: white;
    }
    
    /* Professional mobile navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #1e4096 0%, #0f2857 100%);
        z-index: 100000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 20px 0 30px;
        box-shadow: none;
    }
    
    [dir="ltr"] .main-nav {
        right: auto;
        left: -100%;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .main-nav.active {
        right: 0;
        box-shadow: -2px 0 20px rgba(0,0,0,0.3);
    }
    
    [dir="ltr"] .main-nav.active {
        left: 0;
        right: auto;
    }
    
    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Hide portal button on mobile */
    .header-actions {
        display: none;
    }
    
    /* News Ticker Mobile Styles */
    .news-ticker {
        position: fixed;
        top: 125px;
        left: 0;
        right: 0;
        padding: 8px 0;
        font-size: 0.75rem;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
    
    [dir="rtl"] .ticker-content {
        animation: scrollRTL 20s linear infinite;
    }
    
    .ticker-content span {
        margin-right: 25px;
    }
    
    /* Move floating buttons to left side for Arabic (RTL) on mobile */
    [dir="rtl"] .whatsapp-circular {
        left: 20px !important;
        right: auto !important;
    }
    
    [dir="rtl"] .security-badge {
        left: 20px !important;
        right: auto !important;
    }
    
    [dir="rtl"] .security-badge::before {
        right: 0 !important;
        left: auto !important;
        transform: translateY(10px) !important;
    }
    
    [dir="rtl"] .security-badge:hover::before {
        transform: translateY(0) !important;
    }
    
    [dir="rtl"] .security-badge::after {
        right: 20px !important;
        left: auto !important;
    }
    
    /* Better overlay */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: blur(4px);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .main-nav li {
        width: 100% !important;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        font-size: 0.9rem;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.3s ease;
        position: relative;
        text-align: right;
    }
    
    [dir="ltr"] .nav-link {
        text-align: left;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 100%;
        background: rgba(255,255,255,0.1);
        transition: width 0.3s ease;
    }
    
    [dir="ltr"] .nav-link::before {
        right: auto;
        left: 0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,0.05);
        padding-right: 25px;
    }
    
    .nav-link:hover::before {
        width: 4px;
    }
    
    [dir="ltr"] .nav-link:hover,
    [dir="ltr"] .nav-link.active {
        padding-left: 25px;
        padding-right: 20px;
    }
    
    /* Dropdown Menu on Mobile */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255,255,255,0.15) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: block !important;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1000px !important;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu li a {
        padding: 12px 35px;
        font-size: 0.85rem;
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    /* Dropdown arrow indicator */
    .dropdown .nav-link {
        position: relative;
    }
    
    .dropdown .nav-link::after {
        content: '>';
        position: absolute;
        left: 15px;
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }
    
    [dir="ltr"] .dropdown .nav-link::after {
        right: 15px;
        left: auto;
        content: '<';
    }
    
    .dropdown.active .nav-link::after {
        transform: rotate(90deg);
    }
    
    /* Header Actions */
    .header-actions {
        width: auto;
        gap: 8px;
    }
    
    .portal-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    /* Add padding for fixed header, language toggle, and news ticker */
    .main-content {
        padding-top: 160px;
    }
    
    /* Mobile Typography Best Practices */
    body {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
    }
    
    h1, .h1 {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.4;
    }
    
    h4, .h4 {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
    }
    
    p, .paragraph {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
    }
    
    small, .small-text {
        font-size: 13px;
        font-weight: 400;
    }
    
    /* Content Layout */
    .content-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* HIDE SIDEBAR ON MOBILE - Too much content! */
    .left-column {
        display: none !important;
    }
    
    .main-section {
        order: 1;
        border-radius: 10px;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        height: 280px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .slideshow-controls {
        padding: 0 15px;
    }
    
    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .prev-btn i,
    .next-btn i {
        font-size: 0.8rem;
    }
    
    .slide-content {
        padding: 0 70px;
        max-width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    /* Quick Links */
    .quick-links-section {
        margin: 20px 0;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-link-card {
        padding: 25px;
    }
    
    .quick-link-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .quick-link-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    /* Statistics */
    .statistics-section {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Featured Courses */
    .featured-courses-section {
        margin: 20px 0;
    }
    
    .featured-courses-section h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .featured-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-course-card {
        padding: 25px 20px;
    }
    
    .course-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    /* Institute Intro */
    .institute-intro {
        padding: 25px;
        margin: 20px 0;
    }
    
    .institute-intro h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .institute-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .feature-badge {
        padding: 12px 15px;
    }
    
    /* News Section */
    .news-section {
        margin: 20px 0;
    }
    
    .news-section h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-item {
        padding: 20px;
    }
    
    /* Footer */
    .footer {
        margin-top: 40px;
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    /* Video Wrapper */
    .video-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile layout for very small screens */
    .container {
        padding: 0 20px;
    }
    
    /* Maintain fixed header, language toggle, and news ticker padding */
    .main-content {
        padding-top: 160px;
    }
    
    /* Logo - keep same as 768px */
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
        color: white !important;
    }
    
    .logo-text p {
        font-size: 0.7rem;
        color: white !important;
    }
    
    /* Header - Keep same as 768px */
    .header-main {
        padding: 12px 0;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    /* Hero Section - Match 768px design */
    .hero-section {
        height: 280px;
        border-radius: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    .slide-content {
        padding: 0 50px;
        max-width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .prev-btn,
    .next-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .prev-btn i,
    .next-btn i {
        font-size: 0.75rem;
    }
    
    /* Statistics - Match 768px */
    .statistics-section {
        padding: 35px 20px;
        border-radius: 15px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Quick Links - Match 768px */
    .quick-links-grid {
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .quick-link-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .quick-link-card h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .quick-link-card p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    /* Institute Intro - Match 768px */
    .institute-intro {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .institute-intro h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .institute-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .feature-badge {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    /* Featured Courses - Match 768px */
    .featured-courses-section {
        margin: 25px 0;
    }
    
    .featured-courses-section h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .featured-courses-grid {
        gap: 15px;
    }
    
    .featured-course-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .course-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .featured-course-card h4 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .featured-course-card p {
        font-size: 1rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .course-meta {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .course-meta span {
        font-size: 0.9rem;
    }
    
    .course-btn {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    /* News Section */
    .news-section {
        margin: 25px 0;
    }
    
    .news-section h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .news-grid {
        gap: 15px;
    }
    
    .news-item {
        padding: 20px;
        border-radius: 12px;
    }
    
    .news-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .news-item p {
        font-size: 1rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    /* Footer */
    .footer {
        margin-top: 40px;
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .footer-section p,
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-info p {
        margin-bottom: 15px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    /* WhatsApp & Security Badge */
    .whatsapp-circular {
        bottom: 75px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .security-badge {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Move floating buttons to left side for Arabic (RTL) on small screens */
    [dir="rtl"] .whatsapp-circular {
        left: 15px !important;
        right: auto !important;
    }
    
    [dir="rtl"] .security-badge {
        left: 15px !important;
        right: auto !important;
    }
    
    [dir="rtl"] .security-badge::before {
        right: 0 !important;
        left: auto !important;
    }
    
    [dir="rtl"] .security-badge::after {
        right: 15px !important;
        left: auto !important;
    }
    
    /* Better touch targets */
    button, .btn, .cta-button, .link-btn, .course-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Improved form inputs on mobile */
    input, textarea, select {
        font-size: 16px !important;
        padding: 14px 18px;
        border-radius: 10px;
    }
    
    /* Better spacing for all cards */
    .quick-link-card,
    .featured-course-card,
    .news-item,
    .stat-card {
        margin-bottom: 20px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Improved section spacing */
    section {
        margin: 30px 0;
    }
}

[data-lang="en"] {
    direction: ltr;
    text-align: left;
}

[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

.hidden {
    display: none !important;
}

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

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

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.page-header {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title-centered {
    text-align: center;
    color: #1e4096;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title-centered::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e4096, #2c5aa0, #3d6eb5);
    border-radius: 2px;
}

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

.section-content h2 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e4096, #2c5aa0, #3d6eb5);
    border-radius: 2px;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.history-image {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.history-image i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.mission-vision {
    background: #f8f9fa;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.mission-card h3 {
    color: #1e4096;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mission-card p {
    line-height: 1.6;
    color: #666;
}

.values-section {
    background: white;
}

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

.value-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.value-item:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

.value-item i {
    font-size: 2.5rem;
    color: #1e4096;
    margin-bottom: 15px;
}

.value-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white !important;
}

.stats-section * {
    color: white !important;
}

.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.stats-section p,
.stats-section span,
.stats-section div {
    color: white !important;
}

.stats-section h2 {
    color: white !important;
    text-align: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.accreditation-section {
    background: #f8f9fa;
}

.accreditation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.accreditation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.accreditation-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.badge:hover {
    transform: translateX(5px);
}

.badge i {
    font-size: 1.5rem;
    color: #1e4096;
    width: 30px;
}

.badge span {
    font-weight: 500;
    color: #333;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-section {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-details h2 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #1e4096;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
    line-height: 1.6;
}

.contact-text p a,
.contact-info a,
.contact-info-sidebar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text p a:hover,
.contact-info a:hover,
.contact-info-sidebar a:hover {
    color: #1e4096;
    text-decoration: underline;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid #1e4096;
    outline-offset: 2px;
    border-color: #1e4096;
    box-shadow: 0 0 0 4px rgba(30, 64, 150, 0.1);
}

.submit-btn {
    background: #1e4096;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #2c5aa0;
}

.map-section {
    margin-bottom: 60px;
}

.map-section h2 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.map-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: #1e4096;
    margin-bottom: 15px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.map-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e4096;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-directions-btn:hover {
    background: #153070;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 150, 0.3);
}

.map-directions-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

.faq-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-section h2 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #1e4096;
}

.faq-question h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #1e4096;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accreditation-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-section,
    .contact-details,
    .contact-form-container,
    .faq-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

.course-filters {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.filter-container h3 {
    color: #1e4096;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.filter-btn .course-count {
    font-weight: 600;
    opacity: 0.8;
    margin-left: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e4096;
    color: white;
    border-color: #1e4096;
}

.courses-section {
    margin-bottom: 60px;
}

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

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-image {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    color: #1e4096;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.course-meta i {
    color: #1e4096;
}

.course-btn {
    background: #1e4096;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.course-btn:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.course-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-content .close:hover {
    color: #000;
    background: #f8f9fa;
}

.modal-header {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.course-title h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.course-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #1e4096;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.detail-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.detail-section ul {
    color: #666;
    line-height: 1.8;
    padding-right: 20px;
}

.detail-section li {
    margin-bottom: 8px;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #1e4096;
    width: 30px;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item span {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
}

.info-item strong {
    color: #1e4096;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #e9ecef;
}

.register-btn {
    background: #1e4096;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

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

.download-btn {
    background: white;
    color: #1e4096;
    border: 2px solid #1e4096;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.download-btn:hover {
    background: #1e4096;
    color: white;
    transform: translateY(-2px);
}

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

.course-card.fade-in {
    animation: fadeInUp 0.5s ease;
}

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

@media (max-width: 768px) {
    
    /* ========== MODERN CARD-BASED COURSE LAYOUT ========== */
    
    .course-filters {
        background: transparent;
        padding: 20px 0;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 20px;
        position: relative;
        z-index: 10;
    }
    
    .filter-container h3 {
        display: none;
    }
    
    /* Convert to creative card grid */
    .filter-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
        overflow: visible;
    }
    
    .filter-btn {
        width: 100% !important;
        min-height: 100px !important;
        padding: 20px 15px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 2px solid rgba(30, 64, 150, 0.1);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        font-size: 0.85rem;
        white-space: normal;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08),
                    0 2px 5px rgba(0,0,0,0.04);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: right;
        min-width: auto;
    }
    
    [dir="ltr"] .filter-btn {
        text-align: left;
    }
    
    /* Category icons as large decorative elements */
    .filter-btn::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        opacity: 0.1;
        transition: opacity 0.3s;
    }
    
    [dir="ltr"] .filter-btn::before {
        right: auto;
        left: 0;
    }
    
    /* Icons as emojis */
    .filter-btn[data-category="all"]::after {
        content: '📚';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="all"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="leaders"]::after {
        content: '👔';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="leaders"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="training-plans"]::after {
        content: '📋';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="training-plans"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="commercial"]::after {
        content: '💼';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="commercial"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="human-development"]::after {
        content: '🌱';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="human-development"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="legal-science"]::after {
        content: '⚖️';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="legal-science"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="islamic-banking"]::after {
        content: '💰';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="islamic-banking"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="computer-it"]::after {
        content: '💻';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="computer-it"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="computer-maintenance"]::after {
        content: '🔧';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="computer-maintenance"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="occupational-safety"]::after {
        content: '🛡️';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="occupational-safety"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="foreign-languages"]::after {
        content: '🌐';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="foreign-languages"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="international-tests"]::after {
        content: '📝';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="international-tests"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn[data-category="specialized"]::after {
        content: '⭐';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        opacity: 0.3;
        transition: all 0.3s;
    }
    
    [dir="ltr"] .filter-btn[data-category="specialized"]::after {
        right: auto;
        left: 15px;
    }
    
    .filter-btn span {
        position: relative;
        z-index: 1;
        width: 70%;
    }
    
    .filter-btn.active {
        background: linear-gradient(135deg, #1e4096 0%, #3d6eb5 100%);
        color: white !important;
        border-color: #1e4096;
        box-shadow: 0 8px 25px rgba(30, 64, 150, 0.4),
                    0 4px 10px rgba(30, 64, 150, 0.3);
        transform: translateY(-5px) scale(1.02);
    }
    
    .filter-btn.active span {
        color: white !important;
    }
    
    .filter-btn.active::after {
        opacity: 0.2;
        transform: translateY(-50%) scale(1.1);
    }
    
    .filter-btn:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* Additional category card enhancements */
    .filter-btn:hover {
        border-color: rgba(30, 64, 150, 0.3);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12),
                    0 3px 8px rgba(0,0,0,0.08);
    }
    
    .filter-btn::after {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .filter-btn:hover::after {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.15);
    }
    
    /* Subtle shimmer effect */
    .filter-btn::before {
        background: linear-gradient(135deg, rgba(30, 64, 150, 0.1), transparent);
    }
    
    .filter-btn.active::before {
        opacity: 0.2;
    }
    
    /* Gradient border effect for active */
    .filter-btn.active::after {
        opacity: 0.25;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }
    
    /* Pulse animation for active category */
    @keyframes categoryPulse {
        0%, 100% {
            box-shadow: 0 8px 25px rgba(30, 64, 150, 0.4),
                        0 4px 10px rgba(30, 64, 150, 0.3);
        }
        50% {
            box-shadow: 0 8px 30px rgba(30, 64, 150, 0.5),
                        0 4px 15px rgba(30, 64, 150, 0.4);
        }
    }
    
    .filter-btn.active {
        animation: categoryPulse 2s ease-in-out infinite;
    }
    
    /* ========== ENHANCED COURSE CARDS ========== */
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1),
                    0 3px 10px rgba(0,0,0,0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        position: relative;
    }
    
    .course-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1e4096, #3d6eb5, #1e4096);
        transform: scaleX(0);
        transition: transform 0.5s ease;
    }
    
    .course-card:hover::before,
    .course-card:active::before {
        transform: scaleX(1);
    }
    
    .course-image {
        height: 150px;
        background: linear-gradient(135deg, #1e4096 0%, #3d6eb5 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3.5rem;
        position: relative;
        overflow: hidden;
    }
    
    .course-image::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }
    
    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .course-content {
        padding: 25px;
    }
    
    .course-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        line-height: 1.4;
        color: #1e4096;
        font-weight: 700;
    }
    
    .course-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #666;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .course-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .course-meta span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        color: #555;
    }
    
    .course-meta i {
        color: #1e4096;
        font-size: 1rem;
    }
    
    .course-btn {
        width: 100%;
        padding: 14px 25px;
        background: linear-gradient(135deg, #1e4096, #3d6eb5);
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(30, 64, 150, 0.3);
    }
    
    .course-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(30, 64, 150, 0.3);
    }
    
    /* ========== MODAL STYLES ========== */
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .register-btn,
    .download-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .course-content {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
    margin-bottom: 30px;
    border-radius: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumb a {
    color: #1e4096;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2c5aa0;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #666;
}

.course-detail-header {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.course-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.course-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.course-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-header-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.course-meta-header {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.meta-item i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.register-btn-large,
.download-btn-large {
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.register-btn-large {
    background: white;
    color: #1e4096;
}

.register-btn-large:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.download-btn-large {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.download-btn-large:hover {
    background: white;
    color: #1e4096;
    transform: translateY(-2px);
}

.course-detail-content {
    margin-bottom: 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.detail-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h2 {
    color: #1e4096;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-section p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.detail-section ul {
    color: #666;
    line-height: 1.8;
    padding-right: 20px;
}

.detail-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.content-modules {
    margin-top: 20px;
}

.module {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.module h3 {
    color: #1e4096;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.instructor-card {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    align-items: flex-start;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.instructor-info h3 {
    color: #1e4096;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.instructor-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.instructor-credentials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1e4096;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.schedule-item i {
    font-size: 1.5rem;
    color: #1e4096;
    width: 30px;
}

.schedule-item h4 {
    color: #1e4096;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.schedule-item p {
    color: #666;
    font-weight: 500;
    margin: 0;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sidebar-card h3 {
    color: #1e4096;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.quick-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: #666;
    font-size: 0.95rem;
}

.info-row strong {
    color: #1e4096;
    font-size: 1.1rem;
}

.quick-registration {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-registration .form-group {
    margin-bottom: 0;
}

.quick-registration input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.quick-registration input:focus {
    outline: none;
    border-color: #1e4096;
}

.submit-quick-registration {
    background: #1e4096;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-quick-registration:hover {
    background: #2c5aa0;
}

.related-courses {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-course {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.related-course:hover {
    background: #1e4096;
    color: white;
    transform: translateX(5px);
}

.related-course i {
    font-size: 1.2rem;
    color: #1e4096;
    width: 20px;
}

.related-course:hover i {
    color: white;
}

.contact-info-sidebar p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.contact-info-sidebar i {
    color: #1e4096;
    width: 20px;
}

@media (max-width: 768px) {
    .course-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .course-meta-header {
        justify-content: center;
    }
    
    .course-actions {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-main {
        padding: 20px;
    }
    
    .instructor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .schedule-info {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        padding: 15px;
    }
    
    .course-detail-header {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .course-header-info h1 {
        font-size: 2rem;
    }
    
    .course-meta-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .register-btn-large,
    .download-btn-large {
        width: 100%;
    }
    
    .instructor-credentials {
        flex-direction: column;
        align-items: center;
    }
    
    .credential {
        margin-right: 0;
        text-align: center;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e4096;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2c5aa0;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7em;
    margin-right: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

[dir="ltr"] .dropdown-toggle::after {
    margin-right: 0;
    margin-left: 5px;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2), 0 5px 15px rgba(30,64,150,0.15);
    border-radius: 16px;
    display: none !important; 
    opacity: 0;
    visibility: hidden; 
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000 !important;
    list-style: none;
    padding: 16px 0;
    border: 2px solid #e8f0fe;
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.1));
    z-index: 1;
}

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

[dir="ltr"] .dropdown-menu::before {
    right: auto;
    left: 20px;
}

.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: #1e4096;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin: 3px 12px;
    font-weight: 500;
    position: relative;
    font-size: 1rem;
    background: transparent;
}

.dropdown-menu li a::before {
    content: "›";
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    color: #4facfe;
    font-size: 1.4em;
    line-height: 1;
}

[dir="ltr"] .dropdown-menu li a::before {
    content: "‹";
    transform: translateX(-10px);
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d0e4ff 100%);
    color: #1e4096;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(30, 64, 150, 0.15);
    padding-right: 28px;
}

[dir="ltr"] .dropdown-menu li a:hover {
    transform: translateX(5px);
    padding-right: 24px;
    padding-left: 28px;
}

.dropdown-menu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-menu li a:active {
    transform: scale(0.98);
}

@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: relative;
        opacity: 1;
        transform: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        background: #ffffff;
        display: none;
        margin-top: 12px;
        margin-bottom: 12px;
        border: 2px solid #e8f0fe;
        border-radius: 14px;
        min-width: 100%;
    }

    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        animation: mobileDropdownSlide 0.3s ease-out;
    }
    
    @keyframes mobileDropdownSlide {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-menu li a {
        font-size: 1rem;
        padding: 14px 20px;
        margin: 2px 8px;
    }
    
    .dropdown-menu li a:hover {
        transform: none;
        padding-right: 20px;
    }
    
    [dir="ltr"] .dropdown-menu li a:hover {
        padding-left: 20px;
        transform: none;
    }
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    animation: dropdownSlide 0.3s ease forwards;
}

.dropdown-divider {
    height: 1px;
    margin: 10px 16px;
    background: linear-gradient(90deg, transparent 0%, #d0d7de 20%, #d0d7de 80%, transparent 100%);
    overflow: hidden;
    list-style: none;
    border: none;
    padding: 0;
}

[dir="ltr"] .dropdown-divider {
    background: linear-gradient(90deg, transparent 0%, #d0d7de 20%, #d0d7de 80%, transparent 100%);
}

.dropdown-menu li a {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.label-required::after {
    content: ' *';
    color: #c21b1b;
    font-weight: 700;
}

.dropdown-menu li a:hover {
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(30, 64, 150, 0.1);
}

[dir="ltr"] .dropdown-menu li a:hover {
    transform: translateX(3px);
}

html {
    scroll-behavior: smooth;
}

*:focus-visible {
    outline: 3px solid #4facfe;
    outline-offset: 2px;
    border-radius: 4px;
}

button, .btn, .portal-btn, .lang-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button::before, .btn::before, .portal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before, .portal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.course-card, .stat-card, .service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover, .stat-card:hover, .service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

a {
    transition: all 0.3s ease;
}

a:not(.nav-link):not(.btn):not(.cta-button):hover {
    opacity: 0.85;
}

img {
    transition: opacity 0.3s ease-in-out;
}

img:not([src]) {
    opacity: 0;
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(30, 64, 150, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

.site-header {
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dropdown-menu {
    animation: dropdownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

::selection {
    background: #4facfe;
    color: white;
}

::-moz-selection {
    background: #4facfe;
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 6px;
    border: 2px solid #f1f3f5;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2c5aa0 0%, #3d6eb5 100%);
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
    }
}

.portal-btn:hover, .submit-btn:hover {
    animation: subtle-pulse 1.5s infinite;
}

button, a, input, textarea, select, .card, .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header *::selection {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.dropdown-menu, .course-card, .nav-link {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   MOBILE CREATIVE TOUCHES
   Professional & Attractive Mobile Design
   ======================================== */

@media (max-width: 768px) {
    
    /* ========== SMOOTH SCROLLING & ANIMATIONS ========== */
    html {
        scroll-behavior: smooth;
    }
    
    /* ========== ENHANCED CARDS & INTERACTIVE ELEMENTS ========== */
    
    /* Quick Link Cards - Hover Effect */
    .quick-link-card,
    .featured-course-card,
    .news-item,
    .stat-card,
    .course-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .quick-link-card:active,
    .featured-course-card:active,
    .news-item:active,
    .stat-card:active {
        transform: scale(0.97);
    }
    
    /* Ripple effect on tap */
    .quick-link-card::before,
    .featured-course-card::before,
    .course-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .quick-link-card:active::before,
    .featured-course-card:active::before,
    .course-card:active::before {
        width: 300px;
        height: 300px;
    }
    
    /* Enhanced shadows for depth */
    .quick-link-card,
    .featured-course-card,
    .news-item {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                    0 2px 4px rgba(0, 0, 0, 0.04);
    }
    
    .quick-link-card:active,
    .featured-course-card:active,
    .news-item:active {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                    0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    /* ========== BUTTON ENHANCEMENTS ========== */
    
    /* CTA & Action Buttons */
    .cta-button,
    .course-btn,
    .btn,
    button:not(.mobile-menu-toggle):not(.lang-btn) {
        position: relative;
        overflow: hidden;
        font-weight: 600;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 12px rgba(30, 64, 150, 0.3),
                    0 2px 4px rgba(30, 64, 150, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .cta-button:active,
    .course-btn:active,
    .btn:active,
    button:active {
        transform: translateY(2px);
        box-shadow: 0 2px 6px rgba(30, 64, 150, 0.3),
                    0 1px 2px rgba(30, 64, 150, 0.2);
    }
    
    /* Gradient overlay on buttons */
    .cta-button::after,
    .course-btn::after {
        content: '';
        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.5s;
    }
    
    .cta-button:active::after,
    .course-btn:active::after {
        left: 100%;
    }
    
    /* ========== HEADER & NAVIGATION ENHANCEMENTS ========== */
    
    /* Header shadow depth */
    .header {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                    0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    /* Logo subtle animation */
    .logo img {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .logo:active img {
        transform: scale(0.95);
    }
    
    /* News ticker enhanced background */
    .news-ticker {
        background: linear-gradient(135deg, rgba(30, 64, 150, 0.95), rgba(15, 40, 87, 0.95));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* ========== STATISTICS CARDS ENHANCEMENTS ========== */
    
    .stat-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(30, 64, 150, 0.05), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .stat-card:active {
        transform: scale(0.98);
    }
    
    .stat-card:active::before {
        opacity: 1;
    }
    
    .stat-icon {
        transition: transform 0.3s ease;
    }
    
    .stat-card:active .stat-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    /* ========== HERO SLIDER ENHANCEMENTS ========== */
    
    .hero-section {
        position: relative;
        overflow: hidden;
    }
    
    .slide-content {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .prev-btn,
    .next-btn {
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .prev-btn:active,
    .next-btn:active {
        transform: scale(0.9);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    /* ========== FORM ELEMENTS ENHANCEMENTS ========== */
    
    input,
    textarea,
    select {
        transition: all 0.3s ease;
        border-width: 2px;
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        border-color: #1e4096;
        box-shadow: 0 0 0 4px rgba(30, 64, 150, 0.1);
        transform: translateY(-2px);
    }
    
    /* ========== LOADING STATES ========== */
    
    .courses-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        font-size: 1.1rem;
        color: #666;
        font-weight: 500;
    }
    
    .courses-loading::after {
        content: '...';
        animation: dots 1.5s infinite;
    }
    
    @keyframes dots {
        0%, 20% { content: '.'; }
        40% { content: '..'; }
        60%, 100% { content: '...'; }
    }
    
    /* ========== SMOOTH TRANSITIONS ========== */
    
    .page-header {
        animation: fadeInDown 0.6s ease-out;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ========== COURSE CARD SPECIAL EFFECTS ========== */
    
    .course-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .course-card:active .course-image {
        transform: scale(1.05);
    }
    
    .course-image {
        transition: transform 0.3s ease;
    }
    
    /* ========== INSTITUTE INTRO ENHANCEMENTS ========== */
    
    .institute-intro {
        position: relative;
        overflow: hidden;
    }
    
    .institute-intro::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(30, 64, 150, 0.03), transparent);
        animation: shimmer 3s infinite;
    }
    
    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    /* ========== FOOTER ENHANCEMENTS ========== */
    
    .footer {
        position: relative;
    }
    
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #1e4096, transparent);
    }
    
    .social-link {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .social-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
    }
    
    .social-link:active::before {
        width: 100px;
        height: 100px;
    }
    
    .social-link:active {
        transform: scale(0.9);
    }
    
    /* ========== ACCESSIBILITY IMPROVEMENTS ========== */
    
    /* Ensure all interactive elements have clear feedback */
    *:focus-visible {
        outline: 3px solid #1e4096;
        outline-offset: 3px;
        border-radius: 4px;
    }
    
    /* ========== SCROLL INDICATORS ========== */
    
    /* Smooth scrollbar for webkit browsers */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #1e4096, #3d6eb5);
        border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #0f2857, #1e4096);
    }
    
    /* ========== FLOATING ACTION BUTTONS ========== */
    
    .whatsapp-circular,
    .security-badge {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .whatsapp-circular:active,
    .security-badge:active {
        transform: scale(0.9);
    }
    
    /* ========== MODALS & OVERLAYS ========== */
    
    .modal,
    .course-modal {
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* ========== SEARCH & FILTER ENHANCEMENTS ========== */
    
    .filter-btn {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(135deg, #1e4096, #3d6eb5);
        transition: height 0.3s ease;
        z-index: 0;
    }
    
    .filter-btn.active::before,
    .filter-btn:active::before {
        height: 100%;
    }
    
    .filter-btn span {
        position: relative;
        z-index: 1;
    }
    
    .filter-btn.active span,
    .filter-btn:active span {
        color: white;
    }
    
    /* ========== SUBTLE ANIMATIONS ========== */
    
    /* Add subtle pulse to important elements */
    @keyframes gentle-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
    
    .whatsapp-circular {
        animation: gentle-pulse 2s infinite ease-in-out;
    }
    
    /* Stop animation on interaction */
    .whatsapp-circular:active {
        animation: none;
    }
    
    /* ========== ENHANCED VISUAL HIERARCHY ========== */
    
    /* Section headings */
    h2, h3 {
        position: relative;
        padding-bottom: 15px;
    }
    
    h2::after,
    h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #1e4096, transparent);
        border-radius: 2px;
    }
    
    [dir="rtl"] h2::after,
    [dir="rtl"] h3::after {
        left: auto;
        right: 0;
        background: linear-gradient(90deg, transparent, #1e4096);
    }
    
    /* ========== PERFORMANCE OPTIMIZATIONS ========== */
    
    /* GPU acceleration for smooth animations */
    .quick-link-card,
    .featured-course-card,
    .course-card,
    .stat-card,
    .nav-link {
        will-change: transform;
    }
    
    /* Transform instead of position for better performance */
    .mobile-menu-toggle.active span {
        transform: translateZ(0);
    }
    
    /* ========== TOUCH FEEDBACK OPTIMIZATION ========== */
    
    /* Remove tap highlight but keep visual feedback */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Add custom active states for better touch feedback */
    .course-card:active,
    .quick-link-card:active,
    .featured-course-card:active {
        opacity: 0.9;
    }
    
    /* ========== CONTACT PAGE MOBILE CENTERING ========== */
    
    .contact-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contact-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .contact-details,
    .contact-form-container {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    /* Center all contact form elements */
    .contact-form {
        text-align: center;
    }
    
    .form-group {
        text-align: center;
    }
    
    .form-group label {
        text-align: center;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        text-align: center;
    }
    
    /* Center submit button */
    .contact-form button[type="submit"] {
        width: 100%;
        margin: 0 auto;
    }
    
    /* ========== FOOTER MOBILE CENTERING ========== */
    
    .footer-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info p {
        text-align: center;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    /* ========== CAREERS PAGE HUMAN VERIFICATION MOBILE FIX ========== */
    
    .puzzle-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 140px !important;
        margin: 0 auto 12px;
    }
    
    .puzzle-card {
        width: 100%;
        padding: 10px;
    }
    
    .slider-row {
        width: 100%;
    }
    
    canvas#puzzlePiece {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* ========== CAREERS FORM MOBILE FIXES ========== */
    
    .careers-container {
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .careers-form {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .careers-form .full {
        grid-column: 1 !important;
    }
    
    .form-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field input[type="number"],
    .form-field select,
    .form-field textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .actions {
        grid-column: 1 !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .slider-row input[type=range] {
        width: 100% !important;
        max-width: 100% !important;
    }
}
