/* CSS Variables */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-neon: #00d9ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --gradient-neon: linear-gradient(135deg, #00d9ff, #8b5cf6);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --glow-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    --card-glow: 0 8px 25px rgba(0, 217, 255, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

html[dir="rtl"] {
    direction: rtl;
}

/* Urdu Font Support */
.ur-text {
    font-family: 'Noto Nastaliq Urdu', 'Scheherazade New', 'Lateef', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.8;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 90px;
    left: 30px;
    display: flex;
    gap: 10px;
    z-index: 1001;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

html[dir="rtl"] .language-toggle {
    left: auto;
    right: 30px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn.active {
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.logo-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu li a.active {
    color: white;
    background: rgba(0, 217, 255, 0.1);
}

.nav-menu li a.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #8b5cf6);
    border-radius: 2px;
}

/* RTL navigation adjustments */
html[dir="rtl"] .nav-menu li a.active::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Auth Buttons */
.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-section a {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-section .login-btn {
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.auth-section .login-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-neon);
}

.auth-section .signup-btn {
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-section .signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    filter: brightness(0.9);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-section .signup-btn:hover::before {
    opacity: 1;
}

.auth-section .signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-neon);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #ff4d4d;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #ff4d4d;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    padding-top: 80px;
    border-left: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* RTL mobile menu adjustments */
html[dir="rtl"] .mobile-menu {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
    flex: 1;
}

.mobile-menu .nav-menu li {
    width: 100%;
}

.mobile-menu .nav-menu li a {
    display: block;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu .nav-menu li a:hover,
.mobile-menu .nav-menu li a.active {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--accent-neon);
    padding-left: 25px;
    color: white;
}

/* RTL mobile menu link adjustments */
html[dir="rtl"] .mobile-menu .nav-menu li a {
    border-left: none;
    border-right: 3px solid transparent;
    text-align: right;
}

html[dir="rtl"] .mobile-menu .nav-menu li a:hover,
html[dir="rtl"] .mobile-menu .nav-menu li a.active {
    border-right: 3px solid var(--accent-neon);
    padding-left: 20px;
    padding-right: 25px;
}

/* Mobile Auth Section */
.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-auth a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-auth .login-btn {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.mobile-auth .login-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-neon);
}

.mobile-auth .signup-btn {
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    color: white;
    border: none;
}

.mobile-auth .signup-btn:hover {
    background: linear-gradient(135deg, #00e6ff, #9b6cff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ======================================================= */
/* FIXED HEADER SECTION - CLEAN & WORKING - LARGER SIZE */
/* ======================================================= */

header {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 100px;
    overflow: hidden;
    text-align: center;
    background-color: #0f172a;
}

/* Background Image - Using ::before */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/header.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay with opacity - Using ::after */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1;
}

/* Header content - ABOVE everything */
.header-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
}

/* Floating shapes - between overlay and content */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d9ff, #8b5cf6);
    top: -200px;
    right: -250px;
    animation: float 25s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ec4899, #00d9ff);
    top: 50%;
    right: 10%;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    33% { 
        transform: translate(30px, 40px) rotate(120deg); 
    }
    66% { 
        transform: translate(-20px, 30px) rotate(240deg); 
    }
}

/* Main Title - LARGER SIZE */
header h1 {
    font-size: 56px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6) !important;
}

.title-gradient {
    background: linear-gradient(135deg, #ffffff, #e2e8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 50px rgba(0, 217, 255, 0.4),
        0 0 100px rgba(139, 92, 246, 0.3) !important;
}

/* Tagline - LARGER SIZE */
.tagline {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 45px;
    color: #ffffff !important;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: transparent;
    color: white;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.1),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
    z-index: 11;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: subtleGlow 3s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.3), 
        rgba(139, 92, 246, 0.3));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 0 !important;
}

.cta-button:hover {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.1),
        inset 0 0 20px rgba(0, 217, 255, 0.05) !important;
}

