/* =========================================
   xPress24
   Global Styles
   ========================================= */

:root {
    --xp-black: #111111;
    --xp-dark: #1b1b1b;
    --xp-red: #d71920;
    --xp-light: #f5f5f5;
    --xp-border: #dddddd;
    --xp-text: #222222;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans Telugu", "Nirmala UI", Arial, sans-serif;
    color: var(--xp-text);
    background: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

.xpress24-container {
    width: min(1200px, calc(100% - 30px));
    margin: 0 auto;
}

/* =========================================
   TOP BAR
   ========================================= */

.xpress24-topbar {
    background: var(--xp-black);
    color: #ffffff;
    font-size: 13px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* =========================================
   HEADER
   ========================================= */

.xpress24-header {
    background: #ffffff;
    border-bottom: 1px solid var(--xp-border);
}

.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xpress24-logo {
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -3px;
}

.logo-x,
.logo-24 {
    color: var(--xp-red);
}

.header-tagline {
    color: #666666;
    font-size: 18px;
}

/* =========================================
   NAVIGATION
   ========================================= */

.xpress24-nav {
    background: var(--xp-black);
    color: #ffffff;
}

.nav-inner {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    overflow: visible;
}

    .nav-inner > a,
    .nav-more-toggle {
        display: flex;
        align-items: center;
        padding: 0 16px;
        white-space: nowrap;
        font-size: 15px;
        cursor: pointer;
    }

        .nav-inner > a:hover,
        .nav-more:hover > span {
            background: var(--xp-red);
        }

.nav-home {
    background: var(--xp-red);
}

.nav-more {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 10000;
}

.nav-more-toggle {
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

    .nav-more-toggle:hover,
    .nav-more-toggle:focus {
        background: var(--xp-red);
    }

.nav-more-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 190px;
    background: var(--xp-black);
    z-index: 10001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

    .nav-more-menu a {
        display: block;
        padding: 11px 16px;
        white-space: nowrap;
        color: #ffffff;
        text-decoration: none;
    }

        .nav-more-menu a:hover {
            background: var(--xp-red);
        }

/* =========================================
   BREAKING NEWS
   ========================================= */

.xpress24-breaking {
    background: var(--xp-red);
    color: #ffffff;
}

.breaking-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.breaking-label {
    font-weight: 700;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.breaking-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.breaking-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: breakingTicker 35s linear infinite;
    will-change: transform;
}


/* =========================================
   CONTENT
   ========================================= */

.xpress24-content {
    min-height: 600px;
    padding-top: 30px;
    padding-bottom: 40px;
}

/* =========================================
   FOOTER
   ========================================= */

.xpress24-footer {
    background: var(--xp-black);
    color: #ffffff;
    text-align: center;
    padding: 35px 0;
}

.footer-brand {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
}

.xpress24-footer p {
    margin: 8px 0;
}

.footer-copy {
    font-size: 13px;
    color: #aaaaaa;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .header-inner {
        min-height: 80px;
    }

    .xpress24-logo {
        font-size: 38px;
    }

    .header-tagline {
        display: none;
    }

    .topbar-inner {
        font-size: 11px;
    }

    .nav-inner {
        width: 100%;
    }

        .nav-inner > a,
        .nav-more-toggle {
            padding: 0 13px;
            font-size: 14px;
        }

    .xpress24-container {
        width: min(100% - 20px, 1200px);
    }
}

.rss-test {
    padding: 20px 0;
}

    .rss-test h1 {
        border-left: 5px solid var(--xp-red);
        padding-left: 12px;
        margin-bottom: 25px;
    }

.rss-news-item {
    border-bottom: 1px solid var(--xp-border);
    padding: 18px 0;
}

    .rss-news-item h2 {
        font-size: 21px;
        margin: 0 0 8px;
    }

        .rss-news-item h2 a:hover {
            color: var(--xp-red);
        }

    .rss-news-item p {
        color: #555;
        line-height: 1.7;
        margin: 5px 0;
    }

    .rss-news-item small {
        color: #888;
    }

/* =========================================
   xPress24 Homepage
   ========================================= */

.xp-loading,
.xp-empty {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Advertisement */

.xp-ad-banner {
    height: 90px;
    border: 1px dashed #cccccc;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    margin-bottom: 30px;
    font-size: 13px;
}

/* Home Grid */

.xp-home-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Section Title */

.xp-section-title {
    border-left: 5px solid var(--xp-red);
    padding-left: 12px;
    margin-bottom: 18px;
}

    .xp-section-title h2 {
        margin: 0;
        font-size: 25px;
    }

/* Hero */

.xp-hero-news {
    border: 1px solid var(--xp-border);
    background: #ffffff;
}

.xp-hero-content {
    padding: 25px;
}

    .xp-hero-content h1 {
        font-size: 32px;
        line-height: 1.35;
        margin: 8px 0 15px;
    }

        .xp-hero-content h1 a:hover {
            color: var(--xp-red);
        }

    .xp-hero-content p {
        font-size: 17px;
        line-height: 1.8;
        color: #666666;
    }

/* News Source */

.xp-news-source {
    color: var(--xp-red);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* News Date */

.xp-news-date {
    color: #888888;
    font-size: 12px;
    margin-top: 8px;
}

/* News Card */

.xp-news-card {
    border-bottom: 1px solid var(--xp-border);
    padding: 0 0 15px;
    margin-bottom: 15px;
}

    .xp-news-card h2 {
        font-size: 19px;
        line-height: 1.5;
        margin: 5px 0;
    }

        .xp-news-card h2 a:hover {
            color: var(--xp-red);
        }

    .xp-news-card p {
        color: #666666;
        font-size: 14px;
        line-height: 1.6;
        margin: 5px 0;
    }

/* More News */

.xp-latest-section {
    margin-top: 30px;
}

.xp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

    .xp-news-grid .xp-news-card {
        border: 1px solid var(--xp-border);
        padding: 18px;
        margin: 0;
    }

/* =========================================
   MOBILE MORE NEWS
   ========================================= */

/* =========================================
   FORCE MOBILE MORE NEWS - FINAL
   ========================================= */

@media screen and (max-width: 768px) {

    .xp-news-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        gap: 20px !important;
    }

        .xp-news-grid > .xp-news-card {
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
}

@media (max-width: 900px) {

    .xp-home-grid {
        grid-template-columns: 1fr;
    }

    .xp-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xp-hero-content h1 {
        font-size: 26px;
    }
}

@media (max-width: 600px) {

    .xp-news-grid {
        grid-template-columns: 1fr;
    }

    .xp-hero-content {
        padding: 18px;
    }

        .xp-hero-content h1 {
            font-size: 23px;
        }

    .xp-section-title h2 {
        font-size: 21px;
    }
}

.xp-hero-content h1:focus {
    outline: none;
}

/* =========================================
   News Images
   ========================================= */

.xp-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

    .xp-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.xp-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #999999;
    font-size: 28px;
    font-weight: 700;
}

.xp-news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 15px;
}

    .xp-news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .xp-news-card-image .xp-image-placeholder {
        min-height: 0;
        font-size: 22px;
    }

.xp-news-card-body {
    padding: 0;
}

.xp-admin-layout {
    min-height: 100vh;
    background: #f5f5f5;
}

.xp-admin-header {
    height: 64px;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.xp-admin-brand {
    font-size: 24px;
    font-weight: 700;
}

    .xp-admin-brand span {
        color: #e31b23;
        font-size: 15px;
        margin-left: 5px;
    }

.xp-admin-user {
    font-size: 14px;
}

.xp-admin-body {
    display: flex;
    min-height: calc(100vh - 64px);
}

.xp-admin-sidebar {
    width: 230px;
    background: #1f1f1f;
}

    .xp-admin-sidebar nav {
        display: flex;
        flex-direction: column;
    }

    .xp-admin-sidebar a {
        color: #dddddd;
        text-decoration: none;
        padding: 14px 20px;
        border-bottom: 1px solid #333333;
        font-size: 15px;
    }

        .xp-admin-sidebar a:hover {
            background: #333333;
            color: #ffffff;
        }

        .xp-admin-sidebar a.active {
            background: #e31b23;
            color: #ffffff;
        }

.xp-admin-divider {
    height: 20px;
}

.xp-admin-content {
    flex: 1;
    padding: 30px;
}

.xp-admin-page {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #dddddd;
}

    .xp-admin-page h1 {
        margin-top: 0;
    }


.xp-test-button {
    background: #e31b23;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

    .xp-test-button:hover {
        opacity: 0.9;
    }

    .xp-test-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


/* =========================================
   NEWS EDITOR
   ========================================= */

.xp-news-editor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.xp-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

    .xp-editor-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 700;
    }

.xp-editor-subtitle {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.xp-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xp-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.xp-editor-btn-primary {
    background: #111827;
    color: white;
}

.xp-editor-btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.xp-editor-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.xp-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 25px;
    align-items: start;
}

.xp-editor-main,
.xp-editor-sidebar {
    min-width: 0;
}

.xp-editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xp-editor-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.xp-editor-sidebar .xp-editor-card {
    margin-bottom: 0;
}

.xp-editor-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 700;
}

.xp-editor-card-body {
    padding: 20px;
}

.xp-form-group {
    margin-bottom: 20px;
}

    .xp-form-group:last-child {
        margin-bottom: 0;
    }

    .xp-form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }

.xp-form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
}

    .xp-form-control:focus {
        outline: none;
        border-color: #6b7280;
        box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.12);
    }

