﻿:root {
    --kw-ink: #151821;
    --kw-muted: #667085;
    --kw-line: #e7eaf0;
    --kw-paper: #ffffff;
    --kw-soft: #f5f7fb;
    --kw-red: #c41f2b;
    --kw-red-dark: #8f1420;
    --kw-gold: #f5b83d;
    --kw-blue: #1d4ed8;
    --kw-green: #13845f;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    background: var(--kw-soft);
    color: var(--kw-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensure full-height layout */
    padding-bottom: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

main {
    flex: 1 1 auto;
}

/* Make sure stories/cards render under the footer stacking context */
.kw-story-card,
.kw-card {
    position: relative;
    z-index: 1;
}

/* Footer should remain on top of page content and not be overlapped */
.kw-footer {
    position: relative;
    z-index: 0; /* keep footer in normal flow and behind floating UI like cookie banner */
}

.kw-footer {
    margin-top: auto;
}

a { 
    color: inherit;
    transition: color 0.18s ease;
}

/* Topbar optimized for mobile */
.kw-topbar {
    background: #111827;
    color: #d7dce5;
    font-size: clamp(0.75rem, 2vw, 0.86rem);
    padding: 0.5rem 0 !important;
}

.kw-topbar span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 576px) {
    .kw-topbar {
        flex-direction: column;
        gap: 0.25rem !important;
    }
    
    .kw-topbar span {
        font-size: 0.7rem;
    }
}

.kw-brand {
    color: var(--kw-red) !important;
    font-weight: 900;
    letter-spacing: 0;
}

.kw-brand img {
    width: clamp(36px, 10vw, 42px);
    height: clamp(36px, 10vw, 42px);
    object-fit: cover;
    border-radius: 8px;
}

.kw-nav {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0.35rem 0;
}

.kw-nav .navbar-brand {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.kw-nav .navbar-brand span {
    color: var(--kw-red);
}

.kw-nav .nav-link {
    color: #1f2937;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding: clamp(0.6rem, 1vw, 0.9rem) !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kw-nav .nav-link:hover,
.kw-nav .nav-item.show .nav-link,
.kw-nav .nav-link.active {
    color: var(--kw-red);
}

.kw-nav .dropdown-menu {
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 0.5rem 0;
}

.kw-nav .dropdown-item {
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.kw-nav .dropdown-item:hover,
.kw-nav .dropdown-item:focus {
    background: rgba(196, 31, 43, 0.06);
    color: var(--kw-red);
}

.kw-nav .nav-right-items {
    align-items: center;
    gap: 0.5rem;
}

.kw-nav .nav-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    touch-action: manipulation;
    flex-shrink: 0;
}

.kw-nav .nav-search-btn:hover {
    background: rgba(196, 31, 43, 0.08);
    color: var(--kw-red);
}

.kw-nav .btn-danger {
    min-width: 44px;
    min-height: 44px;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Breaking news ticker - optimized for mobile */
.kw-ticker {
    background: linear-gradient(90deg, var(--kw-red-dark), var(--kw-red));
    color: #fff;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kw-ticker-label {
    background: var(--kw-gold);
    color: #231a08;
    border-radius: 4px;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
    flex-shrink: 0;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
}

.kw-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.kw-section-title::before {
    content: "";
    width: 5px;
    height: 24px;
    background: var(--kw-red);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Cards with better spacing on mobile */
.kw-card {
    background: var(--kw-paper);
    border: 1px solid var(--kw-line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(21, 24, 33, 0.06);
}

.kw-story-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}

.kw-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(21, 24, 33, 0.11);
}

.kw-story-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e9edf5;
    display: block;
}

.kw-lead-img {
    aspect-ratio: 16 / 9;
}

.kw-story-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.kw-category {
    background: #fff3d4;
    color: #6b4700;
    border: 1px solid #f3d17b;
    border-radius: 4px;
    font-weight: 800;
    font-size: clamp(0.65rem, 1.5vw, 0.72rem);
    padding: 0.28rem 0.48rem;
    text-transform: uppercase;
    display: inline-block;
}

.kw-meta {
    color: var(--kw-muted);
    font-size: clamp(0.75rem, 1.5vw, 0.86rem);
}

.kw-sidebar-list a {
    display: flex;
    align-items: center;
    padding: 0.85rem;
    border-bottom: 1px solid var(--kw-line);
    text-decoration: none;
    font-weight: 800;
    min-height: 44px;
    touch-action: manipulation;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.kw-sidebar-list a:hover {
    color: var(--kw-red);
    background: rgba(196, 31, 43, 0.02);
}

.kw-ad-slot {
    background: repeating-linear-gradient(135deg, #f1f4f9, #f1f4f9 10px, #e8edf5 10px, #e8edf5 20px);
    border: 1px dashed #b9c2d0;
    border-radius: 8px;
    color: #5f6b7a;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.kw-footer {
    background: #111827;
    color: #d7dce5;
    padding: 1.25rem 1rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.kw-footer h5 {
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.kw-footer p {
    margin-bottom: 0.3rem;
}

.kw-footer a {
    color: #f3f4f6;
    text-decoration: none;
}

.kw-footer a:hover {
    color: var(--kw-gold);
}

@media (max-width: 991.98px) {
    .kw-nav .navbar-nav {
        padding-top: 1rem;
    }
}

/* Carousel optimizations */
.kw-carousel-section {
    position: relative;
}

.kw-carousel-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #e9edf5;
}

.kw-carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(1rem, 4vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(180deg, rgba(17,24,39,0) 0%, rgba(17,24,39,0.94) 100%);
}

.kw-carousel-caption h3,
.kw-carousel-caption p,
.kw-carousel-caption .kw-category {
    color: #fff;
}

.kw-carousel-caption h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
}

.kw-carousel-caption p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.kw-carousel-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.65);
}

.kw-carousel-section .carousel-indicators .active {
    background-color: #c41f2b;
}

.kw-carousel-section .carousel-control-prev-icon,
.kw-carousel-section .carousel-control-next-icon {
    filter: invert(1) brightness(1.8);
}

/* Social buttons optimized for mobile */
.kw-social-join {
    display: grid;
    gap: 0.75rem;
}

.kw-social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    padding: clamp(0.85rem, 2vw, 1rem) clamp(1rem, 3vw, 1.2rem);
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.kw-social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.kw-social-button:active {
    transform: translateY(0);
}

.kw-social-button span {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.kw-social-whatsapp {
    background: #25d366;
}

.kw-social-telegram {
    background: #0098d9;
}

/* News Ticker Styles - optimized for mobile */
.kw-ticker-container {
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    border-radius: 14px;
    margin: 1rem 0;
    background: rgba(196,31,43,0.08);
    border: 1px solid rgba(196,31,43,0.20);
    min-height: 48px;
}

.kw-ticker-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 clamp(0.5rem, 2vw, 0.75rem);
    background: linear-gradient(180deg, var(--kw-red-dark), var(--kw-red));
    color: #fff;
    min-height: 44px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.kw-ticker-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    flex-shrink: 0;
}

.kw-ticker-header-icon i {
    font-size: 0.85rem;
}

.kw-ticker-header-text {
    display: none;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .kw-ticker-header-text {
        display: inline-flex;
    }
}

.kw-ticker-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: 0 clamp(0.5rem, 2vw, 12px);
    overflow: hidden;
    min-width: 0;
    background: #f7f8fa;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    min-height: 48px;
    border-left: 1px solid rgba(196,31,43,0.10);
}

.kw-ticker-scroll {
    display: flex;
    gap: 1.25rem;
    animation: scroll-left 180s linear infinite;
    white-space: nowrap;
    align-items: center;
    --ticker-speed: 180s;
}

.kw-ticker-scroll.kw-ticker-loading {
    animation: none;
    justify-content: center;
    color: var(--kw-muted);
}

.kw-ticker-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kw-muted);
    font-size: clamp(0.75rem, 1.5vw, 0.88rem);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(21,24,33,0.04);
}

