/* ============================================
   ABOT KAYA — Page-Specific Styles (Bold Redesign)
   ============================================ */

/* ============================================
   Hero Sections — Cinematic & Immersive
   ============================================ */
.hero {
    position: relative;
    padding: var(--space-12) 0 var(--space-12);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    color: var(--color-text-body);
}

.hero h1 {
    color: #0f172a;
}

.hero .lead {
    color: var(--color-text-body);
}

/* Background Animated Grid Pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 50%, #000 10%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 50%, #000 10%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    animation: grid-pan 20s linear infinite;
}

@keyframes grid-pan {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* Ambient Glowing Blobs */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(81, 2, 156, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(126, 205, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(152, 80, 205, 0.08) 0%, transparent 40%);
    filter: blur(40px);
    pointer-events: none;
}

@keyframes blob-float {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(30px, -30px); }
    100% { transform: scale(0.9) translate(-30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Staggered entrance animations */
.hero .badge {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.1s;
}

.hero h1 {
    margin-bottom: var(--space-6);
    text-wrap: balance;
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.3s;
    font-size: var(--text-5xl);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--text-7xl);
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: var(--text-8xl);
    }
}

.hero .lead {
    font-size: var(--text-lg);
    color: var(--color-text-body);
    margin-bottom: var(--space-10);
    max-width: 650px;
    line-height: var(--leading-relaxed);
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.5s;
}

@media (min-width: 768px) {
    .hero .lead {
        font-size: var(--text-xl);
    }
}

.hero-ctas {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.7s;
}

