/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

:root {
    --pdip-red: #ED1C24;
    /* Merah Khas PDI-P */
    --pdip-black: #000000;
    /* Hitam */
    --pdip-white: #FFFFFF;
    /* Putih */
}

/* Mengubah warna tombol secara global tanpa klik Elementor */
.elementor-button,
.btn-primary {
    background-color: var(--pdip-red) !important;
    border-radius: 0px !important;
    /* Kesan tegas/kaku */
    text-transform: uppercase;
    font-weight: bold;
}

/* Hover effect */
.elementor-button:hover {
    background-color: var(--pdip-black) !important;
}

/* --- Menu Navigasi (Astra) --- */

/* 1. Warna Menu Default (Putih) */
/* 1. Warna Menu Default (Putih) */
.ast-theme-transparent-header .main-header-menu .menu-item>.menu-link,
.ast-header-break-point .main-header-bar .main-header-menu .menu-item>.menu-link,
.page-has-pdip-hero .main-header-menu .menu-item>.menu-link,
.page-has-pdip-hero .site-header:not(.pdip-sticky-active),
.page-has-pdip-hero .main-header-bar:not(.pdip-sticky-active) {
    background: transparent !important;
    border-bottom: none !important;
}

.page-has-pdip-hero .main-header-menu .menu-item>.menu-link {
    color: var(--pdip-white) !important;
    font-weight: 600;
}

/* 2. Item Aktif & Hover (Merah PDI-P) */
.ast-theme-transparent-header .main-header-menu .menu-item.current-menu-item>.menu-link,
.ast-theme-transparent-header .main-header-menu .menu-item.current-menu-ancestor>.menu-link,
.ast-theme-transparent-header .main-header-menu .menu-item:hover>.menu-link {
    color: var(--pdip-red) !important;
}

/* 3. Tombol Khusus di Menu (Misal: Donasi) */
/* Tambahkan 'CSS Classes' = 'pdip-nav-btn' pada menu item di WP Admin > Appearance > Menus */
.main-header-menu .menu-item.pdip-nav-btn>.menu-link {
    background-color: var(--pdip-white) !important;
    color: var(--pdip-black) !important;
    padding: 10px 24px !important;
    /* Padding tombol */
    border-radius: 4px !important;
    /* Sesuai referensi gambar (sedikit rounded) */
    font-weight: bold;
    margin-top: -5px;
    /* Adjust vertical align if needed */
    transition: all 0.3s ease;
}

.main-header-menu .menu-item.pdip-nav-btn:hover>.menu-link {
    background-color: var(--pdip-red) !important;
    color: var(--pdip-white) !important;
}

/* 4. Header Transparan saat Scroll (Background Merah PDIP) */
/* Mengatur background saat sticky/scroll aktif - Pattern Merah */
.ast-theme-transparent-header .main-header-bar.ast-sticky-active,
.site-header.ast-sticky-active,
.site-header.pdip-sticky-active {
    /* Class trigger dari custom JS */
    background-color: var(--pdip-red) !important;
    /* Merah Brand */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Shadow halus */
    transition: background-color 0.3s ease;
}

/* 5. Force Sticky Header (Manual CSS) */
/* Gunakan ini jika opsi Sticky Header di Astra tidak aktif */
.site-header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* Penyesuaian jika Admin Bar aktif (Login) */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* --- Hero Section Premium Style --- */
.pdip-hero-section {
    position: relative;
    /* Force Full Width (Break Container) */
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;

    min-height: 85vh;
    /* Sedikit lebih tinggi */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pdip-white);
    padding: 0 20px;
    margin-top: -85px;
    /* Menarik ke atas agar di belakang header transparan */
    padding-top: 100px;
    /* Kompensasi margin negatif */
    overflow: hidden;
    /* Mencegah horizontal scroll akibat 100vw */
}

/* Overlay Gelap Kemerahan */
.pdip-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.7) 0%, rgba(237, 28, 36, 0.4) 100%);
    z-index: 1;
}

.pdip-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* animation: fadeInUp 1s ease-out;  <-- REMOVED: Conflicted with GSAP */
    visibility: hidden;
    /* Prevent FOUC, GSAP will show this */
}

/* Typography */
.pdip-hero-title {
    font-size: 4rem;
    /* Lebih besar */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--pdip-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    /* Sedikit rapat untuk kesan modern */
}

.pdip-hero-subtitle {
    font-size: 1.35rem;
    /* Sedikit lebih besar */
    font-weight: 400;
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
    /* Clean look */
}

/* Tombol Hero */
.pdip-hero-btn {
    font-size: 1.1rem !important;
    /* Sedikit lebih besar */
    padding: 18px 45px !important;
    letter-spacing: 2px;
    /* Kesan mewah */
    box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
    /* Glow awal */
    text-decoration: none !important;
    /* Remove underline */

    /* FIX: Specific transitions to avoid conflict with GSAP Opacity/Scale */
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease !important;

    background-color: var(--pdip-red);
    /* Ensure background is set */
    color: var(--pdip-white);
    display: inline-block;
    /* Ensure transform works */
    border-radius: 50px !important;
    /* Rounded Style */

    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pdip-hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(237, 28, 36, 0.8);
    /* Glow intensif */
    background-color: #ff1f27 !important;
    /* Sedikit lebih terang */
}

/* Animasi Shine effect pada button (optional CSS only animation) */
.pdip-hero-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.pdip-hero-btn:hover::after {
    left: 100%;
}

/* Animasi Masuk REMOVED to avoid conflict */
/*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* Responsive Mobile */
@media (max-width: 768px) {
    .pdip-hero-title {
        font-size: 2.2rem;
        /* Ukuran pas di HP */
        line-height: 1.2;
    }

    .pdip-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .pdip-hero-section {
        min-height: 70vh;
        /* Sesuaikan tinggi di HP */
        margin-left: -50vw;
        /* Keep full width */
        width: 100vw;
        /* Keep full width */
        left: 50%;
    }

    .pdip-hero-btn {
        width: 100%;
        /* Tombol full width di HP agar mudah ditekan */
        max-width: 300px;
        padding: 15px 20px !important;
    }
}

/* --- Common Full Width Breakout Class --- */
/* Use this to force sections to be 100vw, breaking out of Astra container */
.pdip-full-width-section {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent horizontal scroll */
}

