:root {
    /* Brand Colors */
    --primary-color: #10b981;
    /* Emerald */
    --secondary-color: #f59e0b;
    /* Amber */
    --accent-color: #0ea5e9;
    /* Sky Blue */

    /* Text Colors - INVERTED FOR LIGHT MODE */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */

    /* Surfaces - INVERTED */
    --white: #ffffff;
    /* Pure White */
    --light-bg: #f8fafc;
    /* Slate 50 */

    /* Vibrant Gradient Kept */
    --gradient-main: linear-gradient(135deg,
            #059669 0%,
            #10b981 35%,
            #0ea5e9 65%,
            #f59e0b 100%);

    --gradient-hover: linear-gradient(135deg,
            #f59e0b 0%,
            #0ea5e9 40%,
            #10b981 70%,
            #059669 100%);

    /* Light Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);

    --radius: 16px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.7;
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 3rem;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gradient-main);
    background-size: 200% auto;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    /* Emerald shadow */
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-position: right center;
    /* shift gradient */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
    /* Amber shadow */
}

/* Input Styles */
input,
select,
textarea {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    /* Light Slate Border */
    border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Header & Nav overrides for white mode */
header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    /* Light Slate Border */
}

.nav-links a {
    color: var(--text-dark);
}

/* Footer override */
footer {
    background: #0b1120;
    /* Darker than body */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('../../img/cover.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.4);
    /* Glass backdrop */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger impact */
    margin-bottom: 25px;
    text-shadow: none;
    /* Removed shadow for clean glass look */
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    opacity: 1;
    color: #e2e8f0;
    font-weight: 400;
}

/* Smart Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

/* Cards (Stories/News) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border-bottom: 4px solid transparent;
    border-image: var(--gradient-main) 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 25px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 column */
    }

    .card {
        min-height: auto;
    }
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: #0b1120;
    /* Darker than body */
    color: #ffffff;
    /* FORCE WHITE */
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Explicitly 4 columns on desktop */
    gap: 50px;
    /* Increased gap for better spacing */
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablets */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ffffff;
    /* FORCE WHITE */
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff;
    /* FORCE WHITE */
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
    /* FORCE WHITE */
    opacity: 0.7;
}

/* Member Directory & Search */
#map-container {
    margin: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        color: var(--primary-color);
    }

    .search-container {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out backwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5) {
    animation-delay: 0.4s;
}

/* Colorful Map Styles */
.bd-map path {
    transition: all 0.3s ease;
    stroke: #fff;
    stroke-width: 1px;
}

.bd-map path:hover,
.bd-map path.active {
    filter: brightness(1.1);
    transform: scale(1.01);
    stroke: #333;
    stroke-width: 2px;
}

/* Specific Division Colors */
#Dhaka {
    fill: #e74c3c;
}

#Chittagong {
    fill: #3498db;
}

#Rajshahi {
    fill: #f1c40f;
}

#Khulna {
    fill: #2ecc71;
}

#Barisal {
    fill: #9b59b6;
}

#Sylhet {
    fill: #1abc9c;
}

#Rangpur {
    fill: #e67e22;
}

#Mymensingh {
    fill: #34495e;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    background: transparent;
    border: none;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-date {
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
    font-size: 0.9rem;
}

.modal-text {
    color: var(--text-dark);
    line-height: 1.8;
    white-space: pre-wrap;
    /* Preserves newlines */
}