/*
Theme Name: DPFP Theme
Theme URI: https://dpfp-db.com
Author: Antigravity
Author URI: https://dpfp-db.com
Description: A custom theme for DPFP Database.
Version: 1.0
*/

:root {
    --dpfp-yellow: #f5b500;
    --dpfp-blue: #043e80;
    --dpfp-dark-blue: #032d5e;
    --dpfp-text: #333333;
    --dpfp-bg: #f9f9f9;
    --dpfp-white: #ffffff;
    --font-base: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    color: var(--dpfp-text);
    line-height: 1.8;
    background-color: #fff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.dpfp-header {
    /* background & backdrop-filter moved to ::before to fix fixed-position children context */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: fixed;
    /* Changed from sticky to fixed for consistency */
    width: 100%;
    top: 0;
    z-index: 10000;
    transition: padding 0.3s, box-shadow 0.3s;
}

.dpfp-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.dpfp-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    /* Increased from 40px for better visibility */
    width: auto;
    transition: height 0.3s ease;
}

/* Shrink on scroll if needed, but 64px is reasonable */
.dpfp-header.scrolled .logo-img {
    height: 54px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--dpfp-yellow);
    border-radius: 4px;
    display: inline-block;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dpfp-blue);
    position: relative;
}

.main-nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dpfp-yellow);
    transition: width 0.3s;
}

.main-nav a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--dpfp-blue);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem !important;
}

