
:root {
  --red: #bb071c;
  --dark-red: #be0921;
  --black: #000000;
  --dark: #111111;
  --gray: #2C2C2C;
  --light-gray: #F2F2F2;
  --white: #ece8e8;
  --text: #000000a6;
  --muted: #666666;
  --gold: #C8992A;
  --border: #E0E0E0;
  --blue: #1b27b3;
  --charcoal: #212121;
  --deep-purple : #4a148c;
  --more-clr : #263238; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans', sans-serif; background: var(--white); color: var(--text); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* TOP BAR */
.topbar { background: var(--blue); color: #f8f0f0; font-size: 11px; padding: 6px 0; border-bottom: 1px solid #333; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.topbar-date { display: flex; gap: 16px; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-links a { color: #faf5f5; font-size: 11px; }
.topbar-links a:hover { color: var(--red); }
.lang-toggle { background: var(--red); color: white; padding: 2px 10px; border-radius: 2px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* HEADER */
.header { background: var(--white); border-bottom: 3px solid var(--red); position: relative; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { background: var(--red); color: white; width: 44px; height: 44px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; font-family: 'Playfair Display', serif; }
.logo-text .main { font-size: 22px; font-weight: 900; color: var(--red); font-family: 'Playfair Display', serif; }*/
.logo-text .sub { font-size: 10px; color: #000000; font-family:'Playfair Display', serif ; letter-spacing: 1px; text-transform: uppercase; font-weight : 700; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-widgets {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.widget-item{
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--light-gray);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowarap;
}
.widget-item span{
  color: var(--red);
  font-weight: 700;
}
.live-badge { display: flex; align-items: center; gap: 6px; background: var(--red); color: white; padding: 6px 14px; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.live-dot { width: 7px; height: 7px; background: white; border-radius: 50%; animation: pulse 1.2s infinite; }
.search-btn { background: none; border: none; font-size: 18px; color: var(--text); cursor: pointer; }
.search-dropdown {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  align-items: center;
  gap: 10px;
}

.search-dropdown.active {
  display: flex;
}

#search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  font-family: 'Noto Sans', sans-serif;
}

#search-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

#search-close:hover {
  color: var(--red);
}
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/*  NAV  */
.nav { background: var(--blue); position: relative !important; top: 0 !important; z-index: 999; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item { color: #ddd; font-size: 11px; font-weight: 600; padding: 9px 9px; white-space: nowrap; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; text-transform: capitalize; letter-spacing: 0.3px; }
.nav-item:hover, .nav-item.active { color: white; border-bottom-color: var(--red); }
.nav-item.active { color: var(--red); }

/*TICKER */
.ticker { background: var(--red); color: white; display: flex; align-items: center; overflow: hidden; height: 36px; }
.ticker-label { background: var(--dark-red); padding: 0 16px; height: 100%; display: flex; align-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; gap: 6px; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; font-size: 13px; }
.ticker-content span { padding: 0 40px; }
.ticker-content span::before { content: "●"; margin-right: 12px; opacity: 0.7; font-size: 8px; }

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

/*LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section-divider { height: 8px; background: var(--light-gray); margin: 20px 0; }

/*HERO */
.hero { padding: 20px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.hero-img-placeholder { width: 100%; height: 420px; border-radius: 2px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-img-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2; }
.breaking-badge { display: inline-block; background: var(--red); color: white; font-size: 10px; font-weight: 800; padding: 3px 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; animation: blink-bg 2s infinite; }
.hero-title { font-size: 26px; font-weight: 900; color: white; line-height: 1.3; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.hero-meta { color: #ccc; font-size: 12px; display: flex; gap: 12px; }

@keyframes blink-bg {
  0%, 100% { background: var(--red); }
  50% { background: var(--dark-red); }
}

/* SIDEBAR STORIES  */
.hero-sidebar { display: flex; flex-direction: column; }
.side-story { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.side-story:hover .side-title { color: var(--red); }
.side-story:last-child { border-bottom: none; }
.side-thumb { width: 90px; height: 65px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: #ddd; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.side-title { font-size: 13px; font-weight: 700; line-height: 1.4; transition: color 0.2s; }
.side-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* SECTION HEADERS */
.section-header { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: var(--text); text-transform: uppercase; font-family: 'Playfair Display', serif; }
.section-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--red); border-radius: 2px; }
.see-all { font-size: 12px; color: var(--red); font-weight: 600; cursor: pointer; }
.see-all:hover { text-decoration: underline; }

/* MAIN LAYOUT  */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 20px 0; }

/* NEWS GRIDS  */
.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.news-card { cursor: pointer; }
.news-card:hover .card-title { color: var(--red); }
.card-thumb { width: 100%; height: 170px; border-radius: 2px; overflow: hidden; background: #eee; position: relative; margin-bottom: 10px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .card-thumb img { transform: scale(1.05); }
.card-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; margin-bottom: 5px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); transition: color 0.2s; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 11px; color: var(--muted); }
.exclusive-badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: white; font-size: 9px; font-weight: 800; padding: 2px 8px; text-transform: uppercase; }

/* TOP STORIES */
.top-story { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.top-story:hover .ts-title { color: var(--red); }
.ts-num { font-size: 28px; font-weight: 900; color: var(--border); min-width: 36px; font-family: 'Playfair Display', serif; line-height: 1; }
.ts-thumb { width: 100px; height: 72px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: #eee; }
.ts-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ts-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.ts-title { font-size: 14px; font-weight: 700; line-height: 1.4; transition: color 0.2s; }
.ts-time { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* SIDEBAR  */
.trending-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.trending-item:hover .tr-title { color: var(--red); }
.tr-num { font-size: 20px; font-weight: 900; color: var(--red); min-width: 28px; font-family: 'Playfair Display', serif; opacity: 0.6; }
.tr-title { font-size: 13px; font-weight: 600; line-height: 1.4; transition: color 0.2s; }

/* LIVE PLAYER*/
.live-player { background: var(--black); border-radius: 4px; overflow: hidden; position: relative; padding-bottom: 56.25%; height: 0; }
.live-player-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0a0a, #1a0a0a); flex-direction: column; gap: 12px; }
.live-play-btn { width: 64px; height: 64px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; cursor: pointer; transition: transform 0.2s; }
.live-play-btn:hover { transform: scale(1.1); }
.live-label { color: white; font-size: 16px; font-weight: 700; }
.live-sub { color: #888; font-size: 12px; }

/* VIDEO CLIPS  */
.video-clip { cursor: pointer; }
.video-clip:hover .vc-title { color: var(--red); }
.vc-thumb { width: 100%; height: 140px; border-radius: 2px; overflow: hidden; background: #111; position: relative; margin-bottom: 8px; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.vc-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vc-play-btn { width: 38px; height: 38px; background: rgba(148, 3, 19, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; }
.vc-duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: white; font-size: 10px; padding: 1px 5px; border-radius: 2px; }
.vc-title { font-size: 13px; font-weight: 700; line-height: 1.4; transition: color 0.2s; }
.vc-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/*  RASHIFAL */
.rashifal-section { background: linear-gradient(135deg, #1a0a2e, #2d1460); padding: 24px 0; margin: 10px 0; }
.rashifal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.rashi-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s; }
.rashi-card:hover { background: rgba(200,153,42,0.2); border-color: var(--gold); transform: translateY(-2px); }
.rashi-emoji { font-size: 28px; margin-bottom: 6px; }
.rashi-name { font-size: 13px; font-weight: 700; color: white; margin-bottom: 3px; }
.rashi-eng { font-size: 10px; color: rgba(255,255,255,0.5); }

/* NEWSLETTER */
.newsletter { background: var(--red); padding: 32px 0; margin: 20px 0 0; text-align: center; }
.newsletter h3 { font-size: 22px; font-weight: 900; color: white; margin-bottom: 6px; font-family: 'Playfair Display', serif; }
.newsletter p { color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 18px; }
.newsletter-form { display: flex; max-width: 420px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 12px 16px; border: none; font-size: 13px; outline: none; border-radius: 2px 0 0 2px; }
.newsletter-btn { background: var(--black); color: white; border: none; padding: 12px 24px; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 0 2px 2px 0; text-transform: uppercase; }
.newsletter-btn:hover { background: #333; }

/*FOOTER*/
.footer { background: var(--black); color: #aaa; padding: 40px 0 0; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 16px 32px; }
.footer-brand p { font-size: 12px; line-height: 1.7; margin: 12px 0; color: #888; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: #222; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; transition: all 0.2s; }
.social-btn:hover { background: var(--red); color: white; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 12px; color: #888; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { background: #050505; text-align: center; padding: 14px; font-size: 11px; color: #555; border-top: 1px solid #222; }

/* MOBILE RESPONSIVE BLOCK (Fixes White Space & Layout) */
@media (max-width: 768px) {
    /* 1. LOCK THE SCREEN WIDTH (Prevents side-scrolling/white space) */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. HEADER & LOGO RESET */
    .header-inner {
        flex-direction: column !important;
        height: auto !important;
        padding: 10px 0 !important;
    }

    .logo {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    .logo img {
        max-width: 120px !important; /* Forces logo to stay small */
        height: auto !important;
    }

    /* 3. HIDE CLUTTER (Widgets & Badges that explode the width) */
    .header-widgets, 
    .header-right .live-badge, 
    .topbar-date span:nth-child(2), 
    .topbar-date span:nth-child(3) {
        display: none !important;
    }

    /* 4. NAVIGATION BAR (Swipeable menu) */
    .nav {
        position: relative !important;
        top: 0 !important;
    }

    .nav-inner {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 12px !important;
        gap: 15px !important;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        flex: 0 0 auto !important;
    }

    /* 5. HERO & GRID LAYOUT (Stacking items vertically) */
    .hero-grid, .main-layout, .footer-grid {
        display: block !important;
        width: 100% !important;
    }

    .hero-main {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .hero-img-placeholder img {
        height: 220px !important; /* Perfect height for mobile */
        object-fit: cover;
    }

    .hero-title {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }

    /* 6. SIDEBAR & GRIDS (2 columns for smaller cards) */
    .hero-sidebar, .news-grid-4, .news-grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .rashifal-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* 7. WIDE CONTAINERS */
    .container {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .ticker {
        width: 100% !important;
    }
    
    /* ... your existing mobile fixes (Logo, Header, etc.) ... */

   /* --- ULTIMATE FOOTER GRID FORCE --- */
    /* 1. Force the main container to allow side-by-side */
    .footer .footer-grid {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side */
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 20px 15px !important;
    }

    /* 2. The Brand (Logo) stays 100% wide at the top */
    .footer .footer-brand {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    /* 3. THE MAGIC: Force the 3 columns into 2 rows (Side-by-Side) */
    .footer .footer-col {
        flex: 0 0 45% !important; /* This physically forces two per row */
        width: 45% !important;
        margin-bottom: 25px !important;
        display: block !important; /* Reset from any grid settings */
    }

    /* 4. Compact the text to save even more vertical space */
    .footer .footer-col h4 {
        font-size: 16px !important;
        color: #C8992A !important; /* That gold color from your screenshot */
        margin-bottom: 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 5px;
    }

    .footer .footer-links li {
        margin-bottom: 6px !important;
    }

    .footer .footer-links li a {
        font-size: 13px !important;
        white-space: nowrap; /* Prevents text wrapping to a new line */
    }

    /* 5. Clean up the bottom area */
    .footer-bottom {
        flex: 0 0 100% !important;
        width: 100% !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px !important;
        margin-top: 10px !important;
    }
}
/* Extra small fix for very tiny phones */
@media (max-width: 400px) {
    .hero-sidebar, .news-grid-4 {
        grid-template-columns: 1fr !important; /* Stack to 1 column on tiny phones */
    }
    .rashifal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* MOBILE LOGO & HEADER POLISH */
@media (max-width: 768px) {
    /* Center the entire logo container */
    .logo {
        display: flex !important;
        flex-direction: row !important; /* Keep icon and text side-by-side */
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 10px 0 !important;
        gap: 10px !important;
    }

    /* Shrink the logo icon so it doesn't push things around */
    .logo-icon img {
        width: 60px !important; /* Adjusted size for mobile */
        height: auto !important;
    }

    /* Adjust the text size so it fits on one line */
    .logo-text .main {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }

    .logo-text .sub {
        font-size: 0.8rem !important;
    }

    /* Ensure the search button and Free OTT stay neatly below or aside */
    .header-right {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 15px !important;
        padding-bottom: 10px !important;
    }
}