.cta-button:hover span:last-child {
    transform: translateX(5px) !important;
    text-shadow: none !important;
}

.cta-button span:last-child {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Contact Cards - LARGER SIZE */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s ease;
    min-width: 250px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    z-index: 11;
}

.contact-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(0, 217, 255, 0.15);
    transition: all 0.3s ease;
    color: var(--accent-neon);
    flex-shrink: 0;
}

.contact-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

/* Stats - Transparent Glassmorphism Style */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    z-index: 11;
    position: relative;
}

/* Make all stat badges the same size - FIXED */
.stat-badge {
    text-align: center;
    position: relative;
    padding: 25px 20px;
    width: 180px;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.1),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    animation: subtleGlow 3s ease-in-out infinite !important;
}

/* Gradient border effect on hover */
.stat-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.3), 
        rgba(139, 92, 246, 0.3));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-badge:hover::before {
    opacity: 0 !important;
}

/* Inner glow effect */
.stat-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.05), 
        rgba(139, 92, 246, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-badge:hover::after {
    opacity: 0 !important;
}

.stat-badge:hover {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.1),
        inset 0 0 20px rgba(0, 217, 255, 0.05) !important;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #e2e8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 
        0 0 30px rgba(0, 217, 255, 0.4),
        0 0 60px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.stat-badge:hover .stat-number {
    text-shadow: 
        0 0 30px rgba(0, 217, 255, 0.4),
        0 0 60px rgba(139, 92, 246, 0.3) !important;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-badge:hover .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 217, 255, 0.1),
            inset 0 0 20px rgba(0, 217, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(0, 217, 255, 0.15),
            inset 0 0 25px rgba(0, 217, 255, 0.08);
    }
}

/* Stagger the animations */
.stat-badge:nth-child(1) { animation-delay: 0s; }
.stat-badge:nth-child(2) { animation-delay: 0.5s; }
.stat-badge:nth-child(3) { animation-delay: 1s; }
.stat-badge:nth-child(4) { animation-delay: 1.5s; }

/* Adjust gap between CTA button and stats in Urdu */
html[dir="rtl"] .header-content {
    margin-bottom: -10px;
}

html[dir="rtl"] .stats-container {
    margin-top: 15px !important;
}

html[dir="rtl"] .cta-button {
    margin-bottom: 20px !important;
}

html[dir="rtl"] .contact-cards {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* ======================================================= */
/* REST OF SECTIONS */
/* ======================================================= */

/* Section Styling */
section {
    padding: 40px 5%;
    position: relative;
    background: var(--bg-primary);
}

section.light {
    background: var(--bg-primary);
}

/* Specific sections */
#practice-resources,
#why,
.testimonial.light {
    background: var(--bg-primary);
}

/* Section Titles */
.title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.title h2 {
    font-size: 42px;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

/* For tablets */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For desktops */
@media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Cards */
.card {
    background: rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: var(--card-glow);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
}

.card h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-neon);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2), 
                0 0 30px rgba(0, 217, 255, 0.1);
    background: rgba(51, 65, 85, 0.5);
}

/* RTL adjustments for cards */
html[dir="rtl"] .card {
    text-align: right;
}

/* ======================================================= */
/* BOARD CARDS - ICON LEFT, TEXT RIGHT */
/* ======================================================= */

/* Board support section */
#board-support.light {
    background: var(--bg-primary);
    padding: 80px 5%;
}

#board-support .title {
    text-align: center;
    margin-bottom: 50px;
}

#board-support .title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

#board-support .title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

/* RTL adjustments for title */
html[dir="rtl"] #board-support .title h2::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Main container */
#board-support .board-support-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Card */
#board-support .service-card {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Boards Grid Container */
#board-support .boards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Board Card - Icon Left, Text Right */
#board-support .board-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

/* Top gradient border */
#board-support .board-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
    opacity: 0.7;
    border-radius: 3px 3px 0 0;
}

/* Hover effects */
#board-support .board-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 217, 255, 0.15),
        0 5px 15px rgba(139, 92, 246, 0.1);
}