/* --- Features Section (Trisakti) --- */
.pdip-features-section {
    padding: 100px 20px;
    background-color: #f9f9f9;
    /* Light Gray Clean Background */
    text-align: center;

    /* Apply Full Width Strategy */
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;
}

.pdip-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Ensure it takes space */
}

.pdip-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pdip-black);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Red underline accent */
.pdip-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--pdip-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.pdip-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pdip-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
    /* Mobile safe spacing */
}

/* ... existing card styles ... */

.pdip-feature-card {
    background: var(--pdip-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent;
    /* Hidden border for hover effect */
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* Hidden initially for GSAP */
    transform: translateY(30px);
    /* Offset for GSAP */
}

.pdip-feature-card:hover {
    transform: translateY(-10px) !important;
    /* GSAP override friendly */
    box-shadow: 0 20px 40px rgba(237, 28, 36, 0.15);
    border-top-color: var(--pdip-red);
}

.pdip-card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(237, 28, 36, 0.05);
    /* Soft Red BG */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 50px;
    color: var(--pdip-red);
    transition: all 0.3s ease;
}

.pdip-feature-card:hover .pdip-card-icon {
    background: var(--pdip-red);
    color: var(--pdip-white);
    transform: rotateY(180deg);
}

.pdip-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pdip-black);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdip-feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- Quote Section (Dark Premium) --- */
.pdip-quote-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, #7a0b10 0%, #2b0203 100%);
    /* Richer, darker Red */
    color: #ffffff !important;
    /* Force White globally in section */
    text-align: center;
    position: relative;
    overflow: hidden;

    /* Apply Full Width Strategy */
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;
}

/* Optional Pattern Overlay */
.pdip-quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.pdip-quote-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    /* JS Animation Start */
    transform: translateY(30px);
}

.pdip-quote-icon {
    font-size: 6rem;
    /* Lebih besar */
    line-height: 1;
    color: rgba(255, 215, 0, 0.3);
    /* Premium Gold Accent (Transparent) */
    margin-bottom: -30px;
    font-family: serif;
    display: block;
}

.pdip-quote-text {
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    margin: 30px 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: #ffffff !important;
    /* CRITICAL FIX: Force White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Legibility shadow */

    /* FIX: Force Gold Vertical Line */
    border-left: 5px solid #d4af37 !important;
    /* Premium Gold */
    padding-left: 30px !important;
    display: inline-block;
}

.pdip-quote-divider {
    width: 60px;
    height: 4px;
    background-color: #d4af37;
    /* Premium Gold */
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    /* Remove transparency */
}

.pdip-quote-author {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-style: normal;
    color: #ffffff !important;
    /* Force White */
}

.pdip-quote-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8) !important;
    /* Off-white for hierarchy */
    display: block;
    font-weight: 500;
}

