/* Laptop Large */
@media (max-width: 1440px) and (min-width: 1201px) {
    .book-container {
        transform: scale(0.85);
        padding-right: 0;
    }
}

/* Tablet Desktop Small */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 60px;
    }

    .book-container {
        transform: scale(0.7);
        padding-right: 0;
    }
}

/* Tablet (Portrait) */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        max-height: 85vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        margin: 10px 0 !important;
        text-align: center;
        display: block;
    }

    .service-dropdown .dropdown-menu {
        text-align: center;
        background-color: #1A1614;
        border: none;
        margin-bottom: 15px;
    }

    .service-dropdown .dropdown-item {
        text-align: center;
        padding: 10px;
    }

    .hero-section {
        background-size: cover !important;
        background-attachment: scroll !important;
        height: 500px;
    }

    .section-title {
        font-size: 45px;
        margin-bottom: 30px;
    }

    /* Our Process Section Responsive */
    .our-process {
        padding: 60px 0;
    }

    .proc-ribbon {
        right: 20px;
        width: 120px;
    }

    .proc-ribbon img {
        width: 100%;
        height: auto;
    }

    .proc-arrow {
        display: none;
    }

    .book-container {
        padding-right: 0;
        transform: scale(0.65);
        height: 400px;
        /* Reduced height to avoid massive gaps */
        margin-bottom: -50px;
    }

    .proc-info {
        text-align: center;
        margin-top: 0;
    }

    .proc-info h2 {
        font-size: 50px !important;
    }

    /* What we do responsive - Single Column for Tablet & Mobile */
    .flip-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 25px;
    }

    .wwd-card-container {
        height: auto !important;
        min-height: 200px;
    }

    .wwd-card-front,
    .wwd-card-back {
        padding: 25px;
        border-radius: 15px;
    }

    .wwd-icon {
        flex: 0 0 80px;
        margin-right: 20px;
    }

    .wwd-icon img {
        width: 100%;
        height: auto;
    }

    .wwd-text h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .wwd-text p {
        font-size: 16px;
    }

    /* Slider Fixes */
    .slider-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .published-item {
        margin: 10px !important;
    }

    .slider-btn {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Our Work */
    .work-subheading {
        font-size: 28px;
    }

    /* FAQ */
    .faq-main-title {
        font-size: 40px;
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    .content-sec h2 {
        font-size: 40px;
        line-height: 1.3;
    }

    /* Service Banner Responsive */
    .service-banner {
        padding: 50px 0;
        text-align: center;
    }

    .service-banner h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .service-banner p {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .banner-img-wrap {
        margin-bottom: 40px;
    }

    /* Footer */

    .footer-watermark {
        opacity: 0.1 !important;
        transform: scale(0.6);
    }

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

    /* Contact Page Overrides */
    .contact-overlay {
        padding: 50px 0;
    }

    .col-lg-5.contact-left-panel {
        border-radius: 20px 20px 0 0 !important;
    }

    .col-lg-5.contact-left-panel .panel-content.p-5 {
        padding: 40px 20px !important;
    }

    .col-lg-7.contact-right-panel {
        border-radius: 0 0 20px 20px !important;
    }

    .col-lg-7.contact-right-panel .panel-content.p-5 {
        padding: 40px 20px !important;
    }

    .contact-right-panel h3 {
        font-size: 45px !important;
        margin-bottom: 30px !important;
    }

    .col-lg-5.contact-left-panel h2 {
        font-size: 35px !important;
    }

    .badge-text p a,
    .badge-text p {
        word-break: break-word;
        font-size: 15px;
        white-space: normal;
    }

    .service-banner.contact-banner {
        display: none;
    }

    .info-badges .badge-item {
        padding: 15px !important;
    }

    .badge-icon {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        font-size: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-consultation {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Flipbook scale further */
    .book-container {
        transform: scale(0.5);
        height: 320px;
        margin-bottom: -100px;
    }

    .proc-info h2 {
        font-size: 40px !important;
    }

    .proc-ribbon {
        width: 80px;
    }

    /* What we do cards */
    .flip-col {
        margin-bottom: 20px;
    }

    .wwd-card-container {
        height: 250px !important;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .section-title {
        font-size: 32px;
    }

    .hero-section {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    /* Flipbook mobile optimization */
    .book-container {
        width: 315px !important;
        height: 220px !important;
        margin: 0 auto 40px auto !important;
        padding: 0 !important;
        display: block !important;
        overflow: hidden !important;
        transform: none !important;
    }

    .book {
        transform: scale(0.35) !important;
        transform-origin: top left !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
    }

    .proc-ribbon {
        width: 60px;
        right: 10px;
    }

    /* CTA */
    .cta-title {
        font-size: 28px;
    }

    .content-sec h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .content-sec p {
        font-size: 18px;
        line-height: 1.3;
    }

    .wwd-text h3 {
        font-size: 24px;
    }

    .work-subtitle {
        font-size: 18px;
        line-height: 1.1;
    }

    .footer-links li a,
    .contact-list li a {
        font-size: 16px;
    }

    .cover-quote {
        font-size: 30px;
    }

    .cover-subtext {
        font-size: 20px;
        line-height: 27px;
    }

    .benefits-title {
        font-size: 35px;
    }

    .benefit-item h3 {
        font-size: 22px;
    }

    .cta-text {
        font-size: 14px;
        width: 95% !important;
    }

    .btn-cta {
        border-radius: 50px;
        font-size: 20px;
    }

    .faq-sec .accordion-button {
        font-size: 20px;
    }

    .wwd-card-back h4 {
        font-size: 18px;
        line-height: 1.2;
    }

    .wwd-card-back p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Footer adjustments */


    .main-footer {
        padding: 30px 0 30px;
        text-align: center;
    }

    .copy-right p {
        font-size: 12px;
    }

    img.book-cover-bann {
        position: absolute;
        left: 57px;
        top: 20px;
        transform: translateY(0%);
        opacity: 0.6;
        z-index: 1;
        pointer-events: none;
        max-width: 73%;
        height: auto;
    }

    .step-tri,
    .horizontal-line,
    .tri-wrap {
        display: none;
    }

    .book-cover-content {
        padding: 0;
    }

    .our-work-sec {
        padding: 0;
    }

    section.testimonials-sec {
        padding: 30px 0;
    }

    .faq-sec {
        padding: 0;
    }

    /* Inner Pages Process Steps Fix */
    .process-card {
        height: auto !important;
        margin-bottom: 50px;
    }
}