/* ==========================================================================
   1. FLUID RESPONSIVE SYSTEM & MODERN CSS ARCHITECTURE
   ========================================================================== */

/* Universal Box Sizing & Fluid Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #0a2a52;
    --primary-rgb: 10, 42, 82;
    --secondary: #0f9d58;
    --secondary-rgb: 15, 157, 88;
    --light: #f5f8fc;
    --dark: #0f172a;
    --white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;

    /* Fluid Typography Scale using CSS clamp() */
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Fluid Headings (Scales seamlessly between 320px mobile and 1440px desktop) */
    --h1-size: clamp(1.85rem, 4vw + 1rem, 2.75rem);
    --h2-size: clamp(1.5rem, 3vw + 0.75rem, 2.25rem);
    --h3-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    --h4-size: clamp(1.1rem, 1.5vw + 0.35rem, 1.35rem);
    --h5-size: clamp(0.95rem, 1vw + 0.25rem, 1.15rem);
    --h6-size: clamp(0.85rem, 0.5vw + 0.2rem, 1rem);

    /* Fluid Body & Paragraph Scale */
    --body-size: clamp(0.9375rem, 0.25vw + 0.875rem, 1.0625rem);
    --small-size: clamp(0.8rem, 0.2vw + 0.75rem, 0.875rem);

    /* Fluid Spacing Scale */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.25rem);
    --space-xl: clamp(2rem, 4vw, 3.5rem);
}

body {
    font-family: var(--font-sans);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fluid Typography Hierarchies */
h1, .h1 { font-size: var(--h1-size); line-height: 1.2; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--h2-size); line-height: 1.25; font-weight: 700; margin-bottom: 0.65rem; letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--h3-size); line-height: 1.3; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--h4-size); line-height: 1.35; font-weight: 600; margin-bottom: 0.5rem; }
h5, .h5 { font-size: var(--h5-size); line-height: 1.4; font-weight: 600; margin-bottom: 0.4rem; }
h6, .h6 { font-size: var(--h6-size); line-height: 1.45; font-weight: 600; margin-bottom: 0.4rem; }

/* Readability Block Constraints */
p, .lead, .card-text {
    line-height: 1.65;
    max-width: 72ch; /* Prevents eye-strain caused by excessively wide lines on large monitors */
}

/* Fluid Media & Embeds (Guarantees Zero Horizontal Overflow) */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. FLUID CONTAINERS, AUTO-FIT GRIDS & FLEXBOX UTILITIES
   ========================================================================== */

/* Universal Fluid Container Wrapper */
.fluid-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

/* Auto-fitting Responsive Grid (Columns auto-wrap without media queries) */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    width: 100%;
}

.auto-grid-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    width: 100%;
}

.auto-grid-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    width: 100%;
}

/* Flexible, Fluid Auto-Wrapping Flexbox */
.auto-flex {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    align-items: center;
}

.auto-flex-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Responsive Table Wrapper (Prevents screen blowout on mobile) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* Mobile-Friendly Touch Targets & Inputs */
input, select, textarea, button, .btn {
    font-size: clamp(0.875rem, 0.2vw + 0.85rem, 1rem);
}

