@media (max-width: 767px) {
    .hero-title-group {
        font-size: 1.5rem;
    }

    .hero-img,
    .about-img,
    .automation-img,
    .why-img,
    .leadgen-img,
    .how-img {
        max-width: 220px;
    }
}
@media (max-width: 991px) {
    .navbar-nav {
        gap: 0;
        margin-top: 1rem;
    }
    .nav-item {
        margin: 0.5rem 0;
    }
    .btn-login {
        margin-top: 1rem;
        width: 100%;
    }
    .nav-link::after {
        display: none;
    }
    .services-dropdown {
        margin-top: 0;
        width: 100%;
    }
    .services-dropdown::before {
        display: none;
    }
}

/* ────────────  DESKTOP HOVER BEHAVIOUR  ──────────── */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .navbar .dropdown-toggle::after {
        transition: transform 0.2s;
    }
    .navbar .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 992px) {
    /* desktop only */
    .services-dropdown {
        top: calc(100% + 10px); /* sit 10 px below the link */
        left: 50%; /* center horizontally */
        transform: translateX(-50%);
        margin-top: 0; /* no extra push */
        z-index: 9999; /* stay above everything */
    }
}

@media (max-width: 991px) {
    .hero-main-title {
        font-size: 2.3rem;
    }

    .hero-gradient-title {
        font-size: 3.1rem;
    }

    .hero-img-main {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-section-custom {
        padding: 40px 0 20px 0;
    }

    .hero-main-title {
        font-size: 2.3rem;
    }

    .hero-gradient-title {
        font-size: 3.1rem;
    }

    .hero-img-main {
        border-radius: 12px;
    }
}

@media (max-width: 480px) { /* mobile portrait */
    .hero-main-title {
        font-size: 1.6rem;
    }
}
@media (max-width: 991px) {
    .feature-card-main {
        max-width: 100%;
        min-height: 0;
        margin-top: 24px;
    }

    .features-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .features-section-custom {
        padding: 40px 0 30px 0;
    }

    .feature-card-custom,
    .feature-card-main {
        padding: 20px 12px;
    }

    .features-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    .about-title {
        font-size: 2rem;
    }

    .about-img-main {
        width: 100%;
    }

    .about-img-gradient {
        padding: 4px;
    }
}

@media (max-width: 767px) {
    .about-section-custom {
        padding: 40px 0 20px 0;
    }

    .about-title {
        font-size: 1.3rem;
    }

    .about-img-main {
        border-radius: 16px;
    }

    .about-img-gradient {
        border-radius: 18px;
    }
}

@media (max-width: 991px) {
    .why-title {
        font-size: 2rem;
    }

    .feature-row {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .why-section-custom {
        padding: 60px 0 40px 0;
    }

    .video-overlay {
        height: 300px;
    }

    .video-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .video-controls {
        width: 100%;
        justify-content: space-between;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .glow-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .glow-cta-text {
        font-size: 1.1rem;
    }

    .glow-cta-btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .automation-title {
        font-size: 2rem;
    }

    .automation-img-main {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .automation-section-custom {
        padding: 40px 0 20px 0;
    }

    .automation-title {
        font-size: 1.3rem;
    }

    .automation-img-main {
        border-radius: 12px;
    }

    .automation-feature-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .how-header {
        position: relative;
        margin-bottom: 3rem;
        text-align: center;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-content {
        flex-direction: column;
        align-items: center;
    }

    .step-visual {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .how-title {
        font-size: 2rem;
    }

    .step-card {
        padding: 25px;
    }

    .mockup-card {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .leadgen-title {
        font-size: 2.5rem;
    }

    .leadgen-hero-img {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .leadgen-section-custom {
        padding: 60px 0;
    }

    .leadgen-title {
        font-size: 2rem;
    }

    .features-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .contact-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cta-description {
        font-size: 1rem;
        padding: 0 20px;
    }

    .btn-book-demo {
        padding: 12px 35px;
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .footer-card {
        flex-direction: column !important;
        text-align: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
    @media (max-width: 991px) {
        .footer-custom .col-md-4 {
            margin-bottom: 2rem;
        }
    }
}

@media (max-width: 991px) {
    .hero::before,
    .hero::after {
        width: 400px;
        opacity: 0.5;
    }
}

@media (max-width: 767px) {
    .hero::before,
    .hero::after {
        width: 280px;
        opacity: 0.35;
        top: 60%; /* slightly lower for small screens */
    }
}

@media (max-width: 575px) {
    .hero::before,
    .hero::after {
        display: none; /* hide completely on extra-small screens */
    }
}

@media (max-width: 767px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-title {
        font-size: 2rem;
    }

    .pricing-card {
        margin-bottom: 30px;
    }

    .card-content {
        padding: 20px;
    }

    .features-list li {
        font-size: 0.875rem;
    }

    .btn-get-started {
        font-size: 1rem;
        padding: 14px 28px;
    }
}

@media (max-width: 991px) {
    .pricing-title {
        font-size: 2.5rem;
    }

    .card-header {
        padding: 30px 20px 25px;
    }

    .plan-name {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .ai-avatar {
        width: 80px;
        height: 80px;
    }
}

/*BLOG*/

    @media (max-width: 991px) {
        .section-title {
            font-size: 2.5rem;
        }

        .blog-image {
            height: 220px;
            border-radius: 20px 20px 0 0;
        }

        .blog-content {
            padding: 30px;
        }

        .blog-title {
            font-size: 1.25rem;
        }
    }

    @media (max-width: 767px) {
        .blog-section {
            padding: 60px 0;
        }

        .section-title {
            font-size: 2rem;
        }

        .blog-image {
            height: 200px;
        }

        .blog-content {
            padding: 20px;
        }

        .blog-meta {
            gap: 15px;
        }

        .blog-title {
            font-size: 1.1rem;
        }

        .blog-excerpt {
            font-size: 0.875rem;
        }
    }

    /*blog-details*/

            @media (max-width: 1200px) {
            .blog-content {
                padding: 3rem;
            }
        }

        @media (max-width: 991px) {
            .blog-title {
                font-size: 2.5rem;
            }



            .article-content h2 {
                font-size: 1.875rem;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .tech-card {
                flex-direction: column;
                text-align: center;
            }

            .tech-number {
                margin: 0 auto;
            }

            .benefits-showcase {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px;
            }

            .step-header {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }


        }

        @media (max-width: 767px) {
            .blog-details-section {
                padding: 60px 0;
            }

            .blog-title {
                font-size: 2rem;
            }



            .lead-paragraph {
                font-size: 1.125rem;
            }

            .article-content {
                font-size: 1rem;
            }

            .author-info {
                flex-direction: column;
                gap: 15px;
            }

            .blog-meta-bottom {
                flex-direction: column;
                gap: 15px;
            }

            .blog-content {
                padding: 2rem;
                border-radius: 20px;
            }

            .article-content h2 {
                font-size: 1.5rem;
            }

            .blockquote {
                padding: 1.5rem;
            }

            .blockquote p {
                font-size: 1.125rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-number {
                font-size: 2.5rem;
            }

            .benefit-icon {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }

            .future-trends {
                grid-template-columns: 1fr;
            }

            .cta-section {
                padding: 2rem;
            }

            .cta-section h3 {
                font-size: 1.5rem;
            }

            .btn-cta {
                padding: 14px 30px;
                font-size: 1rem;
            }

            .share-btn {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
        }

        /* Print Styles */
        @media print {
            .blog-details-section {
                background: white;
                color: black;
            }

            .blog-content {
                background: transparent;
                border: none;
                box-shadow: none;
            }

            .share-section,
            .author-social,
            .reading-progress,
            .cta-section {
                display: none;
            }

            .blog-title,
            .article-content h2,
            .article-content h3 {
                color: black;
            }
        }

         /* feature-blog */
        @media (max-width: 1200px) {
            .blog-card {
                min-width: calc(50% - 15px);
            }
        }

        @media (max-width: 991px) {
            .section-title {
                font-size: 2.5rem;
            }

            .slider-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .slider-prev {
                left: 10px;
            }

            .slider-next {
                right: 10px;
            }
        }

        @media (max-width: 767px) {
            .related-blog-section {
                padding: 60px 0;
            }

            .section-title {
                font-size: 2rem;
            }

            .blog-card {
                min-width: 85%;
            }

            .blog-card-title {
                font-size: 1.1rem;
            }

            .blog-card-content {
                padding: 20px;
            }

            .author img {
                width: 35px;
                height: 35px;
            }
        }


                /* ai-inbound */

        @media (max-width: 991px) {
            .services-title {
                font-size: 3rem;
            }

            .services-subtitle {
                font-size: 1.1rem;
            }

            .laptop-container {
                max-width: 700px;
            }
        }

        @media (max-width: 767px) {
            .services-hero-section {
                padding: 60px 0;
            }

            .services-title {
                font-size: 2.5rem;
            }

            .services-subtitle {
                font-size: 1rem;
            }

            .laptop-frame {
                padding: 4px;
            }

            .laptop-frame::after {
                width: 150px;
                height: 12px;
                bottom: -15px;
            }

            .description-text {
                font-size: 0.9rem;
                text-align: left;
            }

            .description-text.highlight {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .services-title {
                font-size: 2rem;
            }

            .services-header {
                margin-bottom: 2rem;
            }

            .laptop-container {
                margin-bottom: 3rem;
            }
        }


                @media (max-width: 991px) {
            .section-title {
                font-size: 2.5rem;
            }

            .content-title,
            .importance-title {
                font-size: 1.3rem;
            }

            .ai-visual {
                max-width: 500px;
                margin: 0 auto 3rem;
            }
        }

        @media (max-width: 767px) {
            .ai-inbound-section {
                padding: 60px 0;
            }

            .section-title {
                font-size: 2rem;
            }

            .btn-demo {
                padding: 10px 30px;
                font-size: 0.9rem;
            }

            .content-title,
            .importance-title {
                font-size: 1.2rem;
            }

            .feature-item p,
            .content-description,
            .availability-item p,
            .importance-text {
                font-size: 0.9rem;
            }

            .section-header {
                margin-bottom: 3rem;
            }
        }

                @media (max-width: 991px) {
            .col-lg-4 {
                margin-bottom: 3rem;
            }

            .block-title {
                font-size: 1.25rem;
            }

            .block-text,
            .feature-list li {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 767px) {
            .ai-outbound-section {
                padding: 60px 0;
            }

            .col-lg-4 {
                padding: 0 15px;
            }

            .block-title {
                font-size: 1.1rem;
            }

            .image-block {
                max-width: 400px;
                margin: 0 auto 2rem;
            }
        }
