/* 
 * Phrae Police Modern Light Design System
 * Style: Clean, Official, Authority, Modern
 */

:root {
    /* 
     * AQUA EVOLUTION PALETTE (iOS Inspired)
     */
    --aqua-primary: #007AFF;
    /* iOS Blue */
    --aqua-secondary: #5AC8FA;
    /* iOS Light Blue */
    --aqua-deep: #005ecb;
    --aqua-dark: #0040DD;

    /* Legacy Mappings (Backward Compat) */
    --gov-blue: var(--aqua-primary);
    --gov-blue-light: var(--aqua-secondary);
    --gov-blue-dark: var(--aqua-deep);
    --gov-navy: #1c1c1e;
    /* iOS Dark Gray */
    --gov-gold: #FFD60A;
    /* iOS Yellow */
    --gov-red: #FF3B30;
    /* iOS Red */

    --police-navy-900: #1c1c1e;
    /* Almost Black */
    --police-navy-800: #2c2c2e;
    --police-gold-500: var(--gov-gold);

    /* 
     * LIQUID GLASS SURFACES 
     */
    --bg-body: #F2F2F7;
    /* iOS System Gray 6 */
    --glass-heavy: rgba(255, 255, 255, 0.65);
    /* Heavy Blur */
    --glass-light: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shine: rgba(255, 255, 255, 0.8);

    /* Dynamic Island Black */
    --island-bg: rgba(0, 0, 0, 0.82);

    /* 
     * PHYSICS & SHADOWS 
     */
    --shadow-haptic: 0 10px 40px -10px rgba(0, 122, 255, 0.3);
    --shadow-float: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --official-shadow: var(--shadow-float);

    /* Animation Easing (Spring Physics) */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-ios: cubic-bezier(0.25, 1, 0.5, 1);

    /* Fonts */
    --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --font-body: 'Prompt', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

    /* Shapes */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 10px;
    --radius-pill: 50px;

    /* LAYOUT */
    --container-xl: 1320px;
}

.phrae-container {
    width: 100%;
    max-width: var(--container-xl);
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f4f8;
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(200, 100%, 94%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--police-navy-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--police-navy-700);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--police-gold-500);
}

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

/*
 * COMPONENTS
 */


/* Cards (Liquid Glass) */
.glass-panel,
.card,
.news-card,
.gov-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    /* More rounded for iOS feel */
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover,
.card:hover,
.news-card:hover,
.gov-card:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Specific overrides removed to prevent conflict */

/* Buttons (Liquid Glass Style - No Solid Blue) */
/* Buttons (Liquid Glass Style - No Solid Blue) */
.btn-glass,
.btn-primary,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.elementor-button,
.elementor-widget-button .elementor-button,
.wp-block-button__link,
.widget_search .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 50px !important;

    /* Glass Background */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    /* Borders & Shadows */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.2);

    /* Typography */
    color: var(--police-navy-900);
    /* Dark text for contrast */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: none;
    text-align: center;

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

/* Remove old gradients */
.btn-glass::before,
.btn-primary::before,
button::before,
input[type="button"]::before,
input[type="reset"]::before,
input[type="submit"]::before,
.elementor-button::before,
.elementor-widget-button .elementor-button::before,
.wp-block-button__link::before,
.widget_search .search-submit::before {
    display: none;
}

.btn-glass::after,
.btn-primary::after,
button::after,
input[type="button"]::after,
input[type="reset"]::after,
input[type="submit"]::after,
.elementor-button::after,
.elementor-widget-button .elementor-button::after,
.wp-block-button__link::after,
.widget_search .search-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Hover State */
.btn-glass:hover,
.btn-primary:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.elementor-button:hover,
.elementor-widget-button .elementor-button:hover,
.wp-block-button__link:hover,
.widget_search .search-submit:hover {
    background: rgba(255, 255, 255, 0.5);
    /* Whiter */
    border-color: #fff;
    color: var(--gov-blue);
    /* Text turns blue */
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px rgba(30, 64, 175, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.btn-glass:hover::after,
.btn-primary:hover::after,
button:hover::after,
input[type="button"]:hover::after,
input[type="reset"]:hover::after,
input[type="submit"]:hover::after,
.elementor-button:hover::after,
.elementor-widget-button .elementor-button:hover::after,
.wp-block-button__link:hover::after,
.widget_search .search-submit:hover::after {
    opacity: 1;
}

.btn-glass:hover::before,
.btn-primary:hover::before,
button:hover::before,
input[type="button"]:hover::before,
input[type="reset"]:hover::before,
input[type="submit"]:hover::before,
.elementor-button:hover::before,
.elementor-widget-button .elementor-button:hover::before,
.wp-block-button__link:hover::before,
.widget_search .search-submit:hover::before {
    opacity: 1;
}

/* DEMO: Official Utilities */
.official-shadow {
    box-shadow: var(--official-shadow);
}

.thai-pattern {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.gov-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gov-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--official-shadow);
    border-color: var(--gov-blue);
}

/* 
 * HEADER SECTION 
 */

/* 
 * HEADER SECTION (Standard Glass Bar) 
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--ease-spring);
    background: transparent;
    /* Default transparent */
    padding: 15px 0;
    max-width: 100vw;
    /* Ensure full viewport width */
}