.kw-ticker-scroll:hover {
    animation-play-state: paused;
}

/* Dynamic speed support - speeds 20-180 seconds */
.kw-ticker-scroll.speed-20 { animation-duration: 20s; }
.kw-ticker-scroll.speed-25 { animation-duration: 25s; }
.kw-ticker-scroll.speed-30 { animation-duration: 30s; }
.kw-ticker-scroll.speed-40 { animation-duration: 40s; }
.kw-ticker-scroll.speed-50 { animation-duration: 50s; }
.kw-ticker-scroll.speed-60 { animation-duration: 60s; }
.kw-ticker-scroll.speed-70 { animation-duration: 70s; }
.kw-ticker-scroll.speed-80 { animation-duration: 80s; }
.kw-ticker-scroll.speed-90 { animation-duration: 90s; }
.kw-ticker-scroll.speed-100 { animation-duration: 100s; }
.kw-ticker-scroll.speed-110 { animation-duration: 110s; }
.kw-ticker-scroll.speed-120 { animation-duration: 120s; }
.kw-ticker-scroll.speed-150 { animation-duration: 150s; }
.kw-ticker-scroll.speed-180 { animation-duration: 180s; }

.kw-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 clamp(0.3rem, 1vw, 0.75rem);
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    min-height: 32px;
    white-space: nowrap;
}

.kw-ticker-item:hover {
    opacity: 0.8;
}

