* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================ TV19 NEWS - MAIN STYLESHEET  ============================================ */
/* --- THEME VARIABLES --- */
:root {
    --brand-color: #ff5722;
    --brand-dark: #1a1a1a;
    --bg-body: #f4f6f8;
    --font-head: 'Roboto Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Oswald', sans-serif;
    --card-border: #e1e4e8;
}

img {
    width: 100%;
    height: 100%;
}

/* --- BASE STYLES --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: #111;
    overflow-x: hidden;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

a:hover {
    color: var(--brand-color);
}

.help-block {
    font-size: 12px;
}

/* --- CUSTOM LOGO CSS --- */
.tv19-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-logo);
    line-height: 1;
    text-decoration: none !important;
    width: 133px;
    height: 39px;
}

/* --- AD SECTIONS --- */
.ad-section-wrapper {
    width: 100%;
    background: #f8f9fa;
    border-top: 1px dashed #ced4da;
    border-bottom: 1px dashed #ced4da;
    margin: 40px 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ad-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-box {
    background: #fff;
    border: 1px solid #ccc;
    width: 728px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    max-width: 100%;
}

/* --- MARKET TICKER --- */
.market-ticker-wrap {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
}

.market-scroll {
    display: inline-block;
    animation: scrollMarkets 40s linear infinite;
}

@keyframes scrollMarkets {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.market-pill {
    display: inline-flex;
    align-items: center;
    background: #222;
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    margin-right: 15px;
    font-weight: 600;
}

.market-pill .val {
    margin-left: 5px;
    color: #ddd;
}

.market-pill .up {
    color: #4cd964;
    margin-left: 8px;
}

.market-pill .down {
    color: #ff3b30;
    margin-left: 8px;
}

/* --- CARD STYLES --- */
.news-card,
.news-item,
.hero-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    border-bottom: 3px solid var(--card-border);
    position: relative;
    top: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.news-card:hover,
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--brand-color);
    border-color: transparent;
}

/* --- CLICKABLE CARD STYLES --- */
.news-card,
.news-item {
    cursor: pointer;
    display: block;
}

.news-card .card-link,
.news-item .card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.news-card .card-content,
.news-item .card-content {
    position: relative;
    z-index: 1;
}

.trending_story .news-card {
    height: 100%;
}

/* --- LIST ENTRY CLICKABLE --- */
.list-entry {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    transition: 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    left: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.list-entry:hover {
    background: #fafafa;
    border-left-color: var(--brand-color);
    left: 5px;
    color: inherit;
}

.list-entry:hover .news-title {
    color: var(--brand-color);
}

.img-wrap,
.hero-box {
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.news-card .img-wrap {
    height: 175px;
}

.img-wrap img,
.hero-box img {
    transition: transform 0.6s ease;
    width: 100%;
    object-fit: cover;
}

.news-card:hover .img-wrap img,
.news-item:hover .img-wrap img,
.hero-box:hover img {
    transform: scale(1.1);
}

.time-stamp {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.news-card:hover .time-stamp,
.news-item:hover .time-stamp,
.hero-box:hover .time-stamp,
.list-entry:hover .time-stamp {
    color: var(--brand-color) !important;
}

.list-thumb {
    width: 80px;
    height: 60px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
}

/* --- HEADER STYLES --- */
.top-solid-bar {
    background: #ffffff;
    color: #333;
    padding: 15px 0;
    font-size: 12px;
    position: relative;
    z-index: 1051;
}

.main-navbar {
    background-color: #222;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: top 0.3s;
    z-index: 1050;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    animation: slideDown 0.3s ease-in-out;
}

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

    to {
        transform: translateY(0);
    }
}

.nav-link {
    color: #fff !important;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 18px 15px !important;
}

.nav-item .nav-link.active {
    background-color: var(--brand-color);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* --- BREAKING NEWS TICKER --- */
.ticker-wrap {
    background: #fff;
    border-bottom: 1px solid #ddd;
    height: 50px;
}

.ticker-badge {
    background: var(--brand-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.ticker-badge::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    border-left: 15px solid var(--brand-color);
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
}

.ticker-text {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 105s linear infinite;
}

.ticker-item {
    color: #333;
    font-size: 14px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.ticker-item::before {
    content: '•';
    color: var(--brand-color);
    margin-right: 5px;
    font-size: 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.ticker-track:hover {
    animation-play-state: paused;
}

/* --- LAYOUT UTILITIES --- */
.section-gap {
    margin-bottom: 50px;
}

.section-title {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 5px;
}

.section-title h3 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-color);
}

.view-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-color);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.view-all-link i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.view-all-link:hover i {
    transform: translateX(5px);
}

/* --- COMPONENT STYLES --- */
.card-content {
    padding: 15px;
}

.news-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 5px;
    color: #111;
    transition: color 0.3s ease;
}

.news-card:hover .news-title,
.news-item:hover .news-title {
    color: var(--brand-color);
}

.cat-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-color);
    margin-bottom: 4px;
    display: block;
}

/* --- HERO SLIDER --- */
.hero-box {
    height: 450px;
    background: #000;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hero-carousel-item {
    height: 450px;
    position: relative;
}

.hero-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 4s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent);
    color: #fff;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-box .hero-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* --- CATEGORY SECTION LAYOUTS --- */