.nav-btn:hover {
    background-color: var(--dpfp-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(4, 62, 128, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 10002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dpfp-blue);
    position: absolute;
    left: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 11px;
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active {
    position: fixed;
    right: 15px;
    /* Match mobile container padding */
    top: 23px;
    /* (70px header - 24px toggle) / 2 */
    z-index: 10002;
}

/* Adjust for scrolled header height */
.dpfp-header.scrolled .mobile-menu-toggle.active {
    top: 18px;
    /* (60px header - 24px toggle) / 2 */
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Hero Section */
.dpfp-hero {
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.dpfp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(245, 181, 0, 0.2);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(4, 62, 128, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.dpfp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(4, 62, 128, 0.1);
    color: var(--dpfp-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.dpfp-hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--dpfp-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.dpfp-hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Search Bar */
.dpfp-search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 10px;
}

.input-wrapper {
    position: relative;
    width: 60%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.dpfp-search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.dpfp-search-input:focus {
    border-color: var(--dpfp-blue);
    box-shadow: var(--shadow-md);
}

.dpfp-search-submit {
    padding: 0 30px;
    background-color: var(--dpfp-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.dpfp-search-submit:hover {
    background-color: var(--dpfp-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-tags {
    font-size: 0.9rem;
    color: #666;
}

.hero-tags span {
    font-weight: bold;
    margin-right: 10px;
}

.hero-tags a {
    display: inline-block;
    margin: 0 5px;
    color: var(--dpfp-blue);
    text-decoration: underline;
    text-decoration-color: rgba(4, 62, 128, 0.3);
}

.hero-tags a:hover {
    color: var(--dpfp-yellow);
    text-decoration-color: var(--dpfp-yellow);
}

/* Search Section (Compact) */
.dpfp-search-section {
    padding: 60px 20px 40px;
    background: #fff;
    text-align: center;
}

.search-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Kokumin Database Section */
.dpfp-database-section {
    padding: 60px 20px 80px;
    background: #fff;
}

.database-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.db-card {
    width: calc((100% - 60px) / 3);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.db-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dpfp-blue), var(--dpfp-yellow));
    opacity: 0;
    transition: opacity 0.3s;
}

.db-card:hover::before {
    opacity: 1;
}

.db-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

/* Unified Icon Palette - Vibrant 2025 */
.diet-icon-bg {
    background: rgba(48, 79, 254, 0.1);
    color: #304FFE;
    /* Indigo A400: Trust & Intelligence */
}

.summary-icon-bg {
    background: rgba(101, 31, 255, 0.1);
    color: #651FFF;
    /* Deep Purple A400: Analysis & AI */
}

.policy-icon-bg {
    background: rgba(255, 145, 0, 0.1);
    color: #FF9100;
    /* Orange A400: Vitality & Focus */
}

.glossary-icon-bg {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
    /* Green A700: Growth & Knowledge */
}

.voice-icon-bg {
    background: rgba(245, 0, 87, 0.1);
    color: #F50057;
    /* Pink A400: Passion & Voice */
}

.timeline-icon-bg {
    background: rgba(0, 176, 255, 0.1);
    color: #00B0FF;
    /* Light Blue A400: Flow & Future */
}

/* Library Icons */
.photo-icon-bg {
    background: rgba(41, 121, 255, 0.1) !important;
    color: #2979FF !important;
    /* Blue A400: Clarity */
}

.youtube-icon-bg {
    background: rgba(255, 23, 68, 0.1) !important;
    color: #FF1744 !important;
    /* Red A400: YouTube Brand */
}

.candidate-icon-bg {
    background: rgba(100, 221, 23, 0.1) !important;
    color: #64DD17 !important;
    /* Light Green A700: Freshness */
}

.clips-icon-bg {
    background: rgba(213, 0, 249, 0.1) !important;
    color: #D500F9 !important;
    /* Purple A400: Creativity */
}

.art-icon-bg {
    background: rgba(255, 61, 0, 0.1) !important;
    color: #FF3D00 !important;
    /* Deep Orange A400: Art & Expression */
}

/* Legacy support if needed */
.movie-icon-bg {
    background: rgba(244, 67, 54, 0.15) !important;
    color: #f44336 !important;
}

/* Coming Soon Styles */
.coming-soon-card {
    cursor: default;
    opacity: 0.8;
    background: #f9f9f9;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.coming-soon-card::before {
    display: none;
}

.coming-soon-card:hover .db-card-icon {
    transform: none;
}

.coming-soon-badge {
    margin-top: auto;
    background: #eee;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.db-card:hover .db-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.db-card-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dpfp-blue);
    margin-bottom: 10px;
}

.db-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.db-card-arrow {
    margin-top: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
}

.db-card:hover .db-card-arrow {
    background: var(--dpfp-blue);
    color: #fff;
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .database-grid {
        gap: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .db-card {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .database-grid {
        gap: 15px;
    }

    .db-card {
        width: calc((100% - 15px) / 2);
        padding: 20px 15px;
    }

    .db-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .db-card-content h3 {
        font-size: 1rem;
    }

    .db-card-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .db-card-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Latest Videos Section */
.dpfp-latest-videos {
    padding: 60px 20px 80px;
    background: #f9f9f9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    top: 0;
}

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

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dpfp-blue);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-button {
    background: var(--dpfp-yellow);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dpfp-yellow);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dpfp-text);
}

.video-meta {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-date {
    margin-left: auto;
}

.btn-video-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--dpfp-blue);
    color: var(--dpfp-blue);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-video-more:hover {
    background: var(--dpfp-blue);
    color: #fff;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 15px;
        margin-right: -20px;
        /* Allow scroll to edge */
        padding-right: 20px;
    }

    .video-card {
        min-width: 280px;
        scroll-snap-align: start;
    }
}

/* Library Section (Grid Layout uses .dpfp-database-section styles) */
.dpfp-library {
    padding: 60px 20px 80px;
    background: #fff;
}

@media (max-width: 768px) {

    .diet-info-card,
    .library-card {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .diet-info-image,
    .library-image {
        width: 100%;
    }

    .diet-visual,
    .library-visual {
        width: 100%;
        max-width: 300px;
    }
}

/* Policy Grid Section */
.dpfp-policies {
    padding: 100px 20px;
    background-color: var(--dpfp-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.dpfp-section-title {
    font-size: 2.5rem;
    color: var(--dpfp-blue);
    margin-bottom: 15px;
    font-weight: 900;
    display: inline-block;
    position: relative;
    /* Prevent line break on small devices */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dpfp-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .dpfp-section-title {
        font-size: 1.5rem;
        /* Ensures "こくみん議員データ" fits on iPhone SE */
    }
}

.section-desc {
    color: #666;
    font-size: 1.1rem;
}

/* Filters */
.policy-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dpfp-blue);
    color: #fff;
    border-color: var(--dpfp-blue);
    box-shadow: var(--shadow-sm);
}

.dpfp-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .dpfp-policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dpfp-policy-grid {
        grid-template-columns: 1fr;
    }
}

.dpfp-policy-card {
    background: var(--dpfp-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: var(--dpfp-text);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dpfp-policy-card.hidden {
    opacity: 0;
    transform: scale(0.9);
}

.dpfp-policy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-inner {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.dpfp-policy-icon {
    font-size: 3rem;
    color: var(--dpfp-yellow);
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    background: #fffbf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s;
}

.dpfp-policy-card:hover .dpfp-policy-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--dpfp-yellow);
    color: #fff;
}

.dpfp-policy-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.dpfp-policy-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dpfp-blue);
    margin-bottom: 15px;
}

.dpfp-policy-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dpfp-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s;
}

.dpfp-policy-card:hover .read-more i {
    transform: translateX(5px);
}

/* Members Section */
.dpfp-members {
    padding: 100px 20px;
    background: #fff;
}

.members-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px 40px;
    justify-content: flex-start;
    /* Ensure scrolling works from start */
    flex-wrap: nowrap;
    /* Force single row for carousel */
}

/* Member Card (Ported from dpfp-member.css with adjustments for Carousel) */
.member-card {
    width: 260px;
    /* Fixed width for carousel */
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    margin-bottom: 10px;
    /* Space for shadow */
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(4, 62, 128, 0.1);
}

.member-photo-wrapper {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    position: relative;
    background: #f0f2f5;
    overflow: hidden;
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo-img {
    transform: scale(1.05);
}

.member-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 5rem;
    background: linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
}

.member-position-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(4, 62, 128, 0.9);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(4px);
}

.member-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--dpfp-text);
}

.member-furigana {
    display: block;
    font-size: 0.7rem;
    color: #888;
    font-weight: normal;
    margin-bottom: 2px;
}

.member-district {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.district-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0f2f5;
    color: #555;
    font-weight: 500;
}

/* Major Officer (Gold/Yellow) */
.member-card.is-officer-major {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(to bottom, #fff, #fffbf0);
    z-index: 2;
}

.member-card.is-officer-major .member-photo-wrapper {
    padding-top: 110%;
}

.member-card.is-officer-major .member-photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dpfp-yellow);
}

