/* Redesign CSS for News Portal */
:root {
    --primary-red: #cc0000;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

.d-none { display: none !important; }
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
}

.mobile-sub-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.top-links li a.apply-reporter {
    background: #ffcc00;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.top-links li a.apply-reporter:hover {
    background: #fff;
    color: #ffcc00;
}

body {
    font-family: 'Lato', sans-serif;
}

body.overflow-hidden {
    overflow: hidden;
}

/* Header Styles */
.top-header {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    background: var(--primary-red);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    transition: var(--transition);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    margin-right: 15px;
    position: relative;
}

.nav-menu ul li a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 5px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    color: #ffd700;
}

/* Sub-menu Styling and Hover Logic */
.nav-menu ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    z-index: 1001;
    border-top: 3px solid var(--primary-red);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .nav-menu ul li:hover > .sub-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Footer Styles */
.footer-redesign {
    background: var(--primary-red);
    background: linear-gradient(135deg, #a00000 0%, #bd9800 100%);
    color: #fff;
}

.footer-redesign h4 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-redesign p {
    line-height: 1.8;
}

.footer-redesign .social-links a {
    color: #fff;
    background: rgba(255,255,255,0.2);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-redesign .social-links a:hover {
    background: #ffcc00;
    color: #000;
}

.footer-bottom {
    background: #b71c1c;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #fff !important;
}

/* Modal and Notification Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-red);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.notification-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
    display: none;
    border-left: 5px solid var(--primary-red);
}

/* Ticker Marquee Refinement */
.ticker-news-box {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-marquee {
    display: inline-block;
    padding-left: 20px; /* Reduced lead-in padding */
    animation: marquee 50s linear infinite;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.news-item {
    display: inline-block;
    margin-right: 80px; /* More spacing between items */
    font-size: 15px;
}

/* Responsive adjustments */
/* Header Actions */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links a {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.top-links a i {
    color: var(--primary-red);
    margin-right: 5px;
}

.top-links a:hover {
    color: var(--primary-red);
}

.top-social {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

.top-social a {
    color: #444;
    font-size: 14px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--primary-red);
}

.current-date {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.current-date i {
    color: var(--primary-red);
    margin-right: 5px;
}

.top-right {
    display: flex;
    align-items: center;
}

.header-actions a {
    color: #fff;
    font-size: 18px;
    transition: var(--transition);
}

.header-actions a:hover {
    color: #ffd700;
}

/* Consolidate: Removed redundant .sub-menu block from here */
.sub-menu li {
    margin: 0 !important;
}

.sub-menu li a {
    color: #333 !important;
    display: block;
    padding: 10px 20px !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

.sub-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary-red) !important;
}

/* Search Overlay Dropdown */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    color: #666;
    font-size: 35px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-search:hover {
    color: var(--primary-red);
}

.search-form-container {
    width: 80%;
    max-width: 800px;
}

.search-form-container form {
    display: flex;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px;
}

.search-form-container input {
    background: transparent;
    border: none;
    color: #333;
    font-size: 20px;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}

.search-form-container input::placeholder {
    color: #999;
}

.search-form-container button {
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-size: 22px;
    cursor: pointer;
    padding: 0 15px;
}

/* Footer details */
.footer-links li { margin-bottom: 12px; }
.footer-logo { max-height: 60px;filter: brightness(1) invert(0); }
.footer-links li a { color: #fff; text-decoration: none; transition: var(--transition); display: block; }
.footer-links li a i { font-size: 10px; margin-right: 10px; color: #ffcc00; }
.footer-links li a:hover { color: #ffcc00; padding-left: 5px; }

.contact-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.contact-list li i { color: #ffcc00; margin-top: 5px; }

.btn-red-outline {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-red-outline:hover {
    background: var(--primary-red);
    color: #fff;
}

.btn-white-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-white-outline:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .header-main .container {
        padding: 5px 15px;
    }
    
    .logo img {
        max-height: 40px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--dark-bg);
        z-index: 10002;
        transition: left 0.3s ease;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    .nav-menu.mobile-active {
        display: block;
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0 20px;
    }

    .nav-menu ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu ul li a {
        display: block;
        padding: 15px 0;
    }

    .nav-menu ul li .sub-menu {
        position: static;
        background: rgba(0,0,0,0.3);
        box-shadow: none;
        padding-left: 20px;
        border-top: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul li .sub-menu li a {
        color: rgba(255,255,255,0.8) !important;
    }

    .mobile-toggle {
        display: block;
    }

    .top-header {
        display: block;
        padding: 5px 0;
    }
    .top-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .top-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .top-social {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .top-translate {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
}

.mobile-overlay.active {
    display: block;
}

/* Live TV Modal */
.tv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tv-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tv-modal-content {
    background: #000;
    width: 90%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-tv-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-tv-modal:hover {
    color: var(--primary-red);
}

.tv-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.tv-video-container iframe,
.tv-video-container object,
.tv-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero Section Styles */
.hero-section {
    padding: 20px 0;
    background: #f4f4f4;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    height: 600px;
}

.hero-side-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 100%;
}

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

.hero-item:hover img {
    transform: scale(1.05);
}

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

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-category {
    background: var(--primary-red);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 2px;
}

.hero-category.sub-cat {
    background: #444;
}

.hero-date {
    font-size: 12px;
    color: #ccc;
    margin-left: 10px;
    display: inline-block;
}

.hero-item h2 {
    font-size: 18px;
    margin: 5px 0 0;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.hero-item h2 a {
    color: #fff;
    text-decoration: none;
}

.large-hero h2 {
    font-size: 32px;
}

.large-hero p {
    font-size: 14px;
    color: #ddd;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Hero Specifics */
.small-hero .hero-content {
    padding: 15px;
}

.small-hero h2 {
    font-size: 15px;
}

/* Responsive Hero Grid */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hero-side-column {
        display: none; /* Hide side columns on mobile for better focus */
    }
    
    .hero-main-column {
        height: 400px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-grid {
        height: 500px;
    }
    .large-hero h2 {
        font-size: 26px;
    }
}

/* Category Grid Section */
.category-grid-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.cat-column-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.cat-column-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    padding-bottom: 5px;
    margin-bottom: 20px;
    border-bottom: 3px solid #e40000;
    text-transform: uppercase;
    display: inline-block;
}

.cat-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-news-item {
    display: flex;
    gap: 12px;
    align-items: center;
    transition: transform 0.2s ease;
    text-decoration: none !important;
}

.cat-news-item:hover {
    transform: translateX(5px);
}

.cat-news-item img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
}

.cat-news-item h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slider-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    padding-left: 15px;
}

.slider-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background: #e40000;
    border-radius: 10px;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.slider-container::-webkit-scrollbar {
    height: 6px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.slider-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
}

.slider-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-card:hover img {
    transform: scale(1.1);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}

.slider-overlay h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .slider-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .slider-item {
        flex: 0 0 100%;
    }
}
