/* Home Page Custom Styles */

/* 1. Mobile & Global Resets */
html, body {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .mad-product, 
    .mad-product *, 
    .owl-carousel, 
    .owl-carousel *, 
    .hero-carousel, 
    .hero-carousel *,
    .mad-grid-item,
    .mad-grid,
    .mad-owl-item,
    .owl-stage-outer,
    .owl-stage,
    .owl-item,
    .mad-products {
        touch-action: auto !important; /* Allow system to handle scrolling/gestures */
        -ms-touch-action: auto !important;
    }
    
    .owl-stage-outer.owl-grab {
        cursor: default !important;
    }
    
    .owl-carousel .owl-stage {
        touch-action: pan-y !important; /* Explicitly prioritize vertical scrolling within carousels */
    }
}

/* 2. Hero Carousel Custom Styles already in style.css, but ensure consistency */

/* 3. About Us Section */
.about-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image-wrapper img:hover {
    transform: scale(1.05);
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-badge-icon {
    width: 50px;
    height: 50px;
    background: #46a69c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.about-badge-text h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.about-badge-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.about-content-col {
    padding-left: 50px;
}

.about-tagline {
    color: #46a69c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-title span {
    color: #46a69c;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

.about-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-icon {
    color: #46a69c;
    background: rgba(70, 166, 156, 0.1);
    padding: 8px;
    border-radius: 10px;
}

.trust-text h6 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.trust-text p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.about-cta-btn {
    background: #1e293b;
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.about-cta-btn:hover {
    background: #46a69c !important;
    box-shadow: 0 10px 25px rgba(70, 166, 156, 0.3);
}

/* 4. Testimonials Section */
.testimonials-section {
    background: #fdfefd;
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    color: #46a69c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
}

.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #46a69c;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    margin-bottom: 30px;
    flex: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
}

.user-status {
    font-size: 0.85rem;
    color: #46a69c;
    font-weight: 600;
}

/* 5. CTA Premium Section */
.cta-premium-section {
    background: linear-gradient(135deg, #26658c 0%, #1e4f6e 100%);
    margin-top: 60px;
    padding: 80px 0 !important;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(38, 101, 140, 0.15);
}

.cta-decoration-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(70,166,156,0.15) 0%, rgba(70,166,156,0) 70%);
    border-radius: 50%;
}

.cta-decoration-2 {
    position: absolute;
    bottom: -80px;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(70, 166, 156, 0.15);
    color: #4de0d2;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(70, 166, 156, 0.3);
}

.cta-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 3rem !important;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.cta-highlight {
    position: relative;
    z-index: 1;
}

.cta-highlight svg {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: -1;
}

.cta-text {
    color: #cbd5e1;
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    padding-right: 20px;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #46a69c;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(70, 166, 156, 0.3);
    border: 2px solid #46a69c;
    width: 100%;
    max-width: 320px;
}

.cta-primary-btn i {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-primary-btn:hover {
    background: #ffffff;
    color: #46a69c !important;
    box-shadow: 0 15px 30px rgba(70, 166, 156, 0.4);
    transform: translateY(-3px);
}

.cta-primary-btn:hover i {
    transform: translateX(5px);
}

.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 320px;
}

.cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .cta-premium-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }
    .cta-premium-section .col-lg-7 {
        text-align: center !important;
        padding-right: 0 !important;
    }
    .cta-title {
        font-size: 2.2rem !important;
    }
    .cta-text {
        margin: 0 auto 30px auto !important;
        padding-right: 0 !important;
    }
    .cta-btns {
        align-items: center !important;
        width: 100%;
    }
    .cta-primary-btn, .cta-secondary-btn {
        max-width: 100%;
    }
}

/* 6. Newsletter Section */
.newsletter-section {
    background: #46a69c;
    padding: 80px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2rem;
}

.newsletter-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.newsletter-form-wrapper {
    display: flex;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
    outline: none;
}

.newsletter-submit {
    background: #1e293b;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.newsletter-submit:hover {
    background: #334155;
}

@media (max-width: 991px) {
    .about-content-col {
        padding-left: 15px;
        margin-top: 40px;
    }
    .about-title {
        font-size: 2.2rem;
    }
    .cta-inner .col-lg-7 {
        text-align: center;
    }
}

/* 7. Banner Visibility Fixes */
.mad-banner {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Subtle dark overlay */
    z-index: -1;
}

.mad-banner .mad-title.color-white,
.mad-banner .content-element,
.mad-banner h4, 
.mad-banner h6 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff !important;
}

.mad-banner .content-element {
    font-weight: 700;
    background: rgba(255,255,255,0.9);
    color: #1e293b !important;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-shadow: none;
}