.member-card.is-officer-major .member-position-badge {
    background: var(--dpfp-yellow);
    color: #333;
    font-size: 0.85rem;
    padding: 8px 10px;
    top: 0;
    bottom: auto;
    backdrop-filter: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    max-height: 4.2em;
}

.member-card.is-officer-major .member-name {
    font-size: 1.4rem;
    color: var(--dpfp-blue);
}

/* Minor Officer (Blue) */
.member-card.is-officer-minor {
    border: 1px solid rgba(4, 62, 128, 0.1);
    background: #fff;
}

.member-card.is-officer-minor .member-position-badge {
    background: var(--dpfp-blue);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    top: 0;
    bottom: auto;
    left: auto;
    right: 0;
    border-bottom-left-radius: 8px;
    white-space: normal;
    line-height: 1.2;
    max-width: 80%;
    text-align: right;
}

.member-card.is-officer-minor .member-name {
    color: var(--dpfp-blue);
    font-weight: 700;
}

/* Main Hero Section */
.dpfp-main-hero {
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-wrapper {
    margin-bottom: 25px;
}

.hero-logo {
    height: auto;
    width: 100%;
    max-width: 520px;
    /* Slightly larger */
    filter: drop-shadow(0 15px 30px rgba(4, 62, 128, 0.2));
    /* Stronger shadow */
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

.hero-lead {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.hero-concept {
    display: inline-block;
    font-size: 1.35rem;
    /* Larger than body text */
    font-weight: 800;
    color: var(--dpfp-blue);
    background: linear-gradient(transparent 70%, rgba(245, 181, 0, 0.3) 70%);
    /* Yellow marker effect */
    margin-bottom: 12px;
    /* Space between lines */
    letter-spacing: 0.1em;
    padding: 0 5px;
    /* Give marker some breathing room */
}

.hero-search-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(circle at 15% 15%, rgba(245, 181, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(4, 62, 128, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 95%);
    /* Fade to white at bottom */
}

@media (max-width: 768px) {
    .dpfp-main-hero {
        padding: 80px 20px 60px;
    }

    .hero-search-wrapper {
        padding: 25px;
    }

    .hero-logo {
        max-width: 320px;
    }

    .hero-concept {
        font-size: 1.1rem;
    }
}

/* Newsletter */
.dpfp-newsletter {
    padding: 80px 20px;
    background: #fff;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--dpfp-blue) 0%, var(--dpfp-dark-blue) 100%);
    border-radius: 20px;
    padding: 60px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.newsletter-box::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.newsletter-text p {
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
    margin-left: 40px;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background: var(--dpfp-yellow);
    color: var(--dpfp-text);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.btn-members {
    display: inline-block;
    padding: 14px 50px;
    background: var(--dpfp-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(4, 62, 128, 0.3);
}

.btn-members:hover {
    background: var(--dpfp-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 62, 128, 0.4);
}

/* Support Banner Styles */
.support-banner-action {
    margin-left: 40px;
    position: relative;
    z-index: 1;
}

.btn-banner-support {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dpfp-yellow);
    color: var(--dpfp-text);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-banner-support:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--dpfp-text);
}

.btn-banner-support i {
    color: #ff6b6b;
}

@media (max-width: 900px) {
    .support-banner-action {
        margin-left: 0;
        margin-top: 30px;
    }
}


/* =========================================
   Modern Search System (2025 Style)
   ========================================= */

/* --- Front Page Search Form --- */
.hero-search-wrapper.rich-search {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    z-index: 10;
}

.dpfp-search-form-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dpfp-search-form-modern:hover,
.dpfp-search-form-modern:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.search-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dpfp-blue);
    font-size: 1.2rem;
    padding-left: 10px;
}

.dpfp-search-input-modern {
    flex-grow: 1;
    min-width: 0;
    /* Prevent overflow in flex container */
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--dpfp-text);
    padding: 15px 10px;
    outline: none;
    font-weight: 500;
}

.dpfp-search-input-modern::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.dpfp-search-submit-modern {
    flex-shrink: 0;
    /* Prevent button from shrinking/disappearing */
    background: linear-gradient(135deg, var(--dpfp-blue) 0%, var(--dpfp-dark-blue) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 62, 128, 0.3);
}

.dpfp-search-submit-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(4, 62, 128, 0.4);
}

.dpfp-search-submit-modern i {
    transition: transform 0.3s ease;
}

.dpfp-search-submit-modern:hover i {
    transform: translateX(3px);
}

/* Trending Tags */
.hero-tags-modern {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tag-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dpfp-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center tags on mobile */
    gap: 10px;
}

.glass-tag {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dpfp-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.glass-tag:hover {
    background: #fff;
    color: var(--dpfp-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Search Results Page --- */
.dpfp-search-page {
    background: #f9f9f9;
    min-height: 100vh;
}

.search-header-hero {
    background: linear-gradient(135deg, var(--dpfp-blue) 0%, var(--dpfp-dark-blue) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-header-hero .hero-bg-blob {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 181, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.search-label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 10px;
    font-weight: 700;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.search-count {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-left: 15px;
    vertical-align: middle;
}

.search-hero-form {
    max-width: 600px;
    margin: 0 auto;
}

.dpfp-search-form-rich {
    position: relative;
    display: flex;
    align-items: center;
}

.dpfp-search-form-rich i {
    position: absolute;
    left: 20px;
    color: #999;
}

.dpfp-search-form-rich .search-field {
    width: 100%;
    padding: 15px 120px 15px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dpfp-search-form-rich .search-submit-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--dpfp-yellow);
    color: #333;
    border: none;
    border-radius: 40px;
    padding: 0 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.dpfp-search-form-rich .search-submit-btn:hover {
    background: #ffc107;
}

/* Results Grid */
.search-results-container {
    padding: 60px 20px;
}

.dpfp-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.search-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.search-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-card:hover .search-card-thumb img {
    transform: scale(1.05);
}

.search-card-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 3rem;
}

.post-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.post-type-badge.type-page {
    background: var(--dpfp-blue);
}

.post-type-badge.type-post {
    background: var(--dpfp-yellow);
    color: #333;
}

.search-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.search-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--dpfp-text);
}

.search-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
}

.search-highlight {
    background: rgba(245, 181, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
    color: inherit;
}

/* Pagination */
.search-pagination {
    margin-top: 60px;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #fff;
    color: var(--dpfp-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover {
    background: var(--dpfp-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 62, 128, 0.2);
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.search-no-results h2 {
    font-size: 1.5rem;
    color: var(--dpfp-text);
    margin-bottom: 15px;
}

.search-no-results p {
    color: #666;
    margin-bottom: 30px;
}

.popular-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-search-wrapper.rich-search {
        padding: 0 15px;
    }

    .dpfp-search-form-modern {
        padding: 5px;
    }

    .dpfp-search-input-modern {
        font-size: 1rem;
        padding: 12px 10px;
    }

    .dpfp-search-submit-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .dpfp-search-submit-modern span {
        display: none;
        /* Icon only on mobile */
    }

    .dpfp-search-submit-modern i {
        transform: none !important;
    }

    .search-title {
        font-size: 1.8rem;
    }

    .dpfp-search-grid {
        grid-template-columns: 1fr;
    }
}

.dpfp-footer {
    background: #222;
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.footer-logo p {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #aaa;
}

.footer-col a:hover {
    color: var(--dpfp-yellow);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--dpfp-yellow);
    color: #222;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #666;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .dpfp-hero-title {
        font-size: 3rem;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .newsletter-form {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 1110px) {
    .dpfp-hero {
        padding-top: 100px;
    }

    .dpfp-hero-title {
        font-size: 2.5rem;
    }

    .sp-only {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: none;
        z-index: 10001;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        right: auto;
        /* Reset */
    }

    .main-nav.active,
    #dpfp-main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        right: auto;
        /* Reset */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-toggle,
    #dpfp-mobile-menu-toggle {
        display: block;
    }

    .dpfp-search-form {
        flex-direction: column;
    }

    .input-wrapper {
        width: 100%;
        max-width: none;
    }

    .dpfp-news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dpfp-news-date,
    .dpfp-news-cat {
        margin-bottom: 5px;
    }

    /* Mobile Optimizations for Policies & Members */

    /* Policies: 2 columns on mobile */
    .dpfp-policy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dpfp-policy-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .card-inner {
        padding: 0;
    }

    .dpfp-policy-icon {
        width: 50px;
        height: 50px;
        padding: 12px;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    .dpfp-policy-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .dpfp-policy-desc {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more {
        font-size: 0.8rem;
    }

    /* Members: Horizontal Scroll (Carousel) */
    .members-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-right: -20px;
        /* Bleed out */
        padding-right: 20px;
    }

    /* Note: Member card styles are handled by dpfp-member.css */

    /* Member Statistics responsive */
    .stats-overview {
        flex-direction: column;
        gap: 15px;
    }

    .ranking-section {
        margin-bottom: 30px;
    }
}

/* Member Statistics Section */
.dpfp-member-stats {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dpfp-blue), var(--dpfp-dark-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dpfp-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Rankings Container */
.rankings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.ranking-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ranking-title {
    font-size: 1.3rem;
    color: var(--dpfp-blue);
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-title i {
    color: var(--dpfp-yellow);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #eef4fa;
    transform: translateX(5px);
}

.ranking-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--dpfp-blue), var(--dpfp-dark-blue));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-rank {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.ranking-item:nth-child(2) .ranking-rank {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.ranking-item:nth-child(3) .ranking-rank {
    background: linear-gradient(135deg, #cd7f32, #e9ad7f);
    color: #fff;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dpfp-text);
    margin-bottom: 3px;
}

.ranking-detail {
    font-size: 0.85rem;
    color: #666;
}

.ranking-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dpfp-blue);
}

.btn-stats {
    display: inline-block;
    padding: 14px 35px;
    background: var(--dpfp-blue);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(4, 62, 128, 0.3);
}

.btn-stats:hover {
    background: var(--dpfp-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 62, 128, 0.4);
}

.btn-stats i {
    margin-left: 8px;
}

@media (max-width: 960px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rankings-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-width: 100%;
    }
}

/* Contact Section */
.dpfp-contact {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.contact-cta {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-cta p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dpfp-blue);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(4, 62, 128, 0.3);
}

.btn-contact:hover {
    background: var(--dpfp-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 62, 128, 0.4);
    color: #fff;
}

/* Visual Stories Section (Note) */
.dpfp-visual-stories {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.visual-stories-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(4, 62, 128, 0.03) 0%, transparent 60%);
    z-index: 0;
}

.story-card {
    display: flex;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft large shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    text-decoration: none;
    max-width: 900px;
    margin: 0 auto;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.story-content {
    flex: 1;
    padding: 60px;
    position: relative;
    z-index: 2;
}

.story-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #41c9b4;
    /* Note Green-ish */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dpfp-text);
}

.story-title-jp {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    color: #888;
}

.story-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-story {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dpfp-blue);
    font-size: 1.1rem;
    transition: gap 0.3s;
}

.story-card:hover .btn-story {
    gap: 15px;
    text-decoration: underline;
}

.story-visual {
    width: 40%;
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
    min-height: 300px;
}

/* Glass Circles */
.glass-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.8;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: rgba(65, 201, 180, 0.4);
    /* Note Green */
    top: 20%;
    left: 20%;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(4, 62, 128, 0.2);
    /* DPFP Blue */
    bottom: -10%;
    right: -10%;
}

@media (max-width: 768px) {
    .story-card {
        flex-direction: column;
    }

    .story-content {
        padding: 40px 30px;
    }

    .story-visual {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .story-title {
        font-size: 2rem;
    }
}

/* Election Video Marquee Styles */
.election-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.election-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Animation will be applied by JS/class upon load to avoid jumpiness */
    animation: scroll-left 60s linear infinite;
}

.election-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Specific Styles for Election Video Cards (Smaller) */
#election-videos .video-card {
    width: 200px;
    /* Reduced from 260px */
    flex-shrink: 0;
    font-size: 0.85em;
    /* Adjusted font size */
    border-radius: 12px;
}

#election-videos .video-title {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#election-videos .video-meta {
    font-size: 0.7rem;
}

#election-videos .video-thumbnail {
    padding-top: 56.25%;
    /* Maintain 16:9 */
}