.xp-textarea-short {
    min-height: 110px;
    resize: vertical;
}

.xp-textarea-content {
    min-height: 500px;
    resize: vertical;
    line-height: 1.7;
}

.xp-featured-image {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
}

.xp-media-empty {
    padding: 25px 10px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
}

.xp-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.xp-image-item img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.xp-image-item div {
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.xp-video-item video {
    display: block;
    width: 100%;
    max-height: 250px;
    border-radius: 6px;
    background: #000;
}

.xp-video-title {
    margin-top: 7px;
    font-size: 13px;
    color: #4b5563;
}

.xp-editor-loading,
.xp-editor-error {
    padding: 30px;
}

@media (max-width: 1000px) {

    .xp-editor-grid {
        grid-template-columns: 1fr;
    }

    .xp-editor-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 700px) {

    .xp-news-editor {
        padding: 15px;
    }

    .xp-editor-header {
        flex-direction: column;
        align-items: stretch;
    }

    .xp-editor-actions {
        justify-content: flex-start;
    }

    .xp-editor-sidebar {
        display: flex;
    }

    .xp-image-grid {
        grid-template-columns: 1fr;
    }
}

.xp-image-featured {
    border: 2px solid #111827;
    border-radius: 8px;
    padding: 4px;
}

.xp-image-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
}

.xp-featured-label {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.xp-feature-button {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 12px;
    cursor: pointer;
}

    .xp-feature-button:hover {
        background: #f3f4f6;
    }


.xp-upload-area {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
}

.xp-upload-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.xp-upload-area input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.xp-upload-area small {
    color: #6b7280;
    font-size: 12px;
}

/* =========================================
   Admin News Table
   ========================================= */

.xp-admin-page .xp-news-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

    .xp-admin-page .xp-news-table th,
    .xp-admin-page .xp-news-table td {
        border: 1px solid #d9dee5;
        padding: 12px 14px;
        vertical-align: middle;
    }

    .xp-admin-page .xp-news-table th {
        background: #f3f4f6;
        color: #1f2937;
        font-weight: 600;
        white-space: nowrap;
    }

    .xp-admin-page .xp-news-table tbody tr:hover {
        background: #f8fafc;
    }

    .xp-admin-page .xp-news-table td {
        color: #374151;
    }

        .xp-admin-page .xp-news-table td:first-child {
            width: 70px;
            text-align: center;
        }

        .xp-admin-page .xp-news-table td:last-child {
            width: 90px;
            text-align: center;
        }

/* =========================================
   News Preview
   ========================================= */

.xp-news-preview {
    min-height: 100vh;
    padding: 40px 20px;
    background: #f5f6f8;
}

.xp-news-preview-article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
}

.xp-news-preview-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 10px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.xp-news-preview-article h1 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 1.25;
    color: #111827;
}

.xp-news-preview-description {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
}

.xp-news-preview-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #6b7280;
}

.xp-news-preview-featured {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 6px;
}

.xp-news-preview-content {
    font-size: 18px;
    line-height: 1.9;
    color: #1f2937;
    white-space: pre-wrap;
}

.xp-news-preview-images,
.xp-news-preview-videos {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

    .xp-news-preview-images h3,
    .xp-news-preview-videos h3 {
        margin-bottom: 20px;
    }

.xp-news-preview-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

    .xp-news-preview-image-grid img {
        width: 100%;
        display: block;
        border-radius: 6px;
    }

.xp-news-preview-video {
    margin-bottom: 30px;
}

    .xp-news-preview-video video {
        width: 100%;
        max-height: 550px;
        display: block;
        background: #000;
        border-radius: 6px;
    }

.xp-news-preview-video-title {
    margin-top: 8px;
    font-weight: 600;
}

.xp-news-preview-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {

    .xp-news-preview {
        padding: 15px;
    }

    .xp-news-preview-article {
        padding: 20px;
    }

        .xp-news-preview-article h1 {
            font-size: 28px;
        }

    .xp-news-preview-content {
        font-size: 17px;
    }

    .xp-news-preview-image-grid {
        grid-template-columns: 1fr;
    }
}

.xp-top-ad {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto 30px;
    overflow: hidden;
}

.xp-top-ad-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {

    .xp-top-ad {
        width: calc(100% - 20px);
        margin: 12px auto 22px;
    }

    .xp-top-ad-image {
        width: 100%;
        height: auto;
    }
}

/* More News */

.xp-latest-section {
    margin-top: 30px;
}

.xp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

    .xp-news-grid .xp-news-card {
        min-width: 0;
        border: 1px solid var(--xp-border);
        padding: 18px;
        margin: 0;
        overflow: hidden;
    }

.xp-card-image {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 15px;
}

.nav-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
}



/* =========================================
   xPress24 PRODUCTION HEADER
   ========================================= */

.xpress24-header {
    background: #ffffff;
    border-bottom: 1px solid var(--xp-border);
}

.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */

.xpress24-logo {
    display: inline-flex;
    align-items: center;
    font-size: 42px;
    font-weight: 800;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
}

.logo-x {
    color: var(--xp-red);
}

.logo-24 {
    color: var(--xp-red);
}

/* Tagline */

.header-tagline {
    margin-left: auto;
    font-size: 18px;
    color: #555555;
    white-space: nowrap;
}

/* Navigation */

.xpress24-nav {
    background: var(--xp-black);
    color: #ffffff;
}

.nav-inner {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    overflow: visible;
}

    .nav-inner > a {
        display: flex;
        align-items: center;
        padding: 0 16px;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        font-size: 15px;
        transition: background 0.2s ease;
    }

        .nav-inner > a:hover {
            background: var(--xp-red);
        }

.nav-home {
    background: var(--xp-red);
}

/* More */

.nav-more {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 10000;
}

.nav-more-toggle {
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

    .nav-more-toggle:hover,
    .nav-more-toggle:focus {
        background: var(--xp-red);
    }

.nav-more-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 200px;
    background: var(--xp-black);
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

    .nav-more-menu a {
        display: block;
        padding: 12px 18px;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        font-size: 15px;
    }

        .nav-more-menu a:hover {
            background: var(--xp-red);
        }

/* Outside-click layer */

.nav-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
}

/* Mobile menu button */

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #111111;
}

/* =========================================
   MOBILE HEADER
   ========================================= */

@media (max-width: 768px) {

    .header-inner {
        min-height: 70px;
        padding: 0 15px;
    }

    .xpress24-logo {
        font-size: 30px;
    }

    .header-tagline {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .xpress24-nav {
        display: none;
    }
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20000;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--xp-black);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

    .mobile-menu-header button {
        border: none;
        background: transparent;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
    }

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

    .mobile-menu-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--xp-border);
        color: #222222;
        text-decoration: none;
        font-size: 16px;
    }

        .mobile-menu-links a:hover {
            background: var(--xp-red);
            color: #ffffff;
        }

/* Desktop - mobile menu hidden */

@media (min-width: 769px) {

    .mobile-menu-backdrop {
        display: none;
    }
}

/* Mobile */

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }
}

/* Breaking News Items */

.breaking-text {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    padding-right: 22px;
    margin-right: 22px;
}

    /* Divider between headlines */

    .breaking-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 1px;
        height: 20px;
        background: rgba(255, 255, 255, 0.45);
        transform: translateY(-50%);
    }

/* Continuous movement */

