/* 
    24 Taas Batami - Masterpiece Stylesheet
    Theme: Ultra-Modern, Editorial, Premium News Agency
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Mukta:wght@200;300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #d60000; /* Rich Editorial Red */
    --primary-dark: #0f172a; /* Deep Midnight Slate */
    --accent-gold: #f59e0b; /* Premium Gold Accents */
    --indigo: #1e1b4b; /* Deep Indigo for Headers */
    --primary: #d60000;
    --dark: #020617; /* Darkest Slate */
    --slate: #1e293b;
    --light: #f8fafc;
    --gold: #f5b301;
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-premium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-premium: 16px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}
body {
    font-family: 'Poppins', 'Mukta', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--light);
    color: var(--slate);
    line-height: 1.6;
}

.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.ls-1 { letter-spacing: 1px; }

.bg-gradient-dark {
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.text-justify { text-align: justify; }

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Premium Animations System */
@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-on-scroll {
    animation: fadeInUpSubtle 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hover-lift {
    transition: var(--transition-premium);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Apply animations to news cards */
.news-card-v2 {
    animation: fadeInUpSubtle 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card-img-v2 img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

/* Top Utility Header */
.top-header {
    background: var(--dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Line Clamping Utilities */
.title-limit-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.title-limit-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.title-limit-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.navbar-brand-custom:hover, .navbar-brand-custom:focus, .navbar-brand-custom:active {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}
.logo-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b30000 100%);
    color: white;
    padding: 8px 15px;
    font-weight: 900;
    font-size: 34px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(214, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.logo-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
.logo-text {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 34px;
    letter-spacing: -1.5px;
    padding-left: 10px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: baseline;
}
.logo-text span {
    color: var(--primary-red);
    font-weight: 400;
    font-size: 34px;
    margin-left: 2px;
}

.footer-logo .logo-text {
    color: white;
}
.footer-logo .logo-text span {
    color: var(--primary-red);
}

/* Premium Navbar */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(15px);
    padding: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-link {
    font-weight: 700;
    font-size: 14px;
    padding: 25px 15px !important;
    color: var(--primary-dark) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-premium);
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: var(--transition-premium);
    transform: translateX(-50%);
}
.nav-link:hover::before, .nav-link.active::before {
    width: 20px;
}
.nav-link:hover {
    color: var(--primary-red) !important;
    transform: translateY(-2px);
}

/* Animated Pulse for LIVE */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-red);
    font-weight: 800;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(227, 30, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

/* Master Hero Slider */
.hero-slider-wrap {
    margin: 30px 0;
    border-radius: var(--radius-premium);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-item-master {
    height: 450px; /* Further reduced from 500px */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition-premium);
}
.hero-content-floating {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding: 20px 30px; 
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-premium);
    color: white;
    transform: translateY(0);
    transition: var(--transition-premium);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.hero-item-master:hover .hero-content-floating {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.hero-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Breaking News Marquee V3 */
.breaking-news {
    background: #0f172a;
    height: 50px;
    color: white;
    z-index: 99;
    display: flex;
    align-items: center;
    margin-top: 10px; 
    margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100vw;
    max-width: 100%;
}
.breaking-label {
    background: var(--primary-red);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    z-index: 20;
}
.breaking-marquee {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 160px; /* Offset for the label */
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-infinite 40s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-content a {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.marquee-content a:hover {
    color: var(--primary-red) !important;
}

/* News Cards V2 */
.news-card-v2 {
    background: var(--white);
    border-radius: var(--radius-premium);
    overflow: hidden;
    transition: var(--transition-premium);
    border: none;
    box-shadow: var(--shadow-subtle);
    height: 100%;
}
.news-card-v2:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}
.card-img-v2 {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.card-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}
.news-card-v2:hover .card-img-v2 img {
    transform: scale(1.1) rotate(1deg);
}
.card-category-v2 {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Master Sidebar */
.sidebar-premium {
    padding-left: 20px;
}
.widget-premium {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-premium);
    margin-bottom: 30px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0,0,0,0.02);
}
.widget-title-premium {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-title-premium::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 10px;
}

/* Stories Ring V2 */
.story-ring-v2 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    padding: 4px;
    transition: var(--transition-premium);
}
.story-ring-v2:hover {
    transform: rotate(15deg) scale(1.1);
}
.story-inner-v2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
}

/* Footer Master */
footer.master-footer {
    background: var(--dark) !important;
    padding: 100px 0 50px;
    color: #94a3b8;
    position: relative;
    border-top: 5px solid var(--primary-red);
}
.footer-link {
    color: #cbd5e1;
    transition: var(--transition-premium);
    display: block;
    margin-bottom: 12px;
}
.footer-link:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}
footer.master-footer h4, footer.master-footer h5 { color: white; }
.footer-btn-subscribe {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-premium);
}
.footer-btn-subscribe:hover {
    background: white;
    color: var(--primary-red);
    transform: scale(1.05);
}

/* Responsive Mobile Fixes */
@media (max-width: 991.98px) {
    .navbar {
        padding: 5px 0 !important; /* Tighter nav bar */
    }
    .navbar-toggler {
        padding: 4px 8px !important;
        margin: 5px 0;
    }
    .hero-item-master {
        height: 400px !important;
    }
    .hero-content-floating {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        padding: 20px 15px !important;
        text-align: center !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(12px) !important;
    }
    .hero-headline {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
        word-wrap: break-word;
    }
    .navbar-brand-custom .logo-box {
        font-size: 18px !important; /* Smaller logo for mobile */
        padding: 3px 6px !important;
        border-radius: 4px !important;
    }
    .navbar-brand-custom .logo-text, 
    .navbar-brand-custom .logo-text span {
        font-size: 18px !important;
    }
    
    /* Section Title Polish - Centered on Mobile */
    .section-title-premium {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .widget-title-premium {
        font-size: 20px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .container, .container-fluid, .container-xl {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    /* Fix for the bottom nav overlapping content */
    body {
        padding-bottom: 90px !important;
    }
    .breaking-news {
        height: 40px !important;
        margin-top: 20px !important; /* Forces the 20px gap above the marquee */
        margin-bottom: 20px !important; /* Symmetrical 20px gap below */
    }
}

@media (max-width: 575.98px) {
    .hero-item-master {
        height: 380px !important;
    }
    .hero-content-floating {
        padding: 15px !important;
        bottom: 10px !important;
    }
    .hero-headline {
        font-size: 15px !important; /* Compact size for mobile readability */
        font-weight: 800 !important;
        line-height: 1.6 !important;
    }
    .hero-content-floating .btn-sm {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    .breaking-news {
        height: 40px !important; /* Slightly increased for better tap target */
    }
    .breaking-label {
        font-size: 10px !important;
        padding: 0 8px !important;
    }
    .breaking-marquee {
        padding-left: 90px !important;
    }
}


/* ============================================
   24 TAAS BATAMI - Article Page Enhancements
   ============================================ */

/* WhatsApp Share Box (Article Page Bottom) */
.whatsapp-share-box {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    color: #ffffff;
    margin: 16px 0;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.2);
}
.whatsapp-share-box .wa-icon {
    font-size: 30px;
    margin-bottom: 4px;
}
.whatsapp-share-box .wa-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}
.whatsapp-share-box .wa-subtitle {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 10px;
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}
.whatsapp-share-box .wa-button {
    background: #ffffff;
    color: #128c7e;
    padding: 9px 24px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    transition: all 0.3s ease;
}
.whatsapp-share-box .wa-button:hover {
    background: #f3f4f6;
    color: #075e54;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* View Count Badge - 24 Taas RED */
.view-count-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.view-count-badge i {
    font-size: 11px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        color: white;
        z-index: 1000;
        padding: 8px 0;
        justify-content: space-around;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    }
    .mobile-bottom-nav a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        text-align: center;
        flex: 1;
        font-size: 10px;
        font-family: 'Noto Sans Devanagari', sans-serif;
    }
    .mobile-bottom-nav a i {
        display: block;
        font-size: 18px;
        margin-bottom: 3px;
    }
    .mobile-bottom-nav a.active {
        color: var(--primary-red);
    }
    body {
        padding-bottom: 70px;
    }
}
