/* ===== Abdur Rahman Memorial Trust — main stylesheet ===== */

:root {
    --teal: #0e6b5c;
    --teal-dark: #0a5044;
    --teal-light: #e6f2f0;
    --gold: #d4a24e;
    --gold-dark: #b8863a;
    --navy: #1f3a5f;
    --green: #3a7d44;
    --blue: #2c6e9e;
    --ink: #22302e;
    --muted: #5c6b68;
    --bg: #ffffff;
    --bg-alt: #f6f9f8;
    --border: #e2e8e6;
    --petrol: #0d3b40;
    --petrol-deep: #0a3035;
    --aqua: #6ac3cc;
    --salmon: #efa273;
    --salmon-dark: #e28d59;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(20, 40, 35, 0.08);
    --shadow-hover: 0 6px 24px rgba(20, 40, 35, 0.14);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

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

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: var(--teal-dark); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, color .2s, transform .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--teal-dark); }

/* ===== Header (dark petrol, matches landing design) ===== */
.site-header {
    background: var(--petrol);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; color: #fff; font-weight: 800; letter-spacing: .01em; }
.brand-text small { color: #9fc6c3; font-size: .76rem; }

.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: wrap; }
.site-nav a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #d9ebe9;
    font-weight: 500;
    font-size: .94rem;
    border-radius: 8px;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.site-nav .btn-donate {
    background: var(--salmon);
    color: #35231a;
    border-radius: 999px;
    padding: 8px 22px;
    margin-left: 8px;
    font-weight: 700;
}
.site-nav .btn-donate:hover { background: var(--salmon-dark); color: #35231a; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    font-size: 1.4rem;
    padding: 4px 12px;
    cursor: pointer;
    color: #fff;
}

/* ===== Landing page (matches supplied design) ===== */
.hero-landing {
    position: relative;
    background:
        linear-gradient(100deg, rgba(8, 40, 44, .88) 0%, rgba(8, 40, 44, .45) 45%, rgba(8, 40, 44, .15) 70%),
        url("../img/gallery/golapganj/golapganj-10.jpeg") center 32% / cover no-repeat;
    color: #fff;
    padding: 130px 0 150px;
}
.hero-landing-inner { max-width: 620px; }
.hero-kicker {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: #cfe8ea;
    margin-bottom: 10px;
}
.hero-landing h1 {
    font-family: inherit;
    color: #fff;
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.01em;
    margin-bottom: 22px;
}
.hero-lead { font-size: 1.08rem; max-width: 480px; opacity: .93; margin-bottom: 30px; }

.btn-salmon { background: var(--salmon); color: #35231a; font-weight: 700; padding: 13px 38px; }
.btn-salmon:hover { background: var(--salmon-dark); }
.btn-outline-dark { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-outline-dark:hover { background: var(--petrol); color: #fff; }

.band { padding: 70px 0 80px; }
.band-light { background: var(--aqua); }
.band-dark { background: var(--petrol); color: #e7f2f1; }
.band-title {
    font-family: inherit;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--petrol-deep);
}
.band-dark .band-title { color: #fff; }

.land-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.land-grid4 { display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr .9fr; gap: 30px; align-items: start; }
.land-photo {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(6, 30, 33, .25);
}
.land-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.land-photo:hover img { transform: scale(1.04); }
.land-photo.tall img { height: 360px; }
.band-more { text-align: center; margin-top: 36px; }

.donate-panel { padding: 4px 8px; }
.donate-stat { font-size: 3.4rem; font-weight: 800; color: var(--salmon); line-height: 1; }
.donate-stat-label { font-weight: 700; color: #bfe0de; margin: 8px 0 16px; font-size: .95rem; }
.donate-panel p { font-size: .95rem; opacity: .9; margin-bottom: 24px; }

.land-links { border-left: 1px solid rgba(255,255,255,.25); padding-left: 26px; }
.land-links h3 { color: var(--salmon); font-family: inherit; font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.land-links h3 + ul { margin-bottom: 26px; }
.land-links ul { list-style: none; }
.land-links li { margin-bottom: 8px; }
.land-links a { color: #d9ebe9; text-decoration: none; font-size: .95rem; }
.land-links a:hover { color: #fff; text-decoration: underline; }

.hero-cta {
    background:
        linear-gradient(rgba(8, 40, 44, .82), rgba(8, 40, 44, .82)),
        url("../img/gallery/golapganj/golapganj-04.jpeg") center 20% / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.hero-cta h2 { color: #fff; font-family: inherit; font-weight: 800; font-size: 2rem; margin-bottom: 10px; }
.hero-cta p { opacity: .9; margin-bottom: 28px; }
.hero-cta .btn { margin: 0 6px 10px; }

@media (max-width: 900px) {
    .hero-landing { padding: 80px 0 100px; }
    .hero-landing h1 { font-size: 3rem; }
    .land-grid3 { grid-template-columns: 1fr; }
    .land-grid4 { grid-template-columns: 1fr 1fr; }
    .land-links { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
    .hero-landing h1 { font-size: 2.4rem; }
    .land-grid4 { grid-template-columns: 1fr; }
    .land-photo img, .land-photo.tall img { height: 240px; }
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 55%, #128a76 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 2.9rem; max-width: 760px; margin: 0 auto 18px; }
.hero p { font-size: 1.2rem; max-width: 620px; margin: 0 auto 32px; opacity: .92; }
.hero .btn { margin: 0 6px 10px; }

/* ===== Stats bar ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-family: Georgia, serif; color: var(--gold-dark); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ===== Cards & grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { text-decoration: none; color: inherit; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 16px; padding: 8px 20px; font-size: .9rem; }

/* Placeholder banners (swap for real photos later) */
.thumb {
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem;
}
.thumb-teal  { background: linear-gradient(135deg, #0e6b5c, #17987f); }
.thumb-gold  { background: linear-gradient(135deg, #b8863a, #ddb266); }
.thumb-navy  { background: linear-gradient(135deg, #1f3a5f, #35608f); }
.thumb-green { background: linear-gradient(135deg, #2f6a39, #4d9b58); }
.thumb-blue  { background: linear-gradient(135deg, #205a83, #3f87b8); }

/* ===== Progress bars ===== */
.progress { background: var(--teal-light); border-radius: 999px; height: 10px; overflow: hidden; margin: 14px 0 6px; }
.progress-bar { background: var(--gold); height: 100%; border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.progress-meta strong { color: var(--teal-dark); }

/* ===== Directors ===== */
.director-card { text-align: center; padding: 30px 22px; }
.avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 1.9rem;
    font-family: Georgia, serif;
    font-weight: 700;
}
.avatar-teal  { background: var(--teal); }
.avatar-gold  { background: var(--gold); }
.avatar-navy  { background: var(--navy); }
.avatar-green { background: var(--green); }
.avatar-blue  { background: var(--blue); }
.director-role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.director-card p.bio { text-align: left; }

/* ===== Events ===== */
.event-card { display: flex; gap: 20px; padding: 22px; align-items: flex-start; }
.event-date {
    flex-shrink: 0;
    width: 72px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    padding: 10px 6px;
}
.event-date .day { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.event-date .month { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.event-info h3 { margin-bottom: 4px; }
.event-meta { color: var(--gold-dark); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.event-info p { color: var(--muted); font-size: .95rem; }
.event-past { opacity: .65; }

/* ===== Articles ===== */
.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.article-full { max-width: 760px; margin: 0 auto; }
.article-full .thumb { border-radius: var(--radius); margin-bottom: 28px; }
.article-full p { margin-bottom: 18px; font-size: 1.05rem; }

/* ===== Gallery ===== */
.gallery-item { cursor: pointer; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .thumb { height: 190px; transition: transform .25s; }
.gallery-item img.thumb { width: 100%; object-fit: cover; }
.gallery-item:hover .thumb { transform: scale(1.05); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(10, 30, 25, .85));
    color: #fff;
    padding: 30px 14px 12px;
    font-size: .88rem;
}
.video-wrap { position: relative; padding-bottom: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0a1e19; }
.video-title { margin-top: 10px; font-weight: 600; font-size: .95rem; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(8, 20, 17, .92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 200;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 720px; width: 100%; text-align: center; }
.lightbox-content .thumb { height: 380px; border-radius: var(--radius); font-size: 6rem; }
.lightbox-content img.thumb { width: auto; max-width: 100%; height: auto; max-height: 76vh; margin: 0 auto; object-fit: contain; display: block; }
.lightbox-content p { color: #fff; margin-top: 16px; font-size: 1.1rem; }
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    background: none; border: none;
    color: #fff; font-size: 2.2rem; cursor: pointer;
}

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
textarea { min-height: 140px; resize: vertical; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; }
.alert-success { background: #e5f5e8; color: #1d5c2a; border: 1px solid #b9e2c2; }
.alert-error { background: #fbe9e7; color: #8c2f24; border: 1px solid #f2c3bd; }

/* ===== Donate ===== */
.donate-amounts { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.donate-amounts .amount {
    border: 2px solid var(--teal);
    color: var(--teal-dark);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    background: #fff;
}
.bank-details { background: var(--teal-light); border-radius: var(--radius); padding: 24px; }
.bank-details dt { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }
.bank-details dt:first-child { margin-top: 0; }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--navy), #2c5282);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }

/* ===== Page banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner p { opacity: .9; max-width: 620px; margin: 10px auto 0; }

/* ===== Prose blocks ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 18px; font-size: 1.05rem; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer { background: var(--petrol-deep); color: #cfe3df; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding: 50px 20px 30px; }
.site-footer h3 { color: #fff; margin-bottom: 14px; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #cfe3df; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 20px; font-size: .88rem; text-align: center; }
.powered-by { margin-top: 6px; font-size: .82rem; opacity: .75; }
.powered-by a { color: var(--salmon); text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 2.2rem; }

    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0; }
    .site-nav .btn-donate { margin: 8px 0 0; text-align: center; }
    .header-inner { flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .event-card { flex-direction: column; }
    h1 { font-size: 1.9rem; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.9rem; }
}