/* Force Dark Glass on Scroll */
.site-header.is-scrolled-glass {
    background: rgba(4, 20, 44, 0.95) !important;
    /* Police Navy Blue */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Utility Bar */
.header-top {
    display: none;
}

/* Main Navigation Bar */
.main-navigation {
    background: transparent !important;
    /* Prevent white background override */
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: auto;
    padding: 0;
}

/* Logo */
.custom-logo-link img,
.site-logo img,
.custom-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s var(--ease-spring);
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Menu Items (Clean Text) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.nav-menu>li>a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    /* Slight rounded */
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.nav-menu>li.current-menu-item>a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gov-gold);
    font-weight: 600;
}

/* Search Box (Standard Pill) */
.header-searchbox {
    margin-left: 20px;
}

.search-field {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    width: 200px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-field:focus {
    width: 260px;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--aqua-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.search-submit {
    color: rgba(255, 255, 255, 0.7);
}

.site-title a {
    color: #fff;
}

/* .site-description { display: none; } Removed for new header */

/* Mobile Adjustments */
@media (max-width: 991px) {
    .site-header {
        background: rgba(28, 28, 30, 0.95);
        padding: 10px 0;
    }

    .nav-menu {
        display: none;
        /* Mobile Menu Logic handled by JS ideally, hiding desktop menu for now */
    }
}

.main-navigation {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.main-navigation.is-sticky {
    background: rgba(11, 26, 48, 0.85);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    /* Prism subtle edge */
}


.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Anchor for Mega Menu */
}

/* Logo in Nav */
.custom-logo-link img,
.site-logo img,
.custom-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Menu Items (Pill Style) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.nav-menu>li>a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    /* Increased from 0.9rem */
    text-transform: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* ... (lines 466-512 unchanged) ... */

/* ... */

.mega-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    /* Decreased from 1rem */
    color: var(--police-navy-900);
    margin-bottom: 2px;
}

.mega-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    /* Decreased from 0.85rem */
    color: var(--text-secondary);
    line-height: 1.3;
}

.nav-menu>li {
    position: relative;
    /* Changed from static to allow sub-menu to correspond to this item */
}

