/* Give tablet screens the desktop homepage composition without squeezing its content. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-container { padding: 12px 20px 0; }
    .navbar-nav-container { width: 100%; gap: 10px; }
    .navbar-logo-container { width: auto; flex: none; justify-content: flex-start; }
    .navbar-logo-container img { width: clamp(116px, 15vw, 145px); height: 88px; object-fit: contain; }
    .nav-link-container { display: block; flex: 1; width: auto; min-width: 0; }
    .nav-link-container .navbar-collapse { display: flex !important; flex-basis: auto; }
    .navbar-nav { display: flex !important; flex-direction: row; align-items: center; justify-content: center; flex-wrap: nowrap; }
    .navbar-nav .nav-link { padding-inline: clamp(3px, .55vw, 6px) !important; font-size: 12px; white-space: nowrap; }
    .navbar-cta-container { display: flex; width: auto; flex: none; justify-content: flex-end; }
    .navbar-cta-container .desktop-header-quote { display: none; }
    .navbar-cta-container .desktop-header-login { display: inline-flex; align-items: center; justify-content: space-between; width: 102px; min-height: 44px; padding: 11px 14px; background: var(--accent-color); border-color: var(--accent-color); color: #111; font-size: 13px; }
    .nav-btn { display: none; }

    .banner-home__page-layout { min-height: 650px; gap: 20px; padding: 24px 0 20px; }
    .banner-home__hero-heading-container { flex-direction: row; align-items: center; gap: 22px; }
    .banner-home__hero-title { width: 50%; flex-direction: column; font-size: clamp(56px, 7vw, 70px); line-height: 1.04; }
    .banner-home__hero-subtitle-container { width: 45%; gap: 14px; }
    .banner-home__hero-subtitle-container h2 { font-size: clamp(27px, 3.3vw, 34px); }
    .banner-home__hero-subtitle-container p { font-size: 15px; }
    .banner-home__hero-subtitle-container > .d-flex { justify-content: flex-start !important; flex-wrap: wrap; gap: 10px; }
    .banner-home__hero-subtitle-container .btn { padding: 12px 17px; font-size: 13px; }
    .desktop-hero-quote { display: inline-flex; }
    .banner-home__cta-container { align-items: center; }
    .home-cta-title { width: 29%; font-size: 14px; }
    .home-cta-social-container { width: 68%; }
    .home-cta-icon-title { font-size: 12px; }

    .home-main > .section { padding-top: 80px; padding-bottom: 80px; }
    .home-main > .section.pt-0 { padding-top: 0; }
    .expertise__page-layout { gap: 60px; }
    .expertise__page-layout > .row > .col:first-child { width: 33.333%; }
    .expertise__page-layout > .row > .col:nth-child(2) { width: 66.667%; }
    .expertise__page-layout > .row h3 { font-size: clamp(25px, 3.1vw, 31px); }
    .expertise__page-layout > .d-flex.flex-column-reverse { flex-direction: row !important; align-items: flex-start; gap: 22px; }
    .expertise-card-container { display: flex; width: 29%; flex-direction: column; gap: 18px; }
    .expertise-card-container .card-expertise { width: 100%; min-width: 0; padding: 16px 12px; gap: 16px; }
    .expertise-card-container .heading-xs { font-size: 17px; }
    .expertise-card-container p { font-size: 13px; line-height: 1.45; }
    .offered-expertise-content { width: 68%; grid-template-rows: 180px 210px 190px; gap: 14px; }
    .offered-expertise-title { width: 100%; font-size: clamp(29px, 3.6vw, 36px); line-height: 1.14; }
    .offered-expertise__image-title img,
    .offered-expertise__image-content img { height: 100%; }
    .offered-expertise__image-title,
    .offered-expertise__image-content,
    .offered-expertise__image-extra { min-height: 0; }
    .offered-expertise-content img { border-radius: 14px; }

    .home-dashboard-section .dashboard__page-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
    .home-dashboard-section .dashboard-stat-content { min-height: 178px; }
    .home-dashboard-section .dashboard-stat-content .heading-xs { min-height: 3em; font-size: 17px; }
    .home-dashboard-section .dashboard-stat { font-size: clamp(64px, 8vw, 80px); }
    .home-dashboard-section .dashboard-stat-suffix { font-size: 26px; }
    .home-community__panel { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; padding: 30px; }
    .home-community__intro h2 { font-size: clamp(36px, 4.2vw, 42px); }
    .home-community__intro p { font-size: 15px; }
    .home-community__support { padding: 22px; }

    .home-portfolio-heading-desktop { gap: 28px; }
    .home-portfolio-heading-desktop h2 { font-size: clamp(34px, 4vw, 40px); }
    .home-portfolio-heading-desktop p { font-size: 15px; }

    .contact-cta-banner { padding: 90px 20px !important; }
    .contact-cta__page-layout { gap: 24px; }
    .contact-cta__page-layout .card-cta-rating { width: 29%; }
    .contact-cta__content-container { width: 67%; gap: 20px; }
    .contact-cta__content-heading-container h2 { font-size: clamp(34px, 4.3vw, 42px); }
    .contact-cta-description { margin: 0; }

    .testimonial-banner .row > .col:first-child > .d-flex { flex-direction: column !important; gap: 22px; }
    .testimonial-banner .testimonial-title-container,
    .testimonial-banner .testimonial__trust-badge { width: 100%; }
    .testimonial-banner .testimonial-quote { font-size: 22px; }

    .home-main + footer .footer__main-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .home-main + footer .footer__newsletter { grid-column: 1 / -1; }
    .home-main + footer .footer__highlight-text-container { margin-top: 36px; }
    .home-main + footer .footer__highlight-text { font-size: clamp(58px, 7.3vw, 76px); }
}

@media (min-width: 768px) and (max-width: 899.98px) {
    .home-community__panel { grid-template-columns: 1fr; }
    .home-portfolio-heading-desktop { grid-template-columns: 1fr; }
    .contact-cta__page-layout .card-cta-rating { width: 32%; }
    .contact-cta__content-container { width: 64%; }
}

@media (min-width: 900px) and (max-width: 991.98px) {
    .testimonial-banner .row > .col { width: 50%; }
}
