@media (max-width: 1199.98px) {
  .navbar-brand {
    width: 108px;
    height: 73px;
    left: 24px;
  }

  .navbar-brand img {
    width: 108px;
    height: 73px;
  }

  .site-header .navbar {
    padding: 13px 0;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .site-header .navbar-collapse {
    padding-top: 18px;
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 6px;
  }

  .header-actions {
    margin-top: 16px;
    flex-wrap: wrap;
  }

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

  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 991.98px) {
  body {
    font-size: 14px;
    line-height: 22px;
  }

  .site-header .navbar-collapse {
    margin-top: 13px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
  }

  .site-header .nav-link {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 19px;
  }

  .site-header .dropdown-menu {
    margin: 0 0 8px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: var(--bg-soft);
  }

  .site-header .dropdown-menu a {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 19px;
  }

  .heading-copy h1 {
    font-size: 38px;
    line-height: 44px;
  }

  .error-page {
    min-height: 560px;
    padding: 88px 0;
  }

  .error-content h1 {
    font-size: 48px;
    line-height: 56px;
  }

  .error-content > p:not(.error-kicker) {
    font-size: 18px;
    line-height: 27px;
  }

  .heading-copy p {
    font-size: 18px;
    line-height: 27px;
  }

  .top-strip p,
  .course-link,
  .btn-brand,
  .newsletter p,
  .newsletter-form input,
  .search-results-form input {
    font-size: 14px;
    line-height: 22px;
  }

  .tab-btn,
  .sort-select,
  .featured-copy > p,
  .blog-card p,
  .card-meta-row span,
  .read-more-link,
  .newsletter h2 {
    font-size: 14px;
    line-height: 22px;
  }

  .featured-title-row h2 {
    font-size: 19px;
    line-height: 26px;
  }

  .card-title {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-card-col {
    width: 50%;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px;
  }

  .tabs-wrap {
    width: 100%;
  }

  .sort-select {
    width: 180px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article > a,
  .featured-overlay {
    min-height: auto;
  }

  .featured-article > a {
    aspect-ratio: 16 / 9;
  }

  .featured-meta {
    flex-wrap: wrap;
    gap: 20px 28px;
  }

  .featured-tags {
    width: 100%;
    margin-left: 0;
  }

  .newsletter-inner,
  .newsletter-form,
  .search-results-form,
  .gravity-newsletter-form form {
    width: 100%;
  }

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

@media (max-width: 767.98px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .top-strip {
    min-height: auto;
  }

  .top-strip p {
    font-size: 13px;
    line-height: 20px;
  }

  .blog-heading {
    padding: 32px 0 40px;
  }

  .heading-copy .eyebrow {
    font-size: 12px;
    line-height: 18px;
  }

  .heading-copy h1 {
    margin-bottom: 16px;
    font-size: 27px;
    line-height: 34px;
  }

  .heading-copy p {
    font-size: 15px;
    line-height: 24px;
  }

  .blog-section {
    padding-bottom: 64px;
  }

  .featured-article {
    min-height: auto;
  }

  .featured-copy {
    padding: 24px;
  }

  .featured-title-row h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .featured-meta strong {
    line-height: 24px;
  }

  .blog-toolbar {
    margin-top: 40px;
    margin-bottom: 36px;
    flex-direction: column;
    align-items: stretch !important;
    gap: 20px;
  }

  .tabs-wrap {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .pagination-bar {
    margin-top: 48px;
    flex-wrap: wrap;
  }

  .pagination-list {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .page-arrow {
    min-width: auto;
  }

  .newsletter-form,
  .error-search,
  .search-results-form,
  .gravity-newsletter-form form {
    flex-direction: column;
  }

  .newsletter-form .btn,
  .error-search .btn,
  .search-results-form .btn-brand,
  .gravity-newsletter-form .gform_footer,
  .gravity-newsletter-form .gform_button {
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .footer-brand,
  .footer-brand p {
    max-width: none;
    text-align: center;
  }

  .footer-logo,
  .rating-badge {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-col {
    padding-left: 0 !important;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .footer-col::before {
    display: none;
  }

  .footer-col h3 {
    margin: 0;
  }

  .footer-accordion-toggle {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
  }

  .footer-accordion-toggle::after {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    content: "";
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .footer-accordion-toggle:not(.collapsed)::after {
    transform: rotate(225deg);
  }

  .footer-accordion-panel {
    padding-bottom: 18px;
  }

  .footer-menu-list,
  .footer-menu-list .menu {
    align-items: center;
    gap: 10px;
  }

  .footer-col a,
  .footer-menu-list a {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .social-icons,
  .social-icons .social-menu-list {
    justify-content: center;
  }
}

@media (max-width: 479.98px) {
  .container-xl {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .course-link,
  .header-actions .btn-brand {
    width: 100%;
    justify-content: center;
  }

  .heading-copy h1 {
    font-size: 27px;
    line-height: 34px;
  }

  .error-page {
    min-height: 500px;
    padding: 72px 0;
  }

  .error-content h1 {
    font-size: 38px;
    line-height: 46px;
  }

  .featured-article {
    min-height: auto;
  }

  .featured-copy {
    padding: 20px;
  }

  .featured-meta {
    flex-direction: column;
  }

  .featured-tags div {
    align-items: flex-start;
  }

  .card-title {
    min-height: auto;
  }

  .pagination-list {
    gap: 0;
  }

  .pagination-list a,
  .pagination-list span {
    width: 32px;
    height: 32px;
  }

}

@media (max-width: 530px) {
  .blog-card-col {
    width: 100%;
  }
}