@media (max-width: 576px) {
    .btn, .form-control, .form-select {
        min-height: 44px; /* Apple & Google mobile touch target standard */
    }
}
.public-nav{
    background:rgba(10,42,82,.95);
    backdrop-filter:blur(8px);
}
.hero{
    background:linear-gradient(135deg, rgba(10,42,82,.95), rgba(15,157,88,.85)), url('../images/waaxda_bg.jpg') center/cover;
    color:#fff;
    padding:110px 0 90px;
}
.section-card,.card,.table-wrap,.form-panel,.stat-card,.login-card{
    border:none;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.feature-card,.news-card,.match-card,.contact-box{
    background:#fff;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(15,23,42,.07);
    height:100%;
}
.btn-primary{
    background:var(--primary);
    border-color:var(--primary);
}
.btn-success,.bg-success{
    background:var(--secondary)!important;
    border-color:var(--secondary)!important;
}
.section-title{
    color:var(--primary);
    font-weight:700;
}
.cup-hub-section{
    background:linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}
.cup-tabs{
    gap:.5rem;
}
.cup-tabs .nav-link{
    border-radius:999px;
    padding:.65rem 1rem;
}
.cup-hub-card{
    padding:1.5rem!important;
}
.cup-hub-header{
    padding-bottom:1rem;
    border-bottom:1px solid #e2e8f0;
}
.cup-hub-description{
    max-width:480px;
    line-height:1.55;
}
.cup-filter-pills{
    margin-bottom:1rem!important;
}
.cup-filter-pills .nav-link{
    border-radius:999px;
    background:#eef3f9;
    color:var(--primary);
    padding:.55rem .95rem;
}
.cup-filter-pills .nav-link.active{
    background:var(--primary);
    color:#fff;
}
.cup-date-filter{
    background:#f8fbff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:1rem;
}
.cup-content-stack{
    display:grid;
    gap:1rem;
}
.cup-content-block{
    background:#fbfdff;
    border:1px solid #e6edf5;
    border-radius:18px;
    padding:1rem;
}
.cup-section-heading{
    padding-bottom:.5rem;
    border-bottom:1px solid #edf2f7;
}
.cup-section-heading h4{
    color:var(--primary);
    font-size:1.05rem;
}
.cup-section-heading-banner{
    background:
        linear-gradient(135deg, rgba(4, 14, 30, .96), rgba(10, 42, 82, .92)),
        radial-gradient(circle at top right, rgba(255, 190, 45, .16), transparent 35%);
    border:1px solid rgba(199, 146, 33, .34);
    border-radius:18px;
    padding:1.15rem 1.2rem 1rem;
    color:#fff;
    position:relative;
    overflow:hidden;
}
.cup-section-heading-banner::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:3px;
    background:linear-gradient(90deg, #f3b321, rgba(243, 179, 33, 0));
}
.cup-heading-kicker{
    display:flex;
    align-items:center;
    gap:.65rem;
    margin-bottom:.45rem;
    color:#f3b321;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.24em;
    text-transform:uppercase;
}
.cup-heading-kicker::before,
.cup-heading-kicker::after{
    content:"";
    height:1px;
    background:rgba(243, 179, 33, .65);
}
.cup-heading-kicker::before{
    width:44px;
}
.cup-heading-kicker::after{
    width:24px;
}
.cup-section-heading-banner h4{
    margin:0;
    color:#f8fafc;
    font-size:clamp(1.65rem, 4vw, 2.75rem);
    font-weight:900;
    line-height:.95;
    text-transform:uppercase;
    letter-spacing:.04em;
    text-shadow:0 10px 18px rgba(0, 0, 0, .28);
}
.cup-section-heading-banner h4 span{
    display:block;
    margin-top:.28rem;
    color:#f3b321;
}
.cup-section-heading-banner p{
    margin-top:.7rem;
    max-width:36rem;
    color:rgba(241, 245, 249, .88);
    font-size:.82rem;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.match-center-card{
    background:
        radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 28%),
        linear-gradient(160deg, #071523 0%, #0d2033 55%, #10344b 100%);
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 22px 48px rgba(2, 12, 27, .24);
}
.match-center-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.match-center-competition{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    color:#f3b321;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.match-center-competition::before{
    content:"";
    width:28px;
    height:2px;
    background:#f3b321;
    border-radius:999px;
}
.match-status-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.45rem .8rem;
    border-radius:999px;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.match-status-pill.status-live{background:#dc2626;color:#fff}
.match-status-pill.status-finished{background:#334155;color:#fff}
.match-status-pill.status-upcoming{background:#2563eb;color:#fff}
.match-status-pill.status-postponed{background:#f59e0b;color:#0f172a}
.match-scoreboard{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:1rem;
}
.match-team-block{
    display:grid;
    justify-items:center;
    gap:.7rem;
    text-align:center;
}
.match-team-logo{
    width:68px;
    height:68px;
    border-radius:20px;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg, #f3b321, #9a6d08);
    color:#08111d;
    font-weight:900;
    letter-spacing:.08em;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
}
.match-team-logo.alt{
    background:linear-gradient(145deg, #e2e8f0, #94a3b8);
}
.match-team-name{
    font-size:1rem;
    font-weight:800;
    line-height:1.3;
}
.match-score-center{
    text-align:center;
}
.match-score-value{
    font-size:2rem;
    font-weight:900;
    line-height:1;
    letter-spacing:.04em;
}
.match-score-value span{
    color:#f3b321;
}
.match-score-label{
    margin-top:.45rem;
    color:rgba(255,255,255,.72);
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.match-meta-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:.8rem;
}
.match-meta-item{
    display:flex;
    align-items:center;
    gap:.65rem;
    padding:.8rem .9rem;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:#f8fafc;
    font-size:.92rem;
}
.match-meta-item i{
    color:#f3b321;
}
.match-meta-item-wide{
    grid-column:1 / -1;
}
.lineup-center-card{
    background:linear-gradient(160deg, #f8fbff 0%, #eef6ff 100%);
    border:1px solid rgba(148,163,184,.18);
}
.lineup-center-kicker{
    color:#0f766e;
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
    margin-bottom:.4rem;
}
.lineup-team-tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.5rem .85rem;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.lineup-card-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:1rem;
}
.lineup-card-panel{
    background:#fff;
    border:1px solid rgba(148,163,184,.18);
    border-radius:18px;
    padding:1rem;
}
.lineup-panel-title{
    color:#0a2a52;
    font-size:.82rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:.8rem;
}
.lineup-player-stack{
    display:grid;
    gap:.55rem;
}
.lineup-player-pill{
    padding:.7rem .8rem;
    border-radius:14px;
    background:#eff6ff;
    color:#0f172a;
    font-size:.9rem;
    font-weight:600;
}
.lineup-player-pill.substitute{
    background:#f8fafc;
    border:1px dashed rgba(148,163,184,.5);
}
.news-image{
    width:100%;
    max-width:100%;
    height:220px;
    display:block;
    object-fit:contain;
    object-position:center;
    background:#eef3f9;
    border-radius:18px 18px 0 0;
}
.news-card-horizontal{
    display:flex;
    align-items:stretch;
}
.news-media-wrap{
    flex:0 0 280px;
    max-width:280px;
}
.news-image-horizontal{
    width:100%;
    height:100%;
    min-height:220px;
    border-radius:18px 0 0 18px;
    object-fit:cover;
}
.news-content{
    flex:1 1 auto;
}
.service-hero{
    background:linear-gradient(135deg, rgba(10,42,82,.96), rgba(15,157,88,.88));
    color:#fff;
    border-radius:24px;
    padding:32px;
    box-shadow:0 18px 40px rgba(10,42,82,.18);
}
.service-hero .badge{
    background:rgba(255,255,255,.14)!important;
    color:#fff!important;
}
.service-section{
    background:#fff;
    border-radius:22px;
    padding:28px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
    height:100%;
}
.service-list{
    padding-left:1.1rem;
    margin-bottom:0;
}
.service-list li + li{
    margin-top:.7rem;
}
.notice-box{
    border-left:5px solid #f59e0b;
    background:#fff8e6;
    color:#7c4a03;
    border-radius:18px;
    padding:20px 22px;
}
.service-meta{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
}
.service-meta-card{
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    padding:16px;
}
.upload-help{
    font-size:.85rem;
    color:#64748b;
}
.admin-body{
    background:#edf2f7;
}
.admin-shell{
    display:flex;
    min-height:100vh;
}
.sidebar{
    width:270px;
    background:linear-gradient(180deg,var(--primary),#081b34);
    color:#fff;
    padding:24px 18px;
    position:sticky;
    top:0;
    min-height:100vh;
}
.sidebar-brand{
    font-size:1.2rem;
    font-weight:700;
    padding:12px 14px 24px;
}
.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#dce7f7;
    text-decoration:none;
    padding:12px 14px;
    border-radius:14px;
    margin-bottom:8px;
}
.sidebar a.active,.sidebar a:hover{
    background:rgba(255,255,255,.12);
    color:#fff;
}
.main-content{
    flex:1;
    padding:28px;
}
.topbar{
    background:#fff;
    padding:20px 24px;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}
.stat-card{
    background:#fff;
    padding:24px;
}
.stat-card .icon{
    width:56px;
    height:56px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:1.2rem;
}
.panel-card{
    background:#fff;
    padding:24px;
    border-radius:20px;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.login-page{
    min-height:100vh;
    background:linear-gradient(140deg,var(--primary),var(--secondary));
    display:flex;
    align-items:center;
}
.login-card{
    background:#fff;
    padding:38px;
}
textarea{min-height:110px}
@media (max-width: 991px){
    .admin-body {
        background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
    }
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1045;
        min-height: 100vh;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    }
    .sidebar.sidebar-open {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1040;
        display: none;
        backdrop-filter: blur(3px);
    }
    .sidebar-overlay.show {
        display: block;
    }
    .main-content {
        padding: 14px;
        width: 100%;
        overflow-x: hidden;
    }
    .topbar {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .topbar-user {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .service-hero {
        padding: 24px;
    }
    .cup-hub-card {
        padding: 1.25rem!important;
    }
    .card, .panel-card, .stat-card {
        border-radius: 14px;
    }
    .table-responsive {
        border-radius: 12px;
    }
}
@media (max-width: 767px){
    .news-card-horizontal{flex-direction:column}
    .news-media-wrap{flex-basis:auto;max-width:100%}
    .news-image{height:200px}
    .news-image-horizontal{
        min-height:200px;
        border-radius:18px 18px 0 0;
    }
    .service-meta{grid-template-columns:1fr}
    .service-section{padding:22px}
    .cup-content-block{padding:.9rem}
    .cup-date-filter{padding:.9rem}
    .cup-section-heading-banner{
        padding:1rem;
    }
    .lineup-card-grid,
    .match-meta-grid{
        grid-template-columns:1fr;
    }
    .match-scoreboard{
        grid-template-columns:1fr;
    }
    .cup-heading-kicker{
        letter-spacing:.18em;
    }
    .cup-section-heading-banner p{
        font-size:.75rem;
        letter-spacing:.06em;
    }
}
@media (max-width: 575px){
    .news-image{height:180px}
    .news-image-horizontal{min-height:180px}
}
/* ── Goals Feed inside Match Cards ─────────────────────────── */
.match-goals-feed{
    border-top:1px solid rgba(255,255,255,.1);
    padding-top:.75rem;
}
.match-goals-header{
    color:rgba(255,255,255,.55);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
    margin-bottom:.55rem;
}
.match-goal-row{
    display:flex;
    align-items:center;
    gap:.55rem;
    padding:.45rem .5rem;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    margin-bottom:.35rem;
    flex-wrap:wrap;
}
.match-goal-row:last-child{
    margin-bottom:0;
}
.goal-minute{
    flex:0 0 auto;
    min-width:38px;
    text-align:center;
    background:#f3b321;
    color:#08111d;
    font-size:.72rem;
    font-weight:900;
    border-radius:8px;
    padding:.25rem .4rem;
    letter-spacing:.04em;
}
.goal-player{
    flex:1 1 auto;
    color:#f8fafc;
    font-size:.88rem;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    display:flex;
    align-items:center;
    gap:.4rem;
}
.goal-ball-icon{
    color:#f3b321;
    font-size:.7rem;
    flex-shrink:0;
}
.goal-type-tag{
    flex:0 0 auto;
    font-size:.68rem;
    font-weight:800;
    padding:.22rem .5rem;
    border-radius:999px;
    letter-spacing:.06em;
    text-transform:uppercase;
    background:rgba(255,255,255,.14);
    color:#e2e8f0;
}
.goal-type-goal{background:rgba(34,197,94,.22);color:#86efac}
.goal-type-penalty{background:rgba(251,191,36,.22);color:#fde68a}
.goal-type-free-kick{background:rgba(59,130,246,.22);color:#93c5fd}
.goal-type-header{background:rgba(168,85,247,.22);color:#d8b4fe}
.goal-type-own-goal{background:rgba(239,68,68,.22);color:#fca5a5}
.match-no-goals{
    display:flex;
    align-items:center;
    gap:.5rem;
    padding:.65rem .8rem;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    color:rgba(255,255,255,.45);
    font-size:.82rem;
    font-weight:600;
    border-top:1px solid rgba(255,255,255,.08);
}

/* ── Premium Dark Football Match Center ── */
.football-dark-body {
    background-color: #080c14 !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.football-dark-body .navbar {
    background: rgba(8, 12, 20, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-center-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.comp-logo-box {
    width: 44px;
    height: 44px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1.1;
    font-size: 0.7rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comp-logo-box span:first-child {
    color: #f3b321;
    font-size: 0.8rem;
}

.comp-logo-box span:last-child {
    opacity: 0.6;
}

.comp-title-block h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
}

.comp-title-block p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* Match Scorecard */
.wc-card {
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.wc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.wc-scoreboard-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.wc-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.wc-team-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #1e293b, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.05);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: transform 0.2s ease;
}

.wc-team-logo:hover {
    transform: scale(1.05);
}

.wc-team-logo.home-glow {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 15px rgba(34, 197, 94, 0.1), inset 0 2px 4px rgba(255,255,255,0.05);
}

.wc-team-logo.away-glow {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 15px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(255,255,255,0.05);
}

.wc-team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.wc-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.wc-score-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-score-value span {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.wc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.wc-status-badge.badge-live {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    animation: livePulse 2s infinite;
}

.wc-status-badge.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
}

.wc-status-badge.badge-ft {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.wc-status-badge.badge-upcoming {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

@keyframes livePulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Tabs Navigation */
.wc-tabs-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.wc-tabs-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.wc-tab-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 18px;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.wc-tab-btn:hover {
    color: #cbd5e1;
}

.wc-tab-btn.active {
    color: #ffffff;
}

.wc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Details Panel Panels */
.wc-tab-panel {
    display: none;
    animation: panelFadeIn 0.3s ease-out forwards;
}

.wc-tab-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wc-details-card {
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wc-details-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.wc-details-title i {
    color: #f3b321;
}

/* Info Tab */
.wc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wc-info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(243, 179, 33, 0.1);
    color: #f3b321;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.wc-info-content h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 4px 0;
}

.wc-info-content p {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

/* Summary Timeline */
.wc-timeline {
    position: relative;
    padding: 16px 0;
}

.wc-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.wc-timeline-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: center;
    margin-bottom: 24px;
}

.wc-timeline-row:last-child {
    margin-bottom: 0;
}

.wc-timeline-left {
    text-align: right;
    padding-right: 16px;
}

.wc-timeline-right {
    text-align: left;
    padding-left: 16px;
}

.wc-timeline-center {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.wc-timeline-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f1624;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.wc-timeline-row.home-event .wc-timeline-badge {
    border-color: #10b981;
    color: #10b981;
}

.wc-timeline-row.away-event .wc-timeline-badge {
    border-color: #3b82f6;
    color: #3b82f6;
}

.wc-event-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 14px;
}

.wc-event-type {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 2px;
}

.wc-event-player {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.wc-event-detail {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Stats Comparison */
.wc-stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wc-stats-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wc-stats-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.wc-stat-val.home-val {
    color: #10b981;
}

.wc-stat-val.away-val {
    color: #3b82f6;
}

.wc-stat-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wc-stats-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.wc-stats-bar-fill {
    height: 100%;
    border-radius: 99px;
}

.wc-stats-bar-fill.home-fill {
    background: #10b981;
}

.wc-stats-bar-fill.away-fill {
    background: #3b82f6;
    margin-left: auto;
}

/* Line-ups pitch & card */
.wc-lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wc-lineup-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wc-lineup-team-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.wc-lineup-team-title.home-title {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wc-lineup-team-title.away-title {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.wc-player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-player-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wc-player-number {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.wc-player-card.home-player .wc-player-number {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.wc-player-card.away-player .wc-player-number {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.wc-player-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

.wc-player-position {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

/* Event Lists */
.wc-event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-event-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-event-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wc-event-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.wc-event-icon-badge.goal {
    background: rgba(243, 179, 33, 0.1);
    color: #f3b321;
}

.wc-event-icon-badge.sub {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.wc-event-item-info h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.wc-event-item-info p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.wc-event-item-right {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f3b321;
    background: rgba(243, 179, 33, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Standings / Group Table */
.wc-table-wrap {
    overflow-x: auto;
}

.wc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.wc-table th {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wc-table td {
    font-size: 0.9rem;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-weight: 600;
}

.wc-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.wc-table-rank {
    font-weight: 800;
    color: #ffffff;
}

.wc-table-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
}

.wc-table-team-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffffff;
}

.wc-table-pts {
    font-weight: 800;
    color: #f3b321;
}

/* Match Directory */
.matches-directory-filter {
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
}

.directory-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.directory-filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.directory-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.directory-filter-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #080c14;
}

/* Grid layout for match center on homepage & directory */
.match-dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.match-dark-card {
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

.match-dark-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.match-dark-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.match-dark-card-comp {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f3b321;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.match-dark-card-score-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.match-dark-card-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-dark-card-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-dark-card-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
}

.match-dark-card-team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.match-dark-card-team-score {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.match-dark-card-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.match-dark-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.match-dark-card-meta i {
    color: #f3b321;
}

.match-vote-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.match-vote-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.match-vote-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fafc;
}

.match-vote-note {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

.match-vote-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(243, 179, 33, 0.12);
    color: #f3b321;
    font-size: 0.72rem;
    font-weight: 800;
}

.match-vote-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.match-vote-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111c2d;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 10px 8px;
    display: grid;
    gap: 6px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.match-vote-btn span {
    font-size: 0.76rem;
    font-weight: 700;
}

.match-vote-btn strong {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
}

.match-vote-btn strong small {
    font-size: 0.78rem;
    font-weight: 800;
    color: #94a3b8;
}

.match-vote-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.match-vote-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.match-vote-bar-fill.is-home {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.match-vote-bar-fill.is-draw {
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.match-vote-bar-fill.is-away {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.match-vote-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(243, 179, 33, 0.55);
    background: #152338;
}

.match-vote-btn.is-selected {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(22, 101, 52, 0.28);
}

.match-vote-btn:disabled {
    opacity: 0.88;
    cursor: not-allowed;
}

/* Empty search states */
.wc-empty-state {
    padding: 40px 20px;
    text-align: center;
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #64748b;
}

.wc-empty-state i {
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

.wc-empty-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .wc-scoreboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wc-score-center {
        grid-row: 1;
        order: -1;
    }
    
    .wc-info-grid {
        grid-template-columns: 1fr;
    }
    
    .wc-lineup-grid {
        grid-template-columns: 1fr;
    }

    .match-vote-form {
        grid-template-columns: 1fr;
    }
    
    .wc-timeline::before {
        left: 20px;
    }
    
    .wc-timeline-row {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
    
    .wc-timeline-row.home-event, .wc-timeline-row.away-event {
        grid-template-columns: 36px 1fr;
    }
    
    .wc-timeline-left, .wc-timeline-right {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }
    
    .wc-timeline-left {
        grid-column: 2;
    }
    
    .wc-timeline-right {
        grid-column: 2;
    }
    
    .wc-timeline-center {
        grid-column: 1;
        justify-content: flex-start;
    }
    
    .wc-timeline-badge {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   ALLOWANCE NOTICE POSTER STYLE (SINGLE REPORT)
   ========================================================================== */
.allowance-notice-poster {
    background: #ffffff;
    background-image: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
    border: 3px solid var(--primary);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(10, 42, 82, 0.15);
    padding: 40px;
    max-width: 850px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    position: relative;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.allowance-notice-header {
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 20px;
    margin-bottom: 25px;
    position: relative;
}

/* Curved header line accents */
.allowance-notice-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.allowance-notice-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-right: 25px;
}

.allowance-notice-titles {
    flex-grow: 1;
}

.notice-title-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.notice-title-sub {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allowance-notice-banner {
    background-color: var(--primary);
    border-radius: 18px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(10, 42, 82, 0.2);
}

.allowance-notice-banner .banner-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-right: 25px;
    transform: rotate(-10deg);
    animation: megaphone-pulse 2s infinite alternate;
}

@keyframes megaphone-pulse {
    0% { transform: rotate(-10deg) scale(1); }
    100% { transform: rotate(-5deg) scale(1.08); }
}

.allowance-notice-banner .banner-text {
    flex-grow: 1;
}

.banner-alert {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd54f; /* Gold accent */
    margin: 3px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allowance-notice-body {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    align-items: center;
}

.notice-body-image-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
}

.notice-body-image {
    width: 100%;
    border-radius: 20px;
    border: 4px solid var(--secondary);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.notice-body-text {
    flex: 0 0 65%;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
    text-align: justify;
}

.notice-body-no-image .notice-body-text {
    flex: 1 1 100%;
}

.allowance-notice-a5 {
    width: 148mm;
    min-height: 210mm;
    max-width: 148mm;
    padding: 12mm;
    border-radius: 12px;
}

.allowance-notice-a5 .allowance-notice-header {
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom-width: 3px;
}

.allowance-notice-a5 .allowance-notice-logo {
    width: 68px;
    height: 68px;
    margin-right: 14px;
}

.allowance-notice-a5 .notice-title-main {
    font-size: 1.35rem;
}

.allowance-notice-a5 .notice-title-sub {
    font-size: 1rem;
}

.allowance-notice-a5 .allowance-notice-banner {
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: 12px;
}

.allowance-notice-a5 .allowance-notice-banner .banner-icon {
    font-size: 2rem;
    margin-right: 14px;
}

.allowance-notice-a5 .banner-alert {
    font-size: 1.35rem;
}

.allowance-notice-a5 .banner-desc {
    font-size: .9rem;
}

.allowance-notice-a5 .allowance-notice-body {
    margin-bottom: 14px;
}

.allowance-notice-a5 .notice-body-text {
    font-size: .88rem;
    line-height: 1.45;
}

.allowance-notice-a5 .allowance-notice-section-header {
    padding: 6px 16px;
    font-size: .9rem;
    margin-bottom: 10px;
}

.allowance-notice-a5 .allowance-notice-table {
    margin-bottom: 14px;
}

.allowance-notice-a5 .allowance-notice-table th {
    padding: 8px 12px;
    font-size: .86rem;
}

.allowance-notice-a5 .allowance-notice-table td {
    padding: 9px 12px;
    font-size: .82rem;
}

.allowance-notice-a5 .table-row-title-col {
    width: 150px;
    gap: 8px;
}

.allowance-notice-a5 .table-row-title-col i {
    font-size: 1rem;
    width: 20px;
}

.allowance-notice-a5 .allowance-notice-callout {
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
}

.allowance-notice-a5 .allowance-notice-callout .callout-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.allowance-notice-a5 .callout-title {
    font-size: .86rem;
}

.allowance-notice-a5 .callout-desc {
    font-size: .78rem;
}

.allowance-notice-a5 .allowance-notice-road {
    height: 30px;
    margin: 14px -12mm 0 -12mm;
}

.allowance-notice-a5 .allowance-notice-footer {
    margin: 0 -12mm -12mm -12mm;
    padding: 12px 12mm;
}

.allowance-notice-a5 .allowance-notice-footer-info {
    gap: 10px;
    margin-bottom: 8px;
}

.allowance-notice-a5 .footer-info-item,
.allowance-notice-a5 .footer-info-logo-group {
    font-size: .72rem;
}

.allowance-notice-a5 .footer-info-item i {
    font-size: .9rem;
    margin-right: 7px;
    width: 14px;
}

.allowance-notice-a5 .allowance-notice-footer-motto {
    font-size: .9rem;
    padding-top: 8px;
}

.allowance-notice-section-header {
    background-color: var(--secondary);
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
}

.allowance-notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #dee2e6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.allowance-notice-table th {
    background-color: var(--primary);
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.allowance-notice-table td {
    padding: 15px 20px;
    border-bottom: 1.5px solid #eef2f5;
    vertical-align: middle;
    font-size: 1.05rem;
}

.allowance-notice-table tr:last-child td {
    border-bottom: none;
}

.allowance-notice-table tr:nth-child(even) {
    background-color: #f9fbfe;
}

.table-row-title-col {
    width: 250px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-row-title-col i {
    font-size: 1.3rem;
    color: var(--secondary);
    width: 28px;
    text-align: center;
}

.table-row-desc-col {
    color: #334155;
    line-height: 1.5;
}

.allowance-notice-callout {
    background-color: #e8f5e9;
    border-left: 6px solid var(--secondary);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.05);
}

.allowance-notice-callout .callout-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-right: 20px;
}

.allowance-notice-callout .callout-text {
    flex-grow: 1;
}

.callout-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1b5e20;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.callout-desc {
    font-size: 1rem;
    font-weight: 600;
    color: #2e7d32;
    margin: 0;
}

/* Stylized CSS Road graphic */
.allowance-notice-road {
    height: 48px;
    background-color: #27272a;
    margin: 25px -40px 0 -40px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: inset 0 8px 15px rgba(0,0,0,0.5), inset 0 -8px 15px rgba(0,0,0,0.5);
    border-top: 3px solid #f59e0b; /* Yellow border line */
    border-bottom: 3px solid #f59e0b;
}

.allowance-notice-road::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-top: 4px dashed #ffffff;
    opacity: 0.85;
}

.allowance-notice-footer {
    background-color: var(--primary);
    color: #ffffff;
    margin: 0 -40px -40px -40px;
    padding: 24px 40px;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 -5px 15px rgba(10, 42, 82, 0.1);
}

.allowance-notice-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-info-item i {
    font-size: 1.3rem;
    color: #ffd54f;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.footer-info-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-info-logo-group i {
    color: #ffd54f;
}

.allowance-notice-footer-motto {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: #e2e8f0;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
}

/* PRINT MEDIA CUSTOM STYLING */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .allowance-notice-poster {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        background-image: none !important;
    }
    
    .allowance-notice-banner {
        box-shadow: none !important;
    }
    
    .notice-body-image {
        box-shadow: none !important;
    }
    
    .allowance-notice-table {
        box-shadow: none !important;
    }
    
    .allowance-notice-callout {
        box-shadow: none !important;
    }
    
    .allowance-notice-footer {
        box-shadow: none !important;
    }

    .allowance-notice-a5 {
        width: 148mm !important;
        min-height: 210mm !important;
        max-width: 148mm !important;
        padding: 10mm !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .allowance-notice-a5 .allowance-notice-road {
        margin-left: -10mm !important;
        margin-right: -10mm !important;
    }

    .allowance-notice-a5 .allowance-notice-footer {
        margin-left: -10mm !important;
        margin-right: -10mm !important;
        margin-bottom: -10mm !important;
        padding-left: 10mm !important;
        padding-right: 10mm !important;
    }
}
