/* modern-business.css for Bootstrap 5.3.8 - Karaikudi News Theme */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --accent: #ff005c;
    --accent-dark: #d1004a;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #1f2937;
    --white: #ffffff;
    --border: #e9ecef;
    --text: #212529;
    --muted: #6c757d;
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    --shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    --transition: all .25s ease;
}

body {
    padding-top: 80px;
    background: var(--light);
    color: var(--text);
    font-family: "Noto Sans Tamil", "Noto Sans", "Latha", "Vijaya", "Arial Unicode MS", Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar.bg-dark,
.site-navbar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark)) !important;
}

.navbar-brand img {
    height: 65px;
    width: 130px;
}

.site-navbar .navbar-nav .nav-link,
.site-navbar .navbar-nav .nav-link:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    padding: 0.6rem 1rem !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent !important;
}

/* Icon spacing */
.site-navbar .navbar-nav .nav-link i {
    margin-right: 0.35rem;
}

/* Hover, focus, active */
.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus,
.site-navbar .navbar-nav .nav-link:active,
.site-navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent-dark)
    ) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 92, 0.25);
}

/* Prevent any pseudo-element underline effects */
.site-navbar .navbar-nav .nav-link::before,
.site-navbar .navbar-nav .nav-link::after,
.site-navbar .navbar-nav .nav-link:hover::before,
.site-navbar .navbar-nav .nav-link:hover::after {
    display: none !important;
    content: none !important;
}

.card {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    font-weight: 600;
}