/* Board Logo/Icon - LEFT SIDE */
#board-support .board-logo {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-neon);
    font-size: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.2);
    flex-shrink: 0;
}

/* Icon hover animation */
#board-support .board-item:hover .board-logo {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* Board Information - RIGHT SIDE */
#board-support .board-info {
    flex: 1;
    text-align: left;
}

/* Main Board Name/TITLE */
#board-support .board-info h4 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Board Description/TEXT */
#board-support .board-info p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Optional: Add subtle glow animation */
@keyframes boardCardGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    }
}

#board-support .board-item {
    animation: boardCardGlow 4s ease-in-out infinite;
}

/* Stagger the animations */
#board-support .board-item:nth-child(1) { animation-delay: 0s; }
#board-support .board-item:nth-child(2) { animation-delay: 0.5s; }
#board-support .board-item:nth-child(3) { animation-delay: 1s; }
#board-support .board-item:nth-child(4) { animation-delay: 1.5s; }
#board-support .board-item:nth-child(5) { animation-delay: 2s; }
#board-support .board-item:nth-child(6) { animation-delay: 2.5s; }

/* RTL Support */
/* For RTL languages, flip the icon to right side */
html[dir="rtl"] #board-support .board-item {
    flex-direction: row-reverse;
    text-align: right;
    gap: 20px;
}

html[dir="rtl"] #board-support .board-info {
    text-align: right;
}

/* Force English board names to stay LTR even in RTL */
html[dir="rtl"] #board-support .board-info h4,
html[dir="rtl"] #board-support .board-info p {
    direction: ltr;
    text-align: left;
}

/* Practice & Assessment Resources - Light Background */
#practice-resources.light {
    background: var(--bg-primary);
}

/* PRACTICE RESOURCES - 5 CARDS */
#practice-resources .grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

#practice-resources .card {
    background: rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: var(--card-glow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

#practice-resources .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
}

#practice-resources .card-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--accent-neon);
    font-size: 18px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#practice-resources .card:hover .card-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: rotate(10deg) scale(1.05);
    border-color: var(--accent-neon);
}

#practice-resources .card h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2;
    flex-shrink: 0;
}

#practice-resources .card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
}

#practice-resources .card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2), 
                0 0 15px rgba(0, 217, 255, 0.1);
    background: rgba(51, 65, 85, 0.4);
}

/* Demo Section - Smaller Width */
.demo-box {
    max-width: 700px;
    margin: auto;
    background: rgba(51, 65, 85, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: var(--glow-shadow);
}

.demo-box video,
.demo-box iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    background: #000;
    outline: none;
}

