/* ==========================================================================
   2M PLATFORM - MODERN HOMEPAGE STYLESHEET (High-Performance & Ultra-Responsive)
   Design System: Royal Purple (#6A0DAD) & Vibrant Gold (#FFD700 / #F59E0B)
   ========================================================================== */

:root {
    --primary: #6A0DAD;
    --primary-dark: #4B0082;
    --primary-light: #8B5CF6;
    --primary-gradient: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    --accent: #F59E0B;
    
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --border-color: #E2E8F0;
    --border-color-hover: #C4B5FD;
    
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(109, 40, 217, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(109, 40, 217, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #243248;
    --border-color: #334155;
    --border-color-hover: #6D28D9;
    --text-heading: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   GLOBAL RESET & PERFORMANCE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Cairo', 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide Accessibility skip links properly */
.skip-link,
a[href="#main-content"],
a[href*="main-content"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Section Header Component */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--text-heading);
    margin: 0 0 1rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: var(--radius-pill);
    margin: 0.75rem auto 0;
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.section-footer {
    text-align: center;
    margin-top: 3.5rem;
}

/* Generic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.6);
    color: #FFFFFF !important;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary) !important;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary) !important;
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HERO SECTION - High Visual Quality, Crisp Contrast
   ========================================================================== */
section.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
                var(--bg-page);
    overflow: hidden;
}

[data-theme="dark"] section.hero {
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
                var(--bg-page);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

[dir="ltr"] .hero-content {
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .hero-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--gold);
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.22;
    color: var(--text-heading);
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

/* Gradient highlight for specific words */
.hero-title .highlight,
.hero-title span.text-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 2.25rem;
    max-width: 580px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* Trust stats bar inside Hero */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hero-trust-item i {
    color: var(--accent);
}

/* Hero Image Card */
.hero-image {
    position: relative;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(245, 158, 11, 0.1));
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(109, 40, 217, 0.25);
    transition: var(--transition-normal);
}

[data-theme="dark"] .hero-image-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 65px -15px rgba(109, 40, 217, 0.35);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* ==========================================================================
   STATS SECTION - Modern Floating Bridge Counter
   ========================================================================== */
.stats {
    padding: 2rem 0;
    position: relative;
    z-index: 5;
    margin-top: -2rem;
}

.stats-card-bridge {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem;
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.stat-item:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    color: var(--accent);
    border-color: rgba(245, 158, 11, 0.15);
}

.stat-item:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.15);
}

.stat-item:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.15);
}

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

.stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   MEDIA SLIDESHOW SECTION
/* Media Gallery styles are maintained modularly in assets/css/gallery-slideshow.css */

/* ==========================================================================
   FEATURED COURSES SECTION - Smart Grid & Premium Cards
   ========================================================================== */
.courses-section {
    padding: 6rem 0;
    background: var(--bg-page);
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.25rem;
    max-width: 1240px;
    margin: 0 auto;
}

/* Center single or dual cards cleanly */
.courses-grid:has(> :only-child) {
    grid-template-columns: minmax(auto, 420px);
    justify-content: center;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.course-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E2E8F0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.06);
}

.course-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

[dir="ltr"] .course-category-badge {
    right: auto;
    left: 14px;
}

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

.course-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    color: var(--text-heading);
}

.course-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.course-title a:hover {
    color: var(--primary);
}

.course-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.course-meta > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-meta i {
    color: var(--primary-light);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-rating .stars {
    color: #F59E0B;
    font-size: 0.85rem;
}

.rating-text {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.course-action-btn {
    margin-top: 1rem;
    width: 100%;
}

/* ==========================================================================
   FEATURED PACKAGES SECTION - Flawless Card with No Visual Glitches
   ========================================================================== */
.packages-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(124, 58, 237, 0.04) 50%, var(--bg-page) 100%);
    position: relative;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.packages-grid:has(> :only-child) {
    grid-template-columns: minmax(auto, 480px);
    justify-content: center;
}

.package-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 25px 45px -10px rgba(109, 40, 217, 0.25);
}

.package-header {
    background: linear-gradient(135deg, #6A0DAD 0%, #8B5CF6 100%);
    padding: 2.25rem 2rem 1.75rem;
    color: #FFFFFF;
    position: relative;
}

/* Elegant Pill Badge */
.package-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-gradient);
    color: #3B0764;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.package-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.package-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.package-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.package-meta-item i {
    color: var(--gold);
}