@keyframes breakingTicker {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when mouse is over ticker */

.breaking-track:hover {
    animation-play-state: paused;
}

/* Mobile */

@media (max-width: 768px) {

    .breaking-track {
        animation-duration: 28s;
    }

    .breaking-item {
        padding-right: 16px;
        margin-right: 16px;
    }

        .breaking-item:not(:last-child)::after {
            height: 18px;
        }
}

/* =========================================
   MOBILE NAV BAR
   ========================================= */

.mobile-nav-bar {
    display: none;
}

.mobile-nav-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {

    .mobile-nav-bar {
        display: block;
        background: var(--xp-black);
    }

    .mobile-menu-toggle {
        border: none;
        background: transparent;
        color: #ffffff;
        font-size: 28px;
        line-height: 1;
        padding: 5px 10px;
        cursor: pointer;
    }

        .mobile-menu-toggle:hover {
            color: var(--xp-red);
        }
}

/* =========================================
   TRENDING NEWS
   ========================================= */

.xp-trending-section {
    margin-top: 40px;
}

.xp-trending-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.xp-trending-item {
    border: 1px solid var(--xp-border);
    background: #ffffff;
    overflow: hidden;
}

.xp-trending-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.xp-trending-content {
    padding: 15px;
}

    .xp-trending-content h3 {
        margin: 8px 0 10px;
        font-size: 18px;
        line-height: 1.45;
    }

        .xp-trending-content h3 a {
            color: #111111;
            text-decoration: none;
        }

            .xp-trending-content h3 a:hover {
                color: var(--xp-red);
            }

@media (max-width: 768px) {

    .xp-trending-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .xp-trending-item {
        display: flex;
    }

    .xp-trending-image {
        width: 120px;
        min-width: 120px;
        aspect-ratio: 1 / 1;
    }

    .xp-trending-content {
        padding: 12px;
    }

        .xp-trending-content h3 {
            margin: 5px 0 8px;
            font-size: 16px;
        }
}

/* =========================================
   PUBLIC NEWS DETAIL
   ========================================= */

.xp-news-detail {
    max-width: 1000px;
    margin: 30px auto 50px;
    background: #ffffff;
}

    .xp-news-detail h1 {
        margin: 8px 0 12px;
        font-size: 38px;
        line-height: 1.35;
        color: #111111;
    }

.xp-news-detail-date {
    color: #888888;
    font-size: 13px;
    margin-bottom: 25px;
}

.xp-news-detail-image {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: 25px;
}

.xp-news-detail-description {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 600;
    color: #555555;
    margin-bottom: 25px;
}

.xp-news-detail-content {
    font-size: 18px;
    line-height: 1.9;
    color: #222222;
    white-space: pre-wrap;
}

.xp-news-not-found {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
}

    .xp-news-not-found h2 {
        margin-bottom: 10px;
    }

    .xp-news-not-found p {
        color: #666666;
        margin-bottom: 20px;
    }

    .xp-news-not-found a {
        color: var(--xp-red);
        text-decoration: none;
    }

@media (max-width: 768px) {

    .xp-news-detail {
        margin: 20px auto 35px;
    }

        .xp-news-detail h1 {
            font-size: 27px;
            line-height: 1.4;
        }

    .xp-news-detail-description {
        font-size: 17px;
    }

    .xp-news-detail-content {
        font-size: 17px;
        line-height: 1.85;
    }
}

/* =========================================
   STICKY MAIN NAVIGATION
   ========================================= */

.xpress24-nav {
    position: sticky;
    top: 0;
    z-index: 15000;
}

/* =========================================
   News Detail Videos
   ========================================= */

.xp-news-detail-videos {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--xp-border);
}

.xp-news-detail-video-title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #111111;
}

.xp-news-detail-video {
    margin-bottom: 30px;
}

    .xp-news-detail-video h3 {
        margin: 0 0 12px;
        font-size: 20px;
        color: #222222;
    }

.xp-news-detail-player {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #000000;
    border-radius: 4px;
}

.xp-news-detail-video-description {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
}

@media (max-width: 768px) {

    .xp-news-detail-videos {
        margin-top: 25px;
        padding-top: 20px;
    }

    .xp-news-detail-video-title {
        font-size: 21px;
    }

    .xp-news-detail-video h3 {
        font-size: 18px;
    }

    .xp-news-detail-player {
        width: 100%;
        border-radius: 3px;
    }
}

/* =========================================
   More News - Compact 3 x 5 Grid
   ========================================= */

.xp-more-news-section {
    margin-top: 35px;
    margin-bottom: 40px;
}



.xp-more-news-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .xp-more-news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }


.xp-more-news-image-wrap {
    flex: 0 0 135px;
    width: 135px;
    overflow: hidden;
}

.xp-more-news-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
}

.xp-more-news-content {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.xp-more-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.xp-more-news-category {
    display: inline-block;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--xp-red);
    font-size: 13px;
    font-weight: 600;
}

.xp-more-news-time {
    flex-shrink: 0;
    color: #777777;
    font-size: 12px;
}

.xp-more-news-title {
    margin: 0;
    color: #0876d1;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xp-more-news-description {
    margin: 7px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xp-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 5px;
    border-radius: 50%;
    background: #ff2b7a;
    color: #ffffff;
    font-size: 10px;
    vertical-align: middle;
}


/* =========================================
   Tablet
   ========================================= */



/* =========================================
   Mobile
   ========================================= */