/* Faint Aurora Animation */
@keyframes aurora-shift {
    0% {
        background-position: 0% 50%;
    }

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

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

.nav-menu>li>a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a {
    /* Faint Aurora Aurora (5-10% Opacity) */
    background: linear-gradient(270deg,
            rgba(30, 64, 175, 0.05),
            /* Blue 5% */
            rgba(147, 51, 234, 0.08),
            /* Purple 8% */
            rgba(16, 185, 129, 0.05),
            /* Teal 5% */
            rgba(30, 64, 175, 0.05)
            /* Blue 5% */
        );
    background-size: 300% 300%;
    animation: aurora-shift 6s ease infinite;

    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.2),
        /* Soft white outer glow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        /* Sharp inner rim */
        inset 0 0 10px rgba(100, 200, 255, 0.1);
    /* Very faint cool tint */
    backdrop-filter: blur(10px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Scrolled State (Triggered by JS) */
/* Scrolled State (Triggered by JS) */
.main-navigation.is-scrolled {
    background: rgba(11, 26, 48, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Dropdowns (Mega Menu Grid) */
.nav-menu ul.sub-menu {
    background: rgba(10, 31, 68, 0.92);
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);
    border-top: 4px solid var(--gov-gold);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    /* Top Highlight */
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 16px 16px;

    /* Full Width Logic Relative to Container */
    width: 600px;
    /* Reduced from 800px or full width to look better */
    min-width: auto;

    position: absolute;
    top: 100%;
    /* Directly below */
    margin-top: 0;
    /* Remove gap */
    left: 0;
    /* Changed from right: 0 to sit left as requested */
    right: auto;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    display: grid;
    grid-template-columns: 1fr;
    /* Single column by default for smaller lists */
    gap: 10px;
    padding: 20px;
    z-index: 2000;

    /* Scrollable Support */
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gov-gold) rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar for Submenus */
.nav-menu ul.sub-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu ul.sub-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.nav-menu ul.sub-menu::-webkit-scrollbar-thumb {
    background: var(--gov-gold);
    border-radius: 10px;
}

.nav-menu ul.sub-menu::-webkit-scrollbar-thumb:hover {
    background: #f1d279;
}

/* Smart Alignment: Force Right for overflows */
.nav-menu ul.sub-menu.align-right {
    left: auto;
    right: 0;
}


/* 2 Columns if enough items (CSS Grid Auto Placement) */
@media (min-width: 992px) {
    .nav-menu ul.sub-menu {
        grid-template-columns: 1fr 1fr;
        /* 2 Columns on Desktop */
        width: 700px;
    }
}

/* Positioning adjustments */
.nav-menu>li:hover>ul.sub-menu,
.nav-menu>li.focus>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Item Link (Card) */
.nav-menu ul.sub-menu li {
    display: block;
    width: 100%;
}

.nav-menu ul.sub-menu li a.mega-menu-link {
    display: flex;
    /* Flex Icon + Text */
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s var(--ease-spring);
    height: 100%;
}

.nav-menu ul.sub-menu li a.mega-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.mega-icon {
    font-size: 1.35rem;
    color: var(--gov-gold);
    background: rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu ul.sub-menu li a:hover .mega-icon {
    background: var(--gov-gold);
    color: var(--police-navy-900);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Text Content */
.mega-content {
    flex: 1;
}

.mega-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.mega-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* 
 * MOBILE NAVIGATION (< 991px)
 */
.menu-toggle {
    display: none;
}

@media (max-width: 991px) {

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Move Toggle to Left */
    .menu-toggle {
        display: inline-flex !important;
        /* Show Hamburger */
        cursor: pointer;
        order: -1;
        /* Move to start */
        margin-right: auto;
        /* Push branding to center/right if needed, or just sit left */
        margin-left: 0;
    }

    /* Ensure specific branding alignment if needed to center LOGO while button is left */
    .site-branding {
        flex-grow: 1;
        justify-content: left;
        /* max-width: 60%; */
        /* Limit width as requested */
        margin: 0 0 0 auto;
        /* Push slightly */
        overflow: hidden;
        /* Prevent text overflow */
        white-space: nowrap;
    }

    .site-logo img,
    .custom-logo {
        height: 38px !important;
        /* Slightly bigger */
        width: auto;
        max-width: 100%;
        /* Safety */
    }

    .nav-menu {
        display: none;
        /* Hide default menu */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Active State (Toggled by JS) */
    .nav-menu.is-active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-menu>li>a {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
        color: var(--police-navy-900);
        font-size: 1rem;
    }

    .nav-menu>li>a:hover {
        background: rgba(0, 0, 0, 0.03);
        color: var(--gov-blue);
        box-shadow: none;
        transform: none;
    }

    /* Mobile Mega Menu (Dropdowns) */
    .nav-menu ul.sub-menu {
        position: static;
        /* Stack naturally */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--gov-gold);
        border-radius: 0;
        background: transparent;
        padding: 10px 0 10px 15px;
        width: 100%;
        grid-template-columns: 1fr;
        /* Single Column */
        display: none;
        /* Hidden by default on mobile until parent clicked? Or always show? Let's show always for simplicity or indented */
        display: grid;
        margin-top: 0;
    }

    .mega-desc {
        display: none;
        /* Hide descriptions on mobile to save space */
    }

    .mega-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}



/* 
 * ARCHIVE & CATEGORY STYLES (Liquid Glass)
 */
.archive-header-glass {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--police-navy-900) 0%, #1e3a8a 100%);
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.archive-header-glass .header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.archive-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.archive-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto 0;
}

/* Glass News Card */
.news-card-glass {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.news-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 20, 60, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.news-thumb-wrapper {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--police-navy-900);
}

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

.news-card-glass:hover .news-img {
    transform: scale(1.08);
    /* Slow Zoom */
}

/* Date Badge */
.date-badge-glass {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.date-badge-glass .day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--police-navy-900);
}

.date-badge-glass .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gov-gold);
    font-weight: 600;
    margin-top: 2px;
}

.news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-title a {
    color: var(--police-navy-900);
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--gov-blue);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.btn-glass-sm {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gov-blue);
    background: rgba(59, 130, 246, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-glass-sm:hover {
    background: var(--gov-blue);
    color: #fff;
    transform: translateX(3px);
}

.news-meta-mini {
    font-size: 0.8rem;
    color: #999;
}

/* Pagination Adjustments for Glass */
.phrae-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.5);
    /* Semi Glass */
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--police-navy-900);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.phrae-pagination .page-numbers:hover,
.phrae-pagination .page-numbers.current {
    background: var(--gov-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}



/* 
 * HERO SECTION (Aqua Evolution V3)
 */
.hero-glass-modern {
    position: relative;
    padding: 180px 0 140px;
    background: #000;
    overflow: hidden;
    margin-bottom: 3rem;
    color: #fff;
    /* perspective: 1000px; Removed 3D */
}

/* Fluid Mesh Gradient */
.hero-glass-modern::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.4), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(90, 200, 250, 0.4), transparent 50%),
        radial-gradient(circle at 0% 50%, rgba(0, 64, 221, 0.5), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(90, 200, 250, 0.3), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 122, 255, 0.5), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(90, 200, 250, 0.4), transparent 50%);
    background-size: 150% 150%;
    animation: aurora 15s ease infinite alternate;
    z-index: 0;
    filter: blur(60px);
}

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

    100% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

