﻿/* ============================================================
   INDEX PAGE  Bayawan City Council  |  Modern minimalist
   ============================================================ */

/* ---------- section shell / wrapper ---------- */
.section-shell {
    width: 100%;
    padding: 40px 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- section heading ---------- */
.section-kicker {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #cf6d09;
    margin-bottom: 4px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 28px;
}

/* ---------- policy section ---------- */
.policies-section {
    background: transparent;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.policy-card {
    background: #fff;
    border: 1px solid rgba(240,138,36,.10);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(31,41,55,.05);
    transition: box-shadow .2s, transform .2s;
}

.policy-card:hover {
    box-shadow: 0 14px 32px rgba(31,41,55,.07);
    transform: translateY(-2px);
}

.policy-card .doc-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #cf6d09;
    margin-bottom: 6px;
}

.policy-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}

.policy-card .card-desc {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f08a24, #cf6d09);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: background .18s;
}

.btn-view:hover { background: linear-gradient(135deg, #cf6d09, #b45309); }

/* ---------- site tagline ---------- */
.site-tagline {
    text-align: center;
    padding: 32px 24px 16px;
}

.site-tagline h1 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: #14532d;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.site-tagline h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-brand));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ---------- section display style: italic + bold stacked ---------- */
.section-display {
    line-height: 1;
    margin-bottom: 24px;
}

.section-display .italic-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-style: italic;
    font-weight: 400;
    color: #1f7a3d;
    line-height: 1.05;
}

.section-display .bold-line {
    display: block;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #14532d;
    letter-spacing: .02em;
    line-height: 1.05;
}

/* ---------- bulletin ---------- */
.bulletin-section {
    background: transparent;
}

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bulletin-item {
    background: #fff;
    border: 1px solid rgba(240,138,36,.10);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(31,41,55,.05);
}

.bulletin-item h4 {
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}

.bulletin-meta {
    font-size: .78rem;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.6;
}

.bulletin-desc {
    font-size: .82rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ---------- press release / articles ---------- */
.press-section {
    background: transparent;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border: 1px solid rgba(240,138,36,.10);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(31,41,55,.05);
    transition: box-shadow .2s, transform .2s;
    text-decoration: none;
}

.article-card:hover {
    box-shadow: 0 14px 32px rgba(31,41,55,.07);
    transform: translateY(-2px);
}

.article-card .article-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card .article-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.article-card:hover .article-img img { transform: scale(1.04); }

.article-card .article-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .card-tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #cf6d09;
    margin-bottom: 6px;
}

.article-card h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.45;
}

.article-card .card-excerpt {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

/* ---------- social media section ---------- */
.social-section {
    background: transparent;
}

.video-container {
    width: 100%;
    height: 540px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(240,138,36,.10);
    box-shadow: 0 14px 32px rgba(31,41,55,.07);
    margin-top: 12px;
}

.video-container iframe {
    width: 100%; height: 100%; border: none;
}

/* ---------- readable content / CTA ---------- */
.cta-section {
    background: transparent;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cta-card {
    background: #fff;
    border: 1px solid rgba(240,138,36,.10);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 20px rgba(31,41,55,.05);
}

.cta-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}

.cta-card p {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1f7a3d, #14532d);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s;
}

.btn-cta:hover { background: linear-gradient(135deg, #14532d, #123524); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile-only card: hidden on desktop, shown on mobile */
.mobile-only-card {
    display: none;
}

/* Desktop-only card: shown on desktop, hidden on mobile */
.desktop-only-card {
    display: flex;
}

@media (max-width: 768px) {
    .section-shell { padding: 28px 0; }
    .section-inner { padding: 0 16px; }
    .video-container { height: 420px; border-radius: 12px; }

    .mobile-only-card {
        display: flex;
    }
    .desktop-only-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .policy-grid, .bulletin-grid, .articles-grid, .cta-grid {
        grid-template-columns: 1fr;
    }
    .video-container { height: 340px; }

    .mobile-only-card {
        display: flex;
    }
    .desktop-only-card {
        display: none;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .video-container { height: 400px; }
}