@media (max-width: 768px) {

    .xp-more-news-section {
        margin-top: 25px;
    }


    

    .xp-more-news-image-wrap {
        flex: 0 0 115px;
        width: 115px;
    }

    .xp-more-news-image {
        min-height: 120px;
    }

    .xp-more-news-content {
        padding: 10px 12px;
    }

    .xp-more-news-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .xp-more-news-description {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* =========================================
   COMPACT MORE NEWS - FINAL OVERRIDE
   ========================================= */



.xp-more-news-card {
    min-width: 0 !important;
    height: auto !important;
    align-self: start !important;
}


.xp-more-news-card.xp-no-image .xp-more-news-content {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Smaller compact card */

.xp-more-news-content {
    padding: 9px 12px !important;
}

.xp-more-news-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.xp-more-news-description {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.xp-more-news-meta {
    margin-bottom: 3px !important;
}

/* =========================================================
   xPress24 - More News
   Compact Uniform 3 x 5 Grid
   ========================================================= */

.xp-more-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 150px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.xp-more-news-card {
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xp-more-news-link {
    display: flex !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    overflow: hidden !important;
    text-decoration: none;
    color: inherit;
}

/* -------------------------
   Image
   ------------------------- */

.xp-more-news-image-wrap {
    flex: 0 0 135px !important;
    width: 135px !important;
    height: 150px !important;
    overflow: hidden !important;
}

.xp-more-news-image {
    display: block !important;
    width: 135px !important;
    height: 150px !important;
    object-fit: cover !important;
}

/* -------------------------
   Content
   ------------------------- */

.xp-more-news-content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 150px !important;
    min-height: 150px !important;
    padding: 9px 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* -------------------------
   Meta
   ------------------------- */

.xp-more-news-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 20px !important;
    margin-bottom: 3px !important;
}

.xp-more-news-category {
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--xp-red);
    font-size: 13px;
    font-weight: 600;
}

.xp-more-news-time {
    flex-shrink: 0;
    color: #777777;
    font-size: 12px;
}

/* -------------------------
   Headline
   ------------------------- */

.xp-more-news-title {
    margin: 0 !important;
    color: #0876d1;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* -------------------------
   Short Description
   ------------------------- */

.xp-more-news-description {
    margin: 5px 0 0 !important;
    color: #666666;
    font-size: 13px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    overflow: hidden !important;
}

/* -------------------------
   Video icon
   ------------------------- */

.xp-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-left: 5px;
    border-radius: 50%;
    background: #ff2b7a;
    color: #ffffff;
    font-size: 9px;
    vertical-align: middle;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1000px) {

    .xp-more-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .xp-more-news-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 125px !important;
        gap: 12px !important;
    }

    .xp-more-news-card {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }

    .xp-more-news-link {
        height: 125px !important;
        min-height: 125px !important;
    }

    .xp-more-news-image-wrap {
        flex: 0 0 110px !important;
        width: 110px !important;
        height: 125px !important;
    }

    .xp-more-news-image {
        width: 110px !important;
        height: 125px !important;
    }

    .xp-more-news-content {
        height: 125px !important;
        min-height: 125px !important;
        padding: 8px 10px !important;
    }

    .xp-more-news-title {
        font-size: 16px !important;
    }

    .xp-more-news-description {
        font-size: 12px !important;
    }
}

.xp-news-placeholder {
    flex: 0 0 135px !important;
    width: 135px !important;
    height: 150px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #9aa0a6;
    font-size: 38px;
}

/* =========================================================
   VIDEO NEWS - COMPACT 3 x 5 GRID
   ========================================================= */

.xp-video-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.xp-video-news-card {
    width: 100%;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xp-video-news-link {
    display: flex;
    width: 100%;
    height: 150px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

/* --------------------------------
   Thumbnail
   -------------------------------- */

.xp-video-news-image-wrap {
    position: relative;
    flex: 0 0 135px;
    width: 135px;
    height: 150px;
    overflow: hidden;
    background: #f1f3f5;
}

.xp-video-news-image {
    display: block;
    width: 135px;
    height: 150px;
    object-fit: cover;
}

/* --------------------------------
   Placeholder
   -------------------------------- */

.xp-video-news-placeholder {
    width: 135px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #aaa;
    font-size: 36px;
}

/* --------------------------------
   Play Button
   -------------------------------- */

.xp-video-news-play {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 15px;
    z-index: 2;
}

/* --------------------------------
   Content
   -------------------------------- */

.xp-video-news-content {
    flex: 1 1 auto;
    min-width: 0;
    height: 150px;
    padding: 9px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Category */

.xp-video-news-category {
    margin-bottom: 3px;
    color: var(--xp-red);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Title */

.xp-video-news-content h3 {
    margin: 0;
    color: #0876d1;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Description */

.xp-video-news-content p {
    margin: 5px 0 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

/* Date */

.xp-video-news-time {
    margin-top: 5px;
    color: #777777;
    font-size: 12px;
}

/* --------------------------------
   Hover
   -------------------------------- */

.xp-video-news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .xp-video-news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    }

        .xp-video-news-card:hover .xp-video-news-play {
            background: var(--xp-red) !important;
        }

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .xp-video-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .xp-video-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .xp-video-news-card {
        height: 125px;
        min-height: 125px;
        max-height: 125px;
    }

    .xp-video-news-link {
        height: 125px;
    }

    .xp-video-news-image-wrap {
        flex: 0 0 110px;
        width: 110px;
        height: 125px;
    }

    .xp-video-news-image {
        width: 110px;
        height: 125px;
    }

    .xp-video-news-placeholder {
        width: 110px;
        height: 125px;
    }

    .xp-video-news-content {
        height: 125px;
        padding: 8px 10px;
    }

        .xp-video-news-content h3 {
            font-size: 16px;
        }

        .xp-video-news-content p {
            font-size: 12px;
        }
}

.xp-trending-section {
    margin-bottom: 40px !important;
}

.xp-video-news-section {
    margin-top: 0 !important;
}

.xp-video-news-video {
    display: block;
    width: 135px;
    height: 150px;
    object-fit: cover;
    background: #111111;
}

@media (max-width: 768px) {
    .xp-video-news-video {
        width: 110px;
        height: 125px;
    }
}

/* =========================================================
   CATEGORY NEWS SECTIONS
   ========================================================= */

.xp-category-news-section {
    margin: 40px 0;
}

    /* Section heading */

    .xp-category-news-section .xp-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #222;
    }

        .xp-category-news-section .xp-section-title h2 {
            margin: 0;
            padding-left: 12px;
            border-left: 5px solid var(--xp-red);
            color: #111111;
            font-size: 28px;
            line-height: 1.3;
        }

.xp-section-more {
    color: var(--xp-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .xp-section-more:hover {
        text-decoration: underline;
    }

/* 3-column category grid */

.xp-category-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Card */

.xp-category-news-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .xp-category-news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    }

.xp-category-news-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Image */

.xp-category-news-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

/* Content */

.xp-category-news-content {
    padding: 12px 14px 14px;
}

    .xp-category-news-content .xp-news-source {
        margin-bottom: 5px;
        color: var(--xp-red);
        font-size: 14px;
        font-weight: 600;
    }

    .xp-category-news-content h3 {
        margin: 0;
        color: #111111;
        font-size: 19px;
        line-height: 1.4;
        font-weight: 700;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .xp-category-news-content p {
        margin: 7px 0 0;
        color: #666666;
        font-size: 14px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .xp-category-news-content .xp-news-date {
        margin-top: 8px;
        color: #888888;
        font-size: 12px;
    }

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .xp-category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .xp-category-news-section {
        margin: 30px 0;
    }

        .xp-category-news-section .xp-section-title h2 {
            font-size: 23px;
        }

    .xp-category-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .xp-category-news-image {
        height: 190px;
    }

    .xp-category-news-content h3 {
        font-size: 18px;
    }
}

.xp-category-news-image,
.xp-category-news-image-placeholder {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.xp-category-news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #aaa;
    font-size: 38px;
}

.xp-category-news-grid {
    align-items: stretch;
}

.xp-category-news-card {
    height: 100%;
}

.xp-category-news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.xp-category-news-content {
    flex: 1;
}

/* =========================================
   SIDEBAR
   ========================================= */

.xp-sidebar {
    width: 100%;
}

.xp-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--xp-border);
    margin-bottom: 20px;
}

.xp-sidebar-title {
    background: var(--xp-black);
    color: #ffffff;
    padding: 12px 15px;
}

    .xp-sidebar-title h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

.xp-sidebar-list {
    display: flex;
    flex-direction: column;
}

.xp-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--xp-border);
}

    .xp-sidebar-item:last-child {
        border-bottom: none;
    }

.xp-sidebar-number {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    border-radius: 50%;
    color: var(--xp-red);
    font-size: 13px;
}

.xp-sidebar-item a {
    color: #222222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

    .xp-sidebar-item a:hover {
        color: var(--xp-red);
    }


/* Advertisement */

.xp-sidebar-ad {
    margin-bottom: 20px;
}

.xp-sidebar-ad-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #cccccc;
    background: #fafafa;
    color: #999999;
    font-size: 13px;
}


/* Quick Links */

.xp-sidebar-links {
    display: flex;
    flex-direction: column;
}

    .xp-sidebar-links a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--xp-border);
        color: #333333;
        text-decoration: none;
        font-size: 14px;
    }

        .xp-sidebar-links a:last-child {
            border-bottom: none;
        }

        .xp-sidebar-links a:hover {
            color: var(--xp-red);
        }


/* =========================================
   HOME PAGE + SIDEBAR LAYOUT
   ========================================= */

.xp-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.xp-home-main {
    min-width: 0;
}

.xp-home-sidebar {
    min-width: 0;
}


/* Mobile */

@media screen and (max-width: 992px) {

    .xp-home-layout {
        grid-template-columns: 1fr;
    }

    .xp-home-sidebar {
        width: 100%;
    }
}

.xp-sidebar-empty {
    padding: 15px;
    color: #888888;
    font-size: 14px;
}

/* =========================================
   Sidebar Advertisement
   ========================================= */

.xp-sidebar-ad {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.xp-sidebar-ad-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   CATEGORY PAGE
   ========================================= */

.xp-category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.xp-category-page-header {
    margin-bottom: 25px;
}

    .xp-category-page-header h1 {
        margin: 0;
        padding-left: 12px;
        border-left: 5px solid var(--xp-red);
        color: #111;
        font-size: 32px;
        line-height: 1.3;
    }

.xp-category-page-line {
    margin-top: 10px;
    border-bottom: 2px solid #222;
}

.xp-category-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1000px) {
    .xp-category-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .xp-category-page {
        padding: 20px 10px 40px;
    }

    .xp-category-page-header h1 {
        font-size: 25px;
    }

    .xp-category-page-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.xp-category-load-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.xp-category-load-more-button {
    min-width: 150px;
    padding: 11px 28px;
    border: none;
    border-radius: 4px;
    background: var(--xp-red);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .xp-category-load-more-button:hover {
        background: #b9151c;
    }

    .xp-category-load-more-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* =========================================
   CATEGORY PAGE COMPACT CARDS
   ========================================= */

.xp-category-page-card {
    min-width: 0;
    background: #ffffff;
    border-bottom: 1px solid #dddddd;
    overflow: hidden;
}

.xp-category-page-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.xp-category-page-card-image,
.xp-category-page-card-placeholder {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.xp-category-page-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #aaa;
    font-size: 38px;
}

.xp-category-page-card-content {
    padding: 10px 0 14px;
}

.xp-category-page-card-category {
    margin-bottom: 6px;
    color: var(--xp-red);
    font-size: 14px;
    font-weight: 600;
}

.xp-category-page-card-title {
    margin: 0;
    color: #111111;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.xp-category-page-card-description {
    margin: 7px 0 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.xp-category-page-card-date {
    margin-top: 8px;
    color: #888888;
    font-size: 12px;
}

.xp-category-page-card-link:hover
.xp-category-page-card-title {
    color: var(--xp-red);
}

@media (max-width: 768px) {

    .xp-category-page-card-image,
    .xp-category-page-card-placeholder {
        height: 190px;
    }

    .xp-category-page-card-title {
        font-size: 18px;
    }

    .xp-category-page-card-description {
        font-size: 13px;
    }
}

.xp-hero-video-media {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .xp-hero-video-media .xp-hero-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.xp-hero-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    background: #111111;
}

.xp-hero-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ffffff;
    color: #ffffff;
    font-size: 25px;
    pointer-events: none;
}


.xp-hero-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: auto;
    min-height: 0;
    align-self: flex-start;
    padding: 5px 10px;
    background: #dc1824;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 4px;
    z-index: 2;
}


.xp-admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.xp-admin-logout-form {
    margin: 0;
}

.xp-admin-logout-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .xp-admin-logout-button:hover {
        background: var(--xp-red);
        border-color: var(--xp-red);
    }




/* =========================================================
   xPress24 FOOTER
   ========================================================= */

.xpress24-footer {
    background: #111827;
    color: #ffffff;
    margin-top: 60px;
    width: 100%;
}

.xpress24-footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 24px 18px;
    box-sizing: border-box;
}


/* =========================================================
   FOOTER GRID
   ========================================================= */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 45px;
}


