/* =========================================
   Large Desktop
   ========================================= */
@media (max-width: 1399px) {
    .container-fluid {
        padding: 0 80px;
    }
    .hero-title,
    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .testi-title {
        font-size: 64px;
        line-height: 1.15;
    }
    .contact-title {
        font-size: 3.4rem;
    }
}

/* =========================================
   Laptop / Small Desktop
   ========================================= */
@media (max-width: 1199px) {
    .container-fluid {
        padding: 0 48px;
    }
    .hero-section {
        padding: 200px 0 140px;
    }
    .hero-book-img-container {
        top: -40px;
    }
    .hero-title,
    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .testi-title {
        font-size: 54px;
        line-height: 1.15;
    }
    .skip-text {
        font-size: 56px;
    }
    .author-img-container {
        margin-top: -90px;
    }
    .logo-img {
        margin-left: 10px;
    }
}

/* =========================================
   Tablet (lg down)
   ========================================= */
@media (max-width: 991px) {
    header {
        top: 12px;
        z-index: 20;
    }
    .container-fluid {
        padding: 0 24px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .navbar {
        border-radius: 20px;
        padding: 8px 12px;
    }
    .logo-img {
        margin-left: 0;
        max-height: 42px;
    }
    .navbar-collapse {
        width: 100%;
        padding: 12px 8px 8px;
    }
    .navbar-nav {
        align-items: stretch !important;
        width: 100%;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        margin: 4px 0;
        text-align: left;
        padding: 10px 8px;
    }
    .nav-item.ml-lg-3 {
        margin-left: 0 !important;
    }
    .btn-contact {
        width: 100%;
        height: 44px;
        margin-top: 6px;
    }

    .hero-section {
        padding: 140px 0 50px;
        text-align: center;
    }
    .hero-title,
    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .testi-title,
    .contact-title {
        font-size: 42px;
        line-height: 1.15;
    }
    .hero-book-img-container {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    .hero-book-img {
        max-width: 70%;
    }
    .red-divider {
        height: 40px;
        margin-top: -16px;
    }

    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .contact-title {
        display: block;
    }

    .author-section {
        padding: 50px 0 !important;
        text-align: center;
    }
    .author-img-container {
        margin-top: 20px;
    }
    .author-img {
        max-width: 280px;
    }

    .toc-header {
        margin-bottom: 32px;
        text-align: center;
    }
    .toc-title {
        margin-bottom: 16px;
    }
    .toc-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .buy-img-box img {
        width: 70%;
    }
    .buy-tabs {
        flex-wrap: wrap;
    }
    .tab-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    .btn-outline-red {
        margin-left: 0;
    }

    .skip-section {
        height: 360px;
    }
    .skip-text {
        font-size: 42px;
        line-height: 1.3;
    }

    .testimonial-bg-split {
        display: none;
    }
    .testimonial-section {
        background-color: var(--primary-red);
        padding: 60px 0 20px;
    }
    .testimonial-section .testi-title {
        background: none;
        -webkit-text-fill-color: #fff;
        color: #fff;
        margin-bottom: 70px;
    }
    .testimonial-card {
        margin-top: 40px;
    }

    .contact-section {
        padding: 50px 0;
        text-align: center;
    }
    .contact-section .text-left {
        text-align: center !important;
    }

    .footer {
        padding: 50px 0 70px;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-logo img {
        margin: 0 auto;
    }
}

/* =========================================
   Mobile
   ========================================= */
@media (max-width: 767px) {
    .container-fluid {
        padding: 0 16px;
    }
    .section-padding {
        padding: 45px 0;
    }
    .hero-title,
    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .testi-title,
    .contact-title {
        font-size: 34px;
        line-height: 1.2;
    }
    .hero-section {
        padding: 120px 0 40px;
    }
    .hero-book-img {
        max-width: 85%;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .btn-pill-red,
    .btn-author,
    .btn-black,
    .btn-outline-red,
    .btn-submit {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .buy-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .buy-img-box img {
        width: 90%;
    }
    .buy-tabs {
        justify-content: space-between;
    }
    .tab-link {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    .format-selector {
        padding: 14px 18px;
    }
    .skip-section {
        height: 260px;
        padding: 0 12px;
    }
    .skip-text {
        font-size: 32px;
    }
    .testi-title {
        margin-bottom: 50px;
    }
    .testimonial-card {
        padding: 70px 20px 30px;
    }
    .avatar-img {
        width: 90px;
        height: 90px;
        top: -45px;
    }
    .form-control {
        padding: 18px 20px;
    }
    textarea.form-control {
        height: 140px;
    }
    .footer h5 {
        margin-top: 10px;
        margin-bottom: 16px;
    }
    .toc-box {
        min-height: 60px;
        padding: 16px 20px;
        font-size: 15px;
    }
}

/* =========================================
   Small Mobile
   ========================================= */
@media (max-width: 575px) {
    .navbar {
        border-radius: 16px;
        padding: 6px 10px;
    }
    .hero-title,
    .about-title,
    .author-title,
    .toc-title,
    .buy-title,
    .testi-title,
    .contact-title {
        font-size: 28px;
    }
    .skip-text {
        font-size: 26px;
        line-height: 1.35;
    }
    .signature {
        font-size: 28px;
        line-height: 1.2;
    }
    .author-img {
        max-width: 220px;
    }
    .red-divider {
        height: 28px;
    }
    .contact-title {
        font-size: 2rem;
    }
}

/* Reduce hover lift on touch devices */
@media (hover: none) {
    .btn-pill-red:hover,
    .btn-contact:hover,
    .btn-author:hover,
    .btn-black:hover,
    .btn-outline-red:hover,
    .btn-submit:hover,
    .toc-box:hover,
    .testimonial-card:hover,
    .hero-book-img:hover,
    .about-book-img:hover,
    .buy-img-box img:hover {
        transform: none;
        box-shadow: none;
    }
}