.hero-overlay-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Particles Background (Subtle Dust) */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}


/* Badge Neon */
.hero-badge-neon {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    /* Blue 400 */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #60a5fa;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text & Typography */
.hero-title-modern {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle-modern {
    color: #94a3b8;
    /* Slate 400 */
    font-weight: 300;
}

/* Buttons Neon */
.btn-neon-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-neon-primary::before {
    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;
}

.btn-neon-primary:hover::before {
    left: 100%;
}

.btn-neon-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    color: #fff;
}

.btn-glass-imac {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass-imac:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* 3D Visuals */
.perspective-container {
    perspective: 1000px;
}

.hero-visual-3d {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
}

.glass-shield-main {
    position: relative;
    font-size: 9rem;
    color: rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    /* Shield shape approx or just container */
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.shield-icon {
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.float-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    min-width: 160px;
    transform: translateZ(50px);
    /* 3D pop */
}

.float-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    right: -40px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    left: -40px;
    animation: float 7s ease-in-out infinite reverse;
}

/* Animations */
.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-fade-down {
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(132, 169, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--gov-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--police-navy-900);
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Hero Buttons */
.btn-glass-hero {
    background: var(--gov-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-glass-hero:hover {
    background: var(--police-navy-900);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 20, 60, 0.2);
    color: #fff;
}

.btn-glass-hero-outline {
    background: rgba(255, 255, 255, 0.5);
    color: var(--police-navy-900);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(11, 26, 48, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-glass-hero-outline:hover {
    background: #fff;
    border-color: var(--gov-blue);
    color: var(--gov-blue);
    transform: translateY(-3px);
}

/* Visual Right */
.hero-visual-glass {
    position: relative;
    display: inline-block;
}

.hero-icon-large {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--police-navy-900), var(--gov-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.3));
    animation: float 6s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--police-navy-900);
    white-space: nowrap;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-badge.badge-1 {
    top: -20px;
    right: -30px;
    animation-delay: 1s;
}

.floating-badge.badge-2 {
    bottom: -10px;
    left: -40px;
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Service Cards (iOS App Icons) */
.service-card-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: var(--radius-l);
    /* Squircle */
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.service-card-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-haptic);
    border-color: rgba(255, 255, 255, 0.8);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 122, 255, 0.15));
    transition: transform 0.4s var(--ease-spring);
    background: linear-gradient(135deg, var(--aqua-primary), var(--aqua-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-glass:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--police-navy-900);
    margin: 0;
    letter-spacing: -0.3px;
}

/* Section Title */
.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--police-navy-900);
    border-left: none;
    padding-left: 0;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: var(--gov-gold);
    border-radius: 4px;
}

/* Category Badge (Floating Pill - Blue Gradient) */
.category-badge-glass {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--aqua-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Announcement Widget - Official Paper Document Style */

/* 1. Main Container: Liquid Prism Glass */
.phrae-ann-wrapper {
    background: var(--bg-surface);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 100px 0 80px;
    /* Increased top padding */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.phrae-ann-wrapper.full-width-section {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.phrae-ann-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gov-blue), var(--gov-gold), var(--gov-blue));
    opacity: 0.6;
    z-index: 2;
}

/* 2. Header: Official Board Style */
.phrae-ann-header {
    width: 100%;
    margin-bottom: 60px;
    padding: 25px 45px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Aurora Glow inside header */
.phrae-ann-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.phrae-ann-header::before {
    content: '';
    position: absolute;
    top: -40px;
    /* Decorative line above header */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gov-gold);
    border-radius: 10px;
    opacity: 0.8;
}

.phrae-ann-official-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--police-navy-900), var(--gov-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.phrae-ann-official-title .title-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gov-gold), #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
    transform: rotate(-10deg);
}

/* Actions (Nav / View All) */
.phrae-ann-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 3. Layout: Vertical Stack */
.phrae-ann-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

/* TOP: Poster Slider (Reduced Size & Centered) */
.phrae-ann-poster-column {
    width: 100%;
    max-width: 800px;
    /* Reduced from 100% or 100vw */
    margin: 0 auto;
    /* Center horizontally */
}

.phrae-ann-poster-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
    transition: all 0.3s var(--ease-spring);
}

.phrae-ann-poster-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.8);
}

/* BOTTOM: News (Centered Slider) */
.phrae-ann-news-column {
    width: 100%;
    position: relative;
}

.phrae-ann-news-column.centered-news {
    text-align: center;
}

.phrae-ann-news-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.news-count-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: var(--police-navy-900);
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-count-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gov-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gov-gold);
}

.phrae-ann-nav-group {
    display: flex;
    gap: 10px;
}