/* =========================================================
   BRAND
   ========================================================= */

.footer-brand-section {
    min-width: 0;
}

.footer-logo {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

/*.logo-x {
    color: #ffffff;
}*/

.logo-24 {
    color: #ef4444;
}

.footer-tagline {
    margin: 10px 0 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #f3f4f6;
}

.footer-description {
    width: 100%;
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .footer-column h4 {
        margin: 0 0 17px;
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }

    .footer-column a {
        display: block;
        margin-bottom: 10px;
        color: #9ca3af;
        text-decoration: none;
        font-size: 13px;
        line-height: 1.5;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer-column a:hover {
            color: #ffffff;
            transform: translateX(2px);
        }


/* =========================================================
   CONTACT
   ========================================================= */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .footer-contact h4 {
        margin: 0 0 18px;
    }

    .footer-contact a {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

        .footer-contact a:last-child {
            width: 280px;
            max-width: 100%;
            margin: 0 auto;
            line-height: 1.6;
        }

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    width: 100%;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .xpress24-footer-container {
        padding: 40px 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 600px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .xpress24-footer {
        margin-top: 40px;
    }

    .xpress24-footer-container {
        padding: 35px 20px 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 28px;
    }

    .footer-tagline {
        font-size: 15px;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.65;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-column a {
        font-size: 12.5px;
        margin-bottom: 9px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

        .footer-contact a {
            max-width: 100%;
        }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 15px;
    }

    .footer-copyright {
        font-size: 11px;
        max-width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .xpress24-footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand-section,
    .footer-contact {
        grid-column: auto;
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-bottom {
        margin-top: 25px;
    }

    .footer-copyright {
        font-size: 10.5px;
    }
}

<style >
/* ================================================================
       PAGE
       ================================================================ */
.contact-page {
    background: #ffffff;
    color: #171717;
    min-height: 100vh;
}


/* ================================================================
       HERO
       ================================================================ */

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 24px 80px;
    background: radial-gradient( circle at 85% 20%, rgba(220, 38, 38, 0.16), transparent 32% ), linear-gradient( 135deg, #0b1020 0%, #111827 55%, #1f2937 100% );
}

.contact-hero-content {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 30px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.06);
    font-size: 13px;
    letter-spacing: .3px;
}

    .contact-badge span {
        color: #ef4444;
        font-size: 10px;
    }

.contact-hero h1 {
    margin: 25px 0 15px;
    color: white;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 800;
}

    .contact-hero h1 span {
        color: #ef4444;
    }

.contact-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.70);
    font-size: 18px;
    line-height: 1.7;
}


/* ================================================================
       CONTACT SECTION
       ================================================================ */

.contact-section {
    padding: 80px 24px;
    background: #f8fafc;
}

.contact-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 55px;
}


/* ================================================================
       HEADING
       ================================================================ */

.section-heading {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
}

.heading-line {
    width: 4px;
    min-height: 55px;
    border-radius: 4px;
    background: #ef4444;
}

.section-heading small {
    display: block;
    margin-bottom: 5px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}


/* ================================================================
       CONTACT CARDS
       ================================================================ */

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .contact-card:hover {
        transform: translateY(-2px);
        border-color: #fecaca;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    }

.contact-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #dc2626;
    background: #fef2f2;
    font-size: 23px;
    font-weight: 700;
}

.contact-card-content {
    min-width: 0;
    flex: 1;
}

.contact-label {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-description {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.contact-arrow {
    color: #9ca3af;
    font-size: 20px;
}


/* ================================================================
       RIGHT SIDE
       ================================================================ */

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-message-card {
    padding: 35px;
    color: white;
    background: radial-gradient( circle at 90% 10%, rgba(239, 68, 68, .25), transparent 35% ), linear-gradient( 145deg, #111827, #0f172a );
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .15);
}

.message-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #ef4444;
    font-size: 18px;
    font-weight: 900;
}

.contact-message-card h2 {
    margin: 22px 0 3px;
    font-size: 28px;
    font-weight: 800;
}

.message-subtitle {
    margin: 0;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
}

.message-divider {
    width: 55px;
    height: 3px;
    margin: 25px 0;
    background: #ef4444;
    border-radius: 10px;
}

.contact-message-card > p:not(.message-subtitle) {
    margin: 0 0 15px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.7;
}


/* ================================================================
       MAP
       ================================================================ */

.map-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient( 135deg, #e5e7eb, #f8fafc );
    border: 1px solid #e5e7eb;
}

.map-placeholder {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 25px;
    background: linear-gradient( 135deg, rgba(255,255,255,.8), rgba(241,245,249,.95) );
}

.map-pin {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: #dc2626;
    font-size: 28px;
}

.map-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .map-text strong {
        color: #111827;
        font-size: 18px;
    }

    .map-text span {
        color: #6b7280;
        font-size: 13px;
    }

    .map-text small {
        margin-top: 6px;
        color: #dc2626;
        font-size: 12px;
        font-weight: 700;
    }


/* ================================================================
       BOTTOM
       ================================================================ */

.contact-bottom {
    padding: 70px 24px;
    text-align: center;
    background: white;
}

.contact-bottom-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-bottom h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
}

.contact-bottom p {
    margin: 0 0 25px;
    color: #6b7280;
    font-size: 15px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    color: white;
    background: #dc2626;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

    .contact-button:hover {
        color: white;
        background: #b91c1c;
        transform: translateY(-2px);
    }


/* ================================================================
       MOBILE
       ================================================================ */

@@media (max-width: 800px) {

    .contact-hero {
        padding: 65px 20px 60px;
    }

        .contact-hero h1 {
            letter-spacing: -2px;
        }

        .contact-hero p {
            font-size: 16px;
        }

    .contact-section {
        padding: 55px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-message-card {
        padding: 28px;
    }
}


.xp-hero-carousel {
    width: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
}

.xp-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171717;
}

.xp-hero-image,
.xp-hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Black overlay with 80% opacity */
.xp-hero-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.6);
}

    /* Smaller white Telugu headline */
    .xp-hero-title-overlay h1 {
        color: #fff;
        font-size: clamp(16px, 1.5vw, 22px);
        line-height: 1.4;
        font-weight: 700;
        margin: 0;
    }

.xp-hero-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d71920;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
}

.xp-hero-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

    .xp-hero-carousel-controls > button {
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 18px;
    }

.xp-hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .xp-hero-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
    }

        .xp-hero-dots button.active {
            background: #d71920;
        }

.xp-hero-counter {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.xp-hero-description {
    padding: 14px 16px;
    border-top: 1px solid #eee;
}

.xp-hero-read-more {
    display: inline-block;
    color: #d71920;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
}

/* Smaller headline on mobile */
@media (max-width: 576px) {
    .xp-hero-title-overlay {
        padding: 8px 10px;
    }

        .xp-hero-title-overlay h1 {
            font-size: 16px;
            line-height: 1.35;
        }
}


.xp-home-inline-ad {
    width: 100%;
    margin: 22px 0;
    padding: 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    box-sizing: border-box;
}

.xp-home-inline-ad-label {
    margin-bottom: 8px;
    color: #777;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-home-inline-ad img {
    display: block;
    width: 100%;
    height: auto;
}

.xp-home-inline-ad a {
    display: block;
    text-decoration: none;
}

@media (max-width: 576px) {
    .xp-home-inline-ad {
        margin: 14px 0;
        padding: 8px;
    }
}

.xp-hero-small-ad {
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

    .xp-hero-small-ad > span {
        display: block;
        margin-bottom: 5px;
        color: #777;
        font-size: 10px;
        text-align: center;
    }

    .xp-hero-small-ad img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Remove borders and outlines from all H1 headings globally */
h1 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

    h1::before,
    h1::after {
        border: none !important;
        box-shadow: none !important;
        content: none !important;
    }


.election-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.election-stat-card {
    padding: 18px 20px;
    border-radius: 10px;
    color: #fff;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.election-stat-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.election-stat-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .election-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .election-stat-card {
        padding: 12px;
        min-height: 80px;
    }

    .election-stat-value {
        font-size: 28px;
    }
}


/* Election broadcast page only */
.election-broadcast-layout {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #8f0717;
    color: #fff;
    overflow: hidden;
}

.election-screen {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    padding: 18px 24px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #a10d20, #650713);
    box-sizing: border-box;
}

    .election-screen *,
    .election-screen *::before,
    .election-screen *::after {
        box-sizing: border-box;
    }

.election-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
}