.category-section {
    margin-bottom: 50px;
}

.category-featured {
    height: 100%;
}

.category-featured .news-item {
    height: 100%;
}

.category-featured .img-wrap {
    height: 250px;
}

.category-featured .img-wrap img {
    height: 100%;
    object-fit: cover;
}

.category-list {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    height: 100%;
    overflow: hidden;
}

.category-list .list-entry:last-child {
    border-bottom: none;
}

/* --- TYPE C LAYOUT --- */
.type-c-featured .news-item {
    height: 100%;
}

.type-c-featured .img-wrap {
    height: 200px;
}

.type-c-featured .img-wrap img {
    height: 100%;
    object-fit: cover;
}

/* --- WEATHER WIDGET --- */
.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
}

.weather-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.weather-temp {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-head);
}

.weather-city {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 14px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.weather-detail-item {
    text-align: center;
}

.weather-detail-item i {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.weather-detail-item span {
    font-size: 12px;
}

/* --- FOOTER STYLES --- */
footer {
    background: #111;
    color: #aaa;
    padding: 70px 0 30px;
    margin-top: 60px;
    font-size: 14px;
    border-top: 5px solid var(--brand-color);
}

footer h5 {
    color: #fff;
    margin-bottom: 25px;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-color);
}

.footer-logo-text {
    color: #fff;
    font-family: var(--font-logo);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-logo-circle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--logo-gradient);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    margin: 0 5px;
    vertical-align: middle;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff !important;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--brand-color);
    transform: translateY(-3px);
}

.tag-cloud a {
    display: inline-block;
    background: #222;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 0 5px 8px 0;
}

.tag-cloud a:hover {
    background: var(--brand-color);
    color: #fff;
}

footer .input-group .form-control {
    padding: 10px;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #d84315;
    transform: translateY(-3px);
    color: #fff;
}

/* ============================================
SEO ABOUT SECTION (Before Footer)
============================================ */
.seo-about-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 60px 0;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.seo-about-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-about-title .title-icon {
    width: 45px;
    height: 45px;
    background: var(--brand-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.seo-about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.seo-about-text strong {
    color: #333;
}

/* Category Links */
.seo-category-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.seo-cat-label {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

.seo-category-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s ease;
}

.seo-category-links a:hover {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

/* Visual Side */
.seo-about-visual {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.seo-logo-large {
    width: 200px;
    margin: 0px auto 15px;
    display: block;
}

.seo-logo-large .logo-text {
    font-size: 36px;
    color: #333;
    font-weight: 700;
}

.seo-logo-large .logo-circle {
    width: 50px;
    height: 50px;
    background: var(--logo-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 5px;
}

.seo-tagline {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .seo-about-section {
        padding: 40px 0;
    }

    .seo-about-title {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .seo-about-title {
        font-size: 20px;
    }

    .seo-about-title .title-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .seo-category-links {
        justify-content: center;
    }
}

/* ============================================
   SEO INTRO SECTION
  ============================================ */
.seo-intro-section {
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    border-top: 1px solid #f0e6e3;
    border-bottom: 1px solid #f0e6e3;
    padding: 25px 0;
    margin-bottom: 40px;
}

.seo-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.seo-intro-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--brand-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.seo-intro-text {
    flex: 1;
}

.seo-intro-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.seo-intro-text strong {
    color: #222;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767.98px) {
    .seo-intro-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .seo-intro-icon {
        margin: 0 auto;
    }

    .seo-intro-text p {
        font-size: 14px;
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1199px) {
    .container {
        max-width: 100% !important;
    }

    .top-solid-bar {
        padding: 10px 0;
    }

    .ticker-wrap {
        height: 40px;
    }

    .ticker-badge {
        padding: 10px 10px;
    }

    .ticker-badge::after {
        right: -10px;
        border-left: 10px solid var(--brand-color);
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
    }

    .ticker-item {
        font-size: 12px;
    }

    .section-title h3 {
        font-size: 20px;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .news-title {
        font-size: 16px;
    }

    .section-gap {
        margin-bottom: 30px;
    }

    .carousel-control-next,
    .carousel-control-prev {
        width: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-content {
        padding: 35px 20px;
    }

    .carousel-indicators {
        margin-bottom: 10px;
    }

    .list-entry {
        gap: 12px;
        padding: 10px;
    }

    .category-section {
        margin-bottom: 30px;
    }

    .seo-about-section {
        padding: 35px 0;
        margin-top: 30px;
    }

    .seo-about-title {
        font-size: 26px;
        margin-bottom: 15px;
        gap: 10px;
    }

    .seo-about-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    footer {
        padding: 30px 0 20px;
        margin-top: 30px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }

    .ad-section-wrapper {
        margin: 30px 0;
        padding: 15px 0;
    }
}

@media (max-width: 991.98px) {
    .hero-box {
        height: 350px;
    }

    .hero-carousel-item {
        height: 350px;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-featured .img-wrap {
        height: 200px;
    }

    .news-card .img-wrap {
        height: 135px;
    }

    .img-wrap {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .hero-box {
        height: 280px;
    }

    .hero-carousel-item {
        height: 280px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .logo-text-dark {
        font-size: 32px;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .ad-box {
        width: 100%;
        /* height: 60px; */
    }
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    background-image: none !important;
}