/* ===================================
   LAYOUT COMPONENTS
   =================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sauce Background Section */
.sauce-bg-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sauce-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sauce-cards {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.sauce-cards img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: -20px;
}

.sauce-cards img:first-child {
    margin-left: 0;
}

.sauce-cards img:hover {
    transform: scale(1.05);
}

/* LM Image Section */
.lm-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 175px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.bottles-image {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    opacity: 0.8;
    transform: translateY(0px);
    transition: transform 0.1s ease-out;
}

.learn-more-btn {
    position: absolute;
    z-index: 3;
    background-color: var(--bright-yellow);
    color: var(--primary-green);
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Proxima Nova Black', sans-serif;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.learn-more-btn:hover {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border-color: var(--primary-green) !important;
}

/* Mobile slider styles */
.mobile-only {
    display: none;
}

.process-slider {
    max-width: 100%;
    position: relative;
}

.slider-container {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 400%;
}

.slider-item {
    width: 25%;
    flex-shrink: 0;
    padding: 20px;
    box-sizing: border-box;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-green);
}

/* Sauce slider styles */
.sauce-slider {
    max-width: 100%;
    position: relative;
    margin-top: 20px;
}

.sauce-slider-container {
    overflow: hidden;
    border-radius: 12px;
}

.sauce-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.sauce-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.sauce-slide img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sauce-slide img:hover {
    transform: scale(1.05);
}

.sauce-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.sauce-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sauce-slider-dots .dot.active {
    background-color: var(--primary-green);
}

/* News Section with Scrolling */
.news-scroll-container {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    background: var(--light-cream);
    padding: 20px 0;
}

.news-scroll-content {
    display: inline-flex;
    animation: scrollNews 30s linear infinite;
    gap: 2rem;
}

.news-scroll-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
    min-width: 300px;
    white-space: normal;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-ticker-item h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-ticker-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
}

/* News carousel */
.news-carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--white);
    padding: 20px 0;
}


.news-item {
    flex: 0 0 320px;
    background: var(--white);
    margin: 0;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    white-space: normal;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-green);
}

.news-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--white);
}

.news-item h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Proxima Nova', sans-serif;
    line-height: 1.3;
}

.news-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-family: 'Proxima Nova', sans-serif;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 8px 8px 0 0;
}

/* Hide scrollbar consistently */
.flavors-grid, .news-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.flavors-grid::-webkit-scrollbar, .news-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Dots container for sliders */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.dots-container .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dots-container .dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}


/* Mobile responsive - under 1024px */
@media (max-width: 1024px) {
    .sauce-bg-section {
        height: auto;
        padding: 2rem 0;
    }
    
    .sauce-bg-image {
        object-fit: cover;
        object-position: center;
    }
    
    .sauce-cards {
        display: none !important; /* Force hide desktop cards */
    }
    
    .mobile-only {
        display: block; /* Show mobile slider */
        width: 100%;
        margin: 0 auto;
    }
    
    .flavors-grid,
    .news-carousel,
    .other-blogs-grid {
        display: flex !important; /* Ensure flex behavior for carousels */
    }

    .sauce-slide img {
        width: 200px !important;
        height: 200px !important;
        object-fit: contain;
    }
}