.package-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.package-price-wrapper {
    margin-bottom: 1.75rem;
}

.package-price-original {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.35rem;
}

.package-price-current {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.package-savings {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
}

[data-theme="dark"] .package-savings {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.package-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
    transition: var(--transition-fast);
}

.package-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.45);
}

/* ==========================================================================
   TEAM LEADERS SECTION - Prestigious Leaderboard Styling
   ========================================================================== */
.team-section {
    padding: 6rem 0;
    background: var(--bg-page);
}

/* Top Leader Podium Card */
.top-leader-card {
    background: linear-gradient(135deg, #2E0854 0%, #4B0082 40%, #6A0DAD 100%);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2rem;
    margin: 0 auto 3.5rem;
    max-width: 820px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(75, 0, 130, 0.35);
    border: 2px solid rgba(255, 215, 0, 0.4);
    overflow: hidden;
    color: #FFFFFF;
}

.top-leader-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.leader-crown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: #3B0764;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.leader-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.leader-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.leader-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--gold-gradient);
    color: #3B0764;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 3px solid #4B0082;
}

.leader-name {
    font-size: 2.25rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 0.4rem;
}

.leader-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

.leader-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.leader-stat-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leader-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
}

.leader-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.leader-achievement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: var(--gold);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.15);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.member-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.member-rank,
.member-points {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   UPCOMING EVENTS SECTION
   ========================================================================== */
.events-section {
    padding: 6rem 0;
    background: var(--bg-page);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid:has(> :only-child) {
    grid-template-columns: minmax(auto, 420px);
    justify-content: center;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E2E8F0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.06);
}

.event-date {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.1;
    z-index: 2;
}

[dir="ltr"] .event-date {
    right: auto;
    left: 14px;
}

.event-date .day {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.event-date .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.event-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.75rem;
}

.event-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.event-meta > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-meta i {
    color: var(--primary);
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.event-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
}

.event-price .free {
    color: #10B981;
}

/* ==========================================================================
   SUCCESS STORIES SECTION
   ========================================================================== */
.stories-section {
    padding: 6rem 0;
    background: var(--bg-page);
}

.stories-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stories-slider:has(> :only-child) {
    grid-template-columns: minmax(auto, 460px);
    justify-content: center;
}

.story-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.story-rating {
    color: #F59E0B;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    font-style: italic;
    margin: 0 0 1.75rem;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.25rem;
}

.author-job {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SUPPORT SECTION (Call To Action Banner)
   ========================================================================== */
.support-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4B0082 0%, #6A0DAD 60%, #7C3AED 100%);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.support-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 1rem;
}

.support-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0 0 2.25rem;
}

.support-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.btn-phone {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-phone:hover {
    background: #FFFFFF;
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Non-intrusive, High Conversion)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 24px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #FFFFFF !important;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
}

.whatsapp-btn i {
    font-size: 1.4rem;
}

.whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (All Screen Breakpoints)
   ========================================================================== */

/* Tablet & Large Mobile (<= 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust-bar {
        justify-content: center;
    }
    
    .hero-image {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Screen (<= 768px) */
@media (max-width: 768px) {
    section.hero {
        padding: 3rem 0 2rem;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats {
        margin-top: 1rem;
        padding: 1.5rem 0;
    }
    
    .stats-card-bridge {
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    
    .courses-section,
    .packages-section,
    .team-section,
    .events-section,
    .stories-section,
    .support-section {
        padding: 3.5rem 0;
    }
    
    .top-leader-card {
        padding: 2rem 1.25rem;
    }
    
    .leader-image img {
        width: 90px;
        height: 90px;
    }
    
    .leader-name {
        font-size: 1.75rem;
    }
    
    .whatsapp-btn .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 0.85rem;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }
    
    .whatsapp-btn i {
        margin: 0;
    }
}

/* Small Mobile Screen (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-info {
        align-items: center;
    }
    
    
    .package-header {
        padding: 1.5rem 1.25rem;
    }
    
    .package-content {
        padding: 1.5rem 1.25rem;
    }
    
    .package-price-current {
        font-size: 2rem;
    }
}