/*
Theme Name: GLOBAL BA Theme
Author: Mudassir
Description: Custom theme for Global Bangladeshi Alliance
Version: 1.0
*/

:root {
    /* Existing Colors */
    --navy: #13294b;
    --deep-navy: #0a1a30;
    --gba-red: #b22234;
    --gold: #b8860b;
    --gold-light: #e4b138;
    --bg-light: #f0f3f8;
    
    /* New Modular Variables */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -8px rgba(0, 20, 40, 0.08);
    --shadow-hover: 0 20px 25px -5px rgba(0, 20, 40, 0.12);
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Fix Hero Buttons on Mobile */
/* Bulletproof Mobile Button Fix */
@media (max-width: 850px) {
    .btn-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

.site-logo-img {
    max-height: 120px; /* Adjust this number to make the logo bigger or smaller */
    width: auto;
    object-fit: contain;
}

/* Update your existing logo-block to align the image nicely */
.logo-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid var(--gba-red);
    padding-left: 1rem;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--deep-navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: #475569; margin-bottom: 1.25rem; }

.section { 
    padding: 6rem 0; 
    border-bottom: 1px solid rgba(0, 20, 50, 0.05); 
}

/* Modular Buttons (Preserving your colors) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #ffffff;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover {
    background: var(--deep-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--gold);
    color: var(--deep-navy);
    font-weight: 600;
}
.btn-gold:hover { 
    background: #9e7008; 
    color: #ffffff; 
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}
.btn-outline:hover { 
    background: var(--navy); 
    color: #ffffff; 
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0; 
    z-index: 100;
}

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

.logo-block {
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--gba-red);
    padding-left: 1rem;
    text-decoration: none;
}

.logo-gba {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-gba span { color: var(--gba-red); }

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}
.logo-sub span { color: var(--navy); font-weight: 400; margin: 0 0.2rem; }

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

/* Active & Hover States (Preserving --gba-red) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gba-red);
    transition: width var(--transition-fast);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { 
    color: var(--gba-red); 
    font-weight: 600; 
}
.nav-links a.active::after { width: 100%; }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--navy);
    background: none;
    border: none;
    cursor: pointer;
}

/* Grids & Modular Cards */
.pillars-grid, .program-grid, .leader-grid, .event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--gold-light);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card i { 
    font-size: 2.5rem; 
    color: var(--gba-red); 
    margin-bottom: 1.5rem; 
}

/* Utilities */
.badge {
    background: rgba(228, 177, 56, 0.15); /* Soft gold background */
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0b1f38 0%, #1a3255 80%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 8rem 0;
}
.hero::after {
    content: "";
    position: absolute; inset:0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Night_earth_view_from_space.jpg/1024px-Night_earth_view_from_space.jpg') center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #ffffff; }

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-toggle { display: block; }
    
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        border-top: 1px solid #f0f3f8;
    }
    
    .nav-links.active-menu {
        display: flex; /* Shown when toggled */
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        border-left: 3px solid transparent;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover, .nav-links a.active {
        background: var(--bg-light);
        border-left: 3px solid var(--gba-red);
    }
}

/* --- MODAL STYLES --- */
.gba-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 26, 48, 0.8); /* Deep navy transparent backdrop */
    backdrop-filter: blur(4px);
    overflow-y: auto; /* Allows scrolling if form is long */
    padding: 2rem 1rem;
}

.gba-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--gba-red);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.gba-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #94a3b8;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.gba-modal-close:hover { color: var(--gba-red); }

/* --- FORM STYLES --- */
.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 200px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group .required { color: var(--gba-red); }
.form-group .optional { color: #94a3b8; font-weight: 400; font-size: 0.8rem; }
.gba-modal-content input[type="text"],
.gba-modal-content input[type="email"],
.gba-modal-content input[type="tel"],
.gba-modal-content input[type="url"],
.gba-modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced9e8;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}
.gba-modal-content input:focus,
.gba-modal-content textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #ffffff;
}