/* Swiper Centering Fix */
.centered-news .swiper {
    padding-bottom: 50px;
}

.centered-news .phrae-ann-news-card {
    margin: 0 auto;
}

/* 4. News Cards: Glass Prism Document */
.phrae-ann-news-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phrae-ann-news-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-haptic);
    transform: translateY(-8px) scale(1.02);
}

.phrae-ann-thumb {
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.phrae-ann-content {
    padding: 15px;
}

.phrae-ann-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.phrae-ann-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

/* Navigation Buttons - Prism Style */
.phrae-nav-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--police-navy-900) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    /* Solid White for high contrast */
    backdrop-filter: none;
    /* Disable filter to avoid blending issues */
    transition: all 0.3s var(--ease-spring) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100 !important;
    /* Extremely high to ensure top-most layer */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.phrae-nav-btn i {
    font-size: 1.2rem !important;
    color: inherit !important;
    display: block !important;
}

.phrae-nav-btn:hover {
    background: var(--gov-blue) !important;
    border-color: var(--gov-blue) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.phrae-view-all.phrae-btn-prism {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--police-navy-900) !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s var(--ease-spring);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.phrae-view-all.phrae-btn-prism:hover {
    background: var(--gov-blue);
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--gov-blue);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.phrae-view-all.phrae-btn-prism i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.phrae-view-all.phrae-btn-prism:hover i {
    transform: translateX(4px);
}

.news-meta-row i {
    color: var(--aqua-secondary);
    margin-right: 6px;
}

.news-meta-row span {
    display: inline-flex;
    align-items: center;
}

/* Read More Link (Text Only) */
.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--aqua-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more-link:hover {
    color: var(--aqua-dark);
    transform: translateX(3px);
}

/* 
 * SINGLE POST & PAGE HEADER (Standard)
 */
/* 
 * SINGLE POST & PAGE HEADER (Modern Police Era)
 */
.single-post-header {
    position: relative;
    padding: 180px 0 80px;
    /* Top padding clears fixed header */
    background: radial-gradient(circle at 50% 0%, #0a1f44 0%, #020b1c 100%);
    /* Deep Navy Core */
    color: #fff;
    margin-bottom: 3rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    /* Subtle Gold Border */
}

.single-post-header::after {
    /* Gold Glow Accent */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    z-index: 2;
}

.single-post-header .header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Tech Grid */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* 
 * ARCHIVE & CATEGORY STYLES (Liquid Glass)
 */
.archive-header-glass {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #000 0%, #1c1c1e 100%);
    /* Deep Dark */
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
}

.archive-header-glass .header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 122, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(90, 200, 250, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.archive-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.archive-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 10px auto 0;
    font-weight: 300;
}

/* Glass News Card (iOS Style) */
.news-card-glass {
    background: #fff;
    border-radius: var(--radius-l);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    /* Clean look */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    /* transform: translateZ(0); Removed by user request */
    /* Hardware accel */
}

.news-card-glass:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-haptic);
    z-index: 10;
}

.news-thumb-wrapper {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--police-navy-900);
}

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

.news-card-glass:hover .news-img {
    transform: scale(1.08);
    /* Slow Zoom */
}

/* Date Badge */
.date-badge-glass {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.date-badge-glass .day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--police-navy-900);
}

.date-badge-glass .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gov-gold);
    font-weight: 600;
    margin-top: 2px;
}

.news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-title a {
    color: var(--police-navy-900);
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--gov-blue);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.btn-glass-sm {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gov-blue);
    background: rgba(59, 130, 246, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-glass-sm:hover {
    background: var(--gov-blue);
    color: #fff;
    transform: translateX(3px);
}

.news-meta-mini {
    font-size: 0.8rem;
    color: #999;
}

/* Pagination Adjustments for Glass */
.phrae-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.5);
    /* Semi Glass */
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--police-navy-900);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.phrae-pagination .page-numbers:hover,
.phrae-pagination .page-numbers.current {
    background: var(--gov-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}

/* Footer */
/* Footer Modernization (Aurora Glass) */
.site-footer {
    position: relative;
    background: #0b1a30;
    /* Fallback */
    overflow: hidden;
    padding: 6rem 0 3rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Aurora Background Effect */
.site-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(13, 27, 48, 0.8) 0%, rgba(6, 14, 26, 0.95) 100%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* Modern Widget Title */
.site-footer h3.widget-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none !important;
    /* Remove old border */
    position: relative;
    display: inline-block;
}

/* Gradient Pill Marker */
.site-footer h3.widget-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f59e0b);
    border-radius: 4px;
    margin-bottom: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Footer Menu Styling Override */
.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    font-size: 1.1rem;
    /* Increased Size */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Gradient Underline Animation */
.footer-links-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    /* Blue to Light Blue Gradient */
    background: linear-gradient(90deg, #007AFF, #5AC8FA);
    transition: width 0.3s ease;
}

