/* ============================================================
   Hidalgo County 4-H Foundation
   Clean, professional design with 4-H green branding
   ============================================================ */

:root {
    --green-dark: #2d5016;
    --green-primary: #4a7c2e;
    --green-medium: #5a9a35;
    --green-light: #e8f3e0;
    --green-pale: #f4f9f0;
    --cream: #faf9f6;
    --text-dark: #2c2c2c;
    --text-muted: #5a5a5a;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--green-dark);
    line-height: 1.3;
}

a { color: var(--green-primary); }
a:hover { color: var(--green-dark); }

/* ---- Header ---- */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--green-primary);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}

/* ---- Header Contact ---- */
.header-contact {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-contact a {
    color: var(--green-primary);
    text-decoration: none;
}

.header-contact a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.header-contact-name {
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .header-contact {
        display: none;
    }
}

/* ---- Navigation ---- */
.site-nav {
    background: var(--green-primary);
    padding: 0;
}

.site-nav .navbar-toggler {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem;
    font-size: 1.4rem;
}

.site-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.1rem !important;
    transition: background 0.2s, color 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    background: var(--green-dark);
    color: var(--white) !important;
}

/* ---- Main Content ---- */
.site-main {
    min-height: 50vh;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green-light);
}

.content-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* ---- Sidebar Donation Box ---- */
.sidebar-donate {
    background: var(--green-light);
    border-left: 4px solid var(--green-primary);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-donate h4 {
    color: var(--green-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ---- Directors Grid ---- */
.director-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.director-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.director-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--green-light);
}

.director-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--green-primary);
    font-size: 2rem;
}

.director-name {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.director-title {
    font-size: 0.85rem;
    color: var(--green-primary);
    font-weight: 600;
}

/* ---- Scholarship Year Cards ---- */
.scholarship-year {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--green-primary);
}

.scholarship-year h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.scholarship-year .recipients {
    line-height: 1.8;
}

.scholarship-photo {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

/* ---- Documents List ---- */
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s;
}

.doc-item:hover {
    transform: translateX(4px);
}

.doc-icon {
    font-size: 1.5rem;
    color: var(--green-primary);
    flex-shrink: 0;
}

.doc-item a {
    text-decoration: none;
    font-weight: 600;
}

/* ---- Pledge Block ---- */
.pledge {
    background: var(--green-pale);
    border-left: 4px solid var(--green-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

/* ---- Contact Page ---- */
.contact-info {
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--green-primary);
    margin-right: 0.5rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.site-footer h5 {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: var(--green-light);
}

.site-footer a:hover {
    color: var(--white);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.social-link:hover {
    background: var(--green-primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---- Links Page ---- */
.link-list a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 600;
}

.link-list a:hover {
    text-decoration: underline;
}

/* ---- Admin Styles ---- */
.admin-header {
    background: var(--green-dark);
    color: var(--white);
    padding: 0.75rem 0;
}

.admin-header a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.admin-header a:hover {
    color: var(--white);
}

.admin-sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.25rem;
}

.admin-sidebar .list-group-item.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.admin-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-4h {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--white);
}

.btn-4h:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .logo-title, .logo-subtitle {
        font-size: 1.2rem;
    }
    .logo-img {
        height: 45px;
    }
    .page-title {
        font-size: 1.4rem;
    }
    .content-card {
        padding: 1.25rem;
    }
}

/* ---- Phase 2: Events Timeline ---- */
.timeline { position: relative; }
.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
    min-width: 65px;
    text-align: center;
    background: var(--green-pale);
    border-radius: 8px;
    padding: 8px 6px;
    line-height: 1.2;
    flex-shrink: 0;
}
.timeline-month { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--green-primary); font-weight: 700; }
.timeline-day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--green-dark); }
.timeline-year { display: block; font-size: 0.7rem; color: var(--text-muted); }
.timeline-deadline .timeline-date { background: #fde8e8; }
.timeline-deadline .timeline-month { color: #dc3545; }
.timeline-deadline .timeline-day { color: #dc3545; }

/* ---- Phase 2: Sponsors ---- */
.sponsor-tier-label {
    font-size: 1.2rem;
    border-bottom: 3px solid;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.sponsor-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sponsor-logo {
    width: 90%;
    height: 70px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}
.tier-platinum .sponsor-logo { height: 100px; }
.tier-gold .sponsor-logo { height: 85px; }
.sponsor-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.sponsor-name a { text-decoration: none; color: var(--text-dark); }
.sponsor-name a:hover { color: var(--green-primary); }

/* Fix: active+completed step button text visibility */
.step-btn.active.completed { color: white !important; }

/* ---- Phase 3: Gallery ---- */
.album-card { display: block; text-decoration: none; color: var(--text-dark); background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text-dark); }
.album-cover { width: 100%; height: 200px; object-fit: cover; object-position: center; display: block; }
.album-cover-placeholder { width: 100%; height: 180px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--green-primary); }
.album-info { padding: 1rem; }
.album-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-thumb { cursor: pointer; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.gallery-thumb:hover { transform: scale(1.03); }
.gallery-thumb img { width: 100%; height: 200px; object-fit: cover; object-position: center; display: block; }
.gallery-caption { padding: 6px 8px; font-size: 0.75rem; color: var(--text-muted); }
.lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: white; background: none; border: none; cursor: pointer; z-index: 10000; }
.lightbox-caption { color: white; margin-top: 10px; font-size: 0.9rem; }

/* ---- Phase 3: Memorials ---- */
.memorial-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; border-left: 4px solid var(--green-primary); }
.memorial-name { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 0.25rem; }
.memorial-years { color: var(--green-primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.memorial-photo { max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.memorial-bio { line-height: 1.8; }

/* Lightbox navigation */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 18px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 4px;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,0.8); }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 8px;
}
