/*
Theme Name: CIS Ladies Wing Glass Theme
Author: CIS Dev Team
Description: Custom Glassmorphism theme with automatic blog updates.
Version: 1.0
*/

/* ================= PASTE THIS CODE BELOW THE HEADER ================= */
:root {
    --primary-green: #0e5e3d; /* Islamic Green */
    --primary-light: #e8f5e9;
    --accent-gold: #FFC107;   /* Bright Gold */
    --accent-orange: #FF5722; /* Vibrant Orange for Call to Action */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Increased opacity for better readability */
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
}

/* --- Popup Modal --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.popup-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top: 5px solid var(--accent-orange);
}
.popup-overlay.show .popup-card {
    transform: translateY(0);
}
.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}
.popup-close:hover { color: var(--accent-orange); }
.popup-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f6f9f8 0%, #eef5f2 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background Blobs --- */
.background-blobs {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 { width: 500px; height: 500px; background: #a8e6cf; top: -10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: #dcedc1; bottom: 10%; right: -5%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #ffd3b6; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* --- Glassmorphism Utils --- */
.glass-nav, .glass-card, .glass-panel, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* --- Buttons --- */
.btn-donate, .btn-primary {
    background: linear-gradient(45deg, var(--primary-green), #1b5e20);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    display: inline-block;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-donate:hover, .btn-primary:hover, .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 94, 61, 0.2);
}

.desktop-donate { display: inline-block; }

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-content {
    padding: 3rem;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    line-height: 1.1;
}

.highlight { color: var(--accent-gold); }
.sub-text { font-size: 1.2rem; margin-bottom: 2rem; }

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- General Section Layout --- */
.section-padding { padding: 6rem 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    width: 100%;
}

.glass-panel { padding: 3rem; border-radius: 20px; }
.text-center { text-align: center; }

/* --- Project Section --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li { margin-bottom: 10px; font-size: 1.05rem; }
.feature-list i { color: var(--accent-gold); width: 25px; }

.image-side {
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    border-radius: 15px;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Vision Grid --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s;
}

.hover-lift:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.6); }
.icon-large { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 1rem; display: block; text-align: center;}
.grid-4 h4 { text-align: center; margin-bottom: 0.5rem; color: var(--primary-green); }
.grid-4 p { text-align: center; font-size: 0.9rem; }

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-post .date { font-size: 0.8rem; color: var(--accent-gold); font-weight: bold; text-transform: uppercase; }
.blog-post h3 { margin: 10px 0; color: var(--primary-green); }

/* --- Bank Details --- */
.bank-details-card {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    text-align: left;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.highlight-row { background: rgba(212, 175, 55, 0.1); padding: 10px; border-radius: 5px; }

.btn-disabled {
    background: #ccc;
    color: #666;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    width: 100%;
    margin-top: 15px;
    cursor: not-allowed;
}

/* --- Footer --- */
.glass-footer { padding: 4rem 5% 2rem; margin-top: 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 { margin-bottom: 1rem; color: var(--primary-green); }
.footer-col p { margin-bottom: 0.5rem; }
.footer-col a { display: block; text-decoration: none; color: var(--text-dark); margin-bottom: 0.5rem; }
.copyright { text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 1rem; opacity: 0.7; }

/* --- Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnim 1s forwards;
}

@keyframes fadeInAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Logo Styling --- */
.hero-logo {
    max-width: 150px; 
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto; 
}

/* --- Horizontal Gallery Styling --- */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.horizontal-scroll-wrapper::-webkit-scrollbar { display: none; }

.scroll-item {
    min-width: 300px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
}
.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
}

/* --- Modern Horizontal Blog Slider --- */
.blog-scroll-snap {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px 40px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.blog-scroll-snap::-webkit-scrollbar { display: none; }

.blog-card-scroll {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
}

.blog-content-padding { padding: 20px; }

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
}
.read-more-link:hover { text-decoration: underline; }

.blog-thumb {
    height: 180px;
    width: 100%;
    margin-bottom: 0; /* Reset margin for slider */
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card-scroll:hover .blog-thumb img { transform: scale(1.1); }


/* ========================================= */
/* NEW NAVIGATION STYLES (HAMBURGER)   */
/* ========================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
    text-transform: uppercase;
}

/* Desktop Menu Layout */
.menu-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu-list li a:hover {
    color: var(--primary-green);
}

/* Hide Hamburger on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* --- MOBILE STYLES (Phones) --- */
@media screen and (max-width: 768px) {
    
    /* Layout Adjustments */
    .hero-content h1 { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Hide the Desktop Donate Button (optional) */
    .desktop-donate { display: none; }

    /* Show Hamburger Icon */
    .menu-toggle {
        display: block;
        margin-left: auto; /* Pushes it to the right */
    }
    
    /* Draw the 3 lines of the hamburger */
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-green); /* Green color */
        transition: 0.3s;
    }
    
    /* Animate Hamburger to X */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* The Sliding Menu */
    .nav-menu {
        position: absolute;
        top: 70px; /* Push it below the navbar */
        right: -100%; /* Hide it off-screen to the right */
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        text-align: center;
        padding: 30px 0;
        border-bottom: 2px solid var(--primary-green);
    }

    /* Stack links vertically */
    .menu-list {
        flex-direction: column;
        gap: 25px;
    }

    /* THE ACTIVE CLASS (JavaScript adds this) */
    .nav-menu.active {
        right: 0; /* Slide it onto the screen */
    }
}