/* Hero floating decorative elements */
.hero-decor {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.hero-decor-1 {
    top: 15%;
    right: 8%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}

.hero-decor-2 {
    bottom: 20%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}

.hero-decor-3 {
    top: 40%;
    right: 25%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 50%;
}

/* Gradient line under hero headline */
.hero-headline-accent {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    margin-top: var(--space-4);
    animation: expand-line 1s ease-out both;
    animation-delay: 0.8s;
}

/* Hero Collage Effects */
.hero-image-collage {
    perspective: 1000px;
}

.hero-image-collage img {
    opacity: 0;
    animation: collage-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.hero-image-collage .collage-main {
    animation-delay: 0.2s;
}

.hero-image-collage .collage-tl {
    animation-delay: 0.4s;
}

.hero-image-collage .collage-tr {
    animation-delay: 0.5s;
}

.hero-image-collage .collage-br {
    animation-delay: 0.6s;
}

.hero-image-collage .collage-bl {
    animation-delay: 0.7s;
}

@keyframes collage-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateZ(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.hero-image-collage:hover .collage-main {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-image-collage:hover .collage-tl {
    transform: scale(1.08) translate(-10px, -10px) rotate(-4deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.hero-image-collage:hover .collage-tr {
    transform: scale(1.08) translate(10px, -15px) rotate(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.hero-image-collage:hover .collage-bl {
    transform: scale(1.08) translate(-15px, 10px) rotate(-3deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.hero-image-collage:hover .collage-br {
    transform: scale(1.05) translate(10px, 15px) rotate(4deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Page Headers (Sub-page heros)
   ============================================ */
.page-header {
    padding: var(--space-24) 0 var(--space-16);
    background: linear-gradient(170deg, #f0e6ff 0%, #e8f0fe 50%, var(--color-bg-darker) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient atmosphere */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(81, 2, 156, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0.5;
}

.page-header h1 {
    animation: fadeInUp 0.7s ease-out both;
}

.page-header .lead {
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.2s;
}

/* ============================================
   Home: The Idea Section — ABOT + KAYA Cards
   ============================================ */
.idea-card {
    border-left: 4px solid transparent;
    transition: all var(--transition-base);
}

.idea-card-abot {
    border-left-color: var(--purple-500);
}

.idea-card-kaya {
    border-left-color: var(--teal-500);
}

.idea-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.idea-card h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

/* ============================================
   Home: Abot Kaya Test — 2x2 Grid
   ============================================ */
.test-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
    counter-reset: test-counter;
}

.test-block {
    background: var(--color-bg-card);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    counter-increment: test-counter;
    box-shadow: var(--shadow-sm);
}

/* Numbered step indicator */
.test-block::before {
    content: counter(test-counter);
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(1, 97, 207, 0.15);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-block:hover {
    border-color: var(--color-primary-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.test-block h4 {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
    font-size: 1.125rem;
    font-weight: 800;
}

.test-block .policy-icon {
    margin: 0 auto var(--space-4);
}

@media (max-width: 768px) {
    .test-blocks { grid-template-columns: 1fr; }
}

/* ============================================
   Home: Three Promises — Premium Cards
   ============================================ */
.promise-card {
    padding: var(--space-8);
    position: relative;
    transition: all var(--transition-base);
}

.promise-card .promise-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.promise-card:hover .promise-icon {
    transform: scale(1.1);
}

.promise-icon-gold {
    background: rgba(246, 168, 15, 0.12);
    color: var(--gold-400);
    border: 1px solid rgba(246, 168, 15, 0.2);
}

.promise-icon-teal {
    background: rgba(126, 205, 255, 0.12);
    color: var(--teal-400);
    border: 1px solid rgba(126, 205, 255, 0.2);
}

.promise-icon-coral {
    background: rgba(152, 80, 205, 0.12);
    color: var(--coral-400);
    border: 1px solid rgba(152, 80, 205, 0.2);
}

.promise-card:hover .promise-icon-gold {
    box-shadow: var(--shadow-glow-gold);
}
.promise-card:hover .promise-icon-teal {
    box-shadow: var(--shadow-glow-teal);
}
.promise-card:hover .promise-icon-coral {
    box-shadow: 0 0 25px rgba(152, 80, 205, 0.3);
}

.promise-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

.promise-link:hover {
    gap: var(--space-3);
}

/* ============================================
   Home: Economic Pathway — Vertical Timeline
   ============================================ */
.pathway-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: var(--space-8) 0;
    overflow-x: auto;
}

.pathway-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--glass-bg-light);
    z-index: 1;
    transform: translateY(-50%);
}

.pathway-step {
    position: relative;
    z-index: 2;
    background: var(--color-bg-dark);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: 2px solid var(--glass-border);
    color: var(--color-text-light);
    font-weight: var(--font-semibold);
    text-align: center;
    min-width: 150px;
    transition: all var(--transition-base);
}

.pathway-step.active, .pathway-step:hover {
    border-color: var(--purple-400);
    box-shadow: var(--shadow-glow);
    color: var(--purple-300);
}

/* ============================================
   Diagnosis Section — Dramatic Treatment
   ============================================ */
.diagnosis-old {
    color: var(--gray-500);
    text-decoration: line-through;
    font-size: var(--text-lg);
    transition: all var(--transition-slow);
}

.diagnosis-new {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    font-family: var(--font-heading);
}

/* ============================================
   Every Peso Section — Bold Typography
   ============================================ */
.peso-section {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.peso-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(246, 168, 15, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================
   Final CTA — Gradient Background
   ============================================ */
.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(81, 2, 156, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(1, 97, 207, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.final-cta h2 {
    position: relative;
    z-index: 2;
}

.final-cta .text-gradient {
    position: relative;
    z-index: 2;
}

/* ============================================
   Dashboard / Tables
   ============================================ */
.table-responsive {
    overflow-x: auto;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    background: var(--glass-bg);
    color: var(--color-text-light);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--glass-bg-light);
}

/* ============================================
   Impact & Fieldwork — Dynamic Masonry & Cards
   ============================================ */
.impact-masonry-grid {
    column-count: 3;
    column-gap: 1.75rem;
}

@media (max-width: 1024px) {
    .impact-masonry-grid {
        column-count: 2;
        column-gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .impact-masonry-grid {
        column-count: 1;
    }
}

.impact-item-wrapper {
    break-inside: avoid;
    margin-bottom: 1.75rem;
}

.impact-card {
    padding: 0;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(81, 2, 156, 0.12), var(--shadow-lg);
    border-color: rgba(81, 2, 156, 0.3);
}

.impact-card-image-wrap {
    position: relative;
    width: 100%;
    background: var(--color-bg-light-alt);
    overflow: hidden;
}

/* CRITICAL: Photo is fully displayed and cards dynamically resize with natural aspect ratio */
.impact-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.impact-card:hover .impact-card-img {
    transform: scale(1.03);
}

.impact-badge-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.impact-featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(254, 243, 199, 0.95);
    color: #b45309;
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.impact-card-hover-hint {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.impact-card:hover .impact-card-hover-hint {
    opacity: 1;
}

.hover-btn-pill {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: var(--shadow-md);
    transform: translateY(4px);
    transition: transform 0.2s ease;
}

.impact-card:hover .hover-btn-pill {
    transform: translateY(0);
}

.impact-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.impact-card-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.impact-card-meta .meta-item {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.impact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    color: #0f172a;
}

.impact-card-description {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.impact-card-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: auto;
}

.view-details-link {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--purple-700);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.impact-card:hover .view-details-link {
    gap: 0.45rem;
    color: var(--purple-600);
}

/* Stat Chips on Impact Header */
.impact-stat-chip {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.impact-stat-chip .chip-num {
    font-weight: 800;
    font-size: var(--text-sm);
    color: #0f172a;
}

.impact-stat-chip .chip-lbl {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Filter Tab Buttons */
.filter-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-body);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-tab.active {
    background: var(--gradient-purple-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-purple);
}

.filter-tab .tab-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Modal Backdrop & Dialog */
.impact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.impact-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.impact-modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    max-width: 980px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.impact-modal-backdrop.active .impact-modal-dialog {
    transform: scale(1);
}

.impact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    transition: background 0.2s, transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.impact-modal-close:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.impact-modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 800px) {
    .impact-modal-backdrop {
        padding: 0;
    }
    .impact-modal-dialog {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    .impact-modal-content {
        grid-template-columns: 1fr;
    }
    .impact-modal-media {
        max-height: 40vh;
        padding: 0;
    }
    .impact-modal-img {
        border-radius: 0;
        max-height: 40vh;
        width: 100%;
        object-fit: cover;
    }
    .impact-modal-sidebar {
        text-align: center;
        padding: 1.5rem 1.25rem;
    }
    .impact-modal-sidebar .modal-meta-pills {
        justify-content: center !important;
    }
    .impact-modal-sidebar .modal-sidebar-actions {
        justify-content: center !important;
    }
}

.impact-modal-media {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.impact-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.impact-modal-sidebar {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
}

/* ============================================
   Policy Page Badges
   ============================================ */
.policy-badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.policy-badge-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

.policy-badge-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.policy-badge-link .label-en {
    font-size: 0.9rem;
    color: var(--gray-900);
}

.policy-badge-link .label-ph {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.1rem;
    transition: color 0.3s ease;
}

/* ============================================
   Global Mobile Swipe Hint
   ============================================ */
.swipe-hint {
    display: none;
}
@media (max-width: 768px) {
    .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        color: var(--color-text-muted);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }
    .swipe-hint.swipe-hint-dark {
        color: var(--gray-400);
    }
}

/* Playful colors on hover */
.policy-badge-link.pb-teal:hover { background: var(--teal-600); border-color: var(--teal-400); }
.policy-badge-link.pb-purple:hover { background: var(--purple-600); border-color: var(--purple-400); }
.policy-badge-link.pb-gold:hover { background: var(--gold-600); border-color: var(--gold-400); }
.policy-badge-link.pb-blue:hover { background: var(--blue-600); border-color: var(--blue-400); }
.policy-badge-link.pb-rose:hover { background: #e11d48; border-color: #fb7185; }

.policy-badge-link:hover .label-ph {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   Typewriter Animation — Hero Tagline
   ============================================ */
.typewriter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 4rem;
    margin: 1.5rem 0;
}

.typewriter-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--color-primary);
    animation: typewriter-cursor 0.7s step-end infinite;
    display: inline-block;
    max-width: 0;
}

.typewriter-text.typing {
    animation: typewriter-cursor 0.7s step-end infinite;
    transition: max-width 0s;
}

.typewriter-text.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes typewriter-cursor {
    50% { border-color: transparent; }
}

/* ============================================
   Demographic Marquee — Scrolling People
   ============================================ */
.demographic-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.demographic-marquee {
    display: flex;
    gap: 2rem;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.demographic-marquee:hover {
    animation-play-state: paused;
}

.demographic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.demographic-chip:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.demographic-chip i {
    width: 18px;
    height: 18px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Para sa Bawat Pilipino Section
   ============================================ */
.para-sa-lahat-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.para-sa-lahat-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(1, 97, 207, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(81, 2, 156, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.demographic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demographic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden !important;
}

.demographic-card img {
    width: calc(100% + 2rem) !important;
    margin: -1.5rem -1rem 1rem -1rem !important; /* Top, Right, Bottom, Left */
    border-radius: 0 !important;
    align-self: stretch !important;
    max-width: none !important;
}

.demographic-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.demographic-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.demographic-card h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.demographic-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin: 0;
}

/* Hero centered variant for homepage */
.hero-centered {
    text-align: center;
    padding: 10rem 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-centered h1 {
    max-width: 900px;
    margin: 0 auto;
}

.hero-centered p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-centered {
        padding: 8rem 0 2rem;
        min-height: auto;
    }
    .homepage-hero {
        min-height: auto !important;
        padding: 6rem 0 3rem;
    }
    .homepage-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    .demographic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .typewriter-text {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
}

/* Scroll indicator bounce */
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Homepage hero header override — make header transparent on top */
.homepage-hero + .site-header,
body:has(.homepage-hero) .site-header {
    background: transparent;
    border-bottom-color: transparent;
}