.kw-ticker-item.breaking::before {
    content: "ðŸ”´";
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

.kw-ticker-item-title {
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    line-height: 1.1;
    color: var(--kw-ink);
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* News Ticker Modal - optimized for mobile */
.kw-ticker-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.kw-ticker-modal.show {
    display: block;
}

.kw-ticker-modal-content {
    background-color: #fefefe;
    margin: clamp(10%, 5%, 5%) auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.kw-ticker-modal-header {
    background: linear-gradient(90deg, #8f1420, #c41f2b);
    color: #fff;
    padding: clamp(1rem, 3vw, 1.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e7eaf0;
}

.kw-ticker-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kw-ticker-modal-close:hover {
    opacity: 0.7;
}

.kw-ticker-modal-body {
    padding: clamp(1rem, 3vw, 2rem);
}

.kw-ticker-modal-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: #151821;
    line-height: 1.2;
}

.kw-ticker-modal-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: #e9edf5;
    display: block;
}

.kw-ticker-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #667085;
    flex-wrap: wrap;
}

.kw-ticker-modal-content-text {
    line-height: 1.8;
    color: #424f61;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
}

.kw-ticker-modal-category {
    display: inline-block;
    background: #fff3d4;
    color: #6b4700;
    border: 1px solid #f3d17b;
    border-radius: 4px;
    font-weight: 800;
    font-size: clamp(0.65rem, 1.5vw, 0.7rem);
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .kw-carousel-image {
        aspect-ratio: 16 / 11;
    }

    .kw-ticker-content {
        min-height: 42px;
        padding: 0 0.5rem;
    }

    .kw-ticker-header {
        flex: 0 0 50px;
        padding: 0 0.5rem;
    }

    .kw-ticker-item {
        padding: 0 0.25rem;
    }

    .kw-ticker-modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .kw-story-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .kw-ticker-content {
        min-height: 42px;
        padding: 0 0.75rem;
    }

    .kw-ticker-header {
        flex: 0 0 140px;
        padding: 0 0.75rem;
    }

    .kw-ticker-item {
        padding: 0 0.45rem;
        font-size: 0.82rem;
    }

    .kw-ticker-modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

/* Cookie consent banner - optimized for mobile */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.5rem, 2vw, 1rem);
    background: rgba(17, 24, 39, 0.96);
    color: #f7f7f7;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: min(1140px, calc(100% - 2rem));
}

.cookie-consent-text {
    flex: 1 1 360px;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #f5f5f5;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--kw-gold);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 44px;
}

.cookie-consent-button {
    min-width: 44px;
    min-height: 44px;
    border: none;
    padding: clamp(0.6rem, 1.5vw, 0.7rem) clamp(0.8rem, 2vw, 1rem);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
}

.cookie-consent-button:hover {
    transform: translateY(-1px);
}

.cookie-consent-button:active {
    transform: translateY(0);
}

.cookie-consent-accept {
    background: var(--kw-red);
    color: #fff;
}

.cookie-consent-reject {
    background: rgba(255, 255, 255, 0.12);
    color: #f7f7f7;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-consent-hidden {
    display: none !important;
}

/* Final mobile footer compaction and page breathing room. */
body > main {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.kw-footer > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.kw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d7dce5;
}

.kw-footer-contact a {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    body > main {
        padding-bottom: 4.5rem;
    }

    .kw-footer {
        padding: 0.34rem 0.6rem !important;
        font-size: 0.7rem !important;
        line-height: 1.12;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.18rem;
        align-items: start;
    }

    .kw-footer h5 {
        margin-bottom: 0.03rem !important;
        font-size: 0.72rem !important;
        line-height: 1.05;
    }

    .kw-footer p {
        margin-bottom: 0.03rem !important;
    }

    .kw-footer-about {
        margin-bottom: 0;
    }

    .kw-footer-about p {
        display: block;
    }

    .kw-footer-brand {
        margin-bottom: 0.18rem;
    }

    .kw-footer-brand img {
        width: 56px;
    }

    .kw-footer-description {
        max-width: 18rem;
        font-size: 0.68rem;
        line-height: 1.28;
    }

    .kw-footer-links p:not(:first-of-type) {
        display: none;
    }

    .kw-footer-bottom {
        justify-content: center;
        gap: 0.02rem 0.45rem;
        margin-top: 0.2rem;
        padding-top: 0.2rem;
        font-size: 0.64rem;
        line-height: 1.08;
        text-align: center;
    }
}

/* Final responsive footer override. */
.kw-footer {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.78rem !important;
    line-height: 1.25;
}

.kw-footer-main {
    align-items: flex-start;
}

.kw-footer-about {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-align: left;
}

.kw-footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
}

.kw-footer-brand img {
    width: 76px;
    height: auto;
    display: block;
}