.col-lg-4 .card .card-header,
.col-md-4 .card .card-header {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    color: var(--white);
    border: 0;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.card-img-top {
    width: 100%;
    object-fit: cover;
}

.card.mb-4 .card-img-top {
    height: 240px;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
}

.form-control,
.form-select,
textarea,
.btn,
.breadcrumb,
.pagination .page-link {
    border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(13,110,253,.35);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.card-body ul li,
.list-unstyled li,
ul li {
    margin-bottom: .1rem;
}

.card-body ul li a,
.list-unstyled li a {
    color: var(--text);
}

.card-body ul li a:hover,
.list-unstyled li a:hover {
    color: var(--accent);
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.carousel-item {
    height: 65vh;
    min-height: 300px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item {
    margin-bottom: 1.875rem;
}

.img-fluid.rounded,
.rounded-circle {
    object-fit: cover;
}

.rounded-circle {
    width: 56px;
    height: 56px;
}

.card-text {
    font-size: 1.05rem;
    line-height: 1.9;
    font-weight: 500;
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-link:hover {
    color: var(--accent);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.home-page {
    background: #f4f4f4;
}

.breaking-strip {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.breaking-label,
.breaking-live {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: .85rem 1rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.breaking-label {
    background: #dc3545;
}

.breaking-live {
    background: #198754;
}

.breaking-track {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    padding: .85rem 1rem;
    font-weight: 700;
}

.breaking-track .bi-circle-fill {
    font-size: .45rem;
}

.home-hero,
.latest-panel,
.category-strip,
.feed-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.banner-slider {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .12);
    background: #111827;
    border: 1px solid rgba(15, 23, 42, .08);
}

.banner-slide-link {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.banner-slide-img {
    width: 100%;
    aspect-ratio: 16 / 5.4;
    min-height: 260px;
    max-height: 430px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.banner-slide-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

.banner-slide-caption {
    position: absolute;
    z-index: 2;
    left: clamp(1rem, 4vw, 3rem);
    right: clamp(1rem, 38vw, 34rem);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    padding: 0;
    background: transparent;
}

.banner-slide-caption h2 {
    color: #fff;
    font-size: clamp(1.45rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    font-weight: 850;
    margin-bottom: .65rem;
    text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.banner-slide-caption p {
    color: rgba(255,255,255,.9);
    max-width: 680px;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    width: 4rem;
    opacity: 1;
}

.banner-slider .carousel-control-prev-icon,
.banner-slider .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background-size: 1rem;
    background-color: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.banner-slider .carousel-indicators {
    right: auto;
    left: clamp(1rem, 4vw, 3rem);
    bottom: 1.1rem;
    margin: 0;
    justify-content: flex-start;
}

.banner-slider .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255,255,255,.55);
    opacity: 1;
}

.banner-slider .carousel-indicators .active {
    width: 46px;
    background-color: #fff;
}

.home-hero {
    min-height: 100%;
    position: relative;
}

.home-hero-media {
    display: block;
    background: #e9ecef;
}

.home-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-hero-content {
    padding: 1.5rem;
}

.home-hero-title {
    font-size: clamp(1.12rem, 1.75vw, 1.12rem);
    line-height: 1.28;
    font-weight: 900;
    margin-bottom: .75rem;
}

.home-hero-title a,
.latest-item h3 a,
.feed-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.home-hero-title a:hover,
.latest-item h3 a:hover,
.feed-card h3 a:hover {
    color: var(--primary);
}

.home-hero-excerpt {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0;
}

.home-hero-excerpt-sm {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
}

.section-heading a,
.section-heading span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.category-scroll-actions {
    display: inline-flex;
    gap: .45rem;
    flex-shrink: 0;
}

.category-scroll-btn,
.sponsor-close-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition);
}

.category-scroll-btn:hover,
.sponsor-close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.latest-panel {
    padding: 1rem;
}

.latest-list {
    display: grid;
    gap: .95rem;
    margin-top: 1rem;
}

.latest-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: .85rem;
    align-items: start;
    padding-bottom: .95rem;
    border-bottom: 1px solid var(--border);
}

.latest-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.latest-thumb-img,
.feed-img {
    width: 100%;
    object-fit: cover;
    display: block;
    background: #fff;
}

.latest-thumb-img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}

.latest-cat {
    display: inline-block;
    color: #dc3545;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.latest-item h3 {
    font-size: .86rem;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 .25rem;
}

.latest-item time {
    color: var(--muted);
    font-size: .8rem;
}

.category-strip {
    padding: 1rem;
}

.category-scroll {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .2rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll.is-dragging {
    cursor: grabbing;
}

.category-pill {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    text-decoration: none;
    font-weight: 800;
}

.category-pill small {
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
}

.city-latest-news {
    padding: .15rem 0 0;
}

.city-latest-heading {
    justify-content: flex-start;
}

.city-latest-heading h2 {
    display: inline-block;
    padding-bottom: .35rem;
    border-bottom: 2px solid #dc3545;
    color: #050505;
    font-size: 1.45rem;
    line-height: 1.25;
}

.city-latest-group {
    margin-bottom: 1.1rem;
}

.city-latest-title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .75rem;
    color: #004b8d;
    font-size: .95rem;
    font-weight: 900;
}

.city-latest-title i {
    color: #dc3545;
}

.city-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.city-news-card {
    overflow: hidden;
    min-height: 190px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.city-news-card:hover {
    border-color: rgba(13, 110, 253, .25);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.city-news-media {
    display: block;
    background: #eef0f3;
}

.city-news-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.city-news-body {
    padding: .85rem;
}

.city-news-category {
    display: inline-block;
    margin-bottom: .4rem;
    color: #dc3545;
    font-size: .74rem;
    font-weight: 900;
    text-decoration: none;
}

.city-news-card h3 {
    margin: 0 0 .5rem;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.34;
}

.city-news-card h3 a {
    color: #050505;
    text-decoration: none;
}

.city-news-card h3 a:hover,
.city-news-category:hover {
    color: var(--primary);
    text-decoration: none;
}

.city-news-card p {
    min-height: 2.5rem;
    margin-bottom: .65rem;
    color: #707276;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.5;
}

.city-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: #8a8f98;
    font-size: .72rem;
    font-weight: 500;
}

.city-news-meta span,
.city-news-meta time {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.home-feed {
    display: grid;
    gap: 1rem;
}

.page-title-panel,
.empty-news-state {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.page-title-panel {
    padding: 1.25rem;
}

.city-page-logo {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .32);
    padding: .4rem;
    flex-shrink: 0;
}

.city-page-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 1.9rem;
}

.city-info-panel {
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(90deg, #002f63, #004f91);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 51, 102, .16);
}

.city-info-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
}

.city-info-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.city-info-kicker {
    display: inline-block;
    margin-bottom: .2rem;
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.city-info-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
}

.city-info-brand p {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: .88rem;
    font-weight: 700;
}

.city-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.city-social-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .72rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 800;
    font-size: .84rem;
    text-decoration: none;
}

.city-social-link:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
}

.empty-news-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.empty-news-state h2 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 850;
    margin: .85rem 0 .35rem;
}

.feed-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: stretch;
}

.feed-media {
    display: block;
    background: #e9ecef;
    height: 210px;
    overflow: hidden;
}

.feed-img {
    width: 100%;
    height: 210px;
    min-height: 210px;
    object-fit: cover;
    display: block;
}

.feed-body {
    padding: 1.25rem;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .65rem;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feed-meta a {
    color: #dc3545;
}

.feed-meta span {
    color: var(--muted);
}

.feed-card h3 {
    font-size: 1.00rem;
    line-height: 1.36;
    font-weight: 900;
    margin-bottom: .75rem;
}

.feed-card p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.read-link .bi {
    font-size: 1.2rem;
}

.home-pagination {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.pagination-summary {
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: .8rem;
}

.home-pagination .pagination {
    gap: .45rem;
    margin-bottom: 0;
}

.home-pagination .page-link {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px !important;
    color: var(--text);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-weight: 800;
    box-shadow: none;
}

.home-pagination .page-link:hover {
    color: var(--primary);
    border-color: rgba(13, 110, 253, .35);
    background: #eef4ff;
    text-decoration: none;
}

.home-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .25);
}

.home-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: var(--border);
}

.home-pagination .page-control {
    padding-inline: 1rem;
}

.home-pagination .page-dots {
    min-width: 32px;
    border-color: transparent;
    background: transparent;
}

.home-news-file {
    min-height: 100%;
    border: 1px solid var(--border);
}

.pdf-preview-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.pdf-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #f8fbff;
    color: #111827;
    font-weight: 800;
}