/* Testimonial Section */
.testimonial-box {
    max-width: 800px;
    margin: auto;
    background: rgba(51, 65, 85, 0.2);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    text-align: center;
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 100px;
    color: var(--accent-neon);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-box p {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-box strong {
    color: var(--accent-neon);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RTL adjustments for testimonial */
html[dir="rtl"] .testimonial-box {
    text-align: right;
}

html[dir="rtl"] .testimonial-box::before {
    left: auto;
    right: 30px;
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    font-size: 16px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    nav .container {
        padding: 0 20px;
    }
    
    #board-support .boards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 130px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    #board-support .board-info h4 {
        font-size: 18px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu,
    .auth-section {
        display: none;
    }
    
    header h1 {
        font-size: 42px;
    }
    
    .tagline {
        font-size: 18px;
        max-width: 700px;
    }
    
    .cta-button {
        padding: 18px 35px;
        font-size: 16px;
    }
    
    /* Board Support responsive */
    #board-support .boards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #board-support .board-item {
        padding: 25px 20px;
        min-height: 140px;
        gap: 20px;
    }
    
    #board-support .board-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    #board-support .board-info h4 {
        font-size: 20px;
    }
    
    #board-support .board-info p {
        font-size: 12px;
    }
    
    /* For RTL on tablet */
    html[dir="rtl"] #board-support .board-item {
        gap: 20px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    #practice-resources .card {
        padding: 22px 15px;
        min-height: 190px;
    }
    
    #practice-resources .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    #practice-resources .card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #practice-resources .card p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Stats responsive */
    .stat-badge {
        width: 160px;
        padding: 22px 18px;
    }
    
    .stat-number {
        font-size: 36px;
        min-height: 45px;
    }
    
    .stat-label {
        font-size: 11px;
        min-height: 18px;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 600px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    nav .container {
        padding: 0 20px;
        height: 65px;
    }
    
    .logo-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Language toggle mobile adjustments */
    .language-toggle {
        top: 80px;
        left: 20px;
    }
    
    html[dir="rtl"] .language-toggle {
        left: auto;
        right: 20px;
    }
    
    /* Header responsive */
    header {
        padding: 100px 20px 60px;
        min-height: 70vh;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .contact-card {
        padding: 18px 22px;
        min-width: 220px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-container {
        gap: 20px;
        margin-top: 45px;
    }
    
    .stat-badge {
        width: 140px;
        padding: 20px 15px;
        border-radius: 14px;
    }
    
    .stat-number {
        font-size: 32px;
        min-height: 40px;
    }
    
    .stat-label {
        font-size: 11px;
        letter-spacing: 1.5px;
        min-height: 17px;
    }
    
    /* Section responsive */
    .title h2 {
        font-size: 32px;
    }
    
    section {
        padding: 40px 5%;
    }
    
    #board-support .boards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 130px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    #board-support .board-info h4 {
        font-size: 18px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 500px;
        padding: 15px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 280px;
    }
    
    .testimonial-box {
        padding: 40px 30px;
    }
    
    .testimonial-box p {
        font-size: 18px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    #practice-resources .card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    #practice-resources .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    #practice-resources .card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    #practice-resources .card p {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    #board-support .boards-container {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    #board-support .board-item {
        padding: 25px 20px;
        min-height: 120px;
        gap: 20px;
    }
    
    #board-support .board-info h4 {
        font-size: 19px;
    }
    
    #board-support .board-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    #board-support .board-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    /* Language toggle mobile adjustments */
    .language-toggle {
        top: 75px;
        left: 15px;
        padding: 6px;
    }
    
    html[dir="rtl"] .language-toggle {
        left: auto;
        right: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Header responsive */
    header {
        padding: 80px 20px 40px;
        min-height: 65vh;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 280px;
    }
    
    .stats-container {
        gap: 15px;
        margin-top: 40px;
    }
    
    .stat-badge {
        width: 120px;
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 28px;
        min-height: 35px;
    }
    
    .stat-label {
        font-size: 10px;
        letter-spacing: 1px;
        min-height: 16px;
    }
    
    /* Section responsive */
    .title h2 {
        font-size: 28px;
    }
    
    section {
        padding: 30px 5%;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    .card p {
        font-size: 13px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 110px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #board-support .board-info h4 {
        font-size: 17px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 90%;
        padding: 12px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 220px;
    }
    
    footer {
        padding: 30px 20px;
        font-size: 14px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
    }
    
    #practice-resources .card {
        padding: 25px 20px;
        min-height: auto;
    }
    
    #practice-resources .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    #practice-resources .card h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    #practice-resources .card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    .stats-container {
        gap: 10px;
    }
    
    .stat-badge {
        width: 110px;
        padding: 16px 10px;
    }
    
    .stat-number {
        font-size: 24px;
        min-height: 30px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    #board-support .board-item {
        padding: 20px 15px;
        min-height: 100px;
        gap: 15px;
    }
    
    #board-support .board-logo {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    #board-support .board-info h4 {
        font-size: 16px;
    }
    
    #board-support .board-info p {
        font-size: 10px;
    }
}

/* Optional: Different board categories with different colors */
#board-support .board-item.federal .board-logo {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
    border-color: rgba(0, 217, 255, 0.3);
}

