/* --- GLOBAL VARIABLES & PREMIUM THEME --- */
:root {
    --primary-theme: #1e4b25; /* Brand Green */
    --primary-dark: #0f2613; 
    --accent-yellow: #f04e23; /* Brand Orange */
    --bg-light: #f4f7f6;      
    --surface: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-soft: #e2e8f0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Poppins', sans-serif;
}

.text-primary-theme { color: var(--primary-theme) !important; }
.text-accent { color: var(--accent-yellow) !important; }
.text-justify { text-align: justify; }

/* --- BUTTONS --- */
.btn-accent {
    background-color: var(--accent-yellow);
    color: #fff;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 78, 35, 0.3);
}
.btn-accent:hover {
    background-color: #d6421c; 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 78, 35, 0.4);
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-theme);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar-brand img { height: 55px; }
.nav-link { color: rgba(255,255,255,0.85) !important; font-size: 0.95rem; font-weight: 500; margin: 0 10px; transition: 0.3s;}
.nav-link:hover, .nav-link.active { color: var(--accent-yellow) !important; }

.btn-nav-donate {
    background-color: var(--accent-yellow);
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}
.btn-nav-donate:hover { background-color: #d6421c; transform: translateY(-2px); color: #fff;}

/* --- MODALS --- */
.modal-custom { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); }
.modal-custom-content { background-color: #fff; margin: 10% auto; padding: 40px; border: none; border-radius: 16px; width: 90%; max-width: 600px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: relative; }
.close-modal { color: #aaa; position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--accent-yellow); }

/* --- FOOTER --- */
footer { background-color: var(--primary-dark); color: #e0e0e0; padding: 50px 0 20px; margin-top: 60px;}
footer a { color: #e0e0e0; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--accent-yellow); }


/* =========================================================
   HOMEPAGE SPECIFIC STYLES (index-2.html)
   ========================================================= */
.hero-section {
    /* Lightened the overlay from 0.8 to 0.4 and made it a uniform subtle tint */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), 
                url('images/video/Parima-Header-Apr-2026-2.jpg') no-repeat center center/cover;
    height: 85vh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the container horizontally */
    text-align: center;      /* Centers the text inside */
    position: relative;
    padding-top: 80px; 
}

.hero-subtitle { 
    font-size: 1.5rem; 
    color: #f1f1f1; 
    max-width: 800px; /* Increased slightly for center layout */
    margin: 0 auto 30px; /* margin: auto centers the block itself */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
}
.hero-title { font-size: 3rem; font-weight: 800; letter-spacing: 0.5px; line-height: 1.2; color: #fff; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); margin-bottom: 20px; }
.section-title { font-size: 2.5rem; font-weight: 600; color: var(--primary-theme); margin-bottom: 15px; }

.project-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.project-card > img { height: 220px; width: 100%; object-fit: cover; border-bottom: 4px solid var(--accent-yellow); }

/* Vertical White Badge for Homepage Cards */
.verified-badge-custom {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    border-bottom: 3px solid var(--primary-theme);
    z-index: 2;
}
.verified-badge-custom img { width: 35px !important; height: 35px !important; object-fit: contain !important; border: none !important; margin-bottom: 3px; }
.verified-badge-custom span { color: var(--primary-theme); font-size: 0.60rem; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; }

/* 5 Stage Process */
.interactive-process { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 50px; margin-top: 30px; }
.process-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 40px; }
.process-steps::before { content: ''; position: absolute; top: 30px; left: 5%; width: 90%; height: 3px; background: #e9ecef; z-index: 1; }
.step-item { position: relative; z-index: 2; text-align: center; cursor: pointer; flex: 1; }
.step-icon { width: 60px; height: 60px; background: #fff; border: 4px solid #e9ecef; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: var(--text-grey); transition: all 0.3s ease; }
.step-item.active .step-icon, .step-item:hover .step-icon { border-color: var(--accent-yellow); background: var(--accent-yellow); color: #fff; transform: scale(1.15); }
.step-label { font-weight: 600; font-size: 0.95rem; color: var(--text-grey); transition: 0.3s; }
.step-item.active .step-label { color: var(--primary-theme); }
.process-content { display: none; animation: slideUp 0.5s ease forwards; text-align: center; padding: 30px; background: var(--bg-light); border-radius: 12px; border-left: 5px solid var(--primary-theme); }
.process-content.active { display: block; }

@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .process-steps { flex-wrap: wrap; }
    .process-steps::before { display: none; }
    .step-item { flex: 1 1 33%; margin-bottom: 20px; }
    .step-label { display: block !important; font-size: 0.85rem; margin-top: 5px; }
    .hero-title { font-size: 2.5rem; }
}

/* Impact Section */
.impact-section { background: url('images/digital-mission-2.png') center/cover fixed; position: relative; }
.impact-overlay { background-color: rgba(30, 75, 37, 0.9); padding: 80px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-icon { font-size: 3rem; color: var(--accent-yellow); margin-bottom: 15px; }
.stat-num { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 10px; font-family: 'Poppins', sans-serif;}

.beneficiary-img { width: 140px; height: 140px; object-fit: cover; border: 4px solid #fff; }


/* =========================================================
   DIRECTORY PAGE SPECIFIC STYLES (ngos-2.html)
   ========================================================= */
.directory-header {
    background: linear-gradient(135deg, var(--primary-theme) 0%, var(--primary-dark) 100%);
    padding: 130px 0 100px;
    color: white;
    text-align: center;
    position: relative;
}
.directory-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: var(--bg-light); border-radius: 40px 40px 0 0;
}

.filter-control-center {
    background: var(--surface); border-radius: 20px; padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); margin-top: -80px; position: relative; z-index: 10; border: 1px solid rgba(255,255,255,0.5);
}

.search-input-group { position: relative; background: #f8fafc; border-radius: 12px; border: 1px solid var(--border-soft); transition: 0.3s; }
.search-input-group:focus-within { border-color: var(--accent-yellow); box-shadow: 0 0 0 4px rgba(240, 78, 35, 0.1); background: #fff; }
.search-input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #a0aec0; font-size: 1.1rem; }
.search-input-group input { border: none; background: transparent; padding: 14px 16px 14px 45px; width: 100%; font-size: 0.95rem; border-radius: 12px; outline: none; }

.quick-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 15px; border-top: 1px solid var(--border-soft); margin-top: 20px; }
.cat-pill { background: transparent; border: 1px solid var(--border-soft); color: var(--text-muted); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; transition: 0.2s; }
.cat-pill:hover { border-color: var(--primary-theme); color: var(--primary-theme); }
.cat-pill.active { background: var(--primary-theme); border-color: var(--primary-theme); color: white; box-shadow: 0 4px 10px rgba(30, 75, 37, 0.2); }

.more-categories-select { border: none; background: #edf2f7; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--primary-theme); cursor: pointer; outline: none; }

.verified-toggle-wrapper { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 15px; background: #f0fdf4; border-radius: 12px; border: 1px solid #bbf7d0; }
.verified-toggle-wrapper .form-check-input { width: 2.5em; height: 1.25em; margin-top: 0; cursor: pointer; }
.verified-toggle-wrapper .form-check-label { cursor: pointer; white-space: nowrap; }
.form-check-input:checked { background-color: var(--primary-theme); border-color: var(--primary-theme); }

.insights-bar { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; }
.insight-badge { background: #fff; padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--primary-theme); box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid var(--border-soft); }

.ngo-card {
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.ngo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--border-soft); transition: 0.3s; z-index: 3; }
.ngo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.ngo-card:hover::before { background: var(--accent-yellow); }

.card-body-custom { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; position: relative; }
.card-title { font-size: 1.15rem; font-weight: 600; color: var(--text-main); line-height: 1.4; margin-bottom: 8px; }

/* Orange Pill Badge for Directory Cards */
.verified-badge { background-color: var(--accent-yellow); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 30px; display: inline-flex; align-items: center; box-shadow: 0 4px 10px rgba(240, 78, 35, 0.2); width: fit-content; }

.tag-container { margin: 15px 0; flex-grow: 1;}
.tag-pill { background: #f1f5f9; color: #475569; padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; margin: 0 6px 6px 0; display: inline-block; border: 1px solid #e2e8f0; }
.tag-pill.extra { background: #fff4f0; color: var(--accent-yellow); border-color: #ffe4db; cursor: help; font-weight: 600;}

.btn-card-view { background: #f8fafc; color: var(--primary-theme); font-weight: 600; padding: 10px; border-radius: 8px; text-align: center; text-decoration: none; transition: 0.3s; border: 1px solid #e2e8f0; margin-top: auto; }
.ngo-card:hover .btn-card-view { background: var(--accent-yellow); color: white; border-color: var(--accent-yellow); }

.pagination .page-link { color: var(--text-muted); border: none; margin: 0 4px; border-radius: 8px; font-weight: 600; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.pagination .page-link:hover { background: #e2e8f0; color: var(--text-main); }
.pagination .active .page-link { background: var(--primary-theme); color: white; box-shadow: 0 4px 10px rgba(30, 75, 37, 0.2); }


/* =========================================================
   DETAILS PAGE SPECIFIC STYLES (ngod.html)
   ========================================================= */
.details-header {
    background: linear-gradient(135deg, var(--primary-theme) 0%, var(--primary-dark) 100%);
    padding: 130px 0 120px; color: white; text-align: center; position: relative;
}
.details-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: var(--bg-light); border-radius: 40px 40px 0 0; }

.verified-badge-main {
    background-color: rgba(255, 255, 255, 0.15); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.25); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-card {
    background: var(--surface); border-radius: 20px; padding: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); margin-top: -80px; position: relative; z-index: 10; border: 1px solid rgba(255,255,255,0.5); margin-bottom: 30px;
}

.info-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.info-value { font-size: 1.05rem; color: var(--text-main); font-weight: 500; margin-bottom: 30px; line-height: 1.6; }
.highlight-box { background: #f8fafc; border-left: 4px solid var(--primary-theme); padding: 25px; border-radius: 0 12px 12px 0; margin-bottom: 30px; }

.offer-box { background: #ffffff; border: 1px solid var(--border-soft); border-radius: 20px; padding: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); margin-top: 20px; }
.custom-radio .form-check-input { width: 1.25em; height: 1.25em; margin-top: 0.15em; cursor: pointer; }
.custom-radio .form-check-input:checked { background-color: var(--primary-theme); border-color: var(--primary-theme); }
.custom-radio .form-check-label { cursor: pointer; font-weight: 500; }