/* Responsive Quote */
@media (max-width: 768px) {
    .pdip-quote-text {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .pdip-quote-section {
        padding: 80px 20px;
        /* Mobile Width Safety */
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
    }

    .pdip-features-section {
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        padding: 60px 20px;
    }
}

/* --- Chairperson Section (Split Layout) --- */
.pdip-chairperson-section {
    padding: 100px 0;
    background-color: var(--pdip-white);
    overflow: hidden;
}

.pdip-chairperson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

/* Left Content */
.pdip-chairperson-content {
    padding-right: 20px;
    opacity: 0;
    /* JS Animation Start */
    transform: translateX(-50px);
}

.pdip-label-small {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pdip-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.pdip-chairperson-name {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--pdip-black);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.pdip-red-line-left {
    width: 80px;
    height: 4px;
    background-color: var(--pdip-red);
    margin-bottom: 30px;
}

.pdip-chairperson-quote {
    font-size: 1.25rem;
    font-weight: 400;
    /* Regular styling */
    color: #333;
    font-family: inherit;
    line-height: 1.6;
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin-bottom: 25px;
    font-style: italic;
}

.pdip-chairperson-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pdip-arrow-link {
    font-weight: 700;
    color: var(--pdip-red);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pdip-arrow-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pdip-arrow-link:hover .arrow {
    transform: translateX(5px);
}

/* Right Image */
.pdip-chairperson-image-wrapper {
    position: relative;
    opacity: 0;
    /* JS Animation Start */
    transform: translateX(50px);
    display: inline-block;
    /* Wrap tight around image */
}

/* Professional Bottom Fade & Accent */
.pdip-chairperson-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Cover bottom 30% */
    background: linear-gradient(to top, #ffffff 10%, transparent 100%);
    /* Fade to White */
    pointer-events: none;
    z-index: 3;
}

/* Gold Accent Removed as per request */
/* .pdip-chairperson-image-wrapper::before { ... } */

.pdip-chairperson-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    /* Keep rounded corners */
    position: relative;
    z-index: 2;
    /* Remove heavy solid shadow if we want a clean cutout look, 
       but if user wants 'professional', a soft drop shadow is better than solid block */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Soft premium shadow */
    transition: transform 0.5s ease;
}

.pdip-chairperson-img:hover {
    transform: translateY(-5px);
    /* Gentle float */
}

.pdip-image-backdrop {
    /* Adjusted to be more subtle behind the fade */
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 90%;
    /* Don't go all the way down */
    background: radial-gradient(circle, rgba(237, 28, 36, 0.03) 10%, transparent 10%);
    /* Red dots very subtle */
    background-size: 20px 20px;
    z-index: 1;
}

/* --- News Section (Magazine Layout) --- */
.pdip-news-section {
    padding: 100px 0;
    background-color: #f5f5f5;
    /* Light Gray */
}

.pdip-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom to match title underline */
    margin-bottom: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.pdip-section-header .pdip-section-title {
    margin-bottom: 0;
}

.pdip-view-all {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pdip-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.pdip-view-all:hover {
    color: var(--pdip-black);
}

.pdip-news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Featured gets more space */
    gap: 40px;
    padding: 0 20px;
}

/* Featured Card (Large) */
.pdip-news-card-large {
    background: var(--pdip-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdip-news-card-large:hover {
    transform: translateY(-5px);
}

.pdip-news-img-wrapper {
    position: relative;
    height: 400px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.pdip-news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pdip-news-card-large:hover img {
    transform: scale(1.05);
}

.pdip-news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--pdip-red);
    color: var(--pdip-white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.pdip-news-content {
    padding: 30px;
    flex-grow: 1;
    /* Push content to fill space */
}

.pdip-news-cat {
    color: var(--pdip-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.pdip-news-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.pdip-news-content h3 a {
    color: var(--pdip-black);
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-news-content h3 a:hover {
    color: var(--pdip-red);
}

.pdip-news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Side List (Small Cards) */
.pdip-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdip-news-card-small {
    display: flex;
    gap: 20px;
    background: var(--pdip-white);
    padding: 15px;
    border-radius: 8px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.pdip-news-card-small:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pdip-news-small-img {
    width: 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.pdip-news-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdip-news-small-content {
    flex-grow: 1;
}

.pdip-news-date-small {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pdip-news-small-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.pdip-news-small-content h4 a {
    color: var(--pdip-black);
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-news-small-content h4 a:hover {
    color: var(--pdip-red);
}

/* News Responsive */
@media (max-width: 992px) {
    .pdip-news-grid {
        grid-template-columns: 1fr;
    }

    .pdip-news-img-wrapper {
        height: 250px;
    }

    .pdip-news-card-small {
        align-items: flex-start;
    }

    .pdip-section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .pdip-news-section {
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        padding: 60px 0;
    }
}

/* --- Regional Chair Section (Mirrored) --- */
.pdip-regional-chair-section {
    padding: 100px 0;
    background-color: var(--pdip-white);
    border-top: 1px solid #eee;
    /* Separation from News */
}

/* Mirrored Grid adjustment */
@media (min-width: 993px) {
    .pdip-mirrored-grid .pdip-chairperson-image-wrapper {
        order: 1;
        /* Image Left */
        transform: translateX(-50px);
        /* Slide from Left */
    }

    .pdip-mirrored-grid .pdip-chairperson-content {
        order: 2;
        /* Text Right */
        padding-left: 40px;
        padding-right: 0;
        transform: translateX(50px);
        /* Slide from Right */
    }

    /* Adjust decorative elements for mirrored layout if needed */
    .pdip-mirrored-grid .pdip-image-backdrop {
        left: -20px;
        right: auto;
    }
}

/* Re-use responsive styles from chairperson-grid, but ensure ordering is correct on mobile */
@media (max-width: 992px) {
    .pdip-mirrored-grid .pdip-chairperson-content {
        order: 2;
        /* Text below image */
        text-align: center;
        padding-left: 0;
        margin-top: 30px;
    }

    .pdip-mirrored-grid .pdip-chairperson-image-wrapper {
        order: 1;
        justify-content: center;
        display: flex;
        transform: none !important;
        /* Reset slide transform for simple mobile layout */
        margin-bottom: 20px;
    }

    .pdip-chairperson-img {
        max-width: 80%;
        /* Don't be too huge on mobile */
    }
}

/* Ensure PNG Cutouts look good */
.pdip-chairperson-img {
    box-shadow: none !important;
    /* Remove box shadow */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    /* Contour shadow */
}

/* --- Party Wings Section (Sayap Partai) --- */
.pdip-wings-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.pdip-wings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    /* Add padding for shadow visibility */
    justify-content: center;
}

/* Specific Grid for Desktop to match 6 items perfectly */
@media (min-width: 993px) {
    .pdip-wings-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.pdip-wing-card {
    background: var(--pdip-white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Optimized transition: smooth cubic-bezier */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 180px;

    /* Grid allows width to auto-fill */
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: transform;
    /* Performance hint */
}

/* Tablet & Mobile Tweaks */
@media (max-width: 992px) {
    .pdip-wings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pdip-wings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pdip-wing-card {
        padding: 20px 10px;
        height: 160px;
        /* Slightly shorter on mobile */
    }

    .pdip-wing-logo-place span {
        font-size: 1.2rem;
        /* Smaller text */
        padding: 8px 12px;
    }
}

.pdip-wing-card:hover {
    transform: translateY(-8px);
    /* Slightly more lift */
    background: var(--pdip-red);
    box-shadow: 0 15px 30px rgba(237, 28, 36, 0.2);
    /* Red glow shadow */
}

.pdip-wing-logo-place span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pdip-red);
    border: 3px solid var(--pdip-red);
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    /* Ensure contrast */
}

.pdip-wing-card:hover .pdip-wing-logo-place span {
    color: var(--pdip-red);
    /* Keep text red */
    border-color: #fff;
    background: #fff;
    transform: scale(1.1);
    /* Subtle grow instead of just color swap */
}

.pdip-wing-info {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    /* Added padding to prevent text touching edges */
    box-sizing: border-box;
    /* Ensure padding includes in width */
}

.pdip-wing-card:hover .pdip-wing-info {
    opacity: 1;
    transform: translateY(0);
}

/* Hide logo slightly to make room for info if needed */
.pdip-wing-card:hover .pdip-wing-logo-place {
    transform: translateY(-50px);
    /* Moved up more to reveal text */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pdip-wing-info h3 {
    font-size: 1.1rem;
    color: var(--pdip-white);
    margin: 0;
    font-weight: 800;
}

.pdip-wing-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0;
}

/* --- Custom Footer (Sumsel) --- */
.pdip-custom-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
    margin-top: 50px;
    border-top: 5px solid var(--pdip-red);
}

.pdip-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 0 20px 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdip-footer-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.pdip-footer-logo-text span {
    color: var(--pdip-red);
    font-size: 1.4rem;
}

.pdip-footer-address {
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}

.pdip-footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdip-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdip-footer-links li {
    margin-bottom: 10px;
}

.pdip-footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-footer-links a:hover {
    color: var(--pdip-red);
}

.pdip-social-icons {
    display: flex;
    gap: 10px;
}

.pdip-socmed-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.pdip-socmed-icon:hover {
    background: var(--pdip-red);
    transform: rotate(360deg);
}

.pdip-footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pdip-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .pdip-social-icons {
        justify-content: center;
    }
}

/* Responsive Chairperson */
@media (max-width: 992px) {
    .pdip-chairperson-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .pdip-chairperson-content {
        padding-right: 0;
        order: 2;
        /* Image on top usually for mobile? Or keep name first? Let's keep Text first for hierarchy */
    }

    .pdip-red-line-left {
        margin: 0 auto 30px;
    }

    .pdip-chairperson-quote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid #ddd;
        padding-top: 20px;
    }

    .pdip-chairperson-img {
        max-width: 100%;
        box-shadow: 10px 10px 0px rgba(237, 28, 36, 0.1);
    }
}

/* --- PDIP Premium Mega Menu --- */
@media (min-width: 921px) {

    /* Main Menu Items */
    .main-header-menu>.menu-item {
        position: relative;
        /* Anchor for mega menu positioning */
    }

    .main-header-menu>.menu-item>a {
        transition: color 0.3s ease;
        font-weight: 600;
    }

    /* Navigation Hover & Color Fix (Default / Transparent Header) */
    .main-header-menu>.menu-item:hover>a,
    .main-header-menu>.menu-item.current-menu-item>a,
    .main-header-menu>.menu-item.current-menu-ancestor>a {
        color: var(--pdip-red) !important;
    }

    /* Navigation Hover Fix for Sticky Header (Red Background) */
    .pdip-sticky-active .main-header-menu>.menu-item:hover>a,
    .pdip-sticky-active .main-header-menu>.menu-item.current-menu-item>a,
    .pdip-sticky-active .main-header-menu>.menu-item.current-menu-ancestor>a {
        color: #fff !important;
        /* White text on Red bg */
    }

    /* High-End Sub Menu Container */
    /* High-End Sub Menu Container */
    .main-header-menu>.menu-item>.sub-menu {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px;
        width: 800px !important;
        /* Wider for premium feel */
        left: 50% !important;
        transform: translateX(-50%);

        background: #ffffff !important;
        padding: 40px !important;
        /* Spacious */
        border-radius: 12px;
        border-top: 4px solid var(--pdip-red);
        /* Stronger Brand Accent */

        /* Premium Soft Shadow */
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05) !important;

        /* Smooth Entrance */
        opacity: 0;
        visibility: hidden;
        margin-top: 10px;
        /* Reduced slide distance for tighter feel */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

        position: absolute !important;
        top: 100%;
        z-index: 999;

        /* GHOST FIX: Pointer Events */
        pointer-events: none;
        /* Ignore mouse when hidden */

        /* ALIGNMENT FIX: Strict Top-Left Align & Reset */
        text-align: left !important;
        align-items: start !important;
        align-content: start !important;
        /* Force content to top */
        justify-items: start !important;

        height: auto !important;
        /* Prevent fixed height issues */
        min-height: auto !important;

        /* SCROLLBAR REMOVAL */
        max-height: none !important;
        overflow: visible !important;
        /* Show shadows, no scrollbars */
    }

    /* Hover State for Menu Item matches Mega Menu Reveal */
    .main-header-menu>.menu-item:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        /* Slide Up */
        pointer-events: auto;
        /* Enable mouse interaction */
    }

    /* SENSITIVITY FIX: Restrict Hover Area of Parent Items */
    .main-header-menu>.menu-item {
        height: 100%;
        /* Match header height */
        display: flex;
        /* Centering */
        align-items: center;
        margin: 0 !important;
        padding: 0 15px !important;
        /* Horizontal padding only */
    }

    /* Ensure the link itself is the only trigger and doesn't bleed out */
    .main-header-menu>.menu-item>a {
        height: auto !important;
        /* Don't fill full 100% height if header is tall */
        line-height: 1.2 !important;
        display: inline-block;
        padding: 10px 0 !important;
        /* Minimal vertical padding for click target */
        margin: 0 !important;
        border: none !important;
    }

    /* Remove any invisible bridges (pseudo-elements) that might extend hover area downwards */
    .main-header-menu>.menu-item::after,
    .main-header-menu>.menu-item::before {
        display: none !important;
        height: 0 !important;
    }

    /* Sub-menu positioning - push it down explicitly to start EXACTLY at bottom of header */
    .main-header-menu>.menu-item>.sub-menu {
        top: 100% !important;
        /* Starts exactly at bottom edge of parent */
        margin-top: 0 !important;
        /* No gap */
        padding-top: 40px !important;
        /* Use padding INSIDE the card, not margin outside */
    }

    /* Level 2 Items: Flexible Styling Logic */

    /* CASE A: IS A HEADER (Has Children) */
    .main-header-menu>.menu-item>.sub-menu>.menu-item-has-children {
        background: transparent !important;
        padding: 0;
        margin-bottom: 20px;
        /* More breathing room below headers */
        width: 100%;
        /* Full width of column */
        text-align: left !important;
        align-self: start !important;
        /* Grid Self Align */
    }

    .main-header-menu>.menu-item>.sub-menu>.menu-item-has-children>a {
        color: var(--pdip-red) !important;
        font-family: 'Inter', sans-serif;
        font-weight: 800 !important;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;

        display: block;
        padding-bottom: 15px;
        /* More space for underline */
        margin-bottom: 15px;
        border-bottom: 2px solid rgba(237, 28, 36, 0.1);
        width: 100%;
        text-align: left !important;
    }

    /* CASE B: IS A DIRECT LINK (No Children) - Acts like a Level 3 Item */
    .main-header-menu>.menu-item>.sub-menu>.menu-item:not(.menu-item-has-children) {
        margin-bottom: 8px;
        /* Clean spacing */
        border: none;
        width: 100%;
        text-align: left !important;
        align-self: start !important;
        /* Grid Self Align */
    }

    .main-header-menu>.menu-item>.sub-menu>.menu-item:not(.menu-item-has-children)>a {
        color: #555 !important;
        font-family: inherit;
        font-weight: 500 !important;
        font-size: 0.95rem;
        text-transform: capitalize;
        letter-spacing: normal;
        margin-bottom: 0;
        border-bottom: none;
        padding: 8px 0;
        /* Easier to click */

        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        /* Ensure left align flex */
        transition: all 0.2s ease;
    }

    .main-header-menu>.menu-item>.sub-menu>.menu-item:not(.menu-item-has-children)>a:hover {
        color: var(--pdip-red) !important;
        padding-left: 8px;
        /* Smooth Slide */
    }

    /* CASE B HOVER ARROW */
    .main-header-menu>.menu-item>.sub-menu>.menu-item:not(.menu-item-has-children)>a::before {
        content: '→';
        opacity: 0;
        margin-right: -10px;
        font-size: 0.8em;
        transition: all 0.2s;
        color: var(--pdip-red);
        display: inline-block;
        width: 0;
        order: -1;
    }

    .main-header-menu>.menu-item>.sub-menu>.menu-item:not(.menu-item-has-children)>a:hover::before {
        opacity: 1;
        margin-right: 8px;
        width: 15px;
    }

    /* FORCE HIDE DEFAULT THEME ARROWS */
    .main-header-menu .sub-menu .sub-menu .menu-item-has-children>a::after,
    .main-header-menu .sub-menu .sub-menu .menu-item-has-children::after {
        content: none !important;
        display: none !important;
    }

    /* HIDE DEFAULT DROPDOWN ICONS ADDED BY THEME JS IF ANY */
    .ast-menu-toggle {
        display: none !important;
    }

    /* Level 3 Items (List) */
    .main-header-menu .sub-menu .sub-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px;
        /* Clean spacing */

        width: 100% !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        /* Force reset */

        /* FIX: Removing visibility override so it respects parent's state */
        background: transparent !important;

        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .main-header-menu .sub-menu .sub-menu .menu-item {
        border: none;
        padding: 0;
        margin: 0 !important;
        /* Force reset */
        position: relative;
        /* Anchor for Level 4 */
        width: 100%;
        text-align: left !important;
        display: block !important;
        /* Ensure it fills width */
    }

    .main-header-menu .sub-menu .sub-menu .menu-item a {
        color: #555 !important;
        /* Neutral dark gray */
        font-size: 0.95rem;
        font-weight: 500;
        text-transform: capitalize;
        padding: 6px 0;
        margin: 0 !important;
        transition: all 0.2s ease;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /* Force Left */
        width: 100%;
        text-align: left !important;
    }

    /* Interactive Hover Slide */
    .main-header-menu .sub-menu .sub-menu .menu-item>a:hover {
        color: var(--pdip-red) !important;
        padding-left: 8px;
        /* Smooth Slide */
        background: transparent !important;
    }

    /* Add subtle arrow on hover via pseudo-element */
    .main-header-menu .sub-menu .sub-menu .menu-item>a::before {
        content: '→';
        opacity: 0;
        margin-right: -10px;
        font-size: 0.8em;
        transition: all 0.2s;
        color: var(--pdip-red);
        display: inline-block;
        width: 0;
        order: -1;
        /* Place before text */
    }

    .main-header-menu .sub-menu .sub-menu .menu-item>a:hover::before {
        opacity: 1;
        margin-right: 5px;
        width: 15px;
    }

    /* --- LEVEL 4 (FLYOUT RIGHT) --- */
    .main-header-menu .sub-menu .sub-menu .menu-item>.sub-menu {
        position: absolute !important;
        left: 100%;
        top: -10px;
        width: 220px !important;
        background: #fff !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        padding: 20px !important;
        border-radius: 8px;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease;
        border-left: 3px solid var(--pdip-red);
    }

    .main-header-menu .sub-menu .sub-menu .menu-item:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* --- PREMIUM MOBILE NAVIGATION --- */
@media (max-width: 921px) {

    /* Main Background Force White */
    .ast-mobile-header-wrap .ast-mobile-header-content,
    .ast-builder-menu-mobile .main-navigation {
        background-color: #ffffff !important;
    }

    /* Menu Items */
    .ast-builder-menu-mobile .main-navigation .menu-item .menu-link {
        border-bottom: 1px solid #f0f0f0;
        color: #333 !important;
        /* Dark Text */
        font-weight: 700;
        font-size: 1.05rem;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Active/Hover Mobile */
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item>.menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item:hover>.menu-link {
        color: var(--pdip-red) !important;
        background-color: #fff5f5;
        /* Light red tint */
        padding-left: 25px;
        /* Indent feedback */
    }

    /* Sub Menu Container (Level 2) */
    .ast-builder-menu-mobile .main-navigation .sub-menu {
        background-color: #f9f9f9 !important;
        /* Light Gray differentiation */
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
        /* Inner shadow depth */
    }

    /* Level 2 Items */
    .ast-builder-menu-mobile .main-navigation .sub-menu .menu-item .menu-link {
        font-size: 0.95rem;
        font-weight: 600;
        padding-left: 40px;
        /* Indentation */
        color: #555 !important;
        border-bottom: 1px solid #eee;
    }

    /* Level 3 Container */
    .ast-builder-menu-mobile .main-navigation .sub-menu .sub-menu {
        background-color: #f0f0f0 !important;
        /* Darker Gray */
    }

    /* Level 3 Items */
    .ast-builder-menu-mobile .main-navigation .sub-menu .sub-menu .menu-item .menu-link {
        font-size: 0.9rem;
        font-weight: 500;
        padding-left: 60px;
        /* Deep indentation */
        color: #666 !important;
    }

    /* Toggles (Arrow) Styling */
    .ast-header-break-point .main-header-bar-navigation .menu-item-has-children>.ast-menu-toggle {
        color: #999;
        font-size: 1.2rem;
        right: 10px;
        /* Positioning */
        transition: transform 0.3s;
    }

    .ast-header-break-point .main-header-bar-navigation .menu-item-has-children.ast-submenu-expanded>.ast-menu-toggle {
        transform: rotate(180deg);
        /* Nice animation */
        color: var(--pdip-red);
    }
}

/* --- ULTRA SPECIFIC ASTRA OVERRIDES --- */

/* 1. Sticky Header Colors */
/* Normal Text = White */
.ast-header-sticked .ast-builder-menu .main-header-menu>.menu-item>.menu-link,
.ast-header-sticked .ast-builder-menu .main-header-menu>.menu-item>a,
.pdip-sticky-active .main-header-menu>.menu-item>a {
    color: #ffffff !important;
}

/* Hover & Active Text = Gold (Premium Contrast) */
.ast-header-sticked .ast-builder-menu .main-header-menu>.menu-item:hover>.menu-link,
.ast-header-sticked .ast-builder-menu .main-header-menu>.menu-item.current-menu-item>.menu-link,
.pdip-sticky-active .main-header-menu>.menu-item:hover>a,
.pdip-sticky-active .main-header-menu>.menu-item.current-menu-item>a,
.pdip-sticky-active .main-header-menu>.menu-item.current-menu-ancestor>a {
    color: #ffd700 !important;
    /* Gold */
}

/* 2. Submenu Text Color (Force Dark) */
.ast-builder-menu .main-header-menu .sub-menu .menu-item .menu-link,
.ast-builder-menu .main-header-menu .sub-menu .menu-item>a,
.main-header-menu .sub-menu li a {
    color: #333333 !important;
    text-shadow: none !important;
}

/* 3. Submenu Hover Color (Red) */
.ast-builder-menu .main-header-menu .sub-menu .menu-item:hover>.menu-link,
.ast-builder-menu .main-header-menu .sub-menu .menu-item>a:hover,
.main-header-menu .sub-menu li a:hover {
    color: var(--pdip-red) !important;
    background: transparent !important;
}

/* --- PDIP Premium Footer --- */
.pdip-custom-footer {
    background-color: #111;
    color: #888;
    position: relative;
    font-family: 'Inter', sans-serif;
    /* Ensure premium font stack */
    padding-top: 0;

    /* Full Width Breakout Strategy */
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;
    box-sizing: border-box;
    overflow: hidden;
}

.pdip-footer-top-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--pdip-red) 0%, #a61016 100%);
    width: 100%;
}

.pdip-custom-footer .pdip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    /* Slimmer Padding */
}

.pdip-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    /* Reduced gap */
    margin-bottom: 30px;
    /* Reduced margin */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
    /* Reduced padding */
}

/* Footer Brand */
.pdip-footer-logo-img {
    max-width: 150px;
    /* Reduced by 30% from 200px */
    height: auto;
    margin-bottom: 25px;
    display: block;
}

/* Obsolete text brand styles removed */

.pdip-footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #666;
    max-width: 300px;
}

.pdip-footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #999;
}

.pdip-footer-contact strong {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Headings (Simplified) */
.pdip-footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    /* Removed border-left for simpler look */
    padding-left: 0;
}

/* Menus */
.pdip-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.pdip-footer-menu a {
    color: #aaa;
    text-decoration: none !important;
    /* Force no underline */
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    border-bottom: none !important;
}

.pdip-footer-menu a:hover {
    color: #ffd700;
    /* Gold Hover */
    transform: translateX(5px);
    text-decoration: none !important;
}

/* Social Icons */
.pdip-social-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pdip-social-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pdip-socmed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdip-socmed-item:hover {
    background: var(--pdip-red);
    transform: translateY(-3px);
    color: #fff !important;
}

.pdip-socmed-item i {
    font-size: 1.1rem;
}

/* Bottom Bar */
.pdip-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Added subtle separator */
}

.pdip-footer-copyright {
    color: #555;
}

.pdip-footer-legal a {
    color: #555;
    text-decoration: none !important;
    transition: color 0.3s;
}

.pdip-footer-legal a:hover {
    color: #888;
}

.pdip-footer-legal .sep {
    margin: 0 10px;
    color: #333;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .pdip-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .pdip-footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        /* Kept left alignment for cleanliness on mobile too, or user prefers? usually left is better for lists */
    }

    /* Force left align on specific elements if parent was centered */
    .pdip-footer-logo-img {
        margin-left: 0;
        margin-right: auto;
    }

    .pdip-footer-heading {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        width: 100%;
        display: block;
    }

    .pdip-social-icons-grid {
        justify-content: start;
    }

    .pdip-footer-bottom {
        flex-direction: column-reverse;
        /* Copyright at bottom */
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .pdip-footer-tagline {
        margin-right: auto;
        /* reset margin */
    }
}

/* --- OVERRIDES END --- */

/* --- News Archive Page (Berita Partai) --- */
.pdip-inner-hero {
    position: relative;
    /* Force Full Width Strategy */
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;

    height: 350px;
    /* Shorter than home hero */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0;
    padding-top: 140px;
    /* Header Space (90px) + Breathing Room (50px) */
    min-height: 400px;
    /* Ensure tall enough */
}

/* Force Solid Red Header on Archive/Category Pages */
body.archive .site-header,
body.category .site-header {
    background-color: var(--pdip-red) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pdip-inner-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.pdip-breadcrumb {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.pdip-archive-section {
    padding-bottom: 80px;
    margin-top: 50px;
    /* Force separation from hero */
    position: relative;
    z-index: 2;
    background-color: #fffaf5;
    /* Slight tint to differentiate if needed, or keep transparent. User background seems tinted in screenshot */
}

.pdip-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pdip-archive-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pdip-archive-card:hover {
    transform: translateY(-5px);
}

.pdip-archive-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.pdip-archive-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pdip-archive-card:hover img {
    transform: scale(1.05);
}

.pdip-archive-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pdip-red);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
}

.pdip-archive-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pdip-cat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--pdip-red);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdip-archive-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.pdip-archive-content h3 a {
    color: var(--pdip-black);
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-archive-content h3 a:hover {
    color: var(--pdip-red);
}

.pdip-archive-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pdip-read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pdip-red);
    text-decoration: none;
    text-transform: uppercase;
}