#board-support .board-item.punjab .board-logo {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

#board-support .board-item.sindh .board-logo {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

#board-support .board-item.international .board-logo {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

/* Adjust border colors based on category */
#board-support .board-item.federal::before {
    background: linear-gradient(135deg, #00d9ff, #00b8d9);
}

#board-support .board-item.punjab::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

#board-support .board-item.sindh::before {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

#board-support .board-item.international::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* If you want to use images instead of icons */
#board-support .board-logo.image-logo {
    background: transparent;
    border: none;
    padding: 5px;
}

#board-support .board-logo.image-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Practice & Assessment Resources - Light Background */
#practice-resources.light {
    background: var(--bg-primary) !important;
}

/* PRACTICE RESOURCES - 5 CARDS */
#practice-resources .grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

#practice-resources .card {
    background: rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: var(--card-glow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

#practice-resources .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
}

#practice-resources .card-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--accent-neon);
    font-size: 18px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#practice-resources .card:hover .card-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: rotate(10deg) scale(1.05);
    border-color: var(--accent-neon);
}

#practice-resources .card h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2;
    flex-shrink: 0;
}

#practice-resources .card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
}

#practice-resources .card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2), 
                0 0 15px rgba(0, 217, 255, 0.1);
    background: rgba(51, 65, 85, 0.4);
}

