/* Mobile Responsive Fixes for Banners, Header, and Footer */

/* Hero/Banner Section Mobile Fixes */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0 60px 0 !important;
        min-height: 70vh !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero-section.video-banner {
        height: 70vh !important;
        min-height: 400px !important;
    }
    
    .hero-content {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content .btn {
        font-size: 1rem !important;
        padding: 12px 24px !important;
        margin: 0.5rem !important;
    }
    
    /* Carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 10% !important;
        opacity: 0.8 !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px !important;
        height: 25px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 40px 0 !important;
        min-height: 60vh !important;
    }
    
    .hero-section.video-banner {
        height: 60vh !important;
        min-height: 350px !important;
    }
    
    .hero-content h1 {
        font-size: 1.7rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero-content .btn {
        font-size: 0.95rem !important;
        padding: 10px 20px !important;
        width: auto !important;
        min-width: 120px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0 30px 0 !important;
        min-height: 50vh !important;
    }
    
    .hero-section.video-banner {
        height: 50vh !important;
        min-height: 300px !important;
    }
    
    .hero-content {
        padding: 0 15px !important;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    .hero-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
        display: block !important;
        width: 80% !important;
        margin: 0.5rem auto !important;
    }
    
    /* NABH Badge Mobile */
    .hero-content .btn-warning {
        width: auto !important;
        display: inline-block !important;
        margin-bottom: 1rem !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
    
    .nabh-btn-logo {
        height: 20px !important;
        width: auto !important;
        margin-right: 5px !important;
    }
}

/* YouTube Video Mobile Optimization */
@media (max-width: 991.98px) {
    .youtube-fullsize-embed {
        width: 100vw !important;
        height: 56.25vw !important;
        min-height: 70vh !important;
        min-width: 177.78vh !important;
    }
    
    .youtube-banner .container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
    
    .video-fullsize {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Header Mobile Fixes */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0 !important;
        min-height: 70px !important;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: calc(100% - 60px) !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .navbar-toggler {
        position: absolute !important;
        right: 15px !important;
        top: 15px !important;
        z-index: 1051 !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        padding: 0.375rem 0.5rem !important;
        border-radius: 0.375rem !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
        outline: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em !important;
        height: 1.5em !important;
    }
    
    .navbar-collapse {
        margin-top: 15px !important;
        padding: 1rem 0 !important;
        text-align: center !important;
    }
    
    .navbar-nav {
        width: 100% !important;
        text-align: center !important;
    }
    
    .nav-item {
        margin: 0.25rem 0 !important;
        width: 100% !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
    
    .dropdown-menu {
        background-color: rgba(25, 135, 84, 0.95) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem !important;
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
}

@media (max-width: 767.98px) {
    .govind-ayurveda-brand {
        font-size: 1.2rem !important;
        margin: 0 5px !important;
        white-space: nowrap !important;
    }
    
    .navbar-brand img {
        height: 48px !important;
    }
    
    .navbar-brand img.nabh-certified-logo {
        height: 48px !important;
        margin-left: 5px !important;
    }
    
    .nav-link {
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }
    
    .dropdown-item {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .govind-ayurveda-brand {
        font-size: 1.1rem !important;
        margin: 0 4px !important;
        letter-spacing: 0.5px !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
    
    .navbar-brand img.nabh-certified-logo {
        height: 45px !important;
        margin-left: 4px !important;
    }
    
    .navbar-toggler {
        right: 10px !important;
        top: 15px !important;
        padding: 0.25rem 0.4rem !important;
    }
    
    .nav-link {
        padding: 1.2rem 0.5rem !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    .govind-ayurveda-brand {
        font-size: 1rem !important;
        margin: 0 3px !important;
    }
    
    .navbar-brand img {
        height: 42px !important;
    }
    
    .navbar-brand img.nabh-certified-logo {
        height: 42px !important;
        margin-left: 3px !important;
    }
}

@media (max-width: 400px) {
    .govind-ayurveda-brand {
        font-size: 0.9rem !important;
        margin: 0 2px !important;
    }
    
    .navbar-brand img {
        height: 38px !important;
    }
    
    .navbar-brand img.nabh-certified-logo {
        height: 38px !important;
        margin-left: 2px !important;
    }
}

/* Top Bar Mobile Fixes */
@media (max-width: 991.98px) {
    .top-bar {
        padding: 0.5rem 0 !important;
    }
    
    .top-info {
        justify-content: center !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .top-info-item {
        margin-bottom: 0.25rem !important;
        display: block !important;
        width: 100% !important;
    }
    
    .top-bar .col-md-4 {
        display: none !important;
    }
    
    .top-bar .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Footer Mobile Fixes */
@media (max-width: 991.98px) {
    footer {
        padding: 3rem 0 2rem 0 !important;
    }
    
    footer .container {
        padding: 0 15px !important;
    }
    
    footer .row {
        text-align: center !important;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem !important;
    }
    
    footer h4 {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    footer h5 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    footer p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .nabh-logo {
        height: 40px !important;
        width: auto !important;
    }
    
    .social-icons {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .social-icons a {
        margin: 0 1rem 1rem 0 !important;
        font-size: 1.5rem !important;
    }
    
    .newsletter-block {
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .newsletter-block .input-group {
        margin-bottom: 1rem !important;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem !important;
    }
    
    .footer-links a {
        font-size: 1rem !important;
        padding: 0.5rem 0 !important;
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    footer {
        padding: 2.5rem 0 1.5rem 0 !important;
    }
    
    footer .col-md-4 {
        margin-bottom: 2.5rem !important;
    }
    
    footer h4 {
        font-size: 1.2rem !important;
    }
    
    .social-icons a {
        margin: 0 0.8rem 1rem 0 !important;
        font-size: 1.4rem !important;
    }
    
    .nabh-logo {
        height: 35px !important;
    }
}

@media (max-width: 575.98px) {
    footer {
        padding: 2rem 0 1rem 0 !important;
    }
    
    footer .container {
        padding: 0 10px !important;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem !important;
    }
    
    footer h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    footer p {
        font-size: 0.9rem !important;
    }
    
    .social-icons a {
        margin: 0 0.5rem 0.8rem 0 !important;
        font-size: 1.3rem !important;
    }
    
    .nabh-logo {
        height: 30px !important;
    }
    
    .newsletter-block {
        max-width: 280px !important;
    }
    
    .newsletter-block .form-control {
        font-size: 0.9rem !important;
        padding: 0.5rem !important;
    }
    
    .newsletter-block .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Back to Top Button Mobile */
@media (max-width: 991.98px) {
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
}

/* Additional Mobile Optimization */
@media (max-width: 991.98px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden !important;
    }
    
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
    
    .nav-link {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Improve readability */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }
    
    p {
        line-height: 1.6 !important;
        word-wrap: break-word !important;
    }
}

/* Fix any layout issues on very small screens */
@media (max-width: 320px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .hero-content {
        padding: 0 10px !important;
    }
    
    .hero-content h1 {
        font-size: 1.3rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
    
    .hero-content p {
        font-size: 0.85rem !important;
    }
    
    .btn {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
    
    .govind-ayurveda-brand {
        font-size: 0.8rem !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand img.nabh-certified-logo {
        height: 35px !important;
    }
}
