/* ==========================================================
   Save A Dream Trust - site styles
   Colours: pink #e91e63, teal #00bcd4, plus soft tints of each
   ========================================================== */
:root {
    --pink: #e91e63;
    --pink-dark: #d81b60;
    --pink-soft: #fce4ec;
    --teal: #00bcd4;
    --teal-dark: #00838f;
    --teal-soft: #e0f7fa;
    --ink: #333;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background-color: #fff;
    background-image: url("../images/background.png");
    background-size: cover;
    background-attachment: fixed;
}

img { max-width: 100%; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 { line-height: 1.2; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--pink-soft);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo { display: inline-block; line-height: 0; }
.logo img { height: 84px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: var(--pink); background: var(--pink-soft); }

.main-nav a.active,
.main-nav a.active:hover { background: var(--pink); color: #fff; }

/* ---------- Main content ---------- */
.main-content {
    min-height: 70vh;
    padding: 30px 0 50px;
}

.page-title { text-align: center; margin-bottom: 30px; }
.page-title h1 { color: var(--pink); font-size: 2.6rem; margin: 0 0 10px; }
.page-title p { color: var(--teal-dark); font-size: 1.2rem; font-weight: 600; margin: 0; }

.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px auto 14px;
    color: var(--pink);
    max-width: 220px;
}
.heart-divider::before,
.heart-divider::after { content: ""; flex: 1; height: 2px; background: var(--teal); }

.section-title {
    text-align: center;
    color: var(--pink);
    margin: 50px 0 20px;
    font-size: 2rem;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 24px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 8px;
    border: 2px solid var(--pink);
    transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn-outline { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ---------- Home: slideshow ---------- */
.slideshow {
    position: relative;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--teal-soft);
    border: 3px solid var(--teal);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    opacity: 0.55;
}
.slide img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 70px 18px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(to top, rgba(136,14,79,0.75), rgba(136,14,79,0));
}
.slide-caption:empty { display: none; }
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--pink);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slide-btn:hover { background: var(--pink); color: #fff; }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }
.slide-dots {
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.slide-dots button {
    width: 11px; height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
}
.slide-dots button.active { background: var(--pink); border-color: #fff; }
.slideshow.single .slide-btn,
.slideshow.single .slide-dots { display: none; }

/* Hide the captions on the home page slideshow */
.slide-caption {
    display: none;
}

/* ---------- Home: hero ---------- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 0;
}
.hero-text { flex: 1 1 50%; }
.hero-text h1 {
    font-size: 2.8rem;
    color: var(--pink);
    margin: 0 0 20px;
}
.hero-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px;
}
.hero-image {
    flex: 0 1 420px;
    background: #fff;                 /* the photo has a white curved corner - a white frame makes it blend in */
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--teal);
    box-shadow: 12px 12px 0 var(--pink-soft);
    line-height: 0;
}
.hero-image img { width: 100%; height: auto; display: block; }

/* ---------- Home: program boxes ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 2px solid var(--pink-soft);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.feature-card .icon-circle {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.feature-card:nth-child(even) { border-color: var(--teal-soft); }
.feature-card:nth-child(even) .icon-circle { background: var(--teal); }

.quote-section {
    background: var(--pink-soft);
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    margin: 40px 0;
    font-style: italic;
    color: #880e4f;
    font-size: 1.25rem;
}
.quote-section blockquote { margin: 0; }
.tagline-centre { text-align: center; margin-top: 30px; }
.tagline-centre h3 { color: var(--pink); }

/* ---------- Cards (generic) ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.card {
    background: #fff;
    border: 2px solid var(--teal-soft);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.card h3 { color: var(--pink); margin-top: 0; }
.card.pink { border-color: var(--pink-soft); }
.card.teal { border-color: var(--teal-soft); }
.card.teal h3 { color: var(--teal-dark); }

/* ---------- About ---------- */
.about-intro {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-intro h1 { color: var(--pink); font-size: 2.6rem; margin: 0 0 16px; }
.about-intro .lead { font-size: 1.1rem; line-height: 1.6; color: #555; margin: 0 0 20px; }
.about-photo {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--teal);
    box-shadow: -12px 12px 0 var(--pink-soft);
    line-height: 0;
}
.about-photo img { width: 100%; height: auto; display: block; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 10px;
}
.team-card {
    background: #fff;
    border: 2px solid var(--pink-soft);
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.team-card.teal { border-color: var(--teal); }
.team-card.pink { border-color: var(--pink); }
.team-card .avatar {
    width: 150px; height: 150px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pink-soft);
    background: #f4f4f4;
}
.team-card.teal .avatar { border-color: var(--teal-soft); }
.team-card .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}
.team-card .role { color: var(--teal-dark); font-weight: 700; font-size: 0.95rem; }
.team-card.pink .role { color: var(--pink); }
.team-card h4 { margin: 4px 0 8px; font-size: 1.1rem; }
.team-card p { margin: 0; color: #666; font-size: 0.92rem; line-height: 1.5; }

/* ---------- Programs ---------- */
.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}
.program-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 2px solid var(--pink);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.program-card.teal { border-color: var(--teal); }
.program-photo {
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--pink-soft);
}
.program-card.teal .program-photo { background: var(--teal-soft); }
.program-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-soon {
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px;
    color: var(--pink);
    font-weight: 600; font-size: 0.85rem;
}
.program-card.teal .photo-soon { color: var(--teal-dark); }
.program-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.program-title .icon-circle {
    flex: 0 0 38px; width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--pink); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.program-title .icon-circle svg { width: 20px; height: 20px; }