.pdip-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

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

.pdip-pagination .page-numbers.current,
.pdip-pagination .page-numbers:hover {
    background: var(--pdip-red);
    color: #fff;
}

.pdip-pagination .pdip-page-nav {
    display: inline-block;
    padding: 0 10px;
}

.pdip-pagination .next,
.pdip-pagination .prev {
    width: auto;
    /* Allow wider for text */
    padding: 0 20px;
}

.pdip-no-posts {
    text-align: center;
    padding: 100px 0;
    color: #999;
}

@media (max-width: 768px) {
    .pdip-inner-hero {
        height: 250px;
    }

    .pdip-inner-title {
        font-size: 2rem;
    }

    .pdip-news-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* --- GLOBAL FIX: REMOVE TOP WHITE SPACE --- */
html,
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* FIX: Mega Menu Level 3 Text Visibility (Force Override) */
.main-header-menu .sub-menu .sub-menu .menu-item a,
.ast-builder-menu .main-header-menu .sub-menu .menu-item a {
    color: #333333 !important;
    /* Force visible dark color */
    opacity: 1 !important;
    visibility: visible !important;
}


.main-header-menu .sub-menu .sub-menu .menu-item a:hover {
    color: var(--pdip-red) !important;
}

/* FIX: Hide Default Astra Menu Toggles/Arrows in Mega Menu */
.main-header-menu .sub-menu .menu-item-has-children>.ast-menu-toggle,
.main-header-menu .sub-menu .menu-item-has-children>a::after,
.ast-builder-menu .main-header-menu .sub-menu .menu-item-has-children>.ast-menu-toggle {
    display: none !important;
    content: none !important;
}

/* Force Header to Top (Ignoring Admin Bar Gap) */
body.admin-bar .site-header,
.site-header {
    top: 0 !important;
}

/* Ensure no pseudo-elements creating space */
body:before,
body:after {
    display: none !important;
}

/* FIX: Inner Hero Alignment */
.pdip-inner-hero,
.pdip-hero-section {
    margin-top: 0 !important;
    top: 0 !important;
    /* Bounding box issue detected at y=25.6px, force top alignment */
}

/* FIX: Reset Astra Content Wrappers */
#primary,
#main,
.site-content,
.ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- BP PEMILU SHORTCODE STYLES --- */
.pdip-bp-pemilu-container {
    padding: 0 0 50px;
}

/* 1. Featured Grid (Top 3) */
.pdip-bp-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pdip-bp-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdip-bp-featured-card .pdip-news-img-wrapper {
    height: 250px;
    /* Adjust height specifically for this grid if needed */
}

/* FIX: Smaller Title for BP Pemilu Featured Cards */
.pdip-bp-featured-card .pdip-news-content h3 {
    font-size: 1.25rem !important;
    /* Standard News Title Size */
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Read More Link Text Style */
.pdip-read-more-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pdip-red);
    text-transform: uppercase;
    text-decoration: none;
    margin-top: auto;
    /* Push to bottom if flex column */
    display: inline-block;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.pdip-read-more-text:hover {
    color: var(--pdip-black);
    transform: translateX(5px);
}


/* 2. Small Grid (Bottom 6) */
.pdip-bp-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns as requested in plan */
    gap: 30px;
    margin-bottom: 50px;
}

