/* ========================================
   HOMEPAGE SECTIONS RESPONSIVE FIX
   Enhanced responsive styling for Native Ingredients & Quality Assurance Sections
======================================== */

/* ========================================
   SECTION BASE STYLES
======================================== */

/* Native Ingredients Section */
.native-ingredients-section {
    padding: 80px 0;
    background: #F8F9FA;
    position: relative;
    overflow: hidden;
}

.native-ingredients-section .section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    z-index: 0;
}

.native-ingredients-section .container {
    position: relative;
    z-index: 1;
}

/* Quality Assurance Section */
.quality-assurance-section {
    padding: 80px 0;
    background: #FFF9F0;
    position: relative;
    overflow: hidden;
}

.quality-assurance-section .section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 249, 240, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 0;
}

.quality-assurance-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   TRUST CARDS - DESKTOP & TABLET
======================================== */

/* Trust Cards - Common Styling */
.trust-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trust-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.15);
}

/* Trust Card Image Wrapper */
.trust-card-image-wrapper {
    width: 100%;
    height: 310px;
    overflow: hidden;
    position: relative;
    background: #F5F5F5;
}

.trust-card-image-wrapper img,
.trust-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.trust-card:hover .trust-card-image-wrapper img,
.trust-card:hover .trust-card-img {
    transform: scale(1.08);
}

/* Trust Card Content */
.trust-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.trust-card-content h6,
.trust-card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-card-content p {
    font-size: 0.95rem;
    color: #6C757D;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   CERTIFICATION LOGOS
======================================== */

.certification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0 20px;
}

.certification-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.certification-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* ========================================
   MOBILE HORIZONTAL SCROLL - BASE
======================================== */

.mobile-horizontal-scroll {
    position: relative;
}

.mobile-scroll-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

/* ========================================
   LARGE TABLETS (992px - 1199px)
======================================== */
@media (max-width: 1199px) {
    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 1.1rem;
    }
}

/* ========================================
   TABLETS (768px - 991px)
======================================== */
@media (max-width: 991px) {
    /* Section Spacing */
    .native-ingredients-section,
    .quality-assurance-section {
        padding: 60px 0;
    }

    /* Card Adjustments */
    .trust-card-image-wrapper {
        height: 240px;
    }

    .trust-card-content {
        padding: 20px;
    }

    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 1.05rem;
        min-height: 42px;
    }

    .trust-card-content p {
        font-size: 0.9rem;
    }

    /* Certification Logos */
    .certification-logos {
        gap: 20px;
        padding: 35px 0 15px;
    }

    .certification-logos img {
        height: 60px;
    }

    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }
}

/* ========================================
   MOBILE DEVICES (Below 768px)
   Enable horizontal scrolling
======================================== */
@media (max-width: 767px) {
    /* Section Spacing */
    .native-ingredients-section,
    .quality-assurance-section {
        padding: 50px 0;
    }

    /* Enable Horizontal Scroll */
    .mobile-horizontal-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        margin: 0 -15px;
        padding: 0 15px 10px 15px;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .mobile-horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    /* Flex row without wrapping */
    .mobile-scroll-row {
        flex-wrap: nowrap;
        width: max-content;
        gap: 16px;
    }

    /* Fixed width cards for scrolling */
    .mobile-scroll-item {
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
    }

    /* Card Image Adjustments */
    .trust-card-image-wrapper {
        height: 200px;
    }

    /* Card Content Adjustments */
    .trust-card-content {
        padding: 18px;
    }

    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 1rem;
        min-height: 40px;
        margin-bottom: 10px;
    }

    .trust-card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Scroll Indicator - Gradient fade on right */
    .mobile-horizontal-scroll::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        /* width: 40px; */
        background: linear-gradient(to left, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
        pointer-events: none;
        z-index: 2;
    }

    .quality-assurance-section .mobile-horizontal-scroll::after {
        background: linear-gradient(to left, rgba(255, 249, 240, 1), rgba(255, 249, 240, 0));
    }

    /* Certification Logos */
    .certification-logos {
        gap: 15px;
        padding: 30px 0 15px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .certification-logos::-webkit-scrollbar {
        display: none;
    }

    .certification-logos img {
        height: 50px;
        flex-shrink: 0;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 0px;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   SMALL MOBILE DEVICES (Below 480px)
======================================== */
@media (max-width: 480px) {
    /* Section Spacing */
    .native-ingredients-section,
    .quality-assurance-section {
        padding: 40px 0;
    }

    /* Smaller cards for very small screens */
    .mobile-scroll-item {
        flex: 0 0 260px;
        width: 260px;
        max-width: 260px;
    }

    /* Card Image Adjustments */
    .trust-card-image-wrapper {
        height: 180px;
    }

    /* Card Content Adjustments */
    .trust-card-content {
        padding: 16px;
    }

    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 0.95rem;
        min-height: 38px;
        line-height: 1.4;
    }

    .trust-card-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Certification Logos */
    .certification-logos {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 25px 0 10px;
    }

    .certification-logos img {
        height: 45px;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section-divider {
        width: 60px;
        height: 3px;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (Below 375px)
======================================== */
@media (max-width: 374px) {
    /* Even smaller cards */
    .mobile-scroll-item {
        flex: 0 0 240px;
        width: 240px;
        max-width: 240px;
    }

    .trust-card-image-wrapper {
        height: 360px;
    }

    .trust-card-content {
        padding: 14px;
    }

    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 0.9rem;
        min-height: 36px;
    }

    .trust-card-content p {
        font-size: 0.75rem;
    }

    .certification-logos img {
        height: 40px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
}

/* ========================================
   ANIMATION CLASSES
======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll behavior for mobile */
@media (max-width: 767px) {
    .mobile-horizontal-scroll {
        scroll-behavior: smooth;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

/* Focus states for keyboard navigation */
.trust-card:focus-within {
    outline: 2px solid #C41E3A;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .trust-card,
    .trust-card-image-wrapper img,
    .trust-card-img,
    .certification-logos img,
    .animate-on-scroll {
        transition: none;
        animation: none;
    }

    .trust-card:hover {
        transform: none;
    }

    .trust-card:hover .trust-card-image-wrapper img,
    .trust-card:hover .trust-card-img {
        transform: none;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .native-ingredients-section,
    .quality-assurance-section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .trust-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        break-inside: avoid;
    }

    .mobile-horizontal-scroll::after {
        display: none;
    }

    .section-background-overlay {
        display: none;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Remove padding/margin on mobile if needed */
@media (max-width: 767px) {
    .no-mobile-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .no-mobile-margin {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
======================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .trust-card-image-wrapper {
        height: 160px;
    }

    .native-ingredients-section,
    .quality-assurance-section {
        padding: 40px 0;
    }
}