/* RUPSA Bangladesh - Main Stylesheet */
:root {
    --primary: #1a6b3c;
    --primary-dark: #124d2b;
    --primary-light: #2e9e5b;
    --secondary: #f4a01c;
    --secondary-dark: #d4880f;
    --text-dark: #222;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --white: #fff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary-dark);
    color: #cde8d7;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.top-bar a { color: #cde8d7; }
.top-bar a:hover { color: var(--white); }
.top-social a { margin-left: 10px; font-size: 14px; }

/* ---- HEADER ---- */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.logo-text h1 { font-size: 22px; color: var(--primary); font-weight: 800; line-height: 1.1; }
.logo-text p { font-size: 11px; color: var(--text-muted); letter-spacing: .3px; }

.donate-btn {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s;
}
.donate-btn:hover { background: var(--secondary-dark); color: var(--white) !important; }

/* ---- NAV ---- */
nav { background: var(--primary); }
.nav-inner {
    display: flex;
    align-items: center;
    position: relative;
}
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
nav a {
    color: rgba(255,255,255,.9);
    padding: 14px 16px;
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
nav a:hover, nav a.active { background: var(--primary-dark); color: var(--white); }

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 999;
    border-top: 3px solid var(--secondary);
}
.dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown:hover .dropdown-menu { display: block; }

/* mobile toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; padding: 10px; flex-shrink: 0; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 18px; opacity: .9; max-width: 700px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-green { background: var(--primary); color: var(--white); }
.btn-green:hover { background: var(--primary-dark); color: var(--white); }

/* ---- SECTIONS ---- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--primary); font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-title .divider {
    width: 60px; height: 4px; background: var(--secondary);
    margin: 14px auto 0; border-radius: 2px;
}

/* ---- STATS ---- */
.stats-bar { background: var(--primary); color: var(--white); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 40px; font-weight: 800; color: var(--secondary); }
.stat-item p { font-size: 14px; opacity: .85; }

/* ---- CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.card-body { padding: 24px; }
.card-icon { width: 56px; height: 56px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { color: var(--white); fill: var(--white); }
.card h3 { font-size: 16px; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 14px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border); }
.card-footer a { font-size: 13px; font-weight: 600; color: var(--primary); }
.card-footer a:hover { color: var(--secondary); }

/* ---- PROJECT CARD ---- */
.project-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.project-card-header { background: var(--primary); padding: 20px; min-height: 90px; display: flex; align-items: center; }
.project-card-header h3 { color: var(--white); font-size: 15px; font-weight: 700; line-height: 1.4; }
.project-card-body { padding: 20px; flex: 1; }
.project-card-body p { color: var(--text-muted); font-size: 14px; }
.project-meta { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.project-meta span { display: inline-block; background: var(--bg-light); padding: 3px 8px; border-radius: 3px; margin: 3px 2px; }
.project-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.project-card-footer a { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---- ABOUT SECTION ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 30px; color: var(--primary); font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.about-image { background: var(--primary); border-radius: 12px; padding: 40px; color: var(--white); }
.about-image h3 { font-size: 20px; margin-bottom: 20px; }
.reg-list { list-style: none; }
.reg-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.reg-list li:last-child { border-bottom: none; }

/* ---- WORKING AREAS ---- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-item { text-align: center; padding: 30px 20px; background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.area-item .icon { font-size: 36px; margin-bottom: 14px; display: block; }
.area-item h4 { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.area-item p { color: var(--text-muted); font-size: 13px; }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: 8px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.team-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.team-card h4 { color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: 13px; }

/* ---- REPORTS ---- */
.report-card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.07); padding: 28px; margin-bottom: 24px; display: flex; gap: 20px; align-items: flex-start; }
.report-icon { width: 56px; height: 56px; background: #f8e8d0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.report-info { flex: 1; }
.report-info h3 { font-size: 16px; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.report-info .date { font-size: 12px; color: var(--secondary); font-weight: 600; margin-bottom: 10px; }
.report-info p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---- GALLERY ---- */
.gallery-section { margin-bottom: 50px; }
.gallery-section h3 { font-size: 20px; color: var(--primary); font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--secondary); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 1; background: var(--primary); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 32px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info h3 { font-size: 22px; color: var(--primary); font-weight: 700; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; flex-shrink: 0; }
.contact-item h4 { font-size: 14px; color: var(--primary); font-weight: 700; }
.contact-item p { font-size: 13px; color: var(--text-muted); }

/* ---- FORM ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 4px; font-size: 14px; font-family: inherit;
    transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 130px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- DONATE ---- */
.donate-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 70px 0; text-align: center; }
.donate-hero h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.donate-hero p { font-size: 17px; opacity: .9; max-width: 600px; margin: 0 auto; }
.donate-info { background: var(--white); border-radius: 8px; box-shadow: 0 2px 16px rgba(0,0,0,.1); padding: 40px; max-width: 700px; margin: 0 auto; }
.donate-info h3 { font-size: 20px; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.bank-detail { border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.bank-detail h4 { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.bank-detail table { width: 100%; font-size: 14px; }
.bank-detail td { padding: 4px 0; }
.bank-detail td:first-child { font-weight: 600; color: var(--text-dark); width: 45%; }

/* ---- PAGE HERO ---- */
.page-hero { background: var(--primary); color: var(--white); padding: 50px 0; text-align: center; }
.page-hero h1 { font-size: 34px; font-weight: 800; }
.page-hero p { font-size: 16px; opacity: .85; margin-top: 8px; }
.breadcrumb { font-size: 13px; margin-top: 12px; opacity: .75; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ---- COMPLETED PROJECTS TABLE ---- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: var(--primary); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: #e8f4ee; }

/* ---- PARTNERS ---- */
.partners-text { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.partner-badge { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 12px 22px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.07); overflow: hidden; }
.news-card-img { background: var(--primary); height: 180px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 48px; }
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--secondary); font-weight: 600; margin-bottom: 8px; }
.news-card-body h3 { font-size: 15px; color: var(--primary); font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-card-body p { font-size: 13px; color: var(--text-muted); }

/* ---- PROJECT DETAIL ---- */
.project-detail-header { background: var(--primary); color: var(--white); padding: 60px 0; }
.project-detail-header h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.project-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.project-meta-item { background: rgba(255,255,255,.15); padding: 8px 16px; border-radius: 4px; font-size: 13px; }
.project-meta-item strong { display: block; font-size: 11px; opacity: .75; margin-bottom: 2px; }
.objectives-list { list-style: none; }
.objectives-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); font-size: 14px; }
.objectives-list li:last-child { border-bottom: none; }
.objectives-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---- FOOTER ---- */
footer { background: #0f3d22; color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary); }
.footer-col p { font-size: 13.5px; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-contact-item .label { min-width: 16px; color: var(--secondary); font-size: 15px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: background .2s;
}
.footer-social a:hover { background: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .cards-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .cards-grid, .team-grid, .news-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-inner { flex-direction: column; align-items: flex-start; }
    .nav-links { width: 100%; display: none; flex-direction: column; }
    .nav-links.open { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; border-top: none; padding-left: 20px; background: rgba(255,255,255,.08); }
    .dropdown-menu a { color: rgba(255,255,255,.85); }
    .dropdown-menu a:hover { background: rgba(255,255,255,.1); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .report-card { flex-direction: column; }
    .area-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .area-grid { grid-template-columns: 1fr; }
    .project-meta-bar { flex-direction: column; gap: 8px; }
}