.program-card.teal .icon-circle { background: var(--teal); }
.program-title h3 { margin: 0; font-size: 1.1rem; color: var(--pink); }
.program-card.teal .program-title h3 { color: var(--teal-dark); }
.program-card p { margin: 0; color: #555; font-size: 0.95rem; line-height: 1.5; }
.centre-action { text-align: center; }

/* ---------- Get Involved ---------- */
.involve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.involve-card {
    background: #fff;
    border: 2px solid var(--pink);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; align-items: center;
}
.involve-card.teal { border-color: var(--teal); }
.involve-card .icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--pink-soft); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.involve-card.teal .icon-circle { background: var(--teal-soft); color: var(--teal-dark); }
.involve-card h3 { margin: 0 0 10px; color: var(--pink); font-size: 1.3rem; }
.involve-card.teal h3 { color: var(--teal-dark); }
.involve-card p { color: #555; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.involve-card .btn-primary,
.involve-card .btn-outline { margin-right: 0; }

.contact-band {
    margin-top: 40px;
    background: var(--pink-soft);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
}
.contact-band h3 { margin: 0 0 6px; color: #880e4f; font-size: 1.4rem; }
.contact-band p { margin: 0 0 8px; color: #555; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-card {
    background: #fff;
    border: 2px solid var(--pink);
    border-radius: 18px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-card.teal { border-color: var(--teal); }
.contact-card .icon-circle {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--pink); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.contact-card.teal .icon-circle { background: var(--teal); }
.contact-card h3 { margin: 0 0 8px; color: var(--pink); font-size: 1.4rem; }
.contact-card.teal h3 { color: var(--teal-dark); }
.contact-card p { color: #555; margin: 0 0 6px; }
.contact-detail { font-size: 1.15rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-extra {
    max-width: 900px;
    margin: 24px auto 0;
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center; gap: 12px 30px;
    background: #fff;
    border: 2px solid var(--teal-soft);
    border-radius: 18px;
    padding: 18px 24px;
    color: #555;
}
/* icon + text on one line */
.contact-extra span { display: inline-flex; align-items: center; gap: 8px; }
.contact-extra a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.contact-extra a:hover { color: var(--pink); }
.topic-note {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    background: var(--teal-soft);
    border-radius: 12px;
    color: var(--teal-dark);
    text-align: center;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #fafafa;
    border-top: 2px solid var(--pink-soft);
    padding: 20px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.social-links { display: flex; gap: 20px; font-weight: 600; }
.social-links a { color: #666; text-decoration: none; }
.social-links a:hover { color: var(--pink); }
.footer-tagline { color: var(--pink); font-weight: bold; }
.footer-tagline p { margin: 0; }

/* ---------- Tablets ---------- */
@media (max-width: 1000px) {
    .feature-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .involve-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .program-grid { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
    .header-container { justify-content: center; }
    .main-nav ul { justify-content: center; }
    .slideshow { height: 260px; }
    .slide-caption { padding: 30px 55px 22px; font-size: 1rem; }
    .hero-section { flex-direction: column; }
    .hero-text h1 { font-size: 2.1rem; }
    .hero-image { flex: none; width: 100%; max-width: 420px; }
    .about-intro, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
    .feature-grid, .team-grid { grid-template-columns: 1fr; }
    .program-card { grid-template-columns: 1fr; }
    .program-photo { height: 180px; }
    .page-title h1 { font-size: 2.1rem; }
    .footer-container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; }
}
/* Keep all page content away from the edges of the window */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
/* ---------- About: founder section and 3-person team ---------- */
.founder-section {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border: 2px solid var(--teal);
    border-radius: 24px;
    padding: 20px 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.founder-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--teal-soft);
    line-height: 0;
}

    .founder-photo img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center 15%;
        display: block;
    }

.founder-info .role {
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 1rem;
}

.founder-info h3 {
    color: var(--pink);
    font-size: 2rem;
    margin: 6px 0 12px;
}

.founder-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.team-grid.team-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
    .team-grid.team-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .founder-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .founder-photo img {
        height: 360px;
    }
}

@media (max-width: 700px) {
    .team-grid.team-grid-3 {
        grid-template-columns: 1fr;
    }
}
/* Keep every page's content away from the window edges */
.main-content {
    padding-left: 24px;
    padding-right: 24px;
}
