/* styles.css */

:root {
    /* Updated Brand Colors based on Logo */
    --primary: #006837;      /* Islamic Green */
    --secondary: #C69C27;    /* Gold */
    --accent: #FB3640;       /* Keep Red Accent */
    --bg-light: #F4F7F5;     /* Soft green-white */
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #4A5568;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Dark Mode Defaults */
    --dark-bg: #051A10;      /* Very dark green */
    --dark-card: #0A2B1C;    /* Dark green card */
    --dark-text: #EAF2EF;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-white: #0F1713;
    --bg-light: #16221D;
    --text-main: #F4F7F5;
    --text-muted: #A3B3AA;
    --glass-bg: rgba(22, 34, 29, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --dark-bg: #0F1713;
    --dark-card: #1C2B24;
}

[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea {
    background-color: var(--dark-card);
    border-color: var(--glass-border);
    color: var(--dark-text);
}

[data-theme="dark"] .donation-card {
    background-color: var(--dark-card);
}

[data-theme="dark"] .donation-card.active {
    background: rgba(0, 104, 55, 0.2);
}

[data-theme="dark"] .success-message h3 {
    color: white;
}

/* Alert Styles - unified definiton below at bottom of file */
.alert h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Ensure white text in admin panel (Soft UI) if needed */
.alert .text-white {
    color: #fff !important;
}

.success-message {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-message i {
    color: var(--primary);
    margin-bottom: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.gap-large { gap: 64px; }
.mb-small  { margin-bottom: 16px; }
.mb-medium { margin-bottom: 32px; }
.mt-medium { margin-top: 32px; }
.mt-large  { margin-top: 64px; }
.p-large   { padding: 40px; }
.w-full    { width: 100%; }
.text-center { text-align: center; }
.align-center { align-items: center; }

.bg-light { background-color: var(--bg-light); }
.bg-dark  { background-color: var(--primary); }
.text-white   { color: white; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-muted); }

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 4rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-bottom: 24px;
    border-radius: 2px;
}

.section-divider.center {
    margin: 0 auto 24px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

[data-theme="dark"] .btn-secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.text-link:hover {
    gap: 8px;
    color: var(--secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    min-height: calc(var(--nav-height) - 10px);
    box-shadow: var(--shadow-md);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
}

.logo-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-img {
    width: 100%;
    height: 100%;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-myei {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-full {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.logo:hover .logo-wrapper {
    transform: scale(1.05) translateY(-2px);
}

[data-theme="dark"] .logo-myei { color: #FFFFFF; }
[data-theme="dark"] .logo-full { color: var(--secondary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9375rem;
}

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

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-icon { display: none; }
[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

/* Islamic Geometric Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0 L75 45 L120 60 L75 75 L60 120 L45 75 L0 60 L45 45 Z' fill='none' stroke='%23006837' stroke-width='0.5' opacity='0.07'/%3E%3Ccircle cx='60' cy='60' r='15' fill='none' stroke='%23006837' stroke-width='0.5' opacity='0.07'/%3E%3Cpath d='M0 0 L120 120 M120 0 L0 120' stroke='%23C69C27' stroke-width='0.2' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0 L75 45 L120 60 L75 75 L60 120 L45 75 L0 60 L45 45 Z' fill='none' stroke='%2380c9a0' stroke-width='0.5' opacity='0.06'/%3E%3Ccircle cx='60' cy='60' r='15' fill='none' stroke='%2380c9a0' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M0 0 L120 120 M120 0 L0 120' stroke='%23C69C27' stroke-width='0.2' opacity='0.05'/%3E%3C/svg%3E");
}

/* Micro-animations (Framer Motion style) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal.active {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.reveal-right.active {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism improvements - unified definition below */

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 104, 55, 0.1);
    color: var(--secondary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-headline {
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

/* Updated Hero Image Gradient to match Brand */
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 104, 55, 0.2);
}

[data-theme="dark"] .hero-image-placeholder {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--primary) 100%) !important;
    color: white;
}

.floating-card {
    position: absolute;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
    z-index: 5;
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .floating-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-color: rgba(0, 104, 55, 0.1);
}

[data-theme="dark"] .floating-card {
    background: rgba(10, 43, 28, 0.85);
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.floating-card i[data-lucide],
.floating-card svg.lucide {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .floating-card i[data-lucide],
[data-theme="light"] .floating-card svg.lucide {
    color: var(--primary);
    stroke: var(--primary);
}

[data-theme="dark"] .floating-card i[data-lucide],
[data-theme="dark"] .floating-card svg.lucide {
    color: var(--secondary);
    stroke: var(--secondary);
}

.floating-card.c1 { top: 20px; right: -30px; }
.floating-card.c2 { bottom: 40px; left: -30px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-muted);
    border-radius: 100px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 100px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0, 104, 55, 0.12), 0 8px 16px rgba(0,0,0,0.08);
    border-color: rgba(198, 156, 39, 0.25);
}

/* Section Specific Styles */
.about-image-wrapper {
    position: relative;
}

.image-box {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

[data-theme="dark"] .image-box {
    background: var(--dark-card);
    color: var(--text-main);
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='white' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.about-text {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.mission-card h3, .vision-card h3 {
    margin-top: 20px;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .icon-box {
    background: var(--secondary);
    color: white;
}

.program-card {
    text-align: left;
}

.program-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 104, 55, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.eco-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eco-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    transition: var(--transition);
}

[data-theme="dark"] .eco-icon-box {
    color: var(--secondary);
}

.eco-item:hover .eco-icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

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

.why-card {
    padding: 24px;
}

.why-header {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
}

/* Impact Counters */
.impact {
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
}

/* Updated Stats with Brand Colors */
.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary); /* Gold stats */
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary); /* Match gold for consistency */
    transform: translateY(-5px);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* Partners Section */
.partner-box {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer-divider-geometric {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    color: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    margin-bottom: 24px;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.social-links-centered {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 1100;
    position: relative;
}

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

[data-theme="dark"] .mobile-menu-toggle { color: white; }
[data-theme="dark"] .mobile-menu-toggle:hover { background: rgba(255,255,255,0.08); }

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.reveal.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE STYLES – Full Overhaul
   Breakpoints: 1200 | 1024 | 768 | 576 | 375
   ============================================ */

/* --- 1200px: Large screens --- */
@media (max-width: 1200px) {
    :root { --container-max: 960px; }
}

/* --- 1024px: Tablets landscape / small laptops --- */
@media (max-width: 1024px) {
    :root {
        --container-max: 720px;
        --section-padding: 80px 0;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .hero-content { gap: 40px; }
    .logo-myei { font-size: 1.5rem; }

    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .gap-large { gap: 40px; }
}

/* --- 768px: Tablets portrait & large phones --- */
@media (max-width: 768px) {
    :root {
        --container-max: 100%;
        --section-padding: 60px 0;
        --nav-height: 65px;
    }

    html { font-size: 15px; }

    .container { padding: 0 20px; }

    h1 { font-size: 2.25rem; line-height: 1.2; }
    h2 { font-size: 1.875rem; line-height: 1.25; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }

    /* --- Mobile Navbar --- */
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 100%);
        height: 100dvh;
        min-height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 80px 32px 40px;
        z-index: 1050;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }

    [data-theme="dark"] .nav-links {
        background: var(--dark-card);
        border-left: 1px solid var(--glass-border);
    }

    /* Mobile nav overlay backdrop */
    .nav-links.active::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: -1;
        backdrop-filter: blur(2px);
    }

    .nav-link {
        font-size: 1.125rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .nav-link:hover {
        background: rgba(0, 104, 55, 0.08);
        color: var(--primary);
    }

    .nav-cta { width: 100%; margin-top: 16px; }

    .theme-btn { margin-top: 8px; }

    /* --- Hero --- */
    .hero {
        padding-top: calc(var(--nav-height) + 32px);
        text-align: center;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-text-wrapper { order: 2; }
    .hero-visual {
        order: 1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-subheadline { font-size: 1rem; max-width: 100%; }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-btns .btn { width: 100%; max-width: 340px; }

    .floating-card.c1 { top: 10px; right: -10px; font-size: 0.85rem; padding: 10px 16px; }
    .floating-card.c2 { bottom: 20px; left: -10px; font-size: 0.85rem; padding: 10px 16px; }

    /* --- Grids --- */
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .gap-large { gap: 32px; }
    .mt-large { margin-top: 40px; }
    .grid { gap: 20px; }

    /* --- Cards --- */
    .glass-card { padding: 28px 24px; }
    .why-grid { gap: 14px; }
    .why-card { padding: 18px 20px; }
    .section-divider { margin-bottom: 20px; }

    /* --- About section --- */
    .about-image-wrapper { max-width: 300px; margin: 0 auto; }
    .image-box { aspect-ratio: 3/2; }

    /* --- Partner box --- */
    .partner-box { aspect-ratio: 4/3; }

    /* --- Impact section --- */
    .impact.bg-dark.text-white .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number  { font-size: 2.75rem; }
    .stat-plus    { font-size: 1.75rem; }

    /* --- Eco icons --- */
    .grid-5.mt-large { grid-template-columns: repeat(2, 1fr); }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer { padding: 60px 0 32px; }
    .footer-divider-geometric { top: -30px; }
}

/* --- 576px: Large phones --- */
@media (max-width: 576px) {
    :root { --section-padding: 50px 0; }

    .container { padding: 0 16px; }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }

    .hero-visual { max-width: 240px; }
    .hero-btns .btn { max-width: 100%; }

    .badge { font-size: 0.8rem; padding: 5px 12px; }
    .glass-card { padding: 24px 20px; }

    .stat-number  { font-size: 2.25rem; }
    .stat-plus    { font-size: 1.5rem; }
    .stat-label   { font-size: 0.85rem; }

    .impact.bg-dark.text-white .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .grid-5.mt-large { grid-template-columns: repeat(2, 1fr); }
    .eco-icon-box { width: 60px; height: 60px; }

    .footer-grid { gap: 24px; }
    .footer-links h4 { margin-bottom: 12px; }

    .btn-large { padding: 14px 28px; font-size: 1rem; }
    .section-padding { padding: 48px 0; }
}

/* --- 375px: Small phones --- */
@media (max-width: 375px) {
    .container { padding: 0 14px; }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.45rem; }

    .logo-myei { font-size: 1.4rem; }
    .logo-full { display: none; }
    .logo-wrapper { width: 46px; height: 46px; }

    .glass-card { padding: 20px 16px; }

    .hero { padding-bottom: 40px; }
    .hero-visual { max-width: 200px; }

    .stat-number { font-size: 2rem; }

    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .btn-large { padding: 12px 24px; }

    .social-link { width: 36px; height: 36px; }

    .impact.bg-dark.text-white .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid transparent;
    border-right: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(0, 104, 55, 0.08);
    border-left-color: var(--primary);
    color: var(--primary);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.08);
    border-left-color: #dc3545;
    color: #c0392b;
}

.alert-warning {
    background: rgba(198, 156, 39, 0.1);
    border-left-color: var(--secondary);
    color: #8a6d0b;
}

.alert-info {
    background: rgba(0, 104, 55, 0.06);
    border-left-color: var(--secondary);
    color: var(--secondary);
}

[data-theme="dark"] .alert-success {
    background: rgba(0, 104, 55, 0.2);
    color: #6fcf97;
}
[data-theme="dark"] .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
}
[data-theme="dark"] .alert-warning {
    background: rgba(198, 156, 39, 0.15);
    color: var(--secondary);
}
[data-theme="dark"] .alert-info {
    background: rgba(198, 156, 39, 0.1);
    color: var(--secondary);
}
.font-weight-bold{
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
.font-weight-bold:hover{
    color: var(--secondary);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
.copyright{
    color: white;
}

/* --- Scholarship and Hero Icons Fix --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.course-card {
    text-align: center;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: var(--transition);
}

.course-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 104, 55, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.course-icon svg {
    width: 32px;
    height: 32px;
}

[data-theme="dark"] .course-icon {
    background: rgba(198, 156, 39, 0.15);
    color: var(--secondary);
}

.course-card:hover .course-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

[data-theme="dark"] .course-card:hover .course-icon {
    background: var(--secondary);
    color: white;
}

/* Fix for Graduation Cap and other Lucide icons in light mode */
.hero-icon {
    color: white !important;
    stroke: white !important;
}

[data-theme="light"] i[data-lucide="graduation-cap"],
[data-theme="light"] svg.lucide-graduation-cap {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Specific visibility fix for light mode icons in cards */
[data-theme="light"] .course-icon i[data-lucide],
[data-theme="light"] .course-icon svg.lucide {
    color: var(--primary);
    stroke: var(--primary);
}

/* ===========================================
   COMPREHENSIVE RESPONSIVE DESIGN STYLES
   =========================================== */

/* Alumni Page Responsive Styles */
@media (max-width: 1200px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .alumni-card {
        padding: 24px;
    }

    .alumni-image {
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .alumni-card {
        padding: 20px;
    }

    .alumni-image {
        height: 180px;
    }

    .alumni-name {
        font-size: 1.1rem;
    }

    .alumni-position {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .alumni-hero {
        padding: 60px 0 40px;
        text-align: center;
    }

    .alumni-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .alumni-hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .alumni-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
        margin-top: 32px;
    }

    .alumni-card {
        padding: 16px;
        text-align: center;
    }

    .alumni-image {
        height: 160px;
        width: 160px;
        margin: 0 auto 16px;
    }

    .alumni-name {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .alumni-position {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .alumni-bio {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .alumni-hero {
        padding: 40px 0 30px;
    }

    .alumni-hero h1 {
        font-size: 1.8rem;
    }

    .alumni-hero p {
        font-size: 0.95rem;
    }

    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .alumni-card {
        padding: 16px;
        max-width: 100%;
    }

    .alumni-image {
        height: 140px;
        width: 140px;
    }

    .alumni-name {
        font-size: 0.95rem;
    }

    .alumni-position {
        font-size: 0.8rem;
    }

    .alumni-bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .alumni-hero {
        padding: 30px 0 20px;
    }

    .alumni-hero h1 {
        font-size: 1.6rem;
    }

    .alumni-hero p {
        font-size: 0.9rem;
        padding: 0 16px;
    }

    .alumni-grid {
        gap: 12px;
        margin-top: 20px;
    }

    .alumni-card {
        padding: 12px;
    }

    .alumni-image {
        height: 120px;
        width: 120px;
        margin-bottom: 12px;
    }

    .alumni-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .alumni-position {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .alumni-bio {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .alumni-card {
        transition: none;
    }

    .alumni-card:hover {
        transform: none;
    }

    .course-card {
        transition: none;
    }

    .course-card:hover {
        transform: none;
    }

    .course-card:hover .course-icon {
        transform: none;
    }

    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .alumni-hero {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .alumni-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
        box-shadow: none;
    }

    .alumni-image {
        display: none;
    }

    .btn, .social-link, .navbar, .footer {
        display: none !important;
    }

    .course-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
        box-shadow: none;
    }

    .course-icon {
        background: #f0f0f0;
        color: black;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .alumni-card {
        border: 2px solid;
    }

    .course-card {
        border: 2px solid;
    }

    .glass-card {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .alumni-card,
    .course-card,
    .course-icon,
    .btn,
    .glass-card {
        transition: none;
    }

    .alumni-card:hover,
    .course-card:hover {
        transform: none;
    }

    .course-card:hover .course-icon {
        transform: none;
    }
}

/* Focus Management for Accessibility */
.alumni-card:focus-within,
.course-card:focus-within,
.btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

