/* ============================================
   HARIAN JOGJA - RESPONSIVE STYLESHEET
   ============================================ */

/* ============================================
   TABLET / SMALL DESKTOP — max-width: 1024px
   ============================================ */

@media (max-width: 1024px) {
  /* Header */
  .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 */
  .ads-970x280 {
    width: 100%;
    height: auto;
    aspect-ratio: 970/280;
  }

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

  /* Sponsor */
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Read layout */
  .read-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .read-sidebar {
    order: 1;
  }

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

  /* Indeks filter */
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-submit {
    grid-column: span 3;
  }
  .sticky-section {
    position: sticky;
    position: -webkit-sticky;
    top: 140px;
  }
}

/* ============================================
   MOBILE — max-width: 768px
   ============================================ */

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

  /* Ads */
  .ads-desktop-only {
    display: none;
  }
  .ads-mobile-only {
    display: block;
    padding-bottom: 20px;
  }

  /* Hero */
  .hero-section {
    padding: 20px 0;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-sidebar {
    display: block;
  }

  .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 */
  .featured-section {
    padding: 30px 0;
  }

  .featured-section-inner .container {
    padding: 0;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-card-image {
    height: 250px;
  }

  /* Content grid */
  .content-grid {
    display: flex;
    flex-direction: column;
  }

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

  /* Section Kedua */
  .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 */
  .latest-news-section {
    padding: 30px 0;
  }
  .latest-news-section .container {
    padding: 30px 0;
  }
  .latest-news-grid {
    grid-template-columns: 1fr;
  }

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

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

  .latest-news-title {
    font-size: 16px;
  }
  .latest-news-excerpt {
    display: none;
  }
  .latest-news-meta {
    font-size: 9px;
  }

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

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

  /* Sponsor */
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .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;
  }

  /* Read page */
  .read-layout {
    padding: 20px 0;
  }

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

  .read-sidebar {
    order: 1;
  }

  .article-detail-title {
    font-size: 26px;
  }
  .article-detail-header,
  .article-detail-title,
  .breadcrumb {
    text-align: center;
  }

  .breadcrumb {
    justify-content: center;
  }

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

  .article-editor {
    font-size: 14px;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
  }

  .editor-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .editor-avatar {
    flex: 0 0 50px;
    width: 50px;
  }

  .editor-avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
  }

  .editor-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .editor-name {
    font-size: large;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
  }

  .editor-desc {
    font-weight: 400;
    text-decoration: none;
    color: var(--font-ui);
  }

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

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

  .article-detail-content {
    font-size: var(--article-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;
  }

  /* Baca Juga */
  .baca-juga-section {
    padding: 20px;
  }
  .baca-juga-title {
    font-size: 16px;
  }
  .baca-juga-item {
    padding: 10px 0;
  }
  .baca-juga-headline {
    font-size: 14px;
  }
  .baca-juga-list {
    gap: 5px;
  }
  .baca-juga-item a {
    flex-direction: column;
  }

  /* Share */
  .share-buttons {
    height: auto;
  }
  .share-btn {
    width: 40px;
    height: 40px;
  }

  /* Related / author articles */
  .related-articles-section {
    padding: 20px 0;
  }
  .related-title {
    font-size: 18px;
  }
  .related-simple-grid {
    grid-template-columns: 1fr;
  }
  .author-articles-grid {
    grid-template-columns: 1fr;
  }

  /* Latest news full-width (Read page) */
  .latest-news-list-full .latest-news-link {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

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

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

  /* Indeks */
  .indeks-filter-section {
    padding: 20px 0;
  }

  .filter-grid,
  .filter-grid-search {
    grid-template-columns: 1fr;
  }
  .filter-submit {
    grid-column: span 1;
  }
  .filter-btn {
    width: 100%;
  }
  .filter-group {
    margin-bottom: 15px;
  }

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

  .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;
  }
}

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