/* =========================
   RESPONSIVE
========================= */

/* ---------- TABLET GRANDE ---------- */
@media (max-width: 1200px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .section {
    padding: 48px 0;
  }

  .section-lg {
    padding: 64px 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 16px 0;
    min-height: auto;
  }

  .site-branding {
    justify-content: center;
  }

  .main-navigation {
    width: 100%;
    justify-content: center;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 18px;
  }

  .header-search {
    width: 100%;
    max-width: 420px;
  }

  .search-form {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-slide-image img {
    height: 360px;
  }

  .hero-slide-content {
    padding: 28px 24px 54px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-list-card {
    grid-template-columns: 180px 1fr;
  }

  .single-content {
    width: min(100%, 100%);
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }

  .section-lg {
    padding: 52px 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 16px 0;
  }

  .site-branding {
    justify-content: center;
    text-align: center;
  }

  .site-logo img {
    max-height: 46px;
  }

  .site-title {
    font-size: 1.08rem;
  }

  .site-description {
    font-size: 0.84rem;
  }

  .main-navigation {
    width: 100%;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
  }

  .main-navigation a {
    font-size: 0.9rem;
  }

  .header-search {
    width: 100%;
    max-width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-form button {
    padding: 0 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-slide-image img {
    height: 280px;
  }

  .hero-slide-content {
    padding: 22px 20px 48px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .editorial-highlight {
    padding: 20px 18px;
  }

  .editorial-title {
    font-size: 1.55rem;
  }

  .editorial-text {
    font-size: 0.96rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card-content {
    padding: 18px;
  }

  .post-card-title {
    font-size: 1.08rem;
  }

  .post-card-excerpt {
    font-size: 0.93rem;
  }

  .post-list-card {
    grid-template-columns: 1fr;
  }

  .post-list-thumb img {
    height: 220px;
  }

  .post-list-content {
    padding: 18px;
  }

  .post-list-title {
    font-size: 1.08rem;
  }

  .post-list-excerpt {
    font-size: 0.94rem;
  }

  .single-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .entry-content p {
    font-size: 1rem;
  }

  .pagination {
    gap: 6px;
  }

  .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
  }

  .footer-inner {
    padding: 40px 0 32px;
  }

  .footer-menu {
    gap: 10px 14px;
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  .hero-slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .hero-slider-arrow--prev {
    left: 10px;
  }

  .hero-slider-arrow--next {
    right: 10px;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .site-logo img {
    max-height: 42px;
  }

  .site-title {
    font-size: 1rem;
  }

  .main-navigation ul {
    gap: 10px 12px;
  }

  .main-navigation a {
    font-size: 0.88rem;
  }

  .search-form {
    gap: 6px;
  }

  .search-form input[type="search"] {
    min-height: 40px;
    padding: 0 14px;
  }

  .search-form button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero-slide-image img {
    height: 240px;
  }

  .hero-slide-content {
    padding: 18px 16px 42px;
  }

  .hero-slider-dots {
    bottom: 12px;
  }

  .hero-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .hero-title,
  .single-title {
    word-break: break-word;
  }

  .hero-title {
    font-size: 1.42rem;
  }

  .editorial-title {
    font-size: 1.35rem;
  }

  .post-list-thumb img {
    height: 200px;
  }

  .post-card-title,
  .post-list-title {
    font-size: 1rem;
  }

  .post-card-excerpt,
  .post-list-excerpt,
  .editorial-text {
    font-size: 0.92rem;
  }

  .single-title {
    font-size: 1.75rem;
  }

  .single-meta {
    font-size: 0.86rem;
  }

  .entry-content p {
    font-size: 0.98rem;
  }
}

@media (max-width: 1024px) {
  .posts-grid--recent {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card--recent .post-card-thumb img {
    height: 210px;
  }
}

@media (max-width: 768px) {
  .posts-grid--recent {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card--recent .post-card-thumb img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .post-card--recent .post-card-thumb img {
    height: 200px;
  }
}
@media (max-width: 768px) {
  .section-tech-full {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }

  .dual-posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 40px;
  }

  .footer-brand,
  .footer-column,
  .footer-legal {
    text-align: center;
    align-items: center;
  }

  .footer-description {
    margin-inline: auto;
  }

  .footer-column ul,
  .footer-menu {
    justify-items: center;
  }
}