#election-videos .play-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* Mobile specific sizing - Optimized for readability */
@media (max-width: 768px) {
    #election-videos .video-card {
        width: 135px !important;
        /* Compromise size: Narrower than 155px, wider than 120px */
        border-radius: 8px;
    }

    .election-marquee-track {
        gap: 12px;
    }

    #election-videos .video-thumbnail {
        padding-top: 56.25%;
        /* 16:9 Standard aspect ratio again */
        height: auto;
    }

    #election-videos .video-thumbnail img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    #election-videos .video-info {
        padding: 6px 8px;
        /* Tighter padding */
    }

    #election-videos .video-title {
        font-size: 11px;
        /* Specific pixel size for readability */
        line-height: 1.3;
        margin-bottom: 3px;
        font-weight: 700;
        height: 2.6em;
        /* Limit to 2 lines */
    }

    #election-videos .video-meta {
        font-size: 10px;
        display: block;
        /* Show date */
        opacity: 0.8;
        line-height: 1;
    }

    /* Hide channel name on mobile */
    #election-videos .channel-name {
        display: none;
    }

    #election-videos .play-icon {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

/* Loading state centering in Marquee */
.election-marquee-track .video-loading {
    width: 100vw;
    /* Take full width to center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------
   Stories Video Bar (New 2025)
------------------------------------------------------------- */
.dpfp-stories-wrapper {
    width: 100%;
    margin: 20px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    /* Changed from center to allow scroll */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.dpfp-stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 80px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 3px;
    /* Instagram-like Gradient */
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #2e86de);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Unread/New Pulse Effect */
.story-item.is-new .story-ring::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid rgba(220, 39, 67, 0.6);
    animation: pulseRing 1.5s infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.story-thumb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    /* White gap */
    object-fit: cover;
    background: #eee;
}

.story-name {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
}

/* Type Badge (Tiny icon overlay) */
.story-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    color: #555;
}