.footer-links-list li a:hover::after {
    width: 100%;
}

/* 
 * SINGLE POST / PAGE STYLES (Liquid Glass) 
 */
.single-post-header {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--police-navy-900) 0%, #1e3a8a 100%);
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.single-post-header .header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.article-glass {
    padding: 40px;
}

.article-header .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.category-pill .badge-glass {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--gov-blue);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.article-meta {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.typography-modern p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    /* Slate 800 */
    margin-bottom: 1.5rem;
}

.typography-modern h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--police-navy-900);
}

.typography-modern h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.typography-modern blockquote {
    border-left: 4px solid var(--gov-gold);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.05);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.tag-glass {
    display: inline-block;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.tag-glass:hover {
    background: var(--gov-blue);
    color: #fff;
    text-decoration: none;
}

/* Post Navigation Cards */
.nav-card-glass {
    display: block;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-card-glass:hover {
    background: #fff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.nav-card-glass .nav-title {
    font-weight: 600;
    color: var(--police-navy-900);
    margin-top: 4px;
}

/* Sidebar Glass */
.sidebar-glass .glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

/* Related Section */
.related-card-glass {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

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

.related-img-wrapper {
    padding-top: 56.25%;
    /* 16:9 */
    position: relative;
    background: #eee;
    overflow: hidden;
}

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

.related-card-glass:hover .related-img-wrapper img {
    transform: scale(1.05);
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--police-navy-900);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 404 styles */
.error-404-section {
    position: relative;
}

/* 
 * Reverted Menu Styles (Standard Dropdown) 
 * Bypassing Tailwind for Mobile Menu Logic
 */

/* Mobile Menu Container - Hidden by default on mobile */
@media (max-width: 1023px) {
    .main-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0b1a30;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        width: 100%;
    }

    /* Shown when toggled */
    .main-menu-container.toggled {
        display: block !important;
        /* Force show */
        animation: slideDown 0.3s ease-out forwards;
    }

    /* Reset Flex Layout for Mobile List */
    .main-menu-container .nav-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        gap: 0 !important;
    }

    .main-menu-container .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-menu-container .nav-menu>li:last-child {
        border-bottom: none;
    }

    .main-menu-container .nav-menu>li>a {
        display: block;
        padding: 15px 0;
        color: #fff !important;
        font-size: 1.1rem;
        width: 100%;
    }

    /* Submenus on Mobile */
    .main-menu-container .sub-menu {
        position: static !important;
        background: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        padding-left: 20px;
        display: none;
        /* Hidden by default could require click to open, but often hover:block logic persists */
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Simple Hover/Focus logic for mobile submenus if no JS Accordion */
    .main-menu-container li:hover>.sub-menu {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for Desktop Menu Button Visibility */
@media (min-width: 1024px) {


    .mobile-only-toggle,
    #mobile-menu-drawer,
    #mobile-menu-backdrop {
        display: none !important;
    }
}

/* Explicit Layout for Mobile Drawer (Replacing Tailwind) */
#mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999 !important;
    pointer-events: none;
}

#mobile-menu-drawer.active {
    pointer-events: auto;
}

/* Add utility class support if missing */
.pointer-events-none {
    pointer-events: none !important;
}

.pointer-events-auto {
    pointer-events: auto !important;
}

#mobile-menu-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

#mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    /* Fallback */
    width: 100%;
    /* Force full width on mobile as requested */
    max-width: 100%;
    /* Default mobile */
    background: #0b1a30 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    #mobile-menu-content {
        max-width: 320px;
        /* Limit width on tablet */
    }
}

/* Mobile Drawer Menu Styles */
#mobile-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-drawer-menu>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-drawer-menu>li>a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#mobile-drawer-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 25px;
    /* Slide effect */
}

/* Submenu indentation & style */
#mobile-drawer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    /* Hidden by default, requires JS click or we can show all for now */
    display: block;
    /* Temporarily show all for simplicity or use JS to toggle */
}

#mobile-drawer-menu li.menu-item-has-children .sub-menu {
    display: block;
    /* Always expanded for now to ensure visibility */
}

#mobile-drawer-menu .sub-menu li a {
    padding: 10px 20px 10px 40px;
    /* Indent */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#mobile-drawer-menu .sub-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------------------- */
/*  PR NEWS GRID WIDGET                                                      */
/* -------------------------------------------------------------------------- */

.phrae-pr-grid-wrapper {
    padding: 60px 0;
    width: 100%;
    margin: 0 auto;
}

.phrae-pr-grid-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.phrae-skew-header {
    position: relative;
    display: inline-block;
    height: 65px;
    min-width: 300px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--police-navy-900);
    text-align: center;
    line-height: 65px;
    padding: 0 40px;
    box-sizing: border-box;
    transform: skew(-20deg);
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* The Blue Accent Bar */
.phrae-skew-header:after {
    content: "";
    position: absolute;
    transform: skew(1deg);
    height: 65px;
    width: 15px;
    background: var(--gov-blue);
    top: -1px;
    right: -15px;
    border-radius: 0 4px 4px 0;
    box-shadow: 4px 0 15px rgba(30, 64, 175, 0.3);
}

