/* ==========================================================
   1. GLOBAL STYLES & BASE RESET
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  transition: background-color 0.3s, color 0.3s;
  background-color: #ffffff;
  color: #333333;
  padding: 5px;
}

body.dark-theme {
  background-color: #121212;
  color: #ffffff;
}

/* Global Container Utility */
.state-highlights-master-container,
.other-states-master-container,
.category-master-container,
.complaint-master-container,
.state-highlights-section,
.other-states-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  display: block;
}

/* ==========================================================
   2. MAIN HEADER & NAVBAR
   ========================================================== */
.main-header-block,
.navbar {
  display: flex;
  background-color: #c40303;
  width: 100%;
}

.main-header-block {
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-box {
  display: flex;
  align-items: center;
  background-color: #c40303;
  padding: 5px 0 5px 8px;
  z-index: 10;
}

.site-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-right-workspace {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
}

.navbar {
  align-items: center;
  padding: 2px 10px;
  flex-grow: 1;
}

.mode-switch-box {
  margin-right: 15px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-switch-slider input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round-btn {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider-round-btn:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-round-btn { background-color: #2196F3; }
input:checked + .slider-round-btn:before { transform: translateX(20px); }

.nav-links {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  scrollbar-width: none;
  justify-content: flex-end;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nav-links::-webkit-scrollbar { display: none; }
.nav-links li { padding: 4px 6px; }

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease-in-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fffb00;
  transition: width 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 251, 0, 0.9);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active {
  color: #fffb00;
  text-shadow: 0 0 12px rgba(255, 251, 0, 0.5);
}

@media screen and (min-width: 992px) {
  .mode-switch-box, .live-dot, .live-text, .live-tv-btn { display: none; }
}

/* ==========================================================
   3. BREAKING NEWS TICKER & LIVE STYLING
   ========================================================== */
.ticker-wrapper {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #c40303;
  height: 35px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.dark-theme .ticker-wrapper { border-color: #444444; }

.ticker-wrapper::before {
  content: "BREAKING NEWS";
  background-color: #c40303;
  color: #ffffff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 0 30px 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: text-scroll 70s linear infinite;
}

.ticker-text span {
  color: #000000;
  font-weight: 600;
  font-size: 14px;
}

body.dark-theme .ticker-text span { color: #ffffff; }

@keyframes text-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Live Text पीला (Yellow) रहेगा */
.live-tv-btn, 
.live-text { 
  color: #ffeb3b !important; 
  font-weight: bold;
}

/* Live Dot हरी (Green) और ब्लिंक करती रहेगी */
.live-dot {
  width: 8px;
  height: 8px;
  background-color: hsl(135, 97%, 46%) !important;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: blink 1s infinite;
  box-shadow: 0 0 8px hsl(135, 97%, 46%);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================
   4. MAIN HERO SECTION & WEB SLIDER
   ========================================================== */
.main-hero-section {
  display: flex;
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 10px;
  gap: 20px;
  width: 100%;
}

.hero-left-main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: calc(100% - 380px);
}

.hero-right-column {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
}

.slider-share-btn {
  background-color: #25D366;
  color: #ffffff;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: auto;
}

.news-hero-slider-wrapper,
.main-news-slider-box {
  width: 100%;
}

.main-news-slider-box {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background-color: #000000;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-media-container { width: 100%; height: 100%; }

.slider-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out, transform 0.6s ease;
}

.main-news-slider-box:hover .slider-media-container img { transform: scale(1.03); }

.slider-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
  color: #ffffff;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.slider-meta-tag { display: flex; gap: 8px; margin-bottom: 6px; }

.tag-badge { background-color: #e11d48; color: #ffffff; padding: 3px 8px; font-size: 11px; font-weight: bold; border-radius: 3px; }
.time-badge { background-color: rgba(255, 255, 255, 0.2); color: #ffffff; padding: 3px 8px; font-size: 10.5px; border-radius: 3px; }

.slider-text-overlay h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slider-bottom-controls { display: flex; justify-content: flex-end; align-items: center; width: 100%; }

.slider-dots-nav { display: flex; gap: 5px; align-items: center; }

.slider-dots-nav .dot {
  width: 7px;
  height: 7px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.slider-dots-nav .dot.active-dot {
  width: 16px;
  background-color: #e11d48;
  border-radius: 4px;
}

/* ==========================================================
   5. VIDEO AD BOX & VERTICAL TRENDING TICKER
   ========================================================== */
.left-ad-box {
  width: 100%;
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.ad-label {
  font-size: 10px;
  color: #999999;
  text-align: center;
  padding: 4px 0;
  background-color: #222222;
  letter-spacing: 1px;
  font-weight: bold;
}

.ad-content { width: 100%; position: relative; background-color: #000000; }

.ad-video-16-9-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ad-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.trending-section-wrapper {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.trending-header-title { border-bottom: 2px solid #f50808; padding-bottom: 6px; margin-bottom: 12px; }
.trending-header-title h2 { font-size: 18px; color: #f50808; font-weight: bold; margin: 0; }

.trending-marquee-vertical-window { width: 100%; height: 400px; overflow: hidden; position: relative; }
.trending-marquee-vertical-track { display: flex; flex-direction: column; width: 100%; }

.marquee-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: infiniteVerticalScrollTrack 15s linear infinite;
}

.trending-marquee-vertical-track:hover .marquee-group { animation-play-state: paused; }

.trending-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.trending-item-thumb { width: 80px; height: 55px; min-width: 80px; border-radius: 3px; overflow: hidden; }
.trending-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trending-item-text h3 { font-size: 13px; line-height: 1.35; font-weight: bold; margin: 0; color: #222222; }

@keyframes infiniteVerticalScrollTrack {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -100%, 0); }
}

/* ==========================================================
   6. BANNERS & GRID LAYOUTS
   ========================================================== */
.slider-bottom-poster-banner {
  width: 60%;
  margin: 15px auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
}

.poster-label-inner { font-size: 11px; color: #64748b; margin-bottom: 6px; font-weight: bold; text-align: center; }
.poster-content-inner img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; display: block; margin: 0 auto; }

.news-container-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 15px;
  max-width: 1250px;
  margin: 0 auto;
  background: #ffffff;
  padding: 12px;
  width: 100%;
}

.section-title {
  grid-column: 1/-1;
  font-size: 20px;
  font-weight: 800;
  color: #b91c1c;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 3px solid #b91c1c;
  padding-bottom: 6px;
}

.main-featured-news img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.main-featured-news h2 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 10px 0 6px; color: #111111; }
.main-featured-news p { font-size: 12px; color: #4b5563; line-height: 1.4; }

.middle-news-list { display: flex; flex-direction: column; gap: 10px; }

.mini-news-item {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.mini-news-item img { width: 85px; height: 60px; object-fit: cover; border-radius: 4px; }
.mini-news-text h4 { font-size: 12px; line-height: 1.3; color: #1f2937; margin-bottom: 4px; }
.mini-news-text span { font-size: 10.5px; color: #6b7280; }

.sidebar-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  background: #000000;
  border-radius: 4px;
}

.slider-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.flip-ad-master-viewport { width: 100%; max-width: 500px; margin: 25px auto; padding: 0 15px; }
.flip-ad-label-tag { font-size: 11px; color: #94a3b8; text-align: center; margin-bottom: 6px; font-weight: bold; }
.flip-ad-screen-frame { width: 100%; height: 240px; position: relative; perspective: 1000px; }
.flip-ad-slider-track { width: 100%; height: 100%; position: absolute; }

.flip-ad-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  opacity: 0;
  transform: rotateX(-90deg);
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-ad-slide-image.active { opacity: 1; transform: rotateX(0deg); z-index: 5; }

/* ==========================================================
   7. SIWAN LOCAL NEWS SECTION
   ========================================================== */
.siwan-local-section { max-width: 1200px; margin: 40px auto; padding: 0 10px; }
.siwan-title-bar { border-bottom: 3px solid #0099ff; padding-bottom: 8px; margin-bottom: 20px; }
.siwan-title-bar h2 { font-size: 22px; color: #111111; font-weight: bold; margin: 0; }

.siwan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.siwan-box {
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.siwan-box:hover { transform: translateY(-5px); box-shadow: 0px 8px 16px rgba(0,0,0,0.12); }
.siwan-img { position: relative; width: 100%; height: 190px; overflow: hidden; }
.siwan-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.siwan-box:hover .siwan-img img { transform: scale(1.04); }

.siwan-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 153, 255, 0.9);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  z-index: 2;
}

.siwan-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.siwan-info h3 { font-size: 15px; line-height: 1.4; margin-bottom: 8px; font-weight: bold; }
.siwan-info h3 a { color: #111111; text-decoration: none; transition: color 0.2s ease; }
.siwan-info h3 a:hover { color: #0099ff; }
.siwan-info p { font-size: 13px; color: #666666; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.siwan-time { font-size: 11px; color: #999999; font-weight: bold; margin-top: auto; }

@media (max-width: 850px) { .siwan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .siwan-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   8. STATE HIGHLIGHTS & OTHER STATES SECTION
   ========================================================== */
.highlights-title-bar, .other-states-title-bar {
  border-bottom: 2px solid #ced4da;
  padding-bottom: 8px;
  margin-bottom: 20px;
  position: relative;
}

.highlights-title-bar h2, .other-states-title-bar h2 { font-size: 20px; color: #111111; font-weight: bold; margin: 0; }

.highlights-title-bar::after, .other-states-title-bar::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
}

.highlights-title-bar::after { background-color: #ff0000; }
.other-states-title-bar::after { background-color: #002f6c; }

.highlights-grid-four-lines, .other-states-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.state-highlight-card, .other-state-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #eef2f5;
  display: flex;
  flex-direction: column;
}

.state-card-header, .other-card-header { color: #ffffff; padding: 8px 12px; font-size: 14px; font-weight: bold; text-align: center; }

.state-card-header.siwan-theme { background-color: #007bff; }
.state-card-header.gopal-theme { background-color: #28a745; }
.state-card-header.saran-theme { background-color: #fd7e14; }
.state-card-header.patna-theme { background-color: #dc3545; }
.state-card-header.up-theme { background-color: #e1306c; }
.state-card-header.dl-theme { background-color: #17a2b8; }
.state-card-header.jh-theme { background-color: #20c997; }
.state-card-header.nat-theme { background-color: #6c757d; }

.other-card-header.up-color-theme { background-color: #e65100; }
.other-card-header.jh-color-theme { background-color: #2e7d32; }
.other-card-header.dl-color-theme { background-color: #0288d1; }
.other-card-header.mum-color-theme { background-color: #7b1fa2; }

.state-card-body, .other-card-body { padding: 12px; flex-grow: 1; background-color: #ffffff; }
.highlights-bullet-list, .other-bullet-list { list-style: none; padding: 0; margin: 0; }

.highlights-bullet-list li, .other-bullet-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.highlights-bullet-list li::before, .other-bullet-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
}

.highlights-bullet-list li::before { color: #ff0000; }
.other-bullet-list li::before { color: #002f6c; }

.highlights-bullet-list li a, .other-bullet-list li a {
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.highlights-bullet-list li a:hover { color: #ff0000; text-decoration: underline; }
.other-bullet-list li a:hover { color: #002f6c; text-decoration: underline; }

@media (max-width: 991px) {
  .highlights-grid-four-lines, .other-states-grid-four { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 576px) {
  .highlights-grid-four-lines, .other-states-grid-four { grid-template-columns: 1fr; gap: 15px; }
  .highlights-title-bar h2, .other-states-title-bar h2 { font-size: 18px; }
}

/* ==========================================================
   9. DUAL COMPACT ADS & TV SCROLLER
   ========================================================== */
.fixed-compact-ad-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  gap: 15px;
}

.compact-ad-card { flex: 1; display: flex; flex-direction: column; }
.compact-ad-mini-label { font-size: 10px; color: #888888; text-align: center; margin-bottom: 5px; font-weight: bold; }

.compact-ad-box-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.compact-ad-box-wrapper a, .compact-ad-box-wrapper img { width: 100%; height: 100%; }
.compact-ad-box-wrapper img { object-fit: cover; }

@media (max-width: 768px) {
  .fixed-compact-ad-container { flex-direction: column; margin: 25px auto; gap: 15px; padding: 0 10px; }
  .compact-ad-box-wrapper { height: 150px; }
}

.tv-scroll-container { height: 185px; overflow: hidden; position: relative; width: 100%; }
.tv-scroll-mover-box { display: flex; flex-direction: column; position: relative; animation: scrollUpAnimation 18s linear infinite; }
.tv-scroll-container:hover .tv-scroll-mover-box { animation-play-state: paused; }

@keyframes scrollUpAnimation {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ==========================================================
   10. CATEGORY & SPORTS/MARKET SECTION
   ========================================================== */
.category-news-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sports-portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; width: 100%; }

.category-column-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-title-bar.sports-border { padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #cbd5e1; }
.category-title-bar.sports-border h2 { font-size: 14px; font-weight: bold; color: #ea580c; margin: 0; }

.category-card-body { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; background: #ffffff; }

.category-news-thumb { width: 100%; background: #f1f5f9; overflow: hidden; aspect-ratio: 1.6; border-radius: 4px; margin-bottom: 8px; }
.category-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-main-title { text-decoration: none; color: #1e293b; font-weight: bold; font-size: 13.5px; }

@media (max-width: 900px) { .category-news-section { grid-template-columns: repeat(2, 1fr); gap: 15px; } }
@media (max-width: 768px) { .sports-portal-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .category-news-section { grid-template-columns: 1fr; gap: 15px; padding: 0 10px; } }

/* ==========================================================
   11. RASHIFAL FRONTEND STYLING
   ========================================================== */
.rashifal-frontend-wrapper { width: 100%; max-width: 1200px; margin: 25px auto; padding: 0 15px; }

.rashifal-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #5b21b6;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid #7c3aed;
  padding-bottom: 8px;
}

.rashifal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }

.rashifal-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rashifal-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); border-color: #c084fc; }
.rashifal-card-img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.rashifal-card-title { font-size: 17px; font-weight: 700; color: #7c3aed; margin: 0; }
.rashifal-card-desc { font-size: 14px; color: #475569; line-height: 1.5; margin: 0 0 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.rashifal-btn {
  display: block;
  text-align: center;
  background: #7c3aed;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.rashifal-btn:hover { background: #6d28d9; }

@media (max-width: 1024px) { .rashifal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .category-news-section { display: block; }
  .category-column-card { width: 100%; margin-bottom: 20px; }
  .rashifal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .rashifal-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   EDUCATION VIDEO FRONTEND
   ========================================================== */
.frontend-slider-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; }
.slider-title { font-size: 22px; font-weight: bold; margin-bottom: 15px; color: #333; position: relative; padding-bottom: 10px; }
.slider-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background-color: #007bff; border-radius: 2px; }

.video-grid-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; width: 100%; }
.video-card-box { background: #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); overflow: hidden; }
.video-ratio-helper { position: relative; width: 100%; padding-bottom: 56.25%; }
.video-ratio-helper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-label-tag { padding: 10px 12px; font-size: 14px; font-weight: 600; color: #ffffff; background: #007bff; text-align: center; }

/* ==========================================================
   12. COMPLAINT/SUGGESTION FORM SECTION
   ========================================================== */
.complaint-form-section { width: 100%; max-width: 1200px; margin: 40px auto; padding: 0 15px; }
.complaint-title-bar h2 { font-size: 20px; color: #111111; font-weight: bold; margin: 0; }

.complaint-layout-flex {
  display: flex;
  gap: 30px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 6px;
  width: 100%;
}

.complaint-info-side { flex: 1; display: flex; flex-direction: column; }
.complaint-info-side h3 { font-size: 18px; color: #6a1b29; font-weight: bold; margin: 0 0 12px; }
.complaint-info-side p { font-size: 13.5px; color: #444444; line-height: 1.6; margin: 0 0 20px; }
.complaint-notice-box { background-color: #fff9db; padding: 15px; font-size: 12.5px; color: #666666; line-height: 1.5; border-radius: 4px; }

.complaint-form-side { flex: 1.3; width: 100%; }
.complaint-input-group { display: flex; flex-direction: column; margin-bottom: 15px; width: 100%; }
.complaint-input-group label { font-size: 12.5px; font-weight: bold; color: #333333; margin-bottom: 6px; }

.complaint-input-group input,
.complaint-input-group select,
.complaint-input-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
  border: none;
  outline: none;
  border-radius: 4px;
  background-color: #f1f3f5;
  color: #333333;
}

.complaint-input-row { display: flex; gap: 15px; width: 100%; }
.complaint-input-row .complaint-input-group { flex: 1; }

.complaint-submit-btn {
  width: 100%;
  background-color: #6a1b29;
  color: #ffffff;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.complaint-submit-btn:hover { background-color: #54141f; }

@media screen and (max-width: 768px) {
  .complaint-form-section { margin: 20px auto; padding: 0 10px; }
  .complaint-layout-flex { flex-direction: column; padding: 15px 10px; gap: 20px; }
  .complaint-input-row { flex-direction: column; gap: 0; }
}

/* ==========================================================
   13. FOOTER & VIDEO SLIDER
   ========================================================== */
.footer-bottom-bar { background-color: #0c1a30; padding: 8px 10px; width: 100%; border-top: 1px solid #182a4a; }
.bottom-container-flex { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; }
.bottom-legal-links, .slim-social-links { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }

.bottom-legal-links a, .slim-social-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 10.5px;
  opacity: 0.9;
}

.copyright-text { color: #ffffff; font-size: 10px; margin: 0; text-align: center; opacity: 0.8; }

.video-slider-container { width: 100%; overflow-x: auto; white-space: nowrap; padding: 20px 0; }
.video-slider { display: flex; gap: 15px; }
.video-box { flex: 0 0 calc(25% - 12px); position: relative; width: 100%; padding-top: 14.06%; background: #000000; border-radius: 8px; overflow: hidden; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ==========================================================
   14. MOBILE RESPONSIVE OVERRIDES (MAX 768px)
   ========================================================== */
@media screen and (max-width: 768px) {
  #main-header { position: sticky; top: 0; z-index: 9999; display: flex; flex-direction: column; width: 100%; }
  .logo-box { width: 100%; height: 55px; display: flex; justify-content: space-between; align-items: center; background-color: #cf0303; padding-right: 5px; }
  .desktop-logo img, .site-logo { height: 65px; max-width: 190px; object-fit: contain; }
  .navbar { background-color: #0b1d3a; padding: 6px 0; order: 1; }
  .nav-links { display: flex; overflow-x: auto; white-space: nowrap; width: 100%; padding: 0 5px; }
  .ticker-wrapper { background-color: #f3f4f6; order: 2; }
  .main-hero-section { flex-direction: column; margin: 10px 0; padding: 0 4px; gap: 12px; }
  .hero-left-main-column, .hero-right-column { width: 100%; }
  .main-news-slider-box { border-radius: 16px; }
  .slider-text-overlay { padding: 24px 10px 6px; }
  .slider-text-overlay h1 { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-container-grid { display: flex; flex-direction: column; padding: 8px; gap: 12px; }
}
@media screen and (max-width: 768px) {
  /* हीरो सेक्शन को मोबाइल में सीधा और फुल विड्थ करें */
  .main-hero-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 5px !important;
    gap: 15px !important;
    box-sizing: border-box !important;
  }

  .hero-left-main-column, 
  .hero-right-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* पोस्टर या ऐड के सिकुड़ने को रोकने के लिए */
  .left-ad-box, 
  .ad-content, 
  .ad-video-16-9-wrapper,
  .slider-bottom-poster-banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .left-ad-box img, 
  .ad-content img,
  .slider-bottom-poster-banner img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: cover !important;
  }
}


* {
    box-sizing: border-box;
}
body {
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, sans-serif;
    background-color: #ffffff !important;
    color: #111827;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.dark-theme {
    background-color: #0f172a !important;
    color: #f8fafc;
}
.main-hero-section {
    background-color: #ffffff;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    gap: 20px;
}
body.dark-theme .main-hero-section {
    background-color: #0f172a;
}
.hero-left-main-column {
    flex: 1;
    min-width: 0;
}
.hero-right-column {
    width: 320px;
    flex-shrink: 0;
}
.details-wrapper {
    background: #ffffff;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
}
body.dark-theme .details-wrapper {
    background: #0f172a;
}
.news-byline-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
    font-size: 14px;
    color: #4b5563;
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
}
body.dark-theme .news-byline-box {
    border-color: #334155;
    color: #94a3b8;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.author-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.publish-date {
    font-size: 13px;
    text-align: right;
    font-weight: 600;
    color: #1d4ed8;
}
body.dark-theme .publish-date {
    color: #60a5fa;
}
.details-media-container {
    width: 100%;
    margin-bottom: 8px;
}
.details-media-container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.image-caption-box {
    background-color: #f8fafc;
    padding: 8px 12px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 18px;
    border-left: 4px solid #1d4ed8;
    font-weight: 500;
    font-family: 'Noto Sans Devanagari', sans-serif;
}
body.dark-theme .image-caption-box {
    background-color: #1e293b;
    color: #cbd5e1;
    border-left-color: #3b82f6;
}
.action-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.share-icons-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.share-btn-circle:hover {
    opacity: 0.85;
}
.btn-copy-link { background-color: #e5e7eb; color: #1f2937; }
.btn-x-twitter { background-color: #000000; }
.btn-facebook { background-color: #1877f2; }
.btn-whatsapp { background-color: #25d366; }
.follow-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #16a34a;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    font-family: 'Mukta', sans-serif;
}
body.dark-theme .follow-whatsapp-btn {
    background: #0f172a;
    color: #4ade80;
    border-color: #22c55e;
}
.details-title {
    font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif !important;
    font-size: 20px !important; /* यहाँ हेडिंग का साइज़ छोटा कर दिया गया है */
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: 0.1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.details-content {
    font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif !important;
    font-size: 20px !important;
    line-height: 1.85 !important;
    color: #1e293b !important;
    font-weight: 400 !important;
    text-align: left !important;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 15px;
}
body.dark-theme .details-title {
    color: #ffffff !important;
}
body.dark-theme .details-content {
    color: #e2e8f0 !important;
}
@media screen and (max-width: 768px) {
    .main-hero-section {
        padding: 12px 14px !important;
        flex-direction: column;
    }
    .hero-right-column {
        width: 100%;
    }
    .details-title {
        font-size: 19px !important; /* मोबाइल के लिए भी हेडिंग का साइज़ और छोटा किया गया है */
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    .details-content {
        font-size: 18px !important;
        line-height: 1.8 !important;
    }
    .news-byline-box {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    .details-media-container img {
        max-height: 260px !important;
    }
    .image-caption-box {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    .share-btn-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }
    .follow-whatsapp-btn {
        padding: 4px 10px !important;
        font-size: 13px !important;
    }
}
/* --- नेवबार फिक्स (CSS के सबसे नीचे पेस्ट करें) --- */

.nav-links {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    list-style: none !important;
}

@media screen and (max-width: 768px) {
    .nav-links {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }
}