/* ============================================
   HARIAN JOGJA - RESPONSIVE STYLESHEET
   Media queries for responsive design
   ============================================ */

/* ============================================
   BASE STYLES - MOBILE
   ============================================ */

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

/* ============================================
   HEADER & NAVIGATION - MOBILE
   ============================================ */

@media (max-width: 1024px) {
  .search-trigger-desktop {
    display: none !important;
  }

  .search-form {
    display: none;
  }

  .logo img {
    height: 32px;
  }

  .menu-toggle {
    display: flex !important;
  }

  .header-right {
    gap: 10px;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    background: var(--bg-tertiary);
    color: var(--accent-color);
  }

  .ads-970x280 {
    width: 728px;
    height: 90px;
  }

  .ads-desktop-only {
    display: flex;
  }

  .ads-mobile-only {
    display: none;
  }
}

/* ============================================
   ADS - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .ads-970x280 {
    width: 100%;
    height: auto;
    aspect-ratio: 970/280;
  }

  .ads-desktop-only {
    display: block;
  }

  .ads-mobile-only {
    display: none;
  }
}

@media (max-width: 768px) {
  .ads-desktop-only {
    display: none;
  }

  .ads-mobile-only {
    display: block;
    padding-bottom: 20px;
  }
}

/* ============================================
   HERO SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: block;
  }

  .hero-section {
    padding: 20px 0;
  }

  .hero-headline-title {
    font-size: 24px;
  }

  .hero-headline-image {
    aspect-ratio: 5/4;
  }

  .hero-sub-articles {
    grid-template-columns: 1fr;
  }

  .hero-sub-article-image {
    width: 120px;
    height: auto;
  }

  .sub-article-title {
    font-size: 16px;
    font-weight: 600;
  }

  .sidebar-title {
    font-size: 16px;
  }

  .sidebar-article {
    margin-bottom: 15px;
  }

  .sidebar-article-image {
    width: 120px;
    height: auto;
  }

  .sidebar-article-title {
    font-size: 13px;
  }
}

/* ============================================
   FEATURED SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .featured-section-inner .container {
    padding: 0;
  }

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

  .featured-card-image {
    height: 250px;
  }

  .featured-section {
    padding: 30px 0;
  }
}

/* ============================================
   CONTENT GRID - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .content-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .main-articles {
    padding-right: 0;
    border-right: none;
  }
}

/* ============================================
   SECTION KEDUA - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .main-article-layout {
    grid-template-columns: 1fr;
  }

  .section-kedua-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section-kedua-card-image {
    aspect-ratio: 1/1;
  }

  .section-kedua-card-title {
    font-size: 15px;
  }
}

/* ============================================
   LATEST NEWS - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-section {
    padding: 30px 0;
  }

  .latest-news-section .container {
    padding: 30px 0;
  }

  .latest-news-link {
    grid-template-columns: 1fr 120px;
    gap: 15px;
  }

  .latest-news-category {
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      sans-serif;
    font-size: 11px;
  }

  .latest-news-title {
    font-size: 15px;
  }

  .latest-news-image {
    height: 100px;
  }
}

/* ============================================
   SPONSOR - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

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

  .footer-about {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* ============================================
   READ.HTML - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .read-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .read-sidebar {
    order: 1;
  }

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

@media (max-width: 768px) {
  .read-layout {
    padding: 20px 0;
  }

  .read-sidebar {
    order: 1;
  }

  .article-detail-title {
    font-size: 26px;
  }

  .article-detail-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .article-font-controls {
    width: 100%;
    justify-content: center;
  }

  .baca-juga-section {
    padding: 20px;
  }

  .baca-juga-title {
    font-size: 16px;
  }

  .baca-juga-item {
    padding: 10px 0;
  }

  .baca-juga-headline {
    font-size: 14px;
  }

  .related-articles-section {
    padding: 20px 0;
  }

  .related-title {
    font-size: 18px;
  }

  .article-detail-header {
    text-align: center;
  }

  .article-detail-title {
    text-align: center;
  }

  .breadcrumb {
    justify-content: center;
    text-align: center;
  }

  /* .article-detail-meta {
    justify-content: center;
  } */

  .article-font-controls {
    justify-content: center;
  }

  .article-detail-image {
    margin: 20px 0;
  }

  .article-detail-content {
    font-size: 16px;
  }

  .article-detail-content p {
    margin-bottom: 20px;
  }

  .article-detail-content blockquote {
    margin: 30px 0;
    padding: 20px;
  }

  .article-detail-content iframe {
    width: 100%;
    aspect-ratio: 5 / 3;
  }
}

/* Read.html Responsive */

@media (max-width: 768px) {
  .article-detail-title {
    font-size: 26px;
  }

  .article-detail-meta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .author-info {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .article-font-controls {
    width: 100%;
    justify-content: center;
  }

  .baca-juga-section {
    padding: 20px;
  }

  .baca-juga-item a {
    flex-direction: column;
  }

  .share-buttons {
    height: auto;
  }

  .share-btn {
    width: 40px;
    height: 40px;
  }

  .author-articles-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-list-full .latest-news-link {
    flex-direction: column;
  }

  .latest-news-list-full .latest-news-image {
    width: 100%;
    height: 200px;
  }

  .latest-news-list-full .latest-news-excerpt {
    display: none;
  }

  .latest-news-list-full .latest-news-title {
    margin-bottom: 8px;
  }

  .latest-news-list-full .latest-news-image {
    width: 100px;
    height: 67px;
  }

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

  .latest-news-list-full .latest-news-link {
    flex-direction: row;
    grid-template-columns: 1fr 120px;
    gap: 20px;
  }
}

/* Indeks.html Responsive */
@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-submit {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .indeks-filter-section {
    padding: 20px 0;
  }

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

  .filter-submit {
    grid-column: span 1;
  }

  .filter-btn {
    width: 100%;
  }

  .indeks-pagination {
    padding: 30px 0;
  }

  .pagination-wrapper {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination-numbers {
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }

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

  .footer-about {
    align-items: center;
    text-align: left;
  }

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

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-section {
    padding: 30px 0;
  }

  .latest-news-section .container {
    padding: 30px 0;
  }

  .latest-news-link {
    grid-template-columns: 1fr 120px;
    gap: 15px;
  }

  .latest-news-category {
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .latest-news-excerpt {
    display: none;
  }

  .latest-news-image {
    width: 100%;
    /* height: 200px; */
  }

  .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .latest-news-title {
    font-size: 16px;
  }

  .latest-news-list {
    padding-right: 0;
    border-right: none;
  }

  .latest-news-meta {
    font-size: 9px;
  }

  /* .sidebar-video-wrapper,
  .sidebar-news-widget {
    display: none;
  } */
}

/* ============================================
   INDEKS.HTML - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-submit {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .indeks-filter-section {
    padding: 20px 0;
  }

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

  .filter-submit {
    grid-column: span 1;
  }

  .filter-group {
    margin-bottom: 15px;
  }

  .filter-title h3 {
    font-size: 18px;
  }
}

/* ============================================
   END OF RESPONSIVE STYLES
   ============================================ */