/* Demo Section - Smaller Width */
.demo-box {
    max-width: 700px; /* Reduced from 900px */
    margin: auto;
    background: rgba(51, 65, 85, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: var(--glow-shadow);
}

.demo-box video,
.demo-box iframe {
    width: 100%;
    height: 400px; /* Adjusted height for new width */
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    background: #000;
    outline: none;
}

/* Testimonial Section */
.testimonial-box {
    max-width: 800px;
    margin: auto;
    background: rgba(51, 65, 85, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    text-align: center;
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 100px;
    color: var(--accent-neon);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-box p {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-box strong {
    color: var(--accent-neon);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RTL adjustments for testimonial */
html[dir="rtl"] .testimonial-box {
    text-align: right;
}

html[dir="rtl"] .testimonial-box::before {
    left: auto;
    right: 30px;
}

/* Footer */
footer {
    background: var(--bg-primary) !important;
    color: var(--text-secondary);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    font-size: 16px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    nav .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu,
    .auth-section {
        display: none;
    }
    
    header h1 {
        font-size: 42px; /* Adjusted for tablet */
    }
    
    .tagline {
        font-size: 18px; /* Adjusted for tablet */
        max-width: 700px;
    }
    
    .cta-button {
        padding: 18px 35px;
        font-size: 16px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    #practice-resources .card {
        padding: 22px 15px;
        min-height: 190px;
    }
    
    #practice-resources .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    #practice-resources .card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #practice-resources .card p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Board Support responsive */
    .boards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .board-header h3 {
        font-size: 30px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .board-item {
        padding: 22px;
    }
    
    /* Stats responsive */
    .stat-badge {
        width: 160px; /* Slightly smaller on tablets */
        padding: 22px 18px;
    }
    
    .stat-number {
        font-size: 36px;
        min-height: 45px;
    }
    
    .stat-label {
        font-size: 11px;
        min-height: 18px;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 600px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    nav .container {
        padding: 0 20px;
        height: 65px;
    }
    
    .logo-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* Language toggle mobile adjustments */
    .language-toggle {
        top: 80px;
        left: 20px;
    }
    
    html[dir="rtl"] .language-toggle {
        left: auto;
        right: 20px;
    }
    
    /* Header responsive */
    header {
        padding: 100px 20px 60px; /* Adjusted for mobile */
        min-height: 70vh; /* Adjusted for mobile */
    }
    
    header h1 {
        font-size: 36px; /* Adjusted for mobile */
    }
    
    .tagline {
        font-size: 16px; /* Adjusted for mobile */
        margin-bottom: 35px;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .contact-card {
        padding: 18px 22px;
        min-width: 220px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-container {
        gap: 20px;
        margin-top: 45px;
    }
    
    .stat-badge {
        width: 140px; /* Smaller on mobile */
        padding: 20px 15px;
        border-radius: 14px;
    }
    
    .stat-number {
        font-size: 32px;
        min-height: 40px;
    }
    
    .stat-label {
        font-size: 11px;
        letter-spacing: 1.5px;
        min-height: 17px;
    }
    
    /* Section responsive */
    .title h2 {
        font-size: 32px;
    }
    
    section {
        padding: 40px 5%;
    }
    
    /* Board Support responsive */
    .boards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 30px auto 0;
    }
    
    .board-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .board-header h3 {
        font-size: 28px;
    }
    
    .service-description {
        font-size: 16px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .board-item {
        padding: 25px;
    }
    
    .board-logo {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .board-info h4 {
        font-size: 18px;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 500px;
        padding: 15px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 280px;
    }
    
    .testimonial-box {
        padding: 40px 30px;
    }
    
    .testimonial-box p {
        font-size: 18px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    #practice-resources .card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    #practice-resources .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    #practice-resources .card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    #practice-resources .card p {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    /* Language toggle mobile adjustments */
    .language-toggle {
        top: 75px;
        left: 15px;
        padding: 6px;
    }
    
    html[dir="rtl"] .language-toggle {
        left: auto;
        right: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Header responsive */
    header {
        padding: 80px 20px 40px;
        min-height: 65vh;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 280px;
    }
    
    .stats-container {
        gap: 15px;
        margin-top: 40px;
    }
    
    .stat-badge {
        width: 120px; /* Even smaller on small phones */
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 28px;
        min-height: 35px;
    }
    
    .stat-label {
        font-size: 10px;
        letter-spacing: 1px;
        min-height: 16px;
    }
    
    /* Section responsive */
    .title h2 {
        font-size: 28px;
    }
    
    section {
        padding: 30px 5%;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    .card p {
        font-size: 13px;
    }
    
    /* Board Support responsive */
    .boards-container {
        gap: 18px;
    }
    
    .board-header h3 {
        font-size: 24px;
    }
    
    .service-description {
        font-size: 15px;
        margin-bottom: 35px;
    }
    
    .board-item {
        padding: 20px;
    }
    
    .board-info h4 {
        font-size: 17px;
    }
    
    .board-info p {
        font-size: 12px;
    }
    
    /* Demo responsive */
    .demo-box {
        max-width: 90%;
        padding: 12px;
    }
    
    .demo-box video,
    .demo-box iframe {
        height: 220px;
    }
    
    footer {
        padding: 30px 20px;
        font-size: 14px;
    }
    
    /* Practice Resources - Responsive */
    #practice-resources .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
    }
    
    #practice-resources .card {
        padding: 25px 20px;
        min-height: auto;
    }
    
    #practice-resources .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    #practice-resources .card h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    #practice-resources .card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    .stats-container {
        gap: 10px;
    }
    
    .stat-badge {
        width: 110px;
        padding: 16px 10px;
    }
    
    .stat-number {
        font-size: 24px;
        min-height: 30px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}













/* ======================================================= */
/* BOARD CARDS - ICON LEFT, TEXT RIGHT */
/* ======================================================= */

/* Board support section */
#board-support.light {
    background: var(--bg-primary) !important;
    padding: 80px 5%;
}

#board-support .title {
    text-align: center;
    margin-bottom: 50px;
}

#board-support .title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

#board-support .title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

/* Main container */
#board-support .board-support-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Card */
#board-support .service-card {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Boards Grid Container */
#board-support .boards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Board Card - Icon Left, Text Right */
#board-support .board-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

/* Top gradient border */
#board-support .board-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
    opacity: 0.7;
    border-radius: 3px 3px 0 0;
}

/* Hover effects */
#board-support .board-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 217, 255, 0.15),
        0 5px 15px rgba(139, 92, 246, 0.1);
}

/* Board Logo/Icon - LEFT SIDE */
#board-support .board-logo {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-neon);
    font-size: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.2);
    flex-shrink: 0;
}

/* Icon hover animation */
#board-support .board-item:hover .board-logo {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* Board Information - RIGHT SIDE */
#board-support .board-info {
    flex: 1;
    text-align: left;
}

/* Main Board Name/TITLE */
#board-support .board-info h4 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Board Description/TEXT */
#board-support .board-info p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Optional: Add subtle glow animation */
@keyframes boardCardGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    }
}

#board-support .board-item {
    animation: boardCardGlow 4s ease-in-out infinite;
}

/* Stagger the animations */
#board-support .board-item:nth-child(1) { animation-delay: 0s; }
#board-support .board-item:nth-child(2) { animation-delay: 0.5s; }
#board-support .board-item:nth-child(3) { animation-delay: 1s; }
#board-support .board-item:nth-child(4) { animation-delay: 1.5s; }
#board-support .board-item:nth-child(5) { animation-delay: 2s; }
#board-support .board-item:nth-child(6) { animation-delay: 2.5s; }

/* RTL Support */
/* For RTL languages, flip the icon to right side */
html[dir="rtl"] #board-support .board-item {
    flex-direction: row-reverse;
    text-align: right;
    gap: 20px;
}