.pdf-preview-toolbar i {
    color: #dc3545;
}

.pdf-preview-frame {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: #f4f4f4;
}

.pdf-preview-fallback {
    min-height: 320px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.pdf-preview-fallback i {
    color: #dc3545;
    font-size: 3rem;
}

.epaper-viewer-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.epaper-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.epaper-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: .35rem;
    color: #dc3545;
    font-size: .82rem;
    font-weight: 900;
}

.epaper-viewer-header h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 900;
}

.epaper-viewer-header p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.epaper-pdf-viewer {
    position: relative;
    background: #343a40;
}

.epaper-pdf-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    background: #212529;
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}

.epaper-pdf-toolbar span {
    display: inline-flex;
    align-items: center;
}

.epaper-pdf-toolbar i {
    color: #ff5a6b;
}

.epaper-pdf-viewer:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #212529;
}

.epaper-pdf-viewer:fullscreen .epaper-pdf-frame {
    height: calc(100vh - 48px);
}

.epaper-pdf-frame {
    display: block;
    width: 100%;
    height: 820px;
    border: 0;
    background: #f4f4f4;
}

.epaper-empty-state {
    min-height: 360px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

.epaper-empty-state i {
    margin-bottom: .75rem;
    color: #dc3545;
    font-size: 3.5rem;
}

.epaper-empty-state h2 {
    margin-bottom: .5rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 900;
}

.news-gallery {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.news-gallery-inline {
    margin-block: 1.15rem;
    padding: .85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.news-gallery-inline-single {
    margin-inline: 0;
}

.news-gallery-inline-item {
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.news-gallery-inline-item img {
    width: 100%;
    max-height: 540px;
    aspect-ratio: auto;
    object-fit: contain;
    background: #f4f4f4;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.news-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
}

.news-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
    background: #f4f4f4;
    transition: transform .25s ease;
}

.news-gallery-item:hover {
    text-decoration: none;
    border-color: rgba(13, 110, 253, .35);
}

.news-gallery-item:hover img {
    transform: none;
}

.news-gallery-inline-item:hover img {
    transform: none;
}

.gallery-preview-open {
    overflow: hidden;
}

.gallery-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .88);
}

.gallery-preview-modal.is-open {
    display: flex;
}

.gallery-preview-frame {
    width: min(100%, 1100px);
    height: min(82vh, 760px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.gallery-preview-close,
.gallery-preview-nav {
    position: fixed;
    z-index: 2001;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.25rem;
    backdrop-filter: blur(8px);
}

.gallery-preview-close:hover,
.gallery-preview-nav:hover {
    background: #d1004a;
    border-color: #d1004a;
    color: #fff;
}

.gallery-preview-close {
    top: 1rem;
    right: 1rem;
}

.gallery-preview-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-preview-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.read-more-news {
    padding: 1.25rem 0 .4rem;
    border-bottom: 1px solid var(--border);
}

.read-more-news-heading h3 {
    display: inline-block;
    margin: 0 0 1rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid #c82333;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.read-more-news-list {
    display: grid;
    gap: .95rem;
}

.read-more-news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.read-more-news-item:hover {
    color: var(--text);
    border-color: rgba(13, 110, 253, .28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
    text-decoration: none;
}

.read-more-news-thumb {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f1f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.read-more-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.read-more-news-content {
    min-width: 0;
}

.read-more-news-content strong {
    display: block;
    color: #0f172a;
    font-size: 1.01rem;
    font-weight: 900;
    line-height: 1.45;
}

.read-more-news-content small {
    display: block;
    margin-top: .35rem;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
}

.comment-form-card {
    border: 1px solid rgba(13, 110, 253, .08);
    border-radius: 8px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.comment-form-header h5 {
    font-weight: 900;
}

.comment-form-header p {
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
}

.comment-input-wrap,
.comment-textarea-wrap {
    position: relative;
}

.comment-input-wrap i,
.comment-textarea-wrap i {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
}

.comment-textarea-wrap i {
    top: 1rem;
    transform: none;
}

.comment-input-wrap .form-control,
.comment-textarea-wrap .form-control {
    border: 1px solid var(--border);
    background: #f8fbff;
    font-weight: 600;
}

.comment-input-wrap .form-control {
    min-height: 46px;
    padding-left: 2.45rem;
}

.comment-textarea-wrap .form-control {
    padding-left: 2.45rem;
    padding-top: .85rem;
    resize: vertical;
}

.comment-input-wrap .form-control:focus,
.comment-textarea-wrap .form-control:focus {
    background: #fff;
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 1.25rem;
    font-weight: 800;
}

.sponsor-box {
    max-width: 100%;
}

.sponsor-box .sponsor-image {
    display: block;
    width: 100%;
    height: auto;
}

.sponsor-box-top .sponsor-image,
.sponsor-box-bottom .sponsor-image {
    max-height: 140px;
    object-fit: contain;
    background: #fff;
}

.sponsor-side {
    width: 100%;
}

.sponsor-side .sponsor-image {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #fff;
}

.sponsor-side-left {
    width: 120px;
    max-width: 120px;
}

.sponsor-side .sponsor-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 9999;
    box-shadow: var(--shadow-sm);
    pointer-events: auto;
    cursor: pointer;
}

.sponsor-dismiss-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sponsor-dismiss-check:checked ~ .sponsor-content,
.sponsor-box-left:has(.sponsor-dismiss-check:checked) {
    display: none !important;
}

.sponsor-close-left {
    width: 38px;
    height: 38px;
    border-color: rgba(0, 0, 0, .35);
    background: rgba(0, 0, 0, .72);
    color: #fff;
}

.sponsor-close-left:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.sponsor-side-right {
    position: relative;
}

.sponsor-side-right .sponsor-image {
    max-height: 320px;
}

.sponsor-box-popup .sponsor-image,
.sponsor-popup .sponsor-image {
    max-height: 70vh;
    object-fit: contain;
    background: #fff;
}

.daily-rate-card .card-header small {
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    font-weight: 800;
}

.daily-rate-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.daily-rate-item:last-child {
    border-bottom: 0;
}

.daily-rate-date {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.daily-rate-sponsor {
    display: inline-flex;
    align-items: center;
    color: #b7791f;
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.daily-rate-image-wrap {
    overflow: hidden;
    margin-bottom: .75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.daily-rate-image {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: cover;
}

.daily-rate-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.daily-rate-value {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .8rem;
    background: #fff;
}

.daily-rate-value span,
.daily-rate-value strong {
    display: block;
}

.daily-rate-value span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .3rem;
}

.daily-rate-value strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.2;
}

.daily-rate-gold {
    background: #fff8e1;
    border-color: #ffe08a;
}

.daily-rate-silver {
    background: #f4f7fb;
    border-color: #dce4ef;
}

.site-sidebar {
    position: relative;
}

.sidebar-widget {
    border: 1px solid rgba(13, 110, 253, .08);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-widget .sidebar-widget-header {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 0;
    font-size: .86rem;
    font-weight: 900;
}

.sidebar-widget-header span {
    display: inline-flex;
    align-items: center;
}

.sidebar-menu-list li,
.sidebar-news-list li {
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-menu-list li:last-child,
.sidebar-news-list li:last-child {
    border-bottom: 0;
}

.sidebar-menu-link,
.sidebar-news-link {
    display: flex;
    align-items: center;
    gap: .52rem;
    padding: .55rem .72rem;
    color: var(--text);
    text-decoration: none;
    background: #fff;
    transition: var(--transition);
}

.sidebar-menu-link:hover,
.sidebar-news-link:hover {
    color: var(--primary);
    background: #f4f8ff;
    text-decoration: none;
}

.sidebar-link-icon,
.sidebar-news-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    background: #eef4ff;
    color: var(--primary);
    font-size: .82rem;
}

.sidebar-news-icon {
    background: #fff0f5;
    color: var(--accent);
}

.sidebar-news-icon-hot {
    background: #fff8e1;
    color: #b7791f;
}

.sidebar-link-text,
.sidebar-news-link span:last-child {
    min-width: 0;
    flex: 1;
    font-weight: 800;
    line-height: 1.28;
    font-size: .84rem;
}

.sidebar-news-link span:last-child {
    font-size: .82rem;
}

.sidebar-link-arrow {
    color: #adb5bd;
    font-size: .9rem;
    margin-left: auto;
    transition: var(--transition);
}

.sidebar-menu-link:hover .sidebar-link-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

@media (min-width: 1600px) {
    .sponsor-side-left {
        width: 150px;
        max-width: 150px;
    }
}

footer,
.site-footer {
    background: linear-gradient(90deg, var(--primary-dark), var(--dark));
    color: #fff;
    margin-top: 3rem;
}

footer p,
.site-footer p {
    margin-bottom: 0;
}

.footer-viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .18);
}

.footer-viewers-badge i,
.footer-viewers-badge strong {
    color: #ffc107;
}


@media (max-width: 767.98px) {
    body {
        padding-top: 72px;
        font-size: .86rem;
        line-height: 1.38;
    }
    .container,
    .container-fluid {
        --bs-gutter-x: 1rem;
    }
    .breaking-label,
    .breaking-live,
    .breaking-track {
        padding: .58rem .7rem;
        font-size: .76rem;
        line-height: 1.25;
    }
    .breaking-label {
        font-size: .74rem;
    }
    .home-hero-content,
    .feed-body {
        padding: .85rem;
    }
    .home-hero-title {
        font-size: 1rem;
        line-height: 1.28;
        margin-bottom: .45rem;
    }
    .home-hero-img,
    .latest-thumb-img,
    .city-news-img,
    .feed-img {
        object-fit: contain;
        background: #f4f4f4;
    }
    .home-hero-excerpt {
        font-size: .86rem;
        line-height: 1.48;
        font-weight: 600;
    }
    .home-hero-excerpt-sm {
        font-size: .8rem;
        line-height: 1.42;
        font-weight: 600;
    }
    .banner-slide-img {
        height: auto;
        aspect-ratio: 16 / 6.5;
        min-height: 0;
        max-height: 180px;
        object-fit: contain;
        background: #ffffff;
        transform: none;
    }
    .banner-slider .carousel-item .banner-slide-img {
        object-fit: contain;
        transform: none;
    }
    .banner-slider .carousel-item {
        height: auto;
        min-height: 0;
        background: #ffffff;
    }
    .banner-slide-caption {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 2.3rem;
        transform: none;
    }
    .banner-slide-caption p {
        display: none;
    }
    .banner-slider .carousel-control-prev,
    .banner-slider .carousel-control-next {
        display: none;
    }
    .banner-slider .carousel-indicators {
        left: 1rem;
        bottom: .85rem;
    }
    .latest-panel,
    .category-strip {
        padding: .75rem;
    }
    .city-latest-heading h2 {
        font-size: 1.18rem;
    }
    .city-latest-title {
        margin-bottom: .55rem;
        font-size: .82rem;
        line-height: 1.25;
    }
    .city-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }
    .city-news-card {
        min-height: auto;
    }
    .city-news-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .city-news-body {
        padding: .7rem;
    }
    .city-news-card h3 {
        font-size: .84rem;
        line-height: 1.28;
        font-weight: 900;
    }
    .city-news-card p {
        min-height: 0;
        font-size: .74rem;
        line-height: 1.36;
        font-weight: 800;
    }
    .city-news-meta {
        gap: .45rem;
        font-size: .68rem;
    }
    .city-info-main {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }
    .city-page-logo {
        width: 62px;
        height: 62px;
    }
    .city-info-brand h2 {
        font-size: 1.05rem;
    }
    .city-info-brand p {
        font-size: .8rem;
    }
    .city-social-links {
        width: 100%;
        justify-content: flex-start;
        gap: .45rem;
    }
    .city-social-link {
        min-height: 34px;
        padding: .4rem .58rem;
        font-size: .78rem;
    }
    .latest-item {
        grid-template-columns: 82px 1fr;
        gap: .65rem;
        padding-bottom: .75rem;
    }
    .latest-item h3 {
        font-size: .85rem;
        line-height: 1.28;
        font-weight: 900;
    }
    .latest-item time,
    .latest-cat {
        font-size: .72rem;
    }
    .feed-card {
        grid-template-columns: 1fr;
    }
    .feed-meta {
        gap: .45rem;
        margin-bottom: .45rem;
        font-size: .62rem;
    }
    .feed-card h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: .45rem;
    }
    .feed-card p {
        font-size: .84rem;
        line-height: 1.45;
        font-weight: 600;
        margin-bottom: .65rem;
    }
    .read-link {
        font-size: .82rem;
    }
    .home-pagination {
        padding: .7rem;
    }
    .home-pagination .pagination {
        gap: .35rem;
    }
    .home-pagination .page-link {
        min-width: 38px;
        height: 38px;
        font-size: .9rem;
    }
    .home-pagination .page-control span {
        display: none;
    }
    .home-pagination .page-control {
        padding-inline: .75rem;
    }
    .pdf-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .pdf-preview-frame {
        height: 520px;
    }
    .epaper-viewer-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }
    .epaper-pdf-frame {
        height: 560px;
    }
    .read-more-news-heading h3 {
        font-size: 1.15rem;
    }
    .news-gallery-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .news-gallery-item img {
        aspect-ratio: 16 / 10;
    }
    .news-gallery-inline-item img {
        max-height: 360px;
    }
    .gallery-preview-modal {
        padding: .75rem;
    }
    .gallery-preview-frame {
        height: 78vh;
    }
    .gallery-preview-close,
    .gallery-preview-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .gallery-preview-prev {
        left: .5rem;
    }
    .gallery-preview-next {
        right: .5rem;
    }
    .read-more-news-item {
        grid-template-columns: 82px 1fr;
        gap: .75rem;
        min-height: 100px;
        padding: .55rem;
    }
    .read-more-news-thumb {
        width: 82px;
        height: 82px;
    }
    .read-more-news-content strong {
        font-size: 1rem;
        line-height: 1.4;
    }
    .read-more-news-content small {
        font-size: .88rem;
        line-height: 1.45;
    }
    .feed-img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .feed-media {
        height: auto;
    }
    .carousel-item {
        height: 40vh;
        min-height: 220px;
    }
    .card.mb-4 .card-img-top {
        height: 200px;
    }
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.28rem; }
    h3, .h3 { font-size: 1.1rem; }
    h4, .h4 { font-size: 1rem; }
    .card-title { font-size: 1.08rem; }
    .card-text {
        font-size: .9rem;
        line-height: 1.48;
        font-weight: 600;
    }
    .card-text p,
    .card-text div,
    .card-text span,
    .card-text li {
        line-height: 1.48;
    }
    .card-body {
        padding: .78rem;
    }
    .site-sidebar {
        margin-top: 1rem;
    }
    .sidebar-widget {
        margin-bottom: .85rem !important;
        border-radius: 6px;
    }
    .sidebar-widget .sidebar-widget-header {
        min-height: 34px;
        padding: .48rem .65rem;
        font-size: .76rem;
        line-height: 1.2;
    }
    .sidebar-widget-header span {
        gap: .25rem;
    }
    .sidebar-menu-link,
    .sidebar-news-link {
        gap: .34rem;
        padding: .34rem .5rem;
    }
    .sidebar-link-icon,
    .sidebar-news-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        border-radius: 6px;
        font-size: .66rem;
    }
    .sidebar-link-text,
    .sidebar-news-link span:last-child {
        font-size: .74rem;
        line-height: 1.15;
        font-weight: 800;
    }
    .sidebar-link-arrow {
        font-size: .72rem;
    }
    .daily-rate-card .card-header small {
        font-size: .68rem;
    }
    .daily-rate-item {
        padding: .68rem;
    }
    .daily-rate-date,
    .daily-rate-sponsor,
    .daily-rate-value span {
        font-size: .68rem;
    }
    .daily-rate-values {
        gap: .45rem;
    }
    .daily-rate-value {
        padding: .58rem;
    }
    .daily-rate-value strong {
        font-size: .88rem;
    }
    .footer-viewers-badge {
        font-size: .78rem;
        padding: .42rem .72rem;
    }
}

@media (max-width: 420px) {
    .banner-slide-img {
        aspect-ratio: 16 / 6.5;
        min-height: 0;
        max-height: 160px;
    }
}
