/* =========================================================
   VSP Media & Network — Responsive layout
   Desktop-first, then tablet / mobile restructure
   ========================================================= */

@media (max-width: 1199px) {
  h1 { font-size: 30px; }
  h2, .section-title { font-size: 24px; }

  .site-logo img {
    height: 56px;
    max-width: 260px;
  }

  .hero-editorial-layout {
    grid-template-columns: 65% 35%;
    gap: 16px;
  }

  .hero-headline {
    font-size: 22px;
  }

  .hero-thumb-strip {
    display: none; /* Hide multi-column strip on narrower laptops to keep clean */
  }

  .exclusives-layout,
  .ap-layout {
    grid-template-columns: 1fr 1fr;
  }

  .exclusives-layout > :nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

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

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

  .header-ad-slot {
    display: none;
  }

  .top-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .article-title {
    font-size: 28px;
  }
}

@media (max-width: 1024px) {
  .hero-editorial-layout,
  .split-sections,
  .grid-2,
  .category-split,
  .tg-layout,
  .article-layout,
  .category-layout,
  .search-layout,
  .category-featured-row {
    grid-template-columns: 1fr;
  }

  .hero-top-stories-panel {
    margin-top: 14px;
  }

  .hero-top-stories-panel .top-stories-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px;
  }

  .top-story-item {
    border-bottom: 0;
    background: var(--soft-bg);
    border-radius: var(--radius-sm);
  }

  .column-divider {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--light-gray);
    padding-top: 22px;
  }

  .sports-top {
    grid-template-columns: 1fr 1fr;
  }

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

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2, .section-title { font-size: 22px; }
  h3 { font-size: 18px; }
  body { font-size: 15px; }

  .container {
    width: min(100% - 16px, var(--container));
  }

  .top-utility-bar {
    display: none; /* Keep mobile masthead compact */
  }

  .top-header-inner {
    min-height: 64px;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    padding: 4px 0;
  }

  .mobile-menu-btn,
  .mobile-search-btn {
    display: inline-flex;
  }

  .header-actions .desktop-only,
  .nav-hamburger,
  .primary-menu,
  .header-ad-slot {
    display: none;
  }

  .site-logo {
    justify-content: center;
  }

  .site-logo img {
    height: 48px;
    max-width: 200px;
    width: auto;
  }

  .logo-name {
    font-size: 16px;
  }

  .main-navigation {
    display: none;
  }

  .secondary-nav-tools {
    display: none;
  }

  /* Mobile Hero Slider */
  .hero-carousel {
    aspect-ratio: 16 / 10.5;
  }

  .hero-slide-overlay {
    padding: 38px 14px 14px;
  }

  .hero-headline {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .hero-excerpt {
    display: none; /* Cleaner reading on smaller screens */
  }

  .hero-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
    opacity: 0.9;
  }

  .hero-nav-prev { left: 8px; }
  .hero-nav-next { right: 8px; }

  .hero-indicator-bar {
    top: 10px;
    right: 10px;
    padding: 3px 8px;
  }

  .hero-indicator-dot {
    width: 7px;
    height: 7px;
  }

  .hero-indicator-dot.is-active {
    width: 18px;
  }

  .hero-top-stories-panel .top-stories-list {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .top-story-item {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    padding: 10px 12px;
  }

  .top-story-thumb {
    width: 76px;
    height: 54px;
  }

  .top-story-title {
    font-size: 13.5px;
  }

  .exclusives-layout,
  .ap-layout,
  .grid-3,
  .grid-4,
  .grid-2,
  .small-story-grid,
  .sports-top,
  .sports-thumbs,
  .news-grid,
  .related-grid,
  .search-result {
    grid-template-columns: 1fr;
  }

  .exclusives-col-border {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .featured-overlay .headline {
    font-size: 18px;
  }

  .category-featured .headline,
  .article-title {
    font-size: 24px;
  }

  .breaking-label {
    font-size: 11px;
    padding: 0 10px;
  }

  .ad-banner--970,
  .ad-banner--1200 {
    min-height: 70px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    padding: 12px;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 100%;
  }

  .search-result {
    grid-template-columns: 110px 1fr;
  }

  .share-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 429px) {
  .horoscope-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-sub {
    letter-spacing: 1.5px;
  }

  .topics-tab {
    font-size: 11px;
    padding: 5px 8px;
  }

  .search-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  h1 { font-size: 24px; }
}

@media (min-width: 1440px) {
  .container {
    width: min(100% - 40px, 1250px);
  }
}

@media (max-width: 991px) {
  .header-lang-switcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .live-dot,
  .media-frame img {
    animation: none !important;
    transition: none !important;
  }
}