.story-badge.b-youtube {
    color: #f00;
}

.story-badge.b-clip {
    color: #2e86de;
}

/* Loading State */
.stories-loading {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.story-skeleton {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #eee;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    to {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .dpfp-stories-wrapper {
        justify-content: flex-start;
        padding-left: 15px;
    }

    .story-item {
        width: 70px;
    }

    .story-ring {
        width: 64px;
        height: 64px;
    }
}

/* -------------------------------------------------------------
   Shorts Video Bar (Plan A)
------------------------------------------------------------- */
/* -------------------------------------------------------------
   Shorts Video Bar (Plan A) - Scrollbar Update
------------------------------------------------------------- */
.dpfp-shorts-wrapper {
    width: 100%;
    margin: 15px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;

    /* Custom Scrollbar for PC */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    display: flex;
    gap: 12px;
}

/* Custom Scrollbar Styling (Webkit) */
.dpfp-shorts-wrapper::-webkit-scrollbar {
    height: 6px;
    display: block;
    /* Force display on PC */
}

.dpfp-shorts-wrapper::-webkit-scrollbar-track {
    background: transparent;
    margin: 0 10px;
}

.dpfp-shorts-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.dpfp-shorts-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 62, 128, 0.5);
    /* Darker on hover */
}

/* Hide scrollbar on mobile (Keep swipe feeling, but users can see indicator) */
@media (max-width: 600px) {
    .dpfp-shorts-wrapper::-webkit-scrollbar {
        display: none;
        /* Keep hidden on mobile for clean look */
    }
}