html[dir="rtl"] #board-support .board-info {
    text-align: right;
}

/* Force English board names to stay LTR even in RTL */
html[dir="rtl"] #board-support .board-info h4,
html[dir="rtl"] #board-support .board-info p {
    direction: ltr;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #board-support .boards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 130px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    #board-support .board-info h4 {
        font-size: 18px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    #board-support .boards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #board-support .board-item {
        padding: 25px 20px;
        min-height: 140px;
        gap: 20px;
    }
    
    #board-support .board-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    #board-support .board-info h4 {
        font-size: 20px;
    }
    
    #board-support .board-info p {
        font-size: 12px;
    }
    
    /* For RTL on tablet */
    html[dir="rtl"] #board-support .board-item {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #board-support {
        padding: 60px 5%;
    }
    
    #board-support .title h2 {
        font-size: 36px;
    }
    
    #board-support .boards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 130px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    #board-support .board-info h4 {
        font-size: 18px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media (max-width: 600px) {
    #board-support .boards-container {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    #board-support .board-item {
        padding: 25px 20px;
        min-height: 120px;
        gap: 20px;
    }
    
    #board-support .board-info h4 {
        font-size: 19px;
    }
    
    #board-support .board-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    #board-support .board-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    #board-support {
        padding: 50px 5%;
    }
    
    #board-support .title h2 {
        font-size: 32px;
    }
    
    #board-support .board-item {
        padding: 22px 18px;
        min-height: 110px;
        gap: 18px;
    }
    
    #board-support .board-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #board-support .board-info h4 {
        font-size: 17px;
    }
    
    #board-support .board-info p {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    #board-support .board-item {
        padding: 20px 15px;
        min-height: 100px;
        gap: 15px;
    }
    
    #board-support .board-logo {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    #board-support .board-info h4 {
        font-size: 16px;
    }
    
    #board-support .board-info p {
        font-size: 10px;
    }
}

/* Optional: Different board categories with different colors */
#board-support .board-item.federal .board-logo {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
    border-color: rgba(0, 217, 255, 0.3);
}

#board-support .board-item.punjab .board-logo {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

#board-support .board-item.sindh .board-logo {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

#board-support .board-item.international .board-logo {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

/* Adjust border colors based on category */
#board-support .board-item.federal::before {
    background: linear-gradient(135deg, #00d9ff, #00b8d9);
}

#board-support .board-item.punjab::before {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

#board-support .board-item.sindh::before {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

#board-support .board-item.international::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* If you want to use images instead of icons */
#board-support .board-logo.image-logo {
    background: transparent;
    border: none;
    padding: 5px;
}

#board-support .board-logo.image-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}