.brand-name {
    font-size: 30px;
    font-weight: 900;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.election-heading {
    text-align: center;
}

    .election-heading h1 {
        margin: 0;
        color: #fff;
        border: none !important;
        box-shadow: none !important;
        font-size: clamp(22px, 2.2vw, 36px);
        font-weight: 900;
    }

    .election-heading div {
        margin-top: 4px;
        font-size: 14px;
    }

.live-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 20px;
    font-weight: 900;
}

    .live-indicator small {
        font-size: 13px;
        font-weight: 500;
    }

.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #ff3b50;
    border-radius: 50%;
}

.election-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.election-stat-card {
    min-height: 86px;
    padding: 12px 18px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.election-stat-title {
    font-size: 14px;
    font-weight: 800;
}

.election-stat-value {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    margin-top: 5px;
}

.election-main {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

.election-panel {
    background: #f5f5f5;
    color: #161616;
    min-height: 0;
    overflow: hidden;
    border: 2px solid #dedede;
}

    .election-panel h2 {
        margin: 0;
        padding: 12px;
        background: #132d75;
        color: white;
        font-size: 17px;
        border: none;
    }

.ward-panel {
    overflow-y: auto;
}

.ward-row {
    padding: 10px;
    border-bottom: 2px solid #d5d5d5;
    background: white;
}

.ward-title {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
}

    .ward-title span {
        color: #555;
    }

.ward-candidate {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.result-won {
    color: #13733c;
}

.result-counting {
    color: #a85a00;
}

.result-pending {
    color: #555;
}

.election-centre {
    background: #241e2a;
    border: 3px solid white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.centre-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.centre-logo {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 70px);
    font-weight: 900;
    color: #fff;
}

.election-centre h2 {
    font-size: clamp(24px, 3vw, 42px);
    margin: 10px 0;
    border: none;
}

.election-centre p {
    margin: 0;
}

.party-summary {
    width: 100%;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.party-tile {
    background: var(--party-color);
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

    .party-tile strong {
        font-size: 17px;
    }

    .party-tile span {
        font-size: 30px;
        font-weight: 900;
    }

    .party-tile small {
        font-size: 11px;
        overflow-wrap: anywhere;
    }

.party-panel {
    overflow-y: auto;
}

.party-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-bottom: 1px solid #ddd;
}

.party-swatch {
    width: 8px;
    height: 36px;
}

.party-row strong,
.party-row small {
    display: block;
    overflow-wrap: anywhere;
}

.party-row small {
    font-size: 11px;
    color: #555;
}

.party-row b {
    font-size: 24px;
}

.empty-state {
    padding: 12px;
}

.election-footer {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: #102e77;
    padding: 10px 14px;
    overflow: hidden;
}

    .election-footer strong {
        font-size: 18px;
    }

    .election-footer span {
        font-size: 16px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .election-footer small {
        font-size: 12px;
        white-space: nowrap;
    }

@media (max-width: 900px) {
    .election-screen {
        width: 100%;
        height: 100vh;
        min-height: 600px;
        overflow: hidden;
    }

    .election-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr);
        overflow: hidden;
        min-width: 0;
    }

    .election-centre.chroma-key-area {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: auto;
        align-self: stretch;
        background: #00ff00 !important;
    }

    .election-panel {
        min-width: 0;
        max-height: none;
        overflow: hidden;
    }

    .election-footer {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}


/* =========================================
   xPress24 Election Admin
   ========================================= */

.xp-election-admin {
    --election-red: #e71926;
    --election-dark: #151515;
    --election-border: #e2e5e9;
    --election-muted: #667085;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px;
    color: #20242b;
    font-family: Arial, sans-serif;
}

    .xp-election-admin h1 {
        font-size: 30px;
        font-weight: 800;
        margin: 0 0 10px;
        border: none !important;
        box-shadow: none !important;
    }

    .xp-election-admin h2 {
        font-size: 20px;
        font-weight: 750;
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--election-border);
    }

    .xp-election-admin h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 22px 0 12px;
    }

    .xp-election-admin p {
        line-height: 1.6;
    }

    .xp-election-admin a {
        color: #d71925;
        text-decoration: none;
        font-weight: 600;
    }

        .xp-election-admin a:hover {
            text-decoration: underline;
        }

    /* Main sections */
    .xp-election-admin section {
        background: #fff;
        border: 1px solid var(--election-border);
        border-radius: 10px;
        padding: 22px;
        margin: 18px 0;
        box-shadow: 0 2px 8px rgb(16 24 40 / 4%);
    }

    /* Inputs and dropdowns */
    .xp-election-admin input:not([type="checkbox"]):not([type="radio"]),
    .xp-election-admin select,
    .xp-election-admin textarea {
        max-width: 100%;
        min-height: 40px;
        padding: 9px 12px;
        border: 1px solid #cfd4dc;
        border-radius: 6px;
        background: #fff;
        color: #20242b;
        font: inherit;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
    }

        .xp-election-admin input:focus,
        .xp-election-admin select:focus,
        .xp-election-admin textarea:focus {
            border-color: var(--election-red);
            box-shadow: 0 0 0 3px rgb(231 25 38 / 12%);
        }

    /* Labels */
    .xp-election-admin label {
        display: inline-block;
        margin: 0 0 6px;
        color: #343a40;
        font-size: 13px;
        font-weight: 700;
    }

    /* Buttons */
    .xp-election-admin button {
        min-height: 38px;
        padding: 9px 16px;
        margin: 4px 6px 4px 0;
        border: 1px solid #d0d5dd;
        border-radius: 6px;
        background: #fff;
        color: #343a40;
        font-weight: 700;
        cursor: pointer;
        transition: background .15s, transform .15s;
    }

        .xp-election-admin button:hover:not(:disabled) {
            background: #f2f4f7;
        }

        .xp-election-admin button:active:not(:disabled) {
            transform: translateY(1px);
        }

        .xp-election-admin button:disabled {
            opacity: .55;
            cursor: not-allowed;
        }

        /* Primary action buttons */
        .xp-election-admin button[type="submit"],
        .xp-election-admin .btn-primary,
        .xp-election-admin .xp-btn-primary {
            background: var(--election-red);
            border-color: var(--election-red);
            color: #fff;
        }

            .xp-election-admin button[type="submit"]:hover:not(:disabled),
            .xp-election-admin .btn-primary:hover:not(:disabled),
            .xp-election-admin .xp-btn-primary:hover:not(:disabled) {
                background: #c9111d;
                color: #fff;
            }

    /* Lists */
    .xp-election-admin ul {
        padding-left: 22px;
    }

    .xp-election-admin li {
        padding: 7px 0;
        line-height: 1.5;
    }

    /* Tables, if used for candidates and votes */
    .xp-election-admin table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 12px;
    }

    .xp-election-admin th,
    .xp-election-admin td {
        padding: 12px;
        border-bottom: 1px solid var(--election-border);
        text-align: left;
    }

    .xp-election-admin th {
        background: #f6f7f9;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    .xp-election-admin tr:hover td {
        background: #fafafa;
    }

    /* Feedback messages */
    .xp-election-admin .validation-message {
        color: #c62828;
        font-size: 13px;
    }

    .xp-election-admin .validation-summary-errors {
        padding: 12px 16px;
        border: 1px solid #f3b7bb;
        border-radius: 6px;
        background: #fff0f1;
        color: #a20f19;
    }

    .xp-election-admin .alert-success {
        padding: 12px 16px;
        border-radius: 6px;
        background: #eaf7ef;
        color: #17663a;
    }

    .xp-election-admin .alert-danger {
        padding: 12px 16px;
        border-radius: 6px;
        background: #fff0f1;
        color: #a20f19;
    }

@media (max-width: 768px) {
    .xp-election-admin {
        padding: 14px;
    }

        .xp-election-admin section {
            padding: 15px;
        }

        .xp-election-admin input,
        .xp-election-admin select,
        .xp-election-admin textarea {
            width: 100%;
        }

        .xp-election-admin table {
            display: block;
            overflow-x: auto;
        }
}

.election-refresh-warning {
    color: #ffd166;
    font-size: 12px;
    font-weight: 700;
}


/* OBS chroma-key window */
.election-centre.chroma-key-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-width: 0;
    min-height: 0;
    height: auto;
    background: #00ff00 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

    /* Disable decorative overlays on the green area */
    .election-centre.chroma-key-area::before,
    .election-centre.chroma-key-area::after {
        content: none !important;
        display: none !important;
    }

/* TV-style ward results */
.ward-panel,
.party-panel {
    background: #f4f5f7;
    color: #151515;
}

    .ward-panel h2,
    .party-panel h2 {
        background: #102d73;
        color: #fff;
        padding: 14px 16px;
        font-size: 16px;
        letter-spacing: .5px;
    }

.ward-row {
    padding: 14px 12px;
    border-bottom: 1px solid #d7dce4;
    background: #fff;
}

.ward-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

    .ward-title strong {
        color: #152d63;
        font-size: 15px;
    }

.ward-candidate {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 800;
}

.result-won,
.result-counting,
.result-pending {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
}

.result-won {
    background: #d8f3e2;
    color: #126638;
}

.result-counting {
    background: #fff0d5;
    color: #8b4b00;
}

.result-pending {
    background: #e8ebf0;
    color: #505968;
}

/* Party summary tiles */
.party-summary {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.party-tile {
    padding: 16px 10px;
    min-height: 120px;
    border-top: 6px solid var(--party-color);
    background: #fff;
    color: #171717;
    text-align: center;
}

    .party-tile strong {
        display: block;
        font-size: 20px;
        font-weight: 900;
    }

    .party-tile span {
        display: block;
        margin: 6px 0;
        font-size: 38px;
        font-weight: 900;
        line-height: 1;
    }

    .party-tile small {
        display: block;
        font-size: 12px;
        font-weight: 700;
    }

/* Party position rows */
.party-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px 10px;
    background: #fff;
    border-bottom: 1px solid #d7dce4;
}

.party-swatch {
    width: 8px;
    min-height: 42px;
    border-radius: 3px;
}

.party-row strong {
    font-size: 17px;
    font-weight: 900;
}

.party-row small {
    margin-top: 3px;
    font-size: 12px;
}

.party-row b {
    font-size: 28px;
    font-weight: 900;
    color: #142e6d;
}

.candidate-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d9dce2;
    vertical-align: middle;
    margin-right: 8px;
}

