/* ═══════════════════════════════════════════════════
   Prisha NGO – Public Website Styles
   Hearts & Hope Inspired Design
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #e91e8c;
    --primary-dark: #c2185b;
    --secondary: #35424a;
    --accent: #f4a460;
    --light-bg: #f9f5f0;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────── */
body.public-site {
    font-family: var(--body-font);
    color: var(--text);
    background: var(--white);
}

/* ── Public Navbar ────────────────────────────────── */
.public-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.public-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}
.public-nav .navbar-brand img {
    height: 45px;
    margin-right: .5rem;
}
.public-brand-text {
    display: none;
    font-size: 1.1rem;
    line-height: 1.1;
}
.public-nav .nav-link {
    color: var(--secondary);
    font-weight: 500;
    padding: .5rem 1rem;
    transition: color .2s;
}
.public-nav .nav-link:hover,
.public-nav .nav-link.active {
    color: var(--primary);
}
.public-nav .btn-donate {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: .5rem 1.5rem;
    font-weight: 600;
    transition: background .2s;
}
.public-nav .btn-donate:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ── Hero Banner ──────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, rgba(53,66,74,0.85), rgba(232,73,29,0.7)),
                url('/static/img/hero-bg.jpg') center/cover no-repeat;
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
}
.hero-section h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 650px;
    margin: 0 auto 2rem;
}
.hero-section .btn-hero {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: .75rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 .5rem;
    transition: transform .2s, background .2s;
}
.hero-section .btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}
.hero-section .btn-hero-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 30px;
    padding: .7rem 2rem;
    font-weight: 600;
    margin: 0 .5rem;
    transition: all .2s;
}
.hero-section .btn-hero-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

.hero-slider-wrap {
    position: relative;
}

#homeHeroCarousel {
    position: relative;
    overflow: hidden;
}

.hero-slide-image {
    width: 100%;
    height: min(78vh, 720px);
    object-fit: cover;
}

#homeHeroCarousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53,66,74,0.82), rgba(232,73,29,0.58));
}

.hero-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-org-name {
    font-family: var(--heading-font);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: 1;
    margin-bottom: .4rem;
    line-height: 1.05;
}

.hero-overlay-content h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-overlay-content p {
    font-size: 1.15rem;
    opacity: .94;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-overlay-content .btn-hero {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: .75rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 .5rem;
    transition: transform .2s, background .2s;
}

.hero-overlay-content .btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.hero-overlay-content .btn-hero-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 30px;
    padding: .7rem 2rem;
    font-weight: 600;
    margin: 0 .5rem;
    transition: all .2s;
}

.hero-overlay-content .btn-hero-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

#homeHeroCarousel .carousel-control-prev,
#homeHeroCarousel .carousel-control-next {
    z-index: 4;
}

#homeHeroCarousel .carousel-indicators {
    z-index: 4;
}

/* ── Shared Pics Strip ────────────────────────────── */
.pics-strip-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.pics-strip-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pics-strip-image:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

/* ── Section Headings ─────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .5rem;
}
.section-heading .divider {
    width: 60px; height: 3px;
    background: var(--primary);
    margin: .75rem auto;
    border-radius: 2px;
}
.section-heading p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ── About / Mission Cards ────────────────────────── */
.about-section { padding: 5rem 0; background: var(--light-bg); }
.mission-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform .2s;
}
.mission-card:hover { transform: translateY(-4px); }
.mission-card .card-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(232,73,29,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem; color: var(--primary);
}
.mission-card h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ── Team Section (Hearts & Hope style) ───────────── */
.team-section { padding: 5rem 0; }
.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform .3s;
    height: 100%;
}
.team-card:hover { transform: translateY(-5px); }
.team-card .team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.team-card .team-info {
    padding: 1.25rem;
}
.team-card .team-name {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .25rem;
}
.team-card .team-title {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .75rem;
}
.team-card .team-socials a {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 .4rem;
    transition: color .2s;
}
.team-card .team-socials a:hover { color: var(--primary); }

/* ── Programs / What We Do ────────────────────────── */
.programs-section { padding: 5rem 0; background: var(--light-bg); }
.program-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform .2s;
}
.program-card:hover { transform: translateY(-4px); }
.program-card img { width: 100%; height: 200px; object-fit: cover; }
.program-card .card-body { padding: 1.25rem; }
.program-card h5 { font-family: var(--heading-font); font-weight: 700; }
.program-card .btn-link { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ── Impact Numbers ───────────────────────────────── */
.impact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary), #1a252b);
    color: var(--white);
}
.impact-item { text-align: center; padding: 1.5rem; }
.impact-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.impact-item .label { font-size: .95rem; opacity: .85; margin-top: .25rem; }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-section { padding: 5rem 0; }
.testimonial-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
}
.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: .3;
    line-height: 1;
    margin-bottom: .5rem;
}
.testimonial-card .quote-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
}
.testimonial-card .quote-author {
    font-weight: 700;
    color: var(--secondary);
}
.testimonial-card .quote-role {
    font-size: .85rem;
    color: var(--text-light);
}

/* ── Gallery ──────────────────────────────────────── */
.gallery-section { padding: 5rem 0; background: var(--light-bg); }
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Contact / Donate ─────────────────────────────── */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}
.cta-section h2 { font-family: var(--heading-font); font-size: 2.2rem; }
.cta-section .btn-cta {
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 30px;
    padding: .75rem 2.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    transition: transform .2s;
}
.cta-section .btn-cta:hover { transform: translateY(-2px); }

/* ── Public Footer ────────────────────────────────── */
.public-footer {
    background: var(--secondary);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 1.5rem;
}
.public-footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .05em;
}
.public-footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.public-footer a:hover { color: var(--primary); }
.public-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: .85rem;
}
.public-footer .social-links a {
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-section { padding: 3.5rem 0; }
    .hero-section h1 { font-size: 2rem; }
    .team-card .team-photo {
        height: 220px;
        object-fit: cover;
        object-position: center;
    }
    .team-card img.team-photo {
        width: auto;
        max-width: none;
        display: block;
        margin: 0 auto;
    }
    .hero-slide-image { height: 62vh; }
    .public-brand-text {
        display: inline-block;
        font-size: .9rem;
    }
    .hero-org-name { display: none; }
    .hero-overlay-content h1 { font-size: 2rem; }
    .hero-overlay-content p { font-size: 1rem; }
    .hero-overlay-content .btn-hero,
    .hero-overlay-content .btn-hero-outline {
        margin: .3rem;
        padding: .62rem 1.2rem;
    }
    .pics-strip-image { height: 140px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .team-card .team-photo {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }
    .team-card img.team-photo {
        width: auto;
        max-width: none;
        display: block;
        margin: 0 auto;
    }
    .public-brand-text {
        display: inline-block;
        font-size: 1rem;
    }
    .hero-org-name { display: none; }
    .hero-overlay-content h1 { font-size: 2.5rem; }
}

@media (min-width: 992px) {
    .public-brand-text { display: none; }
    .hero-org-name { display: block; }
}