.kw-footer-description {
    max-width: 34rem;
    margin: 0 !important;
    color: #f3f4f6;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.kw-footer-links p,
.kw-footer-contact p {
    display: block !important;
}

.kw-footer-bottom {
    align-items: center;
    flex-direction: row;
    margin-top: 0.42rem;
    padding-top: 0.35rem;
    gap: 0.12rem 0.8rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .kw-footer {
        padding: 0.48rem 0.65rem !important;
        font-size: 0.74rem !important;
        line-height: 1.22;
        text-align: center;
    }

    .kw-footer > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.42rem;
        justify-content: center;
    }

    .kw-footer-about {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        text-align: left;
    }

    .kw-footer-brand {
        margin: 0;
    }

    .kw-footer-brand img {
        width: 68px;
        margin: 0 auto;
    }

    .kw-footer-description {
        display: block !important;
        max-width: 28rem;
        margin: 0 !important;
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .kw-footer h5 {
        margin-bottom: 0.08rem !important;
        font-size: 0.78rem !important;
        line-height: 1.15;
    }

    .kw-footer-links,
    .kw-footer-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.08rem 0.45rem;
        text-align: center;
    }

    .kw-footer-links h5,
    .kw-footer-contact h5 {
        margin: 0 !important;
    }

    .kw-footer-links p,
    .kw-footer-contact p {
        display: inline-flex !important;
        align-items: center;
        margin-bottom: 0.04rem !important;
        font-size: 0.72rem;
    }

    .kw-footer-bottom {
        flex-direction: row;
        justify-content: center;
        gap: 0.12rem 0.65rem;
        margin-top: 0.35rem;
        padding-top: 0.3rem;
        font-size: 0.68rem;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .kw-footer-main > .kw-footer-links,
    .kw-footer-main > .kw-footer-contact {
        width: 100%;
    }

    .kw-footer-about {
        gap: 0.42rem;
    }

    .kw-footer-brand img {
        width: 60px;
    }

    .kw-footer-description {
        font-size: 0.66rem;
        line-height: 1.22;
    }

    .kw-footer-bottom {
        font-size: 0.64rem;
    }
}

/* Compact footer override. */
.kw-footer {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.78rem !important;
    line-height: 1.25;
}

.kw-footer-main {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.35rem;
    align-items: center;
}

.kw-footer-about {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.kw-footer-brand {
    flex: 0 0 auto;
    margin: 0;
}

.kw-footer-brand img {
    width: 76px;
}

.kw-footer-description {
    max-width: 34rem;
    margin: 0 !important;
    font-size: 0.78rem;
    line-height: 1.35;
}

.kw-footer h5 {
    margin: 0 0 0.12rem !important;
    font-size: 0.82rem !important;
    line-height: 1.15;
}

.kw-footer-links p,
.kw-footer-contact p {
    margin-bottom: 0.04rem !important;
    font-size: 0.76rem;
    line-height: 1.2;
}

.kw-footer-bottom {
    flex-direction: row;
    margin-top: 0.42rem;
    padding-top: 0.35rem;
    gap: 0.12rem 0.8rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .kw-footer {
        padding: 0.48rem 0.65rem !important;
        font-size: 0.74rem !important;
        line-height: 1.22;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.42rem;
        align-items: start;
    }

    .kw-footer-about {
        justify-content: center;
        gap: 0.5rem;
        text-align: left;
    }

    .kw-footer-brand {
        margin: 0;
    }

    .kw-footer-brand img {
        width: 68px;
    }

    .kw-footer-description {
        max-width: 28rem;
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .kw-footer-links,
    .kw-footer-contact {
        text-align: center;
    }

    .kw-footer h5 {
        margin-bottom: 0.08rem !important;
        font-size: 0.78rem !important;
    }

    .kw-footer-links p,
    .kw-footer-contact p {
        font-size: 0.72rem;
    }

    .kw-footer-bottom {
        flex-direction: row;
        margin-top: 0.35rem;
        padding-top: 0.3rem;
        font-size: 0.68rem;
        line-height: 1.15;
    }
}

@media (max-width: 420px) {
    .kw-footer-main > .kw-footer-links,
    .kw-footer-main > .kw-footer-contact {
        width: 50%;
    }

    .kw-footer-about {
        gap: 0.42rem;
    }

    .kw-footer-brand img {
        width: 60px;
    }

    .kw-footer-description {
        font-size: 0.66rem;
        line-height: 1.22;
    }

    .kw-footer-bottom {
        font-size: 0.64rem;
    }
}

/* Responsive footer polish. Keep this after older duplicated footer rules. */
.kw-footer {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.78rem !important;
    line-height: 1.25;
}

.kw-footer-main {
    align-items: flex-start;
}

.kw-footer-about {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-align: left;
}

.kw-footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
}

.kw-footer-brand img {
    width: 76px;
    height: auto;
    display: block;
}

.kw-footer-description {
    max-width: 34rem;
    margin: 0 !important;
    color: #f3f4f6;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.kw-footer-links p,
.kw-footer-contact p {
    display: block !important;
}

.kw-footer-bottom {
    align-items: center;
    flex-direction: row;
    margin-top: 0.42rem;
    padding-top: 0.35rem;
    gap: 0.12rem 0.8rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .kw-footer {
        padding: 0.48rem 0.65rem !important;
        font-size: 0.74rem !important;
        line-height: 1.22;
        text-align: center;
    }

    .kw-footer > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.42rem;
        justify-content: center;
    }

    .kw-footer-about {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        text-align: left;
    }

    .kw-footer-brand {
        margin: 0;
    }

    .kw-footer-brand img {
        width: 68px;
        margin: 0 auto;
    }

    .kw-footer-description {
        display: block !important;
        max-width: 28rem;
        margin: 0 !important;
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .kw-footer h5 {
        margin-bottom: 0.08rem !important;
        font-size: 0.78rem !important;
        line-height: 1.15;
    }

    .kw-footer-links,
    .kw-footer-contact {
        text-align: center;
    }

    .kw-footer-links p,
    .kw-footer-contact p {
        margin-bottom: 0.04rem !important;
        font-size: 0.72rem;
    }

    .kw-footer-bottom {
        flex-direction: row;
        justify-content: center;
        gap: 0.12rem 0.65rem;
        margin-top: 0.35rem;
        padding-top: 0.3rem;
        font-size: 0.68rem;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .kw-footer-main > .kw-footer-links,
    .kw-footer-main > .kw-footer-contact {
        width: 50%;
    }

    .kw-footer-about {
        gap: 0.42rem;
    }

    .kw-footer-brand img {
        width: 60px;
    }

    .kw-footer-description {
        font-size: 0.66rem;
        line-height: 1.22;
    }

    .kw-footer-bottom {
        font-size: 0.64rem;
    }
}

/* Final typography and formatted post content. */
body,
button,
input,
select,
textarea {
    font-family: "Mukta", "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
}

.kw-header-root,
.uf-page,
.page-content,
.kw-article-content,
.kw-news-content {
    font-family: "Mukta", "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
}

.kw-article-content,
.kw-news-content {
    color: #202936;
    font-size: clamp(1.05rem, 2.4vw, 1.22rem);
    line-height: 1.9;
}

.kw-article-content p,
.kw-news-content p {
    margin: 0 0 1.2rem;
}

.kw-article-content h2,
.kw-news-content h2,
.kw-article-content h3,
.kw-news-content h3 {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    margin: 1.8rem 0 0.8rem;
}

.kw-article-content ul,
.kw-news-content ul,
.kw-article-content ol,
.kw-news-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.kw-pullquote,
.kw-article-content blockquote,
.kw-news-content blockquote {
    position: relative;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
    background: #fff7ed;
    border-left: 4px solid var(--kw-red);
    color: #111827;
    text-align: center;
    font-family: "Hind", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
    font-size: clamp(1.45rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.28;
}

.kw-pullquote::before,
.kw-pullquote::after,
.kw-article-content blockquote::before,
.kw-news-content blockquote::before,
.kw-article-content blockquote::after,
.kw-news-content blockquote::after {
    position: absolute;
    color: var(--kw-red);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
}

.kw-pullquote::before,
.kw-article-content blockquote::before,
.kw-news-content blockquote::before {
    content: "“";
    top: 0.25rem;
    left: 1rem;
}

.kw-pullquote::after,
.kw-article-content blockquote::after,
.kw-news-content blockquote::after {
    content: "”";
    right: 1rem;
    bottom: 0.15rem;
}

.kw-pullquote p,
.kw-article-content blockquote p,
.kw-news-content blockquote p {
    margin: 0;
}

.kw-pullquote cite,
.kw-article-content blockquote cite,
.kw-news-content blockquote cite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1rem;
    color: var(--kw-red);
    font-size: clamp(1rem, 2.6vw, 1.45rem);
    font-style: normal;
    font-weight: 800;
}

.kw-pullquote cite::before,
.kw-pullquote cite::after,
.kw-article-content blockquote cite::before,
.kw-article-content blockquote cite::after,
.kw-news-content blockquote cite::before,
.kw-news-content blockquote cite::after {
    content: "";
    width: min(120px, 22vw);
    height: 1px;
    background: var(--kw-red);
}

@media (max-width: 640px) {
    .kw-pullquote,
    .kw-article-content blockquote,
    .kw-news-content blockquote {
        padding: 1.35rem 1rem;
        border-left-width: 3px;
    }

    .kw-pullquote cite::before,
    .kw-pullquote cite::after,
    .kw-article-content blockquote cite::before,
    .kw-article-content blockquote cite::after,
    .kw-news-content blockquote cite::before,
    .kw-news-content blockquote cite::after {
        width: 40px;
    }
}

/* Final mobile footer compaction and page breathing room. */
body > main {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.kw-footer > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.kw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d7dce5;
}

.kw-footer-contact a {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    body > main {
        padding-bottom: 4.5rem;
    }

    .kw-footer {
        padding: 0.34rem 0.6rem !important;
        font-size: 0.7rem !important;
        line-height: 1.12;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.18rem;
        align-items: start;
    }

    .kw-footer h5 {
        margin-bottom: 0.03rem !important;
        font-size: 0.72rem !important;
        line-height: 1.05;
    }

    .kw-footer p {
        margin-bottom: 0.03rem !important;
    }

    .kw-footer-about {
        margin-bottom: 0;
    }

    .kw-footer-about p.kw-footer-description {
        display: block;
    }

    .kw-footer-brand {
        margin-bottom: 0.18rem;
    }

    .kw-footer-brand img {
        width: 56px;
    }

    .kw-footer-description {
        max-width: 18rem;
        font-size: 0.68rem;
        line-height: 1.28;
    }

    .kw-footer-links p:not(:first-of-type) {
        display: none;
    }

    .kw-footer-bottom {
        justify-content: center;
        gap: 0.02rem 0.45rem;
        margin-top: 0.2rem;
        padding-top: 0.2rem;
        font-size: 0.64rem;
        line-height: 1.08;
        text-align: center;
    }
}

/* Final shared footer sizing override. Kept at the end to beat older duplicated rules. */
.kw-footer {
    padding: 1.1rem 1rem !important;
    font-size: 0.9rem;
    line-height: 1.35;
}

.kw-footer h5 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.kw-footer p {
    margin-bottom: 0.22rem !important;
}

.kw-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
}

.kw-footer-brand img {
    width: 78px;
    height: auto;
    display: block;
}

.kw-footer-description {
    max-width: 25rem;
    color: #f3f4f6;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .kw-footer {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.8rem;
    }

    .kw-footer .row {
        --bs-gutter-y: 0.35rem;
    }

    .kw-footer h5 {
        margin-bottom: 0.12rem;
        font-size: 0.86rem;
    }

    .kw-footer-about p {
        display: block;
    }
}

/* Mobile-first grid improvements */
.container {
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

@media (max-width: 576px) {
    .container {
        padding: 0.75rem;
    }
}

/* Touch-friendly spacing */
button, a, input[type="button"], input[type="submit"] {
    touch-action: manipulation;
}

/* Optimize images for performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
video {
    max-width: 100%;
}

.kw-card,
.kw-story-card,
.card {
    overflow-wrap: anywhere;
}

.kw-footer {
    margin-top: auto;
}

@media (max-width: 768px) {
    body {
        min-width: 0;
    }

    main {
        width: 100%;
        overflow-x: hidden;
    }

    .row {
        --bs-gutter-x: 1rem;
    }

    .card,
    .kw-card,
    .kw-story-card {
        max-width: 100%;
    }

    .kw-footer {
        padding: 0.9rem 0.75rem;
        font-size: 0.84rem;
    }

    .kw-footer h5 {
        margin-bottom: 0.25rem;
        font-size: 0.92rem;
    }

    .kw-footer .row {
        --bs-gutter-y: 0.75rem;
    }

    .cookie-consent-content {
        width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-button {
        flex: 1 1 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reduce layout shift with font-display */
@font-face {
    font-family: 'bootstrap-icons';
    font-display: swap;
}


.kw-topbar {
    background: #111827;
    color: #d7dce5;
    font-size: 0.86rem;
}

.kw-brand {
    color: var(--kw-red) !important;
    font-weight: 900;
    letter-spacing: 0;
}

.kw-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

.kw-nav {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0.35rem 0;
}

.kw-nav .navbar-brand {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.kw-nav .navbar-brand span {
    color: var(--kw-red);
}

.kw-nav .nav-link {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding: 0.9rem 0.9rem;
}

.kw-nav .nav-link:hover,
.kw-nav .nav-item.show .nav-link,
.kw-nav .nav-link.active {
    color: var(--kw-red);
}

.kw-nav .dropdown-menu {
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 0.5rem 0;
}

.kw-nav .dropdown-item {
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 1.2rem;
}

.kw-nav .dropdown-item:hover,
.kw-nav .dropdown-item:focus {
    background: rgba(196, 31, 43, 0.06);
    color: var(--kw-red);
}

.kw-nav .nav-right-items {
    align-items: center;
}

.kw-nav .nav-search-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
}

.kw-nav .nav-search-btn:hover {
    background: rgba(196, 31, 43, 0.08);
    color: var(--kw-red);
}

.kw-nav .btn-danger {
    min-width: 100px;
}

.kw-ticker {
    background: linear-gradient(90deg, var(--kw-red-dark), var(--kw-red));
    color: #fff;
}

.kw-ticker-label {
    background: var(--kw-gold);
    color: #231a08;
    border-radius: 4px;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.kw-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.kw-section-title::before {
    content: "";
    width: 5px;
    height: 24px;
    background: var(--kw-red);
    border-radius: 2px;
}

.kw-card {
    background: var(--kw-paper);
    border: 1px solid var(--kw-line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(21, 24, 33, 0.06);
}

.kw-story-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kw-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(21, 24, 33, 0.11);
}

.kw-story-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e9edf5;
}

.kw-lead-img {
    aspect-ratio: 16 / 9;
}

.kw-category {
    background: #fff3d4;
    color: #6b4700;
    border: 1px solid #f3d17b;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.28rem 0.48rem;
    text-transform: uppercase;
}

.kw-meta {
    color: var(--kw-muted);
    font-size: 0.86rem;
}

.kw-sidebar-list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--kw-line);
    text-decoration: none;
    font-weight: 800;
}

.kw-sidebar-list a:hover {
    color: var(--kw-red);
}

.kw-ad-slot {
    background: repeating-linear-gradient(135deg, #f1f4f9, #f1f4f9 10px, #e8edf5 10px, #e8edf5 20px);
    border: 1px dashed #b9c2d0;
    border-radius: 8px;
    color: #5f6b7a;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.kw-footer {
    background: #111827;
    color: #d7dce5;
}

.kw-footer a {
    color: #f3f4f6;
    text-decoration: none;
}

.kw-footer a:hover {
    color: var(--kw-gold);
}

@media (max-width: 991.98px) {
    .kw-nav .navbar-nav {
        padding-top: 1rem;
    }
}

.kw-carousel-section {
    position: relative;
}

.kw-carousel-image {
    width: 100%;
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

.kw-carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, rgba(17,24,39,0) 0%, rgba(17,24,39,0.94) 100%);
}

.kw-carousel-caption h3,
.kw-carousel-caption p,
.kw-carousel-caption .kw-category {
    color: #fff;
}

.kw-carousel-caption h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 900;
}