/* FINAL FIX: Landscape OBS green-screen window */
.election-screen .election-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) !important;
    align-items: start !important;
}

.election-screen .election-centre.chroma-key-area {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    align-self: start !important;
    box-sizing: border-box !important;
    background: #00ff00 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.election-screen .ward-panel {
    overflow-y: hidden !important;
    scrollbar-width: none;
}

    .election-screen .ward-panel::-webkit-scrollbar {
        display: none;
    }

/* Election broadcast: align all three columns */
.election-screen .election-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch !important;
    min-height: 0;
    overflow: hidden;
}

/* Centre: retain landscape ratio */
.election-screen .election-centre.chroma-key-area {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    align-self: start !important;
}

/* Side panels: fill the available column height */
.election-screen .election-panel {
    height: 100%;
    min-height: 0;
    max-height: none !important;
    overflow: hidden;
}

/* Keep ward rows inside the panel */
.election-screen .ward-panel {
    overflow-y: hidden !important;
}

/* Keep the party list inside its panel */
.election-screen .party-panel {
    overflow-y: auto;
}

/* Election broadcast: wider centre green screen */
.election-screen .election-main {
    display: grid !important;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.6fr) minmax(0, 0.7fr) !important;
    gap: 8px !important;
    min-width: 0;
    min-height: 0;
    align-items: stretch !important;
}

