/* ============================================
   KampusToday - Responsive CSS
   ============================================ */

/* --- XXL (≥1400px) --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- XL (1200px - 1399px) --- */
@media (max-width: 1399.98px) {
  .hero-overlay h2 {
    font-size: 1.5rem;
  }
}

/* --- LG (992px - 1199px) --- */
@media (max-width: 1199.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero-slide img {
    height: 380px;
  }

  .hero-overlay h2 {
    font-size: 1.375rem;
  }

  .news-card-horizontal .news-card-img {
    width: 220px;
    min-width: 220px;
  }

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

  .article-title {
    font-size: 1.875rem;
  }

  .sticky-share {
    display: none;
  }
}

/* --- MD (768px - 991px) --- */
@media (max-width: 991.98px) {
  .top-header {
    display: none !important;
  }

  .navbar .nav-link {
    padding: 0.5rem 0 !important;
  }

  .mega-menu {
    display: none;
  }

  .hero-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .hero-thumb-item {
    min-width: 200px;
    flex-shrink: 0;
  }

  .hero-slide img {
    height: 320px;
  }

  .news-card-horizontal {
    flex-direction: column;
  }

  .news-card-horizontal .news-card-img {
    width: 100%;
    min-width: auto;
    height: 200px;
  }

  .author-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .author-stats {
    justify-content: center;
  }

  .sidebar {
    margin-top: 2rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* --- SM (576px - 767px) --- */
@media (max-width: 767.98px) {
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }

  .hero-slide img {
    height: 260px;
  }

  .hero-overlay {
    padding: 1.25rem;
  }

  .hero-overlay h2 {
    font-size: 1.125rem;
  }

  .hero-meta {
    font-size: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-dots {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-dot.active {
    width: 20px;
  }

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

  .newsletter-form .btn {
    width: 100%;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-box img {
    width: 70px;
    height: 70px;
  }

  .news-card-lg .news-card-title {
    font-size: 1.125rem;
  }

  .footer {
    padding: 2rem 0 0;
  }

  .footer-bottom {
    margin-top: 2rem;
  }

  .cookie-consent .container {
    flex-direction: column;
    text-align: center;
  }

  .about-hero {
    padding: 2.5rem 0;
  }

  .about-hero h1 {
    font-size: 1.875rem;
  }

  .author-header-inner img {
    width: 100px;
    height: 100px;
  }

  .author-stats {
    gap: 1rem;
  }

  .author-stats .stat .number {
    font-size: 1.25rem;
  }

  .category-header {
    padding: 1.5rem 0;
  }

  .live-search-results {
    max-height: 300px;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* --- XS (<576px) --- */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-slide img {
    height: 220px;
  }

  .hero-overlay h2 {
    font-size: 1rem;
  }

  .breaking-news {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
  }

  .breaking-content {
    width: 100%;
    height: 20px;
  }

  .news-card-sm .news-card-img {
    width: 80px;
    min-width: 80px;
    height: 60px;
  }

  .news-card-sm .news-card-title {
    font-size: 0.8125rem;
  }

  .news-card-body {
    padding: 1rem;
  }

  .news-card-title {
    font-size: 1rem;
  }

  .news-card-horizontal .news-card-body {
    padding: 1rem;
  }

  .sidebar-widget {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.25rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .toc {
    padding: 1rem;
  }

  .share-buttons .share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .comment-item img {
    width: 36px;
    height: 36px;
  }

  .social-widget {
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 1.5rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .contact-info-item {
    padding: 1rem;
  }

  .contact-info-item .icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .search-form-large input {
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    font-size: 0.9375rem;
  }

  .pagination .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-brand img {
    height: 30px;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }

  .btn-subscribe {
    padding: 0.375rem 1rem !important;
    font-size: 0.75rem !important;
  }

  .hero-thumb-item {
    min-width: 160px;
    padding: 0.5rem;
  }

  .hero-thumb-item img {
    width: 70px;
    height: 50px;
  }

  .hero-thumb-content h6 {
    font-size: 0.75rem;
  }

  .newsletter-box {
    padding: 1.5rem;
  }
}