.kw-carousel-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.65);
}

.kw-carousel-section .carousel-indicators .active {
    background-color: #c41f2b;
}

.kw-carousel-section .carousel-control-prev-icon,
.kw-carousel-section .carousel-control-next-icon {
    filter: invert(1) brightness(1.8);
}

.kw-social-join {
    display: grid;
    gap: 0.75rem;
}

.kw-social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kw-social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.kw-social-button span {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.kw-social-whatsapp {
    background: #25d366;
}

.kw-social-telegram {
    background: #0098d9;
}

/* News Ticker Styles */
.kw-ticker-container {
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    border-radius: 14px;
    margin: 1rem 0;
    background: rgba(196,31,43,0.08);
    border: 1px solid rgba(196,31,43,0.20);
    min-height: 48px;
}

.kw-ticker-header {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.75rem;
    background: linear-gradient(180deg, var(--kw-red-dark), var(--kw-red));
    color: #fff;
    min-height: 44px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.kw-ticker-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
}

.kw-ticker-header-icon i {
    font-size: 0.85rem;
}

.kw-ticker-header-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Ticker CSS is defined earlier in the file - see first .kw-ticker-scroll definition around line 493 */

/* News Ticker Modal */
.kw-ticker-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.kw-ticker-modal.show {
    display: block;
}

.kw-ticker-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.kw-ticker-modal-header {
    background: linear-gradient(90deg, #8f1420, #c41f2b);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e7eaf0;
}

.kw-ticker-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.3s ease;
}

.kw-ticker-modal-close:hover {
    opacity: 0.7;
}

.kw-ticker-modal-body {
    padding: 2rem;
}

.kw-ticker-modal-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #151821;
}

