/* Responsive CSS */

/* Reset any potential overflow issues */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* Container constraints */
.container, .container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix for Reviews Slider Section */
.reviews-section {
    overflow: hidden;
    padding: 3rem 0;
}

.reviews-swiper {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 15px;
}

.swiper-container {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 2rem 0;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    width: auto !important;
    max-width: 400px;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
    flex-grow: 1;
}

.review-author {
    font-weight: 600;
    color: #333;
}

/* Swiper Navigation */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    background: #88a59f;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #88a59f;
    opacity: 1;
}

/* Navigation fixes */
.navbar {
    z-index: 1050;
}

.navbar-nav {
    max-width: 100%;
    overflow-x: auto;
}

/* Fix navbar sticking to hero */
.hero-section {
    padding-top: 100px; /* Add space for fixed navbar */
    margin-top: 0;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        font-size: 14px !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        padding-top: 80px;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .reviews-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .reviews-swiper {
        padding: 0 10px;
    }
    
    .swiper-slide {
        max-width: 90vw;
        margin-right: 15px;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    /* Fix hero spacing */
    .hero-section {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Mobile styles */
@media (max-width: 576px) {
    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Reviews slider mobile fixes */
    .reviews-swiper {
        padding: 0 5px;
        margin: 0;
    }
    
    .swiper-slide {
        max-width: 85vw;
        width: 85vw !important;
        margin-right: 10px;
    }
    
    .review-card {
        padding: 1rem;
        min-height: 200px;
    }
    
    .review-text {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .review-author {
        font-size: 16px;
    }
    
    /* Navigation improvements */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    /* Section spacing */
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .swiper-slide {
        max-width: 90vw;
        width: 90vw !important;
    }
    
    .review-card {
        padding: 0.75rem;
    }
    
    .hero-section {
        padding-top: 55px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 50px;
        min-height: auto;
        padding-bottom: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Fix any potential layout issues */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col-lg-6, .col-md-6, .col-sm-6, .col-lg-4, .col-md-4, .col-lg-3, .col-md-3 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Additional overflow protection */
* {
    max-width: 100vw;
}

*:not(html):not(body) {
    max-width: 100%;
}
