/* ===================================
   Homepage Sections - New SEO Additions
   =================================== */

/* Popular Brands Section */
.home-brands-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.home-brands-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.home-brands-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.brands-category-group {
    margin-bottom: 45px;
}

.brands-category-group:last-child {
    margin-bottom: 0;
}

.brands-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 22px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 60px;
}

.brand-link:hover {
    transform: translateY(-3px);
    border-color: #007bff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Why Choose BeforeBuyChudandii Section */
.home-features-section {
    padding: 70px 20px;
    background: #fff;
    text-align: center;
}

.home-features-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.home-features-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background: #fff;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* SEO Content Block */
.home-seo-content {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.seo-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.home-seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

.home-seo-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.home-seo-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.home-seo-content strong {
    color: #667eea;
    font-weight: 700;
}

.home-seo-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.home-seo-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ===================================
   Mobile Responsiveness - Enhanced for Comfort
   =================================== */

/* Tablet and Mobile (iPad and below) */
@media (max-width: 768px) {

    /* Popular Brands - Mobile */
    .home-brands-section {
        padding: 50px 20px;
    }

    .home-brands-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .home-brands-section .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 40px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .brands-category-group {
        margin-bottom: 38px;
    }

    .brands-category-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .brand-link {
        padding: 18px 14px;
        font-size: 0.95rem;
        min-height: 58px;
        /* Larger for comfortable thumb tapping */
        border-width: 1.5px;
    }

    /* Why Choose - Mobile */
    .home-features-section {
        padding: 50px 20px;
    }

    .home-features-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .home-features-section .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 38px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 32px 26px;
        border-radius: 14px;
    }

    .feature-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 18px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .feature-card p {
        font-size: 1.02rem;
        line-height: 1.7;
    }

    /* SEO Content - Mobile */
    .home-seo-content {
        padding: 50px 20px;
    }

    .seo-content-wrapper {
        padding: 36px 26px;
        border-radius: 14px;
    }

    .home-seo-content h2 {
        font-size: 1.7rem;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .home-seo-content h3 {
        font-size: 1.4rem;
        margin-top: 28px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .home-seo-content p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
}

/* Extra Small Mobile (Phones in portrait) */
@media (max-width: 480px) {
    .home-brands-section {
        padding: 45px 18px;
    }

    .home-brands-section .section-title {
        font-size: 1.65rem;
    }

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

    .brands-category-title {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    .brands-grid {
        gap: 12px;
    }

    .brand-link {
        font-size: 0.9rem;
        padding: 16px 12px;
        min-height: 54px;
    }

    .home-features-section {
        padding: 45px 18px;
    }

    .home-features-section .section-title {
        font-size: 1.65rem;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .feature-icon {
        width: 62px;
        height: 62px;
    }

    .feature-card h3 {
        font-size: 1.18rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .home-seo-content {
        padding: 45px 18px;
    }

    .seo-content-wrapper {
        padding: 30px 22px;
    }

    .home-seo-content h2 {
        font-size: 1.55rem;
    }

    .home-seo-content h3 {
        font-size: 1.3rem;
    }

    .home-seo-content p {
        font-size: 1.02rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Reviews Section Spacing Override
   =================================== */

/* Match container spacing with other homepage sections - NO padding to avoid offset */
.home-content-wrapper .reviews-latest-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Remove padding to match specs sections exactly at 120px */
}

.home-content-wrapper .reviews-latest-section {
    padding: 50px 20px; /* Add padding to outer section instead */
}

/* Responsive padding */
@media (max-width: 768px) {
    .home-content-wrapper .reviews-latest-section {
        padding: 50px 16px;
    }
}

@media (max-width: 480px) {
    .home-content-wrapper .reviews-latest-section {
        padding: 50px 14px;
    }
}