/* Centre landscape area */
.election-screen .election-centre.chroma-key-area {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    align-self: start !important;
    background: #00ff00 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Compact left and right panels */
.election-screen .election-panel {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.election-screen .ward-row {
    padding: 7px 8px;
}

.election-screen .party-row {
    padding: 9px 6px;
    gap: 5px;
}

/* Ward results: 3 cards stacked vertically */
.election-screen .ward-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden !important;
    min-height: 0;
}

/* Each ward card occupies the full panel width */
.election-screen .ward-card {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d5dbe5;
    border-radius: 5px;
    overflow: hidden;
}

    /* Candidate rows inside each ward card */
    .election-screen .ward-card .candidate-row {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
        padding: 6px 0;
        border-bottom: 1px solid #e5e7eb;
    }

        .election-screen .ward-card .candidate-row:last-child {
            border-bottom: none;
        }

    .election-screen .ward-card .candidate-photo {
        width: 36px;
        height: 36px;
        object-fit: cover;
        border-radius: 50%;
    }

    .election-screen .ward-card .candidate-name {
        font-size: 12px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .election-screen .ward-card .candidate-party {
        font-size: 11px;
    }

    .election-screen .ward-card .candidate-votes {
        font-size: 15px;
        font-weight: 800;
        white-space: nowrap;
    }


/* xPress24 Election Live: rotating ward cards */
.ward-rotation-stack {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    height: calc(100% - 48px);
    min-height: 0;
    overflow: hidden;
    padding: 8px;
}

.ward-card-tv {
    min-height: 0;
    overflow: hidden;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .ward-card-tv .ward-title strong {
        font-size: clamp(12px, .8vw, 16px);
    }

    .ward-card-tv .ward-title span {
        font-size: 10px;
    }

.ward-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .ward-status-line .result-won,
    .ward-status-line .result-counting,
    .ward-status-line .result-pending {
        padding: 3px 6px;
        font-size: 10px;
    }

.ward-winner-label {
    font-size: 10px;
    color: #166534;
}

.ward-top-candidates {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}

.ward-candidate-line {
    display: grid;
    grid-template-columns: 18px 30px minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 3px 5px;
    background: #f4f6fa;
    border-left: 3px solid #cbd5e1;
    border-radius: 3px;
}

    .ward-candidate-line.candidate-leading {
        background: #e8f5ed;
        border-left-color: #16834a;
    }

.candidate-rank {
    font-size: 11px;
    font-weight: 900;
    color: #334155;
    text-align: center;
}

.candidate-photo-tv, .candidate-photo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
}

.candidate-tv-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

    .candidate-tv-details strong {
        font-size: clamp(10px, .65vw, 13px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .candidate-tv-details span {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 9px;
        color: #475569;
    }

.candidate-party-swatch {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    display: inline-block;
    flex: 0 0 auto;
}

.candidate-vote-count {
    font-size: clamp(11px, .75vw, 15px);
    white-space: nowrap;
    color: #102d73;
}

.ward-no-votes {
    font-size: 11px;
    color: #64748b;
    padding: 4px;
}


.broadcast-ward-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    background: #f3f5f9;
    color: #172033;
    overflow: hidden;
}

.broadcast-ward-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 7px;
    background: #1b3b78;
    color: #fff;
}

    .broadcast-ward-header > div > strong {
        font-size: 18px;
    }

.broadcast-area {
    margin-top: 8px;
    font-size: 12px;
}

.broadcast-status {
    padding: 5px 9px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

    .broadcast-status.declared {
        background: #d8f7e3;
        color: #08783c;
    }

    .broadcast-status.counting {
        background: #fff0d5;
        color: #945100;
    }

    .broadcast-status.pending {
        background: #e5e7eb;
        color: #4b5563;
    }

.broadcast-candidate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    min-height: 72px;
    background: #fff;
    border-radius: 7px;
    box-sizing: border-box;
}

.broadcast-candidate-photo {
    width: 54px;
    height: 64px;
    flex: 0 0 54px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid #e0e5ed;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 26px;
}

.broadcast-candidate-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

   .broadcast-candidate-details strong {
    font-size: 13px;
    line-height: 1.25;
}

    .broadcast-candidate-details span {
        font-size: 12px;
        font-weight: 700;
    }

    .broadcast-candidate-details small {
        color: #6b7280;
        font-size: 11px;
    }

.broadcast-vote-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

    .broadcast-vote-total > strong {
        color: #1b3b78;
        font-size: 20px;
    }

.broadcast-winner-badge {
    padding: 4px 8px;
    border-radius: 12px;
    background: #d8f7e3;
    color: #08783c;
    font-size: 10px;
    font-weight: 800;
}

.broadcast-lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px;
    border-radius: 7px;
    background: #1b3b78;
    color: white;
    font-size: 13px;
}

.broadcast-no-votes {
    padding: 18px 12px;
    border-radius: 7px;
    background: white;
    color: #64748b;
    font-size: 13px;
}


/* Fix: show all 3 candidates inside each ward card */
.broadcast-ward-card {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 6px;
    padding: 6px;
    box-sizing: border-box;
}

.broadcast-candidate-row {
    flex-shrink: 1;
    min-height: 0;
    padding: 6px 8px;
    gap: 9px;
}

.broadcast-candidate-photo {
    width: 46px;
    height: 50px;
    flex: 0 0 46px;
}

.broadcast-candidate-details {
    min-width: 0;
    overflow: hidden;
}

    .broadcast-candidate-details strong {
        font-size: 13px;
        line-height: 1.25;
    }

    .broadcast-candidate-details span,
    .broadcast-candidate-details small {
        line-height: 1.2;
    }

.broadcast-vote-total > strong {
    font-size: 18px;
}

.broadcast-lead-footer {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 12px;
}

/* Lightweight mobile-friendly election ward cards */
.ward-rotation-stack {
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 5px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

.ward-lite-card {
    min-height: 0;
    overflow: hidden;
    padding: 7px 9px;
    background: #fff;
    border: 1px solid #dce2eb;
    border-left: 3px solid #e31b23;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
}

.ward-lite-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

    .ward-lite-heading > strong {
        color: #173b78;
        font-size: clamp(12px, 1vw, 16px);
        line-height: 1.15;
    }

.ward-lite-status {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

    .ward-lite-status.result-won {
        background: #d8f3e2;
        color: #126638;
    }

    .ward-lite-status.result-counting {
        background: #fff0d5;
        color: #8b4b00;
    }

    .ward-lite-status.result-pending {
        background: #e8ebf0;
        color: #505968;
    }

.ward-lite-candidate {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 3px 5px;
    border-radius: 3px;
    background: #f5f7fa;
}

    .ward-lite-candidate.is-winner {
        background: #e8f6ed;
    }

.ward-lite-photo {
    width: 28px;
    height: 30px;
    flex: 0 0 28px;
    object-fit: cover;
    border-radius: 4px;
    background: #e5e7eb;
}

.ward-lite-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aeb4bd;
    font-size: 18px;
}

.ward-lite-person {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

    .ward-lite-person strong {
        color: #172033;
        font-size: clamp(10px, .85vw, 13px);
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ward-lite-person small {
        font-size: 9px;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ward-lite-votes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
}

    .ward-lite-votes strong {
        color: #173b78;
        font-size: clamp(13px, 1vw, 17px);
        line-height: 1.1;
    }

    .ward-lite-votes small {
        color: #16803c;
        font-size: 8px;
        font-weight: 900;
    }

.ward-lite-empty {
    color: #687386;
    font-size: 10px;
    padding: 3px 0;
}


/* xPress24 Election footer: continuously scrolling database ticker */
.election-ticker-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.election-ticker-label {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.election-ticker-window {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.election-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 18px;
    animation: election-ticker-scroll 35s linear infinite;
    will-change: transform;
}

.election-ticker-message {
    flex: 0 0 auto;
    white-space: nowrap;
}

.election-ticker-separator {
    flex: 0 0 auto;
    font-size: 9px;
    opacity: .75;
}

.election-ticker-static {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.election-ticker-updated {
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes election-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .election-ticker-track {
        animation: none;
    }
}

@media (max-width: 700px) {
    .election-ticker-footer {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 7px;
    }

    .election-ticker-updated {
        display: none;
    }

    .election-ticker-track {
        animation-duration: 28s;
    }
}

/* xPress24 Election Ticker Messages Admin */
.xp-ticker-admin {
    max-width: 1500px;
}

.xp-ticker-page-header, .xp-ticker-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.xp-ticker-page-header {
    margin-bottom: 22px;
}

    .xp-ticker-page-header h1 {
        margin: 0 0 6px;
    }

.xp-ticker-subtitle, .xp-ticker-section-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.xp-ticker-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    white-space: nowrap;
}

.xp-ticker-filter-card, .xp-ticker-editor-card, .xp-ticker-list-card {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 18px 0;
    box-shadow: 0 2px 8px rgb(16 24 40 / 4%);
}

.xp-ticker-filter-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.xp-ticker-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

    .xp-ticker-field label {
        font-size: 13px;
        font-weight: 700;
        color: #344054;
    }

    .xp-ticker-field input, .xp-ticker-field select, .xp-ticker-field textarea {
        box-sizing: border-box;
        width: 100%;
        border: 1px solid #cfd5df;
        border-radius: 7px;
        padding: 10px 12px;
        color: #172033;
        background: #fff;
        font: inherit;
    }

    .xp-ticker-field textarea {
        resize: vertical;
        min-height: 76px;
    }

.xp-ticker-filter-card .xp-ticker-field {
    width: min(520px, 100%);
}

.xp-ticker-filter-note {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
    padding-bottom: 10px;
}

    .xp-ticker-filter-note strong {
        color: #172033;
    }

.xp-ticker-section-heading {
    align-items: center;
    margin-bottom: 18px;
}

    .xp-ticker-section-heading h2 {
        margin: 0 0 5px;
        padding: 0;
        border: 0;
        font-size: 19px;
    }

.xp-ticker-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.xp-ticker-message-field small {
    align-self: flex-end;
    color: #667085;
    font-size: 12px;
}

.xp-ticker-form-bottom {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.xp-ticker-order-field {
    width: 140px;
}

.xp-ticker-active-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 7px 0;
}

    .xp-ticker-active-toggle input {
        width: 18px;
        height: 18px;
        accent-color: #16803c;
    }

    .xp-ticker-active-toggle span {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .xp-ticker-active-toggle strong {
        font-size: 14px;
    }

    .xp-ticker-active-toggle small {
        color: #667085;
        font-size: 12px;
    }

.xp-ticker-btn {
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

    .xp-ticker-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

    .xp-ticker-btn.primary {
        background: #e71926;
        color: #fff;
        margin-left: auto;
    }

    .xp-ticker-btn.secondary {
        background: #fff;
        color: #344054;
        border-color: #d0d5dd;
    }

.xp-ticker-feedback {
    border-radius: 7px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 14px;
}

    .xp-ticker-feedback.success {
        color: #17663a;
        background: #eaf7ef;
        border: 1px solid #b9e4c8;
    }

    .xp-ticker-feedback.error {
        color: #a20f19;
        background: #fff0f1;
        border: 1px solid #f3b7bb;
    }

.xp-ticker-empty {
    padding: 22px 14px;
    text-align: center;
    color: #667085;
    background: #f8fafc;
    border-radius: 7px;
    font-size: 14px;
}

.xp-ticker-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.xp-ticker-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .xp-ticker-table th, .xp-ticker-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #eaecf0;
        text-align: left;
        vertical-align: middle;
    }

    .xp-ticker-table th {
        background: #f8fafc;
        color: #475467;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .4px;
        white-space: nowrap;
    }

    .xp-ticker-table td {
        font-size: 13px;
    }

    .xp-ticker-table tbody tr:hover {
        background: #fbfcfe;
    }

    .xp-ticker-table .order-cell {
        width: 70px;
        font-weight: 800;
        color: #173b7a;
    }

    .xp-ticker-table .message-cell {
        min-width: 260px;
        max-width: 560px;
        overflow-wrap: anywhere;
    }

    .xp-ticker-table .date-cell {
        min-width: 145px;
        color: #667085;
        font-size: 12px;
    }

    .xp-ticker-table .actions-col {
        min-width: 220px;
    }

    .xp-ticker-table .actions-cell {
        white-space: nowrap;
    }

.xp-ticker-status {
    display: inline-block;
    border-radius: 20px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
}

    .xp-ticker-status.active {
        color: #08783c;
        background: #d8f7e3;
    }

    .xp-ticker-status.inactive {
        color: #475467;
        background: #eaecf0;
    }

.xp-ticker-mini {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin: 2px;
}

    .xp-ticker-mini.success {
        color: #08783c;
        border-color: #a6dfba;
    }

    .xp-ticker-mini.warning {
        color: #945100;
        border-color: #f1d29a;
    }

    .xp-ticker-mini.danger {
        color: #b42318;
        border-color: #f3b7bb;
    }

.xp-ticker-confirm-text {
    font-size: 12px;
    font-weight: 700;
    color: #b42318;
}

@media(max-width:700px) {
    .xp-ticker-page-header, .xp-ticker-filter-card, .xp-ticker-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .xp-ticker-back {
        align-self: flex-start;
    }

    .xp-ticker-filter-card .xp-ticker-field {
        width: 100%;
    }

    .xp-ticker-filter-note {
        padding-bottom: 0;
    }

    .xp-ticker-editor-card, .xp-ticker-list-card, .xp-ticker-filter-card {
        padding: 14px;
    }

    .xp-ticker-form-bottom {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .xp-ticker-order-field {
        width: 100%;
    }

    .xp-ticker-btn.primary {
        margin-left: 0;
    }
}