/* Iridescent Top Edge */
.phrae-skew-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gov-gold), transparent);
    opacity: 0.6;
    z-index: 2;
}

.phrae-skew-text {
    transform: skew(20deg);
    /* Counter-skew */
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--police-navy-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phrae-glass-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--gov-gold);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-spring);
    flex-shrink: 0;
}

.phrae-glass-icon-wrapper i {
    font-size: inherit;
}

.phrae-glass-icon-wrapper svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}

.phrae-glass-icon-wrapper i,
.phrae-glass-icon-wrapper svg {
    filter: drop-shadow(0 0 8px rgba(255, 214, 10, 0.4));
}

.phrae-skew-header:hover .phrae-glass-icon-wrapper {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(-5deg);
    border-color: rgba(255, 255, 255, 0.6);
}

.phrae-pr-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Tablet (Medium screens) */
@media (max-width: 1024px) {
    .phrae-pr-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile (Small screens) */
@media (max-width: 640px) {
    .phrae-pr-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.phrae-pr-grid-card {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s var(--ease-spring);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.phrae-pr-grid-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-haptic);
}

.phrae-pr-card-thumb {
    width: 100%;
    aspect-ratio: 1024/683;
    /* Exact 3:2 ratio as requested */
    overflow: hidden;
    position: relative;
    background: #000;
}

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

.phrae-pr-grid-card:hover .phrae-pr-card-thumb img {
    transform: scale(1.1);
}

.phrae-pr-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.phrae-pr-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gov-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phrae-pr-card-title {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--police-navy-900);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.phrae-pr-grid-card:hover .phrae-pr-card-title {
    color: var(--gov-blue);
}

.phrae-pr-grid-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Glass View All Button Fix */
.phrae-pr-view-all.phrae-btn-prism,
.phrae-ann-view-all.phrae-btn-prism {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--police-navy-900) !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.4s var(--ease-spring);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.phrae-pr-view-all.phrae-btn-prism:hover,
.phrae-ann-view-all.phrae-btn-prism:hover {
    background: var(--gov-blue);
    color: #fff !important;
    transform: translateY(-5px) scale(1.05);
    border-color: var(--gov-blue);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
}

.phrae-pr-view-all.phrae-btn-prism i,
.phrae-ann-view-all.phrae-btn-prism i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.phrae-pr-view-all.phrae-btn-prism:hover i,
.phrae-ann-view-all.phrae-btn-prism:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
    .phrae-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

@media (max-width: 575px) {
    .phrae-news-grid {
        grid-template-columns: 1fr;
    }

    .phrae-grid-title {
        font-size: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*  TABBED NEWS LIST WIDGET                                                   */
/* -------------------------------------------------------------------------- */

.phrae-news-tabs-wrapper {
    width: 100%;
    margin: 40px auto;
    max-width: var(--container-xl);
}

.phrae-tab-grid-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.phrae-tab-buttons {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.phrae-tab-buttons .phrae-tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--police-navy-900);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phrae-tab-buttons .phrae-tab-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.phrae-tab-buttons .phrae-tab-btn.active {
    background: var(--police-navy-900);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.2);
}

.phrae-tab-buttons .phrae-tab-btn.active .phrae-tab-icon {
    color: var(--gov-gold);
    opacity: 1;
}

.phrae-tab-buttons .phrae-tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.phrae-tab-content-wrap {
    background: rgba(255, 255, 255, 0.5);
    /* Stronger glass presence */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 30px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.phrae-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.phrae-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phrae-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phrae-tab-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.phrae-tab-list-item:last-child {
    border-bottom: none;
}

.phrae-tab-list-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none !important;
    color: var(--police-navy-900);
    transition: all 0.3s var(--ease-spring);
    border-radius: 16px;
    gap: 25px;
}

.phrae-tab-list-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.phrae-tab-list-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gov-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.phrae-tab-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    color: var(--police-navy-900);
    transition: color 0.3s ease;
}

.phrae-tab-list-link:hover .phrae-tab-list-title {
    color: var(--gov-blue);
}

.phrae-tab-list-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: var(--police-navy-900);
    transition: all 0.3s ease;
}

.phrae-tab-list-link:hover .phrae-tab-list-arrow {
    background: var(--gov-blue);
    color: #fff;
    border-color: var(--gov-blue);
    transform: rotate(-45deg);
}

/* E-Service Grid Widget */
.phrae-eservice-widget {
    padding: 20px 0;
}

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