.shorts-item {
    display: inline-block;
    position: relative;
    width: 110px;
    /* Vertical Aspect */
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.shorts-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.shorts-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.shorts-item:hover .shorts-thumb {
    opacity: 1;
}

.shorts-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 40px 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.shorts-title {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.shorts-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Play Icon Overlay */
.shorts-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* New Badge */
.shorts-new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2743;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Skeleton */
.shorts-skeleton {
    width: 110px;
    height: 170px;
    border-radius: 12px;
    background: #eee;
    animation: pulse 1s infinite alternate;
}

/* Responsive */
@media (max-width: 600px) {
    .dpfp-shorts-wrapper {
        padding-left: 15px;
    }

    .shorts-item {
        width: 100px;
        height: 160px;
    }
}

/* -------------------------------------------------------------
   Video Modal (Member Tube Style)
------------------------------------------------------------- */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-modal-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.video-modal-container {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal-overlay.is-active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 10000;
}

.video-modal-close:hover {
    transform: scale(1.1);
    color: #f5b500;
}

.video-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .video-modal-container {
        width: 100%;
        border-radius: 0;
    }

    .video-modal-iframe {
        border-radius: 0;
    }

    .video-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* FIX: Ensure Shorts Bar is visible and clickable */
.dpfp-shorts-wrapper {
    position: relative;
    z-index: 50;
    /* Higher than hero content default */
    background: transparent;
    pointer-events: auto !important;
}

.shorts-item {
    opacity: 1 !important;
    /* Force opacity */
    cursor: pointer !important;
    pointer-events: auto !important;
    background: #000;
    /* Ensure solid background behind image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    /* Ensure shadow visibility */
}

/* Ensure no overlay is blocking */
.shorts-item * {
    pointer-events: none;
    /* Let clicks pass through children to the item itself? No, item has listener. */
}

/* Wait, if children have pointer-events none, the parent still gets click? Yes.
   But let's be safe. */
.shorts-item img,
.shorts-item .shorts-overlay,
.shorts-item .shorts-play {
    pointer-events: none;
}

/* -------------------------------------------------------------
   Scroll Hint & PC Navigation (Rich Guide)
------------------------------------------------------------- */
.shorts-container-wrapper {
    position: relative;
    width: 100%;
}

/* Gradient Fade on Right (Keep for visual cue) */
.scroll-fade-mask {
    position: absolute;
    top: 5px;
    right: 0;
    bottom: 20px;
    width: 80px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 60;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Navigation Buttons */
.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dpfp-blue);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 61;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.scroll-nav-btn:hover {
    background: var(--dpfp-blue);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(4, 62, 128, 0.3);
    opacity: 1;
}

.scroll-nav-btn.nav-prev {
    left: -15px;
    /* Slight overhang */
}

.scroll-nav-btn.nav-next {
    right: -15px;
    /* Slight overhang */
}

/* Hide fading mask when scrolled to end (handled via JS class) */
.shorts-container-wrapper.is-end .scroll-fade-mask {
    opacity: 0;
}

/* RESTORE: Bouncing Animation for Next Button (Guide Mode) */
@keyframes bounceRight {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(5px, -50%);
    }
}

/* Apply bounce to next button when not hovered, to act as a guide */
.scroll-nav-btn.nav-next {
    animation: bounceRight 2s infinite;
}

/* Stop bounce on hover for precise clicking */
.scroll-nav-btn.nav-next:hover {
    animation: none;
    transform: translateY(-50%) scale(1.1);
}