.pdip-bp-small-card {
    /* Reuse small card flex layout but ensure full width in grid cell */
    width: 100%;
    box-sizing: border-box;
}


/* Responsive */
@media (max-width: 992px) {
    .pdip-bp-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 cols */
    }
}

@media (max-width: 768px) {
    .pdip-bp-featured-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 col */
        gap: 20px;
    }

    .pdip-bp-small-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 col */
        gap: 20px;
    }
}

/* --- BSPN SHORTCODE STYLES (3 Column Layout) --- */
.pdip-bspn-container {
    padding: 0 0 50px;
}

.pdip-bspn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pdip-bspn-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Overlay Card (Large) */
.pdip-bspn-overlay-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.pdip-bspn-overlay-card:hover img {
    transform: scale(1.05);
}

.pdip-bspn-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 2;
}

.pdip-bspn-overlay-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pdip-bspn-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Small Items List */
.pdip-bspn-list-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdip-bspn-small-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.pdip-bspn-small-item:last-child {
    border-bottom: none;
}

.pdip-bspn-small-link {
    display: flex;
    gap: 15px;
    /* Gap between img and text */
    text-decoration: none;
    align-items: flex-start;
}

.pdip-bspn-small-img {
    width: 80px;
    /* Fixed width thumbnail */
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.pdip-bspn-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdip-bspn-small-txt h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pdip-black);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.pdip-bspn-small-link:hover .pdip-bspn-small-txt h4 {
    color: var(--pdip-red);
}

