/* --- GLOBAL & WRAPPER --- */
main {
    overflow-x: hidden;
}

/* --- DIVIDERS --- */
.custom-divider,
.custom-divider-2 {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 64px;
    background-color: #F9FFF6;
}

.custom-shape-divider-top,
.custom-shape-divider-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top {
    top: 0;
    padding: 0;
    margin: 0;
}

.custom-shape-divider-bottom {
    bottom: 0;
    padding: 0;
    margin: 0;
}

.custom-shape-divider-top svg,
.custom-shape-divider-bottom svg {
    display: block;
    width: 100%;
    height: 100%;
    color: #e7fceb;
}

/* --- HERO SECTION --- */
.home-hero {
    margin-top: 50px;
    width: 100%;
    height: 35rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 5rem;
    gap: 10rem;
    overflow: hidden;
}

.home-hero .hero-title {
    max-width: 600px;
    font-size: 1.7rem;
    line-height: 1.6;
    text-align: left;
}

.home-hero .hero-title h4 {
    margin: 1.5rem 0; /* Added margin so it sits nicely between the buttons */
    font-weight: 500;
}

/* WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp green */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b858;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Catalog Button */
.hero-shop-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 0 20px 0 20px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.hero-shop-button:hover {
    background-color: #489a55;
    transform: translateY(-2px);
}

.home-hero img {
    height: 80%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* --- BRAND CAROUSEL --- */
.home-shop-section {
    background-color: #e7fceb;
    padding: 0;
    margin: 0;
}

.brand-carousel-container {
    width: 75%; /* Slightly wider to accommodate side buttons */
    max-width: 1200px;
    margin: 2rem auto;
}

.brand-carousel-container h2 {
    text-align: left;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* The equivalent to Tailwind's rounded border box */
.brand-outer-box {
    border: 4px solid rgba(87, 168, 100, 0.3); /* border-green-600/30 */
    border-radius: 1rem; /* rounded-2xl */
    padding: 2rem; /* p-8 */
    background-color: rgba(240, 253, 244, 0.6); /* bg-green-50/50 */
    position: relative;
}

.brand-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem; /* gap-4 equivalent */
}

/* Carousel Track / Grid equivalent */
.brand-track-wrapper {
    flex: 1;
    overflow: hidden; /* Hides elements outside the visible grid */
}

.brand-grid-track {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    transition: transform 0.4s ease-in-out;
}

.brand-item-new {
    /* 4 items visible => 25% width minus gap compensation */
    flex: 0 0 calc(25% - 0.75rem);
    box-sizing: border-box;
}

/* Individual Brand Card equivalent */
.brand-card-new {
    background-color: #16a34a; /* bg-green-600 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    text-decoration: none;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.brand-card-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1rem; /* mb-4 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
}

.brand-card-image-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.brand-card-title {
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

/* --- CAROUSEL BUTTONS (TAILWIND STYLE) --- */
.brand-nav-btn {
    flex-shrink: 0;
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #16a34a; /* border-green-600 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    color: #111827;
}

.brand-nav-btn:hover {
    background-color: rgba(240, 253, 244, 1); /* hover:bg-green-50 */
}

.brand-nav-btn:disabled,
.brand-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chevron-icon {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: #111827;
}

/* Update bottom media queries to accommodate the new classes */
@media (max-width: 1250px) {
    .brand-carousel-container {
        width: 90%;
    }
}

@media (max-width: 800px) {
    .brand-item-new {
        flex: 0 0 calc(50% - 0.5rem); /* Drops to 2 columns */
    }
    .brand-outer-box {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-item-new {
        flex: 0 0 100%;
    }
}
.fancy-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.divider-line-left {
    height: 4px;
    width: 8rem;
    background: linear-gradient(to right, transparent, #57a864);
}

.divider-line-center {
    height: 4px;
    width: 6rem;
    background-color: #57a864;
}

.divider-line-right {
    height: 4px;        /* matches h-1 */
    width: 8rem;        /* matches w-32 */
    background: linear-gradient(to left, transparent, #57a864);
}

/* --- DECORATIVE DIVIDER (TOP MARGIN) --- */
.fancy-section-divider-mt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;          /* matches gap-4 */
    margin-top: 3rem;   /* matches mt-12 */
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

.clients-container {
    width: 100%;
    margin-top: 70px;
    padding-bottom: 1rem;
}

.clients-container h5 {
    text-align: center;
    font-size: 2.3rem;
    padding-bottom: 3rem;
    margin: 0;
}

.client-slider {
    background: transparent;
    padding: 2rem 0; /* Adjusted padding */
    overflow: hidden;
    position: relative;
    width: 55%;
    margin: 0 auto;
}

.client-slider-track {
    display: flex;
    width: calc(200px * 12);
    animation: scroll 40s linear infinite;
}

.slide {
    width: 200px;
    height: 175px;
    display: flex; /* Changed from grid to flex for better centering */
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* --- RESPONSIVE STYLES --- */
@media (max-width: 1250px) {
    .home-hero {
        padding-left: 2rem;
        gap: 2rem;
        height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .brand-carousel-container {
        width: 90%;
    }

    .home-hero img {
        max-width: 400px;
    }
}

@media (max-width: 1049px) {
    .home-brand-item { flex: 0 0 33.33%; }
    .client-slider { width: 90%; }
    .custom-shape-divider-top svg, .custom-shape-divider-bottom svg { height: 60px; width: calc(150% + 1.3px); }
    .custom-divider-2 { height: 60px; }
}

@media (max-width: 800px) {
    .home-hero { flex-direction: column; text-align: center; }
    .home-brand-item { flex: 0 0 50%; }
    .carousel-button { display: none; }
    .home-hero img {
        max-width: 250px
    }
}

@media (max-width: 480px) {
    .home-brand-item { flex: 0 0 100%; }
}