/* Yuva Bharat News Main Styling */

:root {
  --red: #e30613;
  --black: #1a1a1a;
  --dark: #222;
  --gray-text: #444;
  --light-gray: #f4f4f4;
  --border: #e4e4e4;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;
  color: var(--gray-text);
  background: #fff;
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--red);
}
img {
  max-width: 100%;
  display: block;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}


.topbar {
  background: var(--black);
  color: #ccc;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 10px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-date {
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topbar-right::-webkit-scrollbar {
  display: none;
}
.topbar-right a {
  color: #ccc;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-right a:hover {
  color: #fff;
}


.logo-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.logo-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  gap: 10px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.logo-img {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo-mark {
  color: var(--red);
  font-size: 22px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-subscribe {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.btn-subscribe:hover {
  background: #000000;
  transition: 0.5s;
}
.account-icon {
  font-size: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.main-nav {
  background: var(--black);
  position: relative;
}
.main-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}
.nav-links {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
.nav-links a {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--red);
}
.nav-tools {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}
.nav-tools::-webkit-scrollbar {
  display: none;
}
.tool {
  color: #ccc;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.tool:hover {
  color: #fff;
}
.tool-icon {
  font-size: 14px;
}
.menu-btn {
  display: none;
}


.focus-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.focus-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.focus-label {
  font-weight: 700;
  color: var(--black);
  margin-right: 4px;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
}
.pill:hover {
  border-color: var(--red);
  color: var(--red);
}
.pill-orange {
  background: linear-gradient(90deg, #ff7a45, #e30613);
  color: #fff;
  border: none;
}
.pill-orange:hover {
  color: #fff;
  opacity: 0.9;
}
.pill-amber {
  background: #f5a623;
  color: #fff;
  border: none;
}
.pill-amber:hover {
  color: #fff;
  opacity: 0.9;
}
.pill-outline {
  border: 1px solid #a855f7;
  color: #a855f7;
}


.news-section {
  padding: 28px 0 6px;
}
.section-head h2,
.section-head-row h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}
.section-head h2 a {
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.arrow {
  color: var(--red);
  font-weight: 400;
}
.divider {
  border: none;
  border-top: 2px solid var(--black);
  margin: 10px 0;
  opacity: 0.08;
}


.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.cols-1 {
  grid-template-columns: 1fr;
}

.news-card .card-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  aspect-ratio: 16/10;
}
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover img {
  transform: scale(1.05);
}
.news-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.news-card h3 a:hover {
  color: var(--red);
}
.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}
.tag {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}
.time {
  color: #999;
}


.hero-row {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
}
.sidebar-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-list .hash {
  color: var(--red);
  font-weight: 700;
  margin-right: 4px;
}
.sidebar-list a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
}
.sidebar-tag {
  display: block;
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 4px;
}

.hero-video-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  z-index: 2;
}
.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hero-location {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
}
.hero-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 16px 0 10px;
}
.hero-title a {
  color: var(--black);
}
.hero-title a:hover {
  color: var(--red);
}
.hero-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
}
.hero-cat {
  color: var(--red);
  font-weight: 700;
}
.hero-time {
  color: #999;
}

.hero-ad {
  background: var(--light-gray);
  border: 1px dashed #ccc;
  text-align: center;
  padding: 16px;
}
.ad-label {
  font-size: 11px;
  color: #999;
  letter-spacing: 1px;
}
.ad-box {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  padding: 10px;
}


.city-news {
  padding: 24px 0;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head-row h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
}
.pin-city-btn {
  background: var(--black);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.state-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.state-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-text);
  flex-shrink: 0;
}
.state-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px 0;
}
.col-block h2 {
  font-size: 21px;
  margin-bottom: 16px;
}
.col-block h2 a {
  color: var(--black);
  display: flex;
  gap: 8px;
  align-items: center;
}
.list-block li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.list-block li:last-child {
  border-bottom: none;
}
.list-block img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.list-block a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  display: block;
}
.list-block a:hover {
  color: var(--red);
}
.list-block .tag {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
}



.rashifal-section {
  padding: 24px 0;
}
.rashifal-nav button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.rashifal-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.rashi-card {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rashi-icon {
  font-size: 34px;
  color: var(--red);
}
.rashi-name {
  font-weight: 700;
  color: var(--black);
  font-size: 14px;
}




@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-main {
    order: 1;
  }
  .sidebar-list {
    order: 2;
  }
  .hero-ad {
    order: 3;
  }
  .ad-box {
    height: 200px;
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .three-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .three-col .col-block:last-child {
    grid-column: 1 / -1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
  .rashifal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .shorts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    height: auto;
    padding: 6px 0;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .topbar-date {
    font-size: 11px;
  }
  .topbar-right {
    gap: 12px;
  }
  .topbar-right a {
    font-size: 11.5px;
  }

  .logo-bar-inner {
    height: auto;
    padding: 12px 0;
  }
  .logo-text {
    font-size: 22px;
  }
  .logo-mark {
    font-size: 18px;
  }
  .logo-img {
    height: 42px;
  }
  .btn-subscribe {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .account-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .main-nav-inner {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black);
    padding: 10px 16px 16px;
    gap: 0;
    z-index: 60;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid #2c2c2c;
    font-size: 15px;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-tools {
    gap: 14px;
  }
  .tool .tool-label {
    display: none;
  }
  .tool[data-keep-label] .tool-label {
    display: inline;
  }
  .menu-btn {
    display: flex;
  }

  .focus-bar-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .focus-bar-inner::-webkit-scrollbar {
    display: none;
  }
  .pill,
  .focus-label {
    flex-shrink: 0;
  }

  .hero-title {
    font-size: 22px;
  }
  .section-head h2,
  .section-head-row h2 {
    font-size: 20px;
  }

  .card-grid.cols-4,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .state-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .state-tabs::-webkit-scrollbar {
    display: none;
  }
  .state-tab {
    white-space: nowrap;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
  .three-col .col-block:last-child {
    grid-column: auto;
  }
  .list-block img {
    width: 90px;
    height: 64px;
  }

  .rashifal-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .rashi-card {
    padding: 16px 6px;
  }

  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {
  .topbar-right {
    display: none;
  }

  .card-grid.cols-4,
  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .news-card h3 {
    font-size: 14px;
  }

  .hero-video-wrap .hero-play {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .hero-title {
    font-size: 19px;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pin-city-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  
  .rashifal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ad-box {
    height: 140px;
    font-size: 12px;
  }

}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }
  .logo-text {
    font-size: 19px;
  }
  .logo-img {
    height: 34px;
  }
  .btn-subscribe {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .card-grid.cols-4,
  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .list-block img {
    width: 76px;
    height: 56px;
  }

  .rashifal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shorts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .short-card {
    aspect-ratio: 3/4;
  }

  
}


video,
iframe {
  max-width: 100%;
}
video:not([style*="aspect-ratio"]) {
  height: auto;
}


table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


@media (max-width: 380px) {
  .container {
    padding: 0 10px;
  }
  .hero-title {
    font-size: 17px;
  }
  .section-head h2,
  .section-head-row h2 {
    font-size: 18px;
  }
  .logo-text {
    font-size: 17px;
  }
  .news-card h3 {
    font-size: 13px;
  }
  .list-block a {
    font-size: 13.5px;
  }
  .rashifal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