.pdip-bspn-meta-small {
    font-size: 0.7rem;
    color: #999;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .pdip-bspn-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile/tablet */
        gap: 40px;
    }

    .pdip-bspn-list-full {
        margin-top: 20px;
        /* Separation for 3rd col on mobile */
    }
}

/* --- PORTAL / NEWS ARCHIVE LAYOUT --- */

.pdip-portal-section {
    padding: 50px 0 80px;
    background-color: #f9f9f9;
}

.pdip-portal-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Main, 1/3 Sidebar */
    gap: 40px;
}

.pdip-portal-main {
    /* Main Content Column */
}

.pdip-portal-sidebar {
    /* Sidebar Column */
}

/* Block Titles */
.pdip-block-title {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    border-left: 4px solid #ed1c24;
    /* PDIP Red */
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portal List Items (Horizontal Card) */
.pdip-portal-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pdip-portal-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdip-portal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.pdip-portal-thumb {
    width: 280px;
    /* Fixed width for consistent look */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

.pdip-portal-item:hover .pdip-portal-thumb img {
    transform: scale(1.05);
}

.pdip-portal-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdip-portal-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdip-portal-cat {
    color: #ed1c24;
    font-weight: 700;
}

.pdip-portal-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #222;
}

.pdip-portal-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-portal-heading a:hover {
    color: #ed1c24;
}

.pdip-portal-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Widgets */
.pdip-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.pdip-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.pdip-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ed1c24;
}