.kw-ticker-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.kw-ticker-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #667085;
}

.kw-ticker-modal-content-text {
    line-height: 1.8;
    color: #424f61;
    font-size: 1rem;
}

.kw-ticker-modal-category {
    display: inline-block;
    background: #fff3d4;
    color: #6b4700;
    border: 1px solid #f3d17b;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .kw-ticker-content {
        min-height: 42px;
        padding: 0 0.75rem;
    }

    .kw-ticker-header {
        flex: 0 0 140px;
        padding: 0 0.75rem;
    }

    .kw-ticker-item {
        padding: 0 0.45rem;
        font-size: 0.82rem;
    }

    .kw-ticker-modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.96);
    color: #f7f7f7;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: min(1140px, calc(100% - 2rem));
}

.cookie-consent-text {
    flex: 1 1 360px;
    font-size: 0.95rem;
    color: #f5f5f5;
}

.cookie-consent-text a {
    color: var(--kw-gold);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-consent-button {
    min-width: 110px;
    border: none;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cookie-consent-button:hover {
    transform: translateY(-1px);
}

.cookie-consent-accept {
    background: var(--kw-red);
    color: #fff;
}

.cookie-consent-reject {
    background: rgba(255, 255, 255, 0.12);
    color: #f7f7f7;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-consent-hidden {
    display: none !important;
}

/* Final mobile footer compaction and page breathing room. */
body > main {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.kw-footer > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.kw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d7dce5;
}

.kw-footer-contact a {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    body > main {
        padding-bottom: 4.5rem;
    }

    .kw-footer {
        padding: 0.34rem 0.6rem !important;
        font-size: 0.7rem !important;
        line-height: 1.12;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.18rem;
        align-items: start;
    }

    .kw-footer h5 {
        margin-bottom: 0.03rem !important;
        font-size: 0.72rem !important;
        line-height: 1.05;
    }

    .kw-footer p {
        margin-bottom: 0.03rem !important;
    }

    .kw-footer-about {
        margin-bottom: 0;
    }

    .kw-footer-about p.kw-footer-description {
        display: block;
    }

    .kw-footer-brand {
        margin-bottom: 0.18rem;
    }

    .kw-footer-brand img {
        width: 56px;
    }

    .kw-footer-description {
        max-width: 18rem;
        font-size: 0.68rem;
        line-height: 1.28;
    }

    .kw-footer-links p:not(:first-of-type) {
        display: none;
    }

    .kw-footer-bottom {
        justify-content: center;
        gap: 0.02rem 0.45rem;
        margin-top: 0.2rem;
        padding-top: 0.2rem;
        font-size: 0.64rem;
        line-height: 1.08;
        text-align: center;
    }
}

/* Final responsive footer override. */
.kw-footer {
    padding: clamp(1rem, 2.5vw, 1.35rem) 0.85rem !important;
}

.kw-footer-main {
    align-items: flex-start;
}

.kw-footer-about {
    min-width: 0;
}

.kw-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
}

.kw-footer-brand img {
    width: clamp(82px, 10vw, 112px);
    height: auto;
    display: block;
}

.kw-footer-description {
    max-width: 30rem;
    color: #f3f4f6;
    font-size: clamp(0.82rem, 1.3vw, 0.92rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.kw-footer-links p,
.kw-footer-contact p {
    display: block !important;
}

.kw-footer-bottom {
    align-items: center;
}

@media (max-width: 767.98px) {
    .kw-footer {
        padding: 1rem 0.75rem !important;
        font-size: 0.82rem !important;
        line-height: 1.35;
        text-align: center;
    }

    .kw-footer > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.8rem;
        justify-content: center;
    }

    .kw-footer-about {
        width: 100%;
        text-align: center;
    }

    .kw-footer-brand {
        justify-content: center;
        margin-bottom: 0.45rem;
    }

    .kw-footer-brand img {
        width: min(42vw, 132px);
        margin: 0 auto;
    }

    .kw-footer-description {
        display: block !important;
        max-width: min(100%, 22rem);
        margin: 0 auto !important;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .kw-footer h5 {
        margin-bottom: 0.3rem !important;
        font-size: 0.86rem !important;
        line-height: 1.2;
    }

    .kw-footer-links,
    .kw-footer-contact {
        text-align: center;
    }

    .kw-footer-links p,
    .kw-footer-contact p {
        margin-bottom: 0.16rem !important;
    }

    .kw-footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        margin-top: 0.75rem;
        padding-top: 0.65rem;
        font-size: 0.72rem;
        line-height: 1.3;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .kw-footer-main > .kw-footer-links,
    .kw-footer-main > .kw-footer-contact {
        width: 100%;
    }

    .kw-footer-brand img {
        width: min(54vw, 126px);
    }

    .kw-footer-description {
        font-size: 0.76rem;
    }
}

/* Tiny mobile footer override - must stay last. */
@media (max-width: 767.98px) {
    .kw-footer {
        padding: 0.34rem 0.55rem !important;
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
    }

    .kw-footer-main {
        --bs-gutter-x: 0.4rem !important;
        --bs-gutter-y: 0.22rem !important;
        align-items: center !important;
    }

    .kw-footer-about {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.38rem !important;
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    .kw-footer-brand {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    .kw-footer-brand img {
        width: 52px !important;
        margin: 0 !important;
    }

    .kw-footer-description {
        max-width: 26rem !important;
        margin: 0 !important;
        font-size: 0.64rem !important;
        line-height: 1.18 !important;
    }

    .kw-footer h5 {
        margin: 0 !important;
        font-size: 0.68rem !important;
        line-height: 1.1 !important;
    }

    .kw-footer-links,
    .kw-footer-contact {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.04rem 0.38rem !important;
        text-align: center !important;
    }

    .kw-footer-links p,
    .kw-footer-contact p {
        display: inline-flex !important;
        margin: 0 !important;
        font-size: 0.66rem !important;
        line-height: 1.12 !important;
    }

    .kw-footer-bottom {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0.08rem 0.48rem !important;
        margin-top: 0.22rem !important;
        padding-top: 0.22rem !important;
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 420px) {
    .kw-footer-main > .kw-footer-links,
    .kw-footer-main > .kw-footer-contact {
        width: 100% !important;
    }

    .kw-footer-brand img {
        width: 46px !important;
    }

    .kw-footer-description {
        font-size: 0.6rem !important;
    }
}