.phrae-eservice-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.phrae-eservice-sub-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.phrae-eservice-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .phrae-eservice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 640px) {
    .phrae-eservice-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.phrae-eservice-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    /* Reduced padding to fit square feel */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    /* Force a more square/boxy shape */
    text-decoration: none !important;
    transition: all 0.4s var(--ease-spring);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.phrae-eservice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.phrae-eservice-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.phrae-eservice-card:hover .phrae-eservice-icon-box {
    background: var(--police-navy-900);
    transform: scale(1.1) rotate(10deg);
}

.phrae-eservice-icon-box i {
    font-size: 1.25rem;
    color: var(--gov-blue);
    transition: color 0.4s ease;
}

.phrae-eservice-card:hover .phrae-eservice-icon-box i {
    color: #fff;
}

.phrae-eservice-icon-box svg {
    width: 22px;
    height: 22px;
    fill: var(--gov-blue);
    transition: fill 0.4s ease;
}

.phrae-eservice-card:hover .phrae-eservice-icon-box svg {
    fill: #fff;
}

.phrae-eservice-content {
    flex: 1;
}

.phrae-eservice-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--police-navy-900);
    margin-bottom: 15px;
    line-height: 1.3;
}

.phrae-eservice-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phrae-eservice-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: auto;
}

.phrae-eservice-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.phrae-eservice-card:hover .phrae-eservice-btn {
    color: var(--gov-blue);
}

.phrae-eservice-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.phrae-eservice-card:hover .phrae-eservice-btn i {
    transform: translateX(5px);
    opacity: 1;
}

@media (max-width: 640px) {
    .phrae-eservice-main-title {
        font-size: 1.8rem;
    }

    .phrae-eservice-card {
        padding: 25px;
    }
}

.phrae-list-empty {
    padding: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.phrae-tab-list-footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.phrae-tab-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: var(--police-navy-900);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.2);
}

.phrae-tab-view-all:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(10, 31, 68, 0.3);
    background: var(--gov-blue);
}

/* Responsive Fixes for News Tabs List */
@media (max-width: 1024px) {
    .phrae-tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .phrae-tab-list-link {
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .phrae-tab-grid-header {
        margin-bottom: 30px;
    }

    .phrae-tab-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
    }

    .phrae-tab-buttons .phrae-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .phrae-tab-content-wrap {
        padding: 15px;
        border-radius: 20px;
    }

    .phrae-tab-list-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative;
        padding-right: 45px;
        /* Make room for arrow */
    }

    .phrae-tab-list-date {
        min-width: auto;
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .phrae-tab-list-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .phrae-tab-list-arrow {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .phrae-tab-list-link:hover {
        transform: none;
        /* Disable translate for mobile */
    }

    .phrae-tab-view-all {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.phrae-btn-tab-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    color: var(--police-navy-900) !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.phrae-btn-tab-more:hover {
    background: var(--gov-blue);
    color: #fff !important;
    border-color: var(--gov-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

.phrae-btn-tab-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.phrae-btn-tab-more:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .phrae-list-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .phrae-list-date {
        min-width: auto;
    }

    .phrae-list-arrow {
        display: none;
    }
}

/* Layout Expansion for Pages/Posts */
.main-content-container {
    max-width: 1400px !important;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1440px) {
    .main-content-container {
        max-width: 1320px !important;
    }
}

.typography-modern {
    line-height: 1.8;
}

.glass-panel.article-glass {
    padding: 3.5rem !important;
}

@media (max-width: 768px) {
    .glass-panel.article-glass {
        padding: 1.5rem !important;
    }
}

/* Content Tabs Widget Alignment & Structure */
.phrae-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.phrae-tabs-align-center .phrae-tab-buttons {
    justify-content: center;
}

.phrae-tabs-align-right .phrae-tab-buttons {
    justify-content: flex-end;
}

.phrae-tabs-align-justify .phrae-tab-buttons .phrae-tab-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .phrae-tabs-align-justify .phrae-tab-buttons {
        flex-direction: column;
    }

    .phrae-tabs-align-justify .phrae-tab-buttons .phrae-tab-btn {
        width: 100%;
    }
}


/* Modern Personnel Card Widget */
.phrae-card-modern {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    background: #fff;
    overflow: hidden;
    position: relative;
}

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

.phrae-card-modern-img-wrapper {
    width: 180px;
    height: 240px;
    margin: 0 auto 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

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

.phrae-card-modern:hover .phrae-card-modern-img {
    transform: scale(1.05);
}

.phrae-card-modern-content {
    position: relative;
    z-index: 1;
}

.phrae-card-modern-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: var(--police-navy-900);
    /* Force single line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phrae-card-modern-position-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    background: #EFF6FF;
    line-height: 1;
}

.phrae-card-modern-position {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1E40AF;
    display: block;
}

.phrae-card-modern-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 50px;
    background: #F8FAFC;
}

.phrae-card-modern-phone:hover {
    color: var(--gov-blue);
    background: #EFF6FF;
}

.phrae-card-modern-phone i {
    font-size: 0.9rem;
}