/* Popular List Widget */
.pdip-popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdip-popular-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.pdip-popular-num {
    font-size: 30px;
    font-weight: 900;
    color: #eee;
    /* Subtle number background */
    line-height: 0.8;
}

.pdip-popular-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.pdip-popular-content h4 a {
    color: #333;
    text-decoration: none;
}

.pdip-popular-content h4 a:hover {
    color: #ed1c24;
}

.pdip-popular-date {
    font-size: 11px;
    color: #999;
}

/* Category Widget */
.pdip-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdip-cat-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.pdip-cat-list li:last-child {
    border: none;
}

.pdip-cat-list li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: all 0.2s;
}

.pdip-cat-list li a:hover {
    color: #ed1c24;
    transform: translateX(5px);
}

/* Search Widget */
.pdip-search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pdip-search-field {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
}

.pdip-search-submit {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* Responsive Portal */
@media (max-width: 992px) {
    .pdip-portal-layout {
        grid-template-columns: 1fr;
        /* Stack main and sidebar */
        gap: 50px;
    }

    .pdip-portal-thumb {
        width: 120px;
        /* Smaller thumb on tablet */
        height: 120px;
        align-self: flex-start;
    }

    .pdip-portal-info {
        padding: 15px;
    }

    .pdip-portal-heading {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .pdip-portal-item {
        flex-direction: column;
        /* Stack image on top of text */
    }

    .pdip-portal-thumb {
        width: 100%;
        height: 200px;
    }

    .pdip-portal-info {
        padding: 20px;
    }
}

/* --- CUSTOM FOOTER STYLES --- */

.pdip-custom-footer {
    background-color: #0F0F0F;
    /* Almost black */
    color: #b0b0b0;
    /* Light gray text */
    padding: 60px 0 30px;
    font-size: 14px;
    line-height: 1.6;
}

.pdip-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr 1.2fr;
    /* Brand much wider, menus tighter */
    gap: 40px;
    margin-bottom: 60px;
}

/* Column 1: Brand */
.pdip-footer-brand {
    padding-right: 20px;
}

.pdip-footer-logo {
    width: 180px;
    /* Smaller as requested */
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.pdip-footer-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

.pdip-footer-address strong {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

/* Titles */
.pdip-footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Menus */
.pdip-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.pdip-footer-menu li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.pdip-footer-menu li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Socials */
.pdip-footer-text {
    margin-bottom: 20px;
    font-size: 13px;
}

.pdip-footer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 250px;
}

.pdip-soc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
    text-transform: uppercase;
}

.pdip-soc-btn:hover {
    background-color: #ed1c24;
    /* PDIP Red */
    color: #fff;
}

/* Footer Bottom */
.pdip-footer-bottom {
    /* border-top: 1px solid #222; Removed as requested */
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

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

.pdip-footer-links a {
    color: #666;
    text-decoration: none;
}

.pdip-footer-links a:hover {
    color: #888;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .pdip-footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 Grid */
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .pdip-footer-grid {
        grid-template-columns: 1fr;
        /* Stack all */
        gap: 40px;
        text-align: center;
        /* Center all text */
    }

    .pdip-footer-brand {
        padding-right: 0;
        /* Remove desktop padding */
    }

    .pdip-footer-logo {
        margin: 0 auto 20px;
        /* Center Logo */
    }

    .pdip-footer-socials {
        margin: 0 auto;
        /* Center Social Grid */
    }

    .pdip-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- SINGLE POST STYLES --- */

.pdip-single-header-bg {
    width: 100%;
    height: 100px;
    /* Covers header area */
    background-color: #ed1c24;
    /* PDIP Red */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* Behind content, but verify vs header */
}

.pdip-single-article {
    background: #fff;
    padding: 0 0 40px 0;
    margin-bottom: 40px;
}

/* Category Badge */
.pdip-single-cats {
    margin-bottom: 15px;
}

.pdip-cat-badge {
    display: inline-block;
    background: #ed1c24;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Title */
.pdip-single-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    margin-bottom: 15px;
    text-transform: capitalize;
}

/* Meta */
.pdip-single-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.pdip-single-meta .byline {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

/* Featured Image */
.pdip-single-thumbnail {
    margin-bottom: 30px;
}

.pdip-featured-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Content Body */
.pdip-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.pdip-article-body h2,
.pdip-article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000;
}

.pdip-article-body p {
    margin-bottom: 20px;
}

/* Footer / Tags */
.pdip-single-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* Responsive Single */
@media (max-width: 768px) {
    .pdip-single-title {
        font-size: 24px;
    }
}

/* --- FIXES --- */
/* Hide right arrows on all submenu items (Deeply nested) */
.main-header-menu .sub-menu .menu-item::after,
.main-header-menu .sub-menu .menu-item>a::after,
.main-header-menu .sub-menu .menu-item-has-children::after,
.main-header-menu .sub-menu .menu-item-has-children>a::after {
    content: none !important;
    display: none !important;
    border: none !important;
}

/* --- Single Post Layout Fixes (Moved from Inline) --- */
.pdip-single-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.pdip-portal-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Responsive: Stack on Tablet/Mobile */
@media (max-width: 992px) {
    .pdip-portal-layout {
        grid-template-columns: 1fr;
    }

    .pdip-portal-sidebar {
        margin-top: 50px;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }
}

/* --- Single Post Category Spacing Fix --- */
.pdip-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Spacing between badges */
    margin-bottom: 15px;
    /* Spacing below the category row */
}

.pdip-cat-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--pdip-red);
    /* Ensure branding */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: normal;
    /* Reset line height */
}

