﻿/* ================================================
   HOMEPAGE  -  Gapan City  -  Editorial Layout
   Two-column magazine style / warm-paper tokens
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --ink:    #1f2a3d;
    --navy:   #25446b;
    --slate:  #55657d;
    --sand:   #f1eadc;
    --stone:  #e2d5c1;
    --paper:  #fffdfa;
    --accent: #c26a3d;
    --mint:   #d8e8e0;
    --line:   rgba(31,42,61,.12);
    --shadow: 0 8px 32px rgba(31,42,61,.1);
    --r:      16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background: #ede5d8;
    background-image:
        repeating-linear-gradient(0deg, rgba(194,106,61,.025) 0, rgba(194,106,61,.025) 1px, transparent 1px, transparent 28px);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   HERO  -  split two-panel layout
   ============================================= */
.hp-hero {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 580px;
}

.hp-hero-left {
    background: var(--sand);
    padding: 56px 40px 56px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-right: 1px solid var(--line);
}

.hp-hero-logos {
    display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.hp-hero-logos img {
    width: 44px; height: 44px; object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(31,42,61,.12));
}

.hp-hero-kicker {
    font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2.2px;
    color: var(--accent);
}

.hp-hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 4.2vw, 4rem);
    font-weight: 900; line-height: 1.0;
    color: var(--ink);
}
.hp-hero-title em {
    font-style: normal; color: var(--navy); display: block;
}

.hp-hero-sub {
    margin: 0; max-width: 380px;
    font-size: .9rem; color: var(--slate); line-height: 1.75;
}

.hp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.hp-btn {
    padding: 11px 26px; border-radius: 999px;
    font-size: .85rem; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    cursor: pointer;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-solid  { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.hp-btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.hp-btn-ghost  { background: transparent; color: var(--navy); border: 1.5px solid rgba(37,68,107,.4); }
.hp-btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.hp-hero-right { position: relative; overflow: hidden; background: var(--ink); }
.hp-hl-swiper  { width: 100%; height: 100%; }
.hp-hl-swiper .swiper-slide img,
.hp-hero-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================
   QUICK LINKS  -  sticky icon-label strip
   ============================================= */
.hp-ql {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px rgba(31,42,61,.07);
    position: sticky; top: 70px; z-index: 90;
}
.hp-ql-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    display: flex; overflow-x: auto;
    scrollbar-width: none;
}
.hp-ql-inner::-webkit-scrollbar { display: none; }

.hp-ql-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 12px 20px;
    text-decoration: none; color: var(--slate);
    font-size: .64rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .9px;
    border-bottom: 2.5px solid transparent;
    transition: color .18s, border-color .18s;
    white-space: nowrap; flex-shrink: 0;
}
.hp-ql-item i { font-size: 17px; margin-bottom: 1px; }
.hp-ql-item:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* =============================================
   MAIN GRID  -  news + sidebar
   ============================================= */
.hp-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 36px 24px 52px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.hp-col-hdr { margin-bottom: 20px; }
.hp-eyebrow {
    display: block; font-size: .64rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 4px;
}
.hp-col-title {
    margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--ink);
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* Featured post */
.hp-featured {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    text-decoration: none; color: inherit;
    margin-bottom: 22px;
    transition: transform .22s, box-shadow .22s;
}
.hp-featured:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(31,42,61,.15); }

.hp-featured-img { position: relative; min-height: 280px; }
.hp-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-feat-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent); color: #fff;
    font-size: .62rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 4px 12px; border-radius: 999px;
}

.hp-featured-body {
    padding: 30px 26px;
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.hp-feat-date {
    font-size: .72rem; color: var(--slate); margin: 0;
    display: flex; align-items: center; gap: 5px;
}
.hp-feat-title { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.hp-feat-exc {
    margin: 0; font-size: .85rem; color: var(--slate); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 4;
}
.hp-feat-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; font-weight: 700; color: var(--accent); margin-top: 4px;
}

/* News grid */
.hp-news-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.hp-news-card {
    display: flex; flex-direction: column;
    border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--line); background: var(--paper);
    text-decoration: none; color: inherit;
    box-shadow: 0 4px 16px rgba(31,42,61,.07);
    transition: transform .2s, box-shadow .2s;
}
.hp-news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31,42,61,.13); }
.hp-news-card > img { width: 100%; height: 148px; object-fit: cover; display: block; }
.hp-news-body { padding: 13px 15px 16px; }
.hp-news-date { font-size: .68rem; color: var(--slate); margin: 0 0 5px; }
.hp-news-title {
    margin: 0; font-size: .87rem; font-weight: 700; color: var(--ink); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 3;
}

/* =============================================
   SIDEBAR
   ============================================= */
.hp-sb-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.hp-sb-hdr {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
}
.hp-sb-hdr.is-red { color: #b91c1c; }
.hp-sb-hdr i { font-size: 17px; }
.hp-sb-hdr h3 { margin: 0; font-size: .95rem; font-weight: 800; }
.hp-sb-sub { font-size: .7rem; color: var(--slate); margin: -8px 0 12px; }

/* Events */
.hp-ev-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }

.hp-ev-card {
    display: flex; flex-direction: column;
    border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line); background: var(--paper);
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 10px rgba(31,42,61,.07);
    transition: transform .2s, box-shadow .2s;
}
.hp-ev-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(31,42,61,.13); }

.hp-ev-thumb {
    position: relative;
    height: 120px; overflow: hidden;
    background: var(--navy);
}
.hp-ev-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.hp-ev-card:hover .hp-ev-thumb img { transform: scale(1.06); }

.hp-ev-date-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(31,42,61,.78); backdrop-filter: blur(4px);
    color: #fff; font-size: .63rem; font-weight: 700;
    padding: 4px 9px; border-radius: 999px;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: .3px;
}
.hp-ev-date-badge i { font-size: 10px; opacity: .85; }

.hp-ev-info { padding: 10px 12px 11px; }
.hp-ev-title {
    margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink);
    line-height: 1.38;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}

.hp-sb-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .74rem; font-weight: 700; color: var(--accent); text-decoration: none;
}
.hp-sb-link:hover { text-decoration: underline; }

/* Hotlines */
.hp-hl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-hl-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; border-radius: 11px;
    background: linear-gradient(135deg, rgba(216,232,224,.22), rgba(241,234,220,.36));
    border: 1px solid var(--line);
}
.hp-hl-name { display: block; font-size: .63rem; font-weight: 800; color: var(--slate); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 2px; }
.hp-hl-num  { font-size: .9rem; font-weight: 700; color: var(--ink); }
.hp-call-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: #fff;
    text-decoration: none; font-size: 14px; flex-shrink: 0;
    transition: background .2s;
}
.hp-call-btn:hover { background: var(--accent); }

/* =============================================
   VIDEO BAND  -  full-width cinematic
   ============================================= */
.hp-vband { position: relative; height: 460px; overflow: hidden; }

.hp-vband-bg { position: absolute; inset: 0; }
.hp-vband-iframe {
    position: absolute; top: 50%; left: 50%;
    width: 120%; height: 120%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0; pointer-events: none;
}
.hp-vband-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31,42,61,.78) 0%, rgba(31,42,61,.55) 100%);
}
.hp-vband-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 24px;
}
.hp-vband-kicker {
    font-size: .66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2.2px;
    color: var(--sand); opacity: .85;
}
.hp-vband-title {
    margin: 0; font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 900; color: #fff; line-height: 1.05;
}
.hp-vband-title em { font-style: normal; color: var(--sand); }
.hp-vband-sub { color: rgba(255,255,255,.72); font-size: .9rem; margin: 0; }
.hp-vband-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 13px 28px;
    border: 1.5px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
    border-radius: 999px; color: #fff;
    font-weight: 700; font-size: .9rem;
    cursor: pointer; margin-top: 6px;
    transition: background .2s, transform .15s;
}
.hp-vband-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.hp-play-ico {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 12px;
    flex-shrink: 0;
}

/* =============================================
   FACEBOOK PAGES
   ============================================= */
.hp-fbsec { background: var(--sand); border-top: 1px solid var(--line); }
.hp-fbsec-inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px 52px; }
.hp-fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}
.hp-fb-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 18px;
    display: flex; justify-content: center;
    box-shadow: var(--shadow);
}

/* =============================================
   VIDEO MODAL
   ============================================= */
.hp-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hp-modal[hidden] { display: none; }
.hp-modal-bd    { position: absolute; inset: 0; background: rgba(31,42,61,.9); backdrop-filter: blur(8px); }
.hp-modal-box   {
    position: relative; z-index: 1;
    width: 95vw; max-width: 1060px;
    border-radius: var(--r); overflow: hidden;
    background: #000; box-shadow: 0 32px 80px rgba(0,0,0,.5);
    animation: hp-in .22s ease;
}
@keyframes hp-in { from { opacity:0; transform:scale(.93) } to { opacity:1; transform:scale(1) } }
.hp-modal-frame { position: relative; padding-top: 56.25%; }
.hp-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; transition: background .2s;
}
.hp-modal-close:hover { background: rgba(194,106,61,.85); }

/* =============================================
   SWIPER OVERRIDES
   ============================================= */
.swiper-pagination-bullet        { background: rgba(255,255,255,.5); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1040px) {
    .hp-wrap { grid-template-columns: 1fr; }
    .hp-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .hp-sb-card { margin-bottom: 0; }
}
@media (max-width: 768px) {
    .hp-hero            { grid-template-columns: 1fr; min-height: auto; }
    .hp-hero-right      { height: 260px; ORDER: -1; }
    .hp-hero-left       { padding: 36px 20px; }
    .hp-hero-title      { font-size: 2.4rem; }
    .hp-featured        { grid-template-columns: 1fr; }
    .hp-featured-img    { min-height: 220px; }
    .hp-news-grid       { grid-template-columns: 1fr; }
    .hp-sidebar         { grid-template-columns: 1fr; }
    .hp-vband           { height: 380px; }
    .hp-ql              { position: static; }
}
@media (max-width: 480px) {
    .hp-hero-left       { padding: 28px 16px; }
    .hp-wrap            { padding: 24px 16px 36px; }
    .hp-fbsec-inner     { padding: 28px 16px 36px; }
    .hp-vband           { height: 320px; }
    .hp-news-grid       { grid-template-columns: 1fr; }
}