/* ================================================
   user_form.css — General Page, Cards, Programs
   ================================================ */

/* ── HERO HEADER ── */
.site-header {
    position: relative;
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #1a5c2a 0%, #2e7d32 40%, #388e3c 70%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-header .header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.header-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 4px;
}

.logo-img-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    display: block;
    flex-shrink: 0;
}

.logo-img-wide {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    display: block;
    flex-shrink: 0;
}

.header-content h1 {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.header-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ── NAVBAR ── */
.site-navbar {
    background: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 52px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 7px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nav-btn.outline {
    background: transparent;
    color: #fff;
}
.nav-btn.outline:hover { background: rgba(255, 255, 255, 0.15); }

.nav-btn.solid {
    background: #fff;
    color: #2e7d32;
}
.nav-btn.solid:hover { background: #e8f5e9; }

/* ── FOOTER ── */
.site-footer {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 0.82rem;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* ── PROGRAM CARDS ── */
.home-section {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.program-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.13);
}

.card-accent { height: 5px; }
.card-accent.nha  { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.card-accent.dswd { background: linear-gradient(90deg, #1565c0, #42a5f5); }

.card-head {
    padding: 28px 28px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.card-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-logo img { width: 100%; height: 100%; object-fit: contain; }
.card-logo.nha  { background: #e8f5e9; }
.card-logo.dswd { background: #e3f2fd; }

.card-title    { font-size: 1.1rem; font-weight: 700; color: #212121; }
.card-subtitle { font-size: 0.8rem; color: #888; margin-top: 3px; }

.card-body-text { padding: 0 28px 26px; }

.card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 18px;
}

.card-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.card-cta.nha  { background: #2e7d32; color: #fff; }
.card-cta.dswd { background: #1565c0; color: #fff; }
.card-cta:hover { opacity: 0.85; }

/* ================================================
   RESPONSIVE — Tablet & Mobile
   ================================================ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
    .program-cards {
        grid-template-columns: 1fr;
    }
}

/* ── TABLET / SMALL LAPTOP (≤ 768px) ── */
@media (max-width: 768px) {
    .site-header { height: 300px; }

    .header-content h1 {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }

    .header-subtitle {
        font-size: 0.78rem;
        letter-spacing: 2px;
    }

    .header-logos { gap: 12px; }

    .logo-img-circle { width: 46px; height: 46px; }
    .logo-img-wide   { height: 36px; }

    .site-navbar {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.82rem;
        padding: 7px 12px;
        text-align: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-section { padding: 0 16px; margin: 32px auto; }

    .section-title { font-size: 1.15rem; margin-bottom: 22px; }

    .card-head { padding: 20px 20px 14px; gap: 14px; }
    .card-logo { width: 52px; height: 52px; border-radius: 12px; }
    .card-body-text { padding: 0 20px 20px; }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
    .site-header { height: 260px; }

    .header-content h1 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .header-subtitle {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }

    .header-logos { gap: 8px; }

    .logo-img-circle { width: 38px; height: 38px; border-width: 1.5px; }
    .logo-img-wide   { height: 30px; padding: 3px 6px; }

    .nav-links a {
        font-size: 0.76rem;
        padding: 6px 10px;
    }

    .nav-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .card-title { font-size: 1rem; }
    .card-desc  { font-size: 0.85rem; }
    .card-cta   { padding: 9px 18px; font-size: 0.82rem; }

    .site-footer { padding: 16px; font-size: 0.75rem; margin-top: 36px; }
}