/* --- Archive List Layout (Inside Portal Grid) --- */
.pdip-news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pdip-archive-list-item {
    display: flex;
    flex-direction: row;
    /* Side by side */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.pdip-archive-list-item .pdip-archive-img-wrap {
    width: 35%;
    /* Fixed width for image */
    flex-shrink: 0;
    height: auto;
    min-height: 200px;
}

/* Specific overrides for list view content */
.pdip-archive-list-item .pdip-archive-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Archive List */
@media (max-width: 768px) {
    .pdip-archive-list-item {
        flex-direction: column;
        /* Stack on mobile */
    }

    .pdip-archive-list-item .pdip-archive-img-wrap {
        width: 100%;
        height: 200px;
    }
}

/* --- Mobile Hero & Pagination Refinements --- */
@media (max-width: 768px) {

    /* Hero Fixes: Better proportions */
    .pdip-inner-hero {
        min-height: 260px;
        /* Reduced from 400px/350px */
        height: auto;
        padding-top: 100px;
        /* Reduce top space */
        padding-bottom: 40px;
    }

    .pdip-inner-title {
        font-size: 1.8rem;
        /* Smaller title to fit screen */
        line-height: 1.2;
    }

    .pdip-breadcrumb {
        font-size: 0.75rem;
    }

    /* Pagination Fixes: Balanced Buttons */
    .pdip-pagination {
        gap: 5px;
        /* Tighter gap */
        flex-wrap: wrap;
        /* Allow wrapping on very small screens */
    }

    .pdip-pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pdip-pagination .next,
    .pdip-pagination .prev {
        width: auto !important;
        padding: 0 15px;
        font-size: 0.8rem;
        height: 36px;
        line-height: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}