/* ================================================================
   READ NOW NEWS - Responsive Design System v6.0
   ================================================================ */

/* ============ LARGE SCREENS (>1200px) ============ */
@media (min-width: 1200px) {
  .hero-body h1 {
    font-size: 2.2rem;
  }
  
  .article-title {
    font-size: 2.4rem;
  }
}

/* ============ LAPTOP (1024px - 1199px) ============ */
@media (max-width: 1199px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  main {
    padding: var(--space-lg) var(--space-lg);
  }
  
  .grid {
    gap: var(--space-md);
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .hero-body {
    padding: var(--space-lg);
  }
  
  .hero-body h1 {
    font-size: 1.6rem;
  }
  
  .article-layout {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .sidebar-widget {
    padding: 16px;
  }
  
  .premium-hero {
    gap: var(--space-md);
  }

  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .hero-img {
    min-height: 360px;
  }

  .hero-side-img {
    min-width: 95px;
  }
}

/* ============ DESKTOP (min-width: 1024px) ============ */
@media (min-width: 1024px) {
  .mobile-hamburger {
    display: none !important;
  }

  .drawer-panel,
  .drawer-overlay {
    display: none !important;
    pointer-events: none;
  }

  .brand-actions {
    display: flex;
  }

  .brand-search {
    max-width: 480px;
  }
}

/* ============ TABLET LANDSCAPE (768px - 1023px) ============ */
@media (max-width: 1023px) {
  /* --- HEADER --- */
  .mobile-hamburger {
    display: flex !important;
  }

  .brand-row .brand-inner {
    gap: 12px;
  }

  .brand-search {
    flex: 1;
    max-width: none;
  }

  .brand-actions {
    display: flex;
    gap: 0;
  }

  .brand-action-btn {
    width: 38px;
    height: 38px;
  }

  .brand-action-btn svg {
    width: 20px;
    height: 20px;
  }

  .nav-inner {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 0 16px;
    font-size: 0.82rem;
    line-height: 44px;
  }

  /* --- DRAWER --- */
  .drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: var(--z-modal);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .drawer-panel.open {
    transform: translateX(0);
  }

  .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
  }

  .drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- OLD NAV (legacy support) --- */
  .navlist {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .navlist::-webkit-scrollbar {
    display: none;
  }
  
  .nav-item > a {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .searchbox input {
    width: 140px;
  }
  
  .searchbox input:focus {
    width: 180px;
  }
  
  /* --- Z-INDEX FIXES --- */
  nav {
    z-index: var(--z-sticky);
  }

  .drawer-panel {
    z-index: var(--z-modal);
  }
  
  /* --- GRID & LAYOUT --- */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero {
    grid-template-columns: 1fr;
  }
  
  .hero-img {
    min-height: 280px;
  }
  
  .hero-body h1 {
    font-size: 1.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card-img {
    aspect-ratio: 16 / 9;
  }
  
  .hero-card-body h1 {
    font-size: 1.5rem;
  }
  
  .hero-side-card {
    padding: var(--space-sm);
  }
  
  .hero-side-img {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 3 / 2;
  }
  
  .top5-timeline-row {
    grid-template-columns: 1fr;
  }
  
  .category-layout {
    grid-template-columns: 1fr;
  }
  
  .category-featured-img {
    aspect-ratio: 16 / 9;
  }
  
  .trending-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .editors-pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    width: 100%;
  }
  
  .newsletter-form input {
    flex: 1;
    width: auto;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-page {
    padding: var(--space-xl);
  }
  
  .article-page h1 {
    font-size: 1.8rem;
  }
  
  .article-hero-img {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }
  
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-body {
    font-size: 1.05rem;
  }
  
  .article-sidebar {
    position: static;
  }
}

/* ============ TABLET PORTRAIT (max-width: 767px) ============ */
@media (max-width: 767px) {
  :root {
    --space-xl: 24px;
    --space-2xl: 32px;
  }
  
  /* --- HEADER --- */
  .utility-bar {
    display: none;
  }

  .brand-inner {
    height: 62px;
    gap: 10px;
  }

  .brand-logo-img {
    height: 46px;
  }

  .brand-search {
    max-width: none;
  }

  .brand-search-input {
    height: 38px;
    font-size: 0.85rem;
  }

  .brand-search-btn {
    width: 32px;
    height: 32px;
  }

  .brand-actions {
    display: none;
  }

  .primary-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
  }

  .nav-link {
    padding: 0 12px;
    font-size: 0.76rem;
    line-height: 42px;
  }
  
  .nav-item > a {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  
  .searchbox {
    padding: 6px 12px;
  }
  
  .searchbox input {
    width: 120px;
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .searchbox input:focus {
    width: 160px;
  }
  
  .searchbox button {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  main {
    padding: var(--space-md) var(--space-md);
  }
  
  .section-title {
    margin: var(--space-xl) 0 var(--space-md);
  }
  
  .section-title h2 {
    font-size: 1.2rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .card-img {
    aspect-ratio: 16 / 9;
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .card-body h3 {
    font-size: 0.95rem;
  }
  
  .hero-body {
    padding: var(--space-md);
  }
  
  .hero-body h1 {
    font-size: 1.3rem;
  }
  
  .hero-body p {
    font-size: 0.9rem;
  }
  
  .hero-card-body {
    padding: var(--space-md);
  }
  
  .hero-card-body h1 {
    font-size: 1.3rem;
  }
  
  .hero-side-card {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
  
  .hero-side-img {
    width: 72px;
    min-width: 72px;
    aspect-ratio: 3 / 2;
  }
  
  .hero-side-body h3 {
    font-size: 0.85rem;
  }
  
  .category-featured-body {
    padding: var(--space-md);
  }
  
  .category-featured-body h3 {
    font-size: 1.1rem;
  }
  
  .category-grid .card-img {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 3 / 2;
  }
  
  .trending-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trending-rank {
    font-size: 1.5rem;
    top: var(--space-sm);
    left: var(--space-sm);
  }
  
  .trending-content {
    padding-left: var(--space-lg);
  }
  
  .trending-content h3 {
    font-size: 0.9rem;
  }
  
  .editors-pick-grid {
    grid-template-columns: 1fr;
  }
  
  .editors-pick-card {
    flex-direction: row;
  }
  
  .editors-pick-img {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 3 / 2;
  }
  
  .editors-pick-body {
    padding: var(--space-md);
  }
  
  .row-card {
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .row-img {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 3 / 2;
  }
  
  .row-body h3 {
    font-size: 1rem;
  }
  
  .row-body p {
    font-size: 0.85rem;
  }
  
  .top5-item {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
  }
  
  .top5-rank {
    font-size: 1.5rem;
    width: 32px;
  }
  
  .top5-img {
    width: 48px;
    min-width: 48px;
    aspect-ratio: 1;
  }
  
  .top5-body h3 {
    font-size: 0.85rem;
  }
  
  .article-page {
    padding: var(--space-lg);
    border-radius: var(--radius);
  }
  
  .article-page h1 {
    font-size: 1.5rem;
  }
  
  .article-hero-img {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
  
  .article-body {
    font-size: 1rem;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .sidebar-ad {
    grid-column: 1 / -1;
  }
  
  .article-nav {
    gap: 12px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-inner > div:first-child {
    grid-column: auto;
  }
  
  .footer-logo {
    max-height: 56px;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .stat {
    padding: var(--space-md);
  }
  
  .stat b {
    font-size: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  
  .media-item .mi-img {
    height: 64px;
  }
  
  .media-item .mi-title {
    font-size: 0.7rem;
  }
}
/* ============ MOBILE (max-width: 575px) ============ */
@media (max-width: 575px) {
  :root {
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
  }
  
  /* --- HEADER --- */
  .utility-bar {
    display: none !important;
  }

  .brand-inner {
    height: 56px;
    gap: 8px;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-search {
    max-width: none;
    flex: 1;
  }

  .brand-search-input {
    height: 36px;
    font-size: 0.8rem;
    padding: 0 40px 0 14px;
  }

  .brand-search-btn {
    width: 30px;
    height: 30px;
  }

  .brand-search-btn svg {
    width: 14px;
    height: 14px;
  }

  .ticker-label {
    padding: 0 12px;
    font-size: 0.6rem;
  }

  .ticker-group span {
    margin: 0 28px;
    font-size: 0.75rem;
  }

  .primary-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
  }

  .nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 0.75rem;
    line-height: 40px;
  }
  
  nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
  }
  
  .nav-item > a {
    padding: 10px 10px;
    font-size: 0.75rem;
  }
  
  .searchbox {
    padding: 6px 8px;
    width: 100%;
    order: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .searchbox input {
    flex: 1;
    width: auto;
  }
  
  .searchbox input:focus {
    width: auto;
  }
  
  main {
    padding: var(--space-sm) var(--space-sm);
  }
  
  .section-title {
    margin: var(--space-lg) 0 var(--space-sm);
  }
  
  .section-title h2 {
    font-size: 1rem;
  }
  
  .section-title .more {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .card {
    border-radius: 12px;
  }
  
  .card-img {
    aspect-ratio: 16 / 9;
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .card-body h3 {
    font-size: 1rem;
  }
  
  .card-body p {
    font-size: 0.85rem;
  }
  
  .hero {
    border-radius: var(--radius);
  }
  
  .hero-img {
    min-height: 200px;
  }
  
  .hero-body {
    padding: var(--space-md);
  }
  
  .hero-body h1 {
    font-size: 1.2rem;
  }
  
  .hero-body p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .hero-card-img {
    aspect-ratio: 16 / 9;
  }
  
  .hero-card-body {
    padding: var(--space-md);
  }
  
  .hero-card-body h1 {
    font-size: 1.2rem;
  }
  
  .hero-card-body p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .hero-side-card {
    padding: var(--space-sm);
    gap: var(--space-sm);
    border-radius: var(--radius);
  }
  
  .hero-side-img {
    width: 64px;
    min-width: 64px;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-sm);
  }
  
  .hero-side-body h3 {
    font-size: 0.8rem;
  }
  
  .hero-side-body .meta {
    font-size: 0.7rem;
  }
  
  .top5-timeline-row {
    gap: var(--space-lg);
  }
  
  .category-layout {
    gap: var(--space-lg);
  }
  
  .category-featured-img {
    aspect-ratio: 16 / 9;
  }
  
  .category-featured-body h3 {
    font-size: 1rem;
  }
  
  .category-grid .card {
    flex-direction: column;
  }
  
  .category-grid .card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  
  .trending-list {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .trending-item {
    padding: var(--space-md);
  }
  
  .trending-rank {
    font-size: 1.2rem;
    top: var(--space-sm);
    left: var(--space-sm);
  }
  
  .trending-content {
    padding-left: var(--space-lg);
  }
  
  .trending-content h3 {
    font-size: 0.85rem;
  }
  
  .editors-pick-card {
    flex-direction: column;
  }
  
  .editors-pick-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  
  .editors-pick-body {
    padding: var(--space-md);
  }
  
  .editors-pick-body h3 {
    font-size: 0.95rem;
  }
  
  .video-placeholder-inner,
  .gallery-placeholder-inner {
    padding: var(--space-xl) var(--space-md);
  }
  
  .video-placeholder-inner h3,
  .gallery-placeholder-inner h3 {
    font-size: 1.1rem;
  }
  
  .newsletter-inner {
    padding: var(--space-xl) var(--space-md);
  }
  
  .newsletter-text h2 {
    font-size: 1.2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    width: 100%;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
  
  .chips {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }
  
  .chip {
    padding: 6px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .row-card {
    padding: var(--space-md);
    gap: var(--space-sm);
    flex-direction: column;
  }
  
  .row-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
  }
  
  .row-body h3 {
    font-size: 0.95rem;
  }
  
  .top5-item {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
  
  .top5-rank {
    font-size: 1.2rem;
    width: 28px;
  }
  
  .top5-img {
    width: 40px;
    min-width: 40px;
    aspect-ratio: 1;
    font-size: 1.2rem;
  }
  
  .top5-body h3 {
    font-size: 0.8rem;
  }
  
  .article-page {
    padding: var(--space-md);
    border-radius: var(--radius);
  }
  
  .article-page h1 {
    font-size: 1.3rem;
  }
  
  .article-hero-img {
    aspect-ratio: 16 / 9;
    max-height: 240px;
    border-radius: var(--radius);
  }
  
  .article-body {
    font-size: 0.95rem;
  }
  
  .article-body p {
    margin-bottom: var(--space-md);
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-title {
    font-size: 1.35rem;
  }
  
  .article-excerpt-full {
    font-size: 1rem;
  }
  
  .article-info {
    gap: 10px;
  }
  
  .article-info-item {
    font-size: 0.82rem;
  }
  
  .social-share-bar {
    gap: 8px;
  }

  .share-label {
    font-size: 0.82rem;
    width: 100%;
  }

  .share-btn {
    width: 36px;
    height: 36px;
  }

  .share-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .sidebar-widget {
    padding: 16px;
  }
  
  .sidebar-ad {
    min-height: 0;
  }
  
  .sidebar-ad .ad-slot-img {
    max-height: none;
  }
  
  .ad-slot-img {
    max-height: none;
  }
  
  .author-card {
    padding: 16px;
    gap: 14px;
  }
  
  .author-card-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .author-card-name {
    font-size: 0.95rem;
  }
  
  .author-card-bio {
    font-size: 0.82rem;
  }
  
  .article-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .article-nav-next {
    text-align: left;
  }
  
  .article-nav-next .article-nav-direction {
    justify-content: flex-start;
  }
  
  .article-nav-card {
    padding: 14px;
  }
  
  .article-nav-title {
    font-size: 0.88rem;
  }
  
  .breadcrumb {
    padding: 0 var(--space-sm);
  }
  
  .breadcrumb li {
    font-size: 0.75rem;
  }
  
  .related-section {
    padding: 0 var(--space-sm);
  }
  
  .reading-progress {
    height: 3px;
  }
  
  footer {
    padding: var(--space-xl) var(--space-md) var(--space-md);
    margin-top: var(--space-xl);
  }
  
  .footer-inner {
    gap: var(--space-lg);
  }
  
  .footer-logo {
    max-height: 48px;
  }
  
  .footer-inner h3 {
    font-size: 0.9rem;
  }
  
  .footer-inner a {
    font-size: 0.85rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .admin-login {
    margin: var(--space-xl) var(--space-md);
    padding: var(--space-xl);
  }
  
  .admin-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-bar > div {
    width: 100%;
    display: flex;
    gap: var(--space-sm);
  }
  
  .admin-bar .btn {
    flex: 1;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }
  
  th, td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  
  .admin-form {
    padding: var(--space-md);
  }
  
  .modal-overlay {
    padding: var(--space-sm);
    align-items: flex-end;
  }
  
  .modal-box {
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .modal-head {
    padding: var(--space-md);
  }
  
  .modal-search {
    padding: var(--space-sm) var(--space-md);
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md);
  }
  
  .media-item .mi-img {
    height: 56px;
  }
  
  .media-item .mi-title {
    font-size: 0.7rem;
  }
  
  .empty {
    padding: var(--space-xl) var(--space-md);
  }
}
/* ============ SMALL MOBILE (max-width: 390px) ============ */
@media (max-width: 390px) {
  .brand-inner {
    height: 52px;
    gap: 6px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-search-input {
    height: 32px;
    font-size: 0.78rem;
    padding: 0 36px 0 10px;
  }

  .brand-search-btn {
    width: 26px;
    height: 26px;
  }

  .brand-search-btn svg {
    width: 12px;
    height: 12px;
  }

  .ticker-label {
    padding: 0 10px;
    font-size: 0.55rem;
  }

  .ticker-group span {
    margin: 0 24px;
    font-size: 0.72rem;
  }

  .hero-body h1 {
    font-size: 1.15rem;
  }

  .hero-card-body h1 {
    font-size: 1.15rem;
  }

  .hero-side-img {
    width: 56px;
    min-width: 56px;
    aspect-ratio: 3 / 2;
  }

  .card-body h3 {
    font-size: 0.92rem;
  }

  .row-body h3 {
    font-size: 0.92rem;
  }

  .article-title {
    font-size: 1.25rem;
  }
}

/* ============ VERY SMALL (max-width: 374px) ============ */
@media (max-width: 374px) {
  .brand-inner {
    height: 48px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-search-input {
    height: 30px;
    font-size: 0.75rem;
  }

  .hero-body h1 {
    font-size: 1.1rem;
  }
  
  .hero-card-body h1 {
    font-size: 1.1rem;
  }
  
  .hero-side-img {
    width: 48px;
    min-width: 48px;
    aspect-ratio: 3 / 2;
  }
  
  .hero-side-body h3 {
    font-size: 0.75rem;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
  }
  
  .row-body h3 {
    font-size: 0.9rem;
  }
  
  .article-title {
    font-size: 1.2rem;
  }
  
  .article-excerpt-full {
    font-size: 0.92rem;
  }
  
  .article-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .article-body {
    font-size: 0.9rem;
  }
  
  .social-share-bar {
    justify-content: center;
  }
  
  .share-copy {
    font-size: 0.75rem;
    padding: 0 10px;
  }
  
  .author-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .author-card-meta {
    justify-content: center;
  }
  
  .comments-placeholder-card {
    padding: 24px 16px;
  }
  
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ TOUCH DEVICE IMPROVEMENTS ============ */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  
  .row-card:hover {
    transform: none;
  }
  
  .card:active {
    transform: scale(0.98);
  }
  
  .row-card:active {
    transform: scale(0.98);
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .nav-item > a {
    padding: 14px 18px;
  }
  
  .dropdown a {
    padding: 14px 20px;
  }
  
  .share-btn:hover {
    transform: none;
  }
  
  .share-btn:active {
    transform: scale(0.95);
  }
  
  .article-nav-card:active {
    transform: scale(0.98);
  }
  
  .sidebar-item:active {
    opacity: 0.7;
  }

  .nav-link:active {
    opacity: 0.8;
  }

  .drawer-panel a:active {
    opacity: 0.8;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .utility-bar,
  .ticker-wrap,
  nav,
  .searchbox,
  .chips,
  .readmore,
  .more,
  footer,
  .admin-bar,
  .stats,
  .media-select-btn,
  .modal-overlay,
  .video-section,
  .gallery-section,
  .newsletter-section,
  .back-to-top,
  .reading-progress,
  .social-share-bar,
  .article-sidebar,
  .article-nav,
  .comments-section,
  .related-section,
  .utility-bar,
  .primary-nav,
  .drawer-panel,
  .drawer-overlay,
  .mobile-hamburger,
  .brand-actions,
  .brand-search {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .hero {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .article-layout {
    display: block;
  }
  
  .article-page {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .article-body {
    font-size: 11pt;
    line-height: 1.6;
  }
  
  .breadcrumb {
    font-size: 10pt;
  }
  
  .breadcrumb a {
    color: black;
    text-decoration: underline;
  }
  
  .author-card {
    border: 1px solid #ccc;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ticker-track {
    animation: none;
  }
}

/* ============ PREMIUM HOMEPAGE RESPONSIVE ============ */

/* 1199px - premium hero stays 2-col but tighter */
@media (max-width: 1199px) {
  .premium-hero {
    gap: var(--space-md);
  }

  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .emagazine-card {
    flex-direction: column;
  }

  .emagazine-cover {
    width: 100%;
    min-height: 180px;
    flex-direction: row;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .ad-leaderboard .ad-slot-inner {
    min-height: 90px;
  }
}

/* 1023px - tablet landscape */
@media (max-width: 1023px) {
  .premium-hero {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .premium-hero-side {
    flex-direction: row;
    gap: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .premium-hero-side::-webkit-scrollbar {
    display: none;
  }

  .premium-hero-side .hero-side-card {
    min-width: 260px;
    flex: 0 0 auto;
  }

  .emagazine-cover {
    min-height: 140px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .ad-in-content .ad-slot-inner {
    min-height: 200px;
  }
}

/* 767px - tablet portrait */
@media (max-width: 767px) {
  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .premium-hero-side {
    flex-direction: column;
  }

  .premium-hero-side .hero-side-card {
    min-width: 0;
    flex: none;
  }

  .emagazine-cover {
    flex-direction: column;
    min-height: 160px;
  }

  .emagazine-info {
    padding: var(--space-lg);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .ad-leaderboard .ad-slot-inner {
    min-height: 60px;
  }
}

/* 575px - large mobile */
@media (max-width: 575px) {
  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .live-update-inner {
    height: 36px;
  }

  .live-update-group {
    gap: 14px;
  }

  .live-update-time {
    display: none;
  }

  .live-update-text {
    font-size: 0.72rem;
  }

  .emagazine-card {
    flex-direction: column;
  }

  .emagazine-cover {
    min-height: 140px;
  }

  .emagazine-info h3 {
    font-size: 1rem;
  }

  .ad-in-content .ad-slot-inner {
    min-height: 160px;
  }
}

/* 390px - small mobile */
@media (max-width: 390px) {
  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .live-update-label span:last-child {
    display: none;
  }

  .live-update-group {
    gap: 12px;
  }

  .emagazine-cover {
    min-height: 120px;
  }

  .emagazine-cover-icon {
    font-size: 2.5rem;
  }

  .emagazine-actions {
    flex-direction: column;
  }

  .ad-leaderboard .ad-slot-inner,
  .ad-in-content .ad-slot-inner {
    min-height: 120px;
    font-size: 0.7rem;
  }
}

/* 374px - very small */
@media (max-width: 374px) {
  .premium-hero-main .hero-card-img {
    aspect-ratio: 16 / 9;
  }

  .emagazine-cover {
    min-height: 100px;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
  }
}

/* ============ VIDEO SECTION RESPONSIVE ============ */
@media (max-width: 767px) {
  .video-embed-wrapper {
    max-width: 100%;
    border-radius: var(--radius);
  }

  .btn-youtube {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 575px) {
  .video-section {
    margin-bottom: var(--space-lg);
  }

  .video-cta {
    margin-top: var(--space-sm);
  }
}

/* ============ HIGH CONTRAST MODE ============ */
@media (prefers-contrast: high) {
  :root {
    --border: #000;
    --border-light: #333;
    --text-muted: #333;
    --text-light: #555;
  }
  
  .tag {
    border: 1px solid white;
  }
  
  .chip {
    border-width: 2px;
  }
  
  .share-btn {
    border: 1px solid white;
  }
  
  .article-nav-card {
    border-width: 2px;
  }
  
  .sidebar-widget {
    border-width: 2px;
  }
}

/* ============ PREMIUM HOMEPAGE FINAL RESPONSIVE PASS ============ */
@media (max-width: 1199px) {
  .hero-premium-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  }

  .hero-main-card {
    min-height: 500px;
  }

  .cat-block-body {
    grid-template-columns: 1fr;
  }

  .category-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 1023px) {
  .hero-premium {
    margin-top: 0;
    padding: var(--space-lg) 0;
  }

  .hero-premium-inner {
    grid-template-columns: 1fr;
  }

  .hero-main-card {
    min-height: 460px;
  }

  .hero-sidebar-col {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .video-premium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-main-card {
    min-height: 420px;
  }

  .hero-main-body {
    padding: 28px 22px;
  }

  .hero-excerpt {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-sidebar-col,
  .cat-secondary-list {
    grid-template-columns: 1fr;
  }

  .category-block {
    margin-bottom: 24px;
  }

  .hero-side-item {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .cat-block-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .video-premium {
    border-radius: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (max-width: 575px) {
  .hero-premium {
    padding: 10px 0 18px;
  }

  .hero-premium-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-main-card {
    min-height: 370px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .hero-side-item {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 108px;
  }

  .hero-side-info h3,
  .cat-sec-body h4 {
    font-size: 0.86rem;
  }

  .cat-block-header {
    flex-direction: column;
    gap: 8px;
  }

  .cat-featured-body {
    padding: 16px;
  }

  .cat-featured-body h3 {
    font-size: 1.05rem;
  }

  .video-premium {
    padding-left: 14px;
    padding-right: 14px;
    gap: 18px;
  }

  .video-premium-copy {
    padding-left: 0;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .hero-main-card {
    min-height: 330px;
  }

  .hero-headline {
    font-size: 1.48rem;
  }

  .hero-excerpt {
    -webkit-line-clamp: 2;
  }

  .hero-side-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

/* ============ TASK 21.3 FOOTER ONLY RESPONSIVE ============ */
@media (max-width: 1023px) {
  footer[role="contentinfo"] .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }

  footer[role="contentinfo"] .footer-brand-col,
  footer[role="contentinfo"] .footer-links-col {
    padding-right: 0;
  }

  footer[role="contentinfo"] .footer-brand-col {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  footer[role="contentinfo"] .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 22px;
    text-align: center;
  }

  footer[role="contentinfo"] .footer-brand-col {
    align-items: center;
  }

  footer[role="contentinfo"] .footer-logo {
    height: 60px;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
  }

  footer[role="contentinfo"] .footer-desc {
    max-width: 340px;
  }

  footer[role="contentinfo"] .footer-social,
  footer[role="contentinfo"] .footer-links,
  footer[role="contentinfo"] .footer-bottom-links {
    justify-content: center;
  }

  footer[role="contentinfo"] .footer-links-col {
    padding-top: 0;
  }

  footer[role="contentinfo"] .footer-links-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  footer[role="contentinfo"] .footer-link-list {
    align-items: center;
  }

  footer[role="contentinfo"] .footer-link-list a:hover {
    transform: none;
  }

  footer[role="contentinfo"] .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  footer[role="contentinfo"] .copyright {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .live-update-inner {
    height: 38px;
    min-height: 38px;
    gap: 12px;
  }

  .live-update-label {
    padding: 4px 8px;
    font-size: 0.6rem;
  }

  .live-update-text {
    font-size: 0.74rem;
    color: #18251b;
  }

  .live-update-text:hover,
  .live-update-text:focus,
  .live-update-text:focus-visible {
    color: #0f7a35;
  }

  .live-update-item {
    padding-left: 10px;
    padding-right: 6px;
  }
}


/* ============ TASK 28.6B RESPONSIVE BANNER VIEWPORTS ============ */
@media (max-width: 767px) {
  .ad-slot {
    max-width: calc(100vw - 24px);
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .ad-sidebar,
  .sidebar-ad .ad-slot { max-width: min(300px, calc(100vw - 24px)); }
}
@media (max-width: 390px) {
  .ad-slot { max-width: calc(100vw - 20px); }
}
/* Home15 live widgets */
@media (max-width: 1180px) {
  .live-widget-grid,
  .widget-skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .live-widgets-section { margin-top: 28px; margin-bottom: 30px; }
  .live-widgets-heading { align-items: flex-start; }
  .live-widgets-heading p { font-size: .84rem; }
  .live-widget-grid,
  .widget-skeleton-grid,
  .news-widget-grid { grid-template-columns: 1fr; }
  .live-widget-card { min-height: 118px; padding: 15px; }
  .widget-skeleton-card { min-height: 118px; }
  .news-rank-widget h3 { padding: 12px 14px; }
  .news-rank-widget ol { padding-left: 40px; padding-right: 14px; }
  .widgets-meta { display: grid; gap: 4px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .live-widget-grid,
  .widget-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
