/* Base Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary-color: #6D4C41;
    --accent-color: #FF9800;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #222;
    --background: #f8f9fa;
    --white: #fff;
    --gray-light: #eee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(76, 175, 80, 0.9); /* Warna dengan transparansi */
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px); /* Efek blur */
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(76, 175, 80, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    background-color: var(--white);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.tagline {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin: 0 12px;
}

.nav-list a {
    color: var(--white);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-list a i {
    margin-right: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan saat hover */
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--background));
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Welcome Section */
.welcome-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-bottom: 2rem;
}

.welcome-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.welcome-text {
    flex: 1;
}

.welcome-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.welcome-features {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.welcome-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    vertical-align: middle;
}

.welcome-image:hover img {
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    height: 100%;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product-badge:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background-color: darken(var(--accent-color), 30%);
    border-radius: 0 0 0 5px;
    filter: brightness(60%);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
        object-position: center;
        transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.btn-view {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-rating {
    margin-bottom: 0.8rem;
    color: #FFD700;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
    font-size: 0.9rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem 1.5rem; /* Reduced side padding for mobile */
    margin-bottom: 2rem;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 200px; /* Base height, will expand with content */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
    gap: 20px;
    padding: 10px;
}

/* Responsive grid - switch to 1 column on mobile */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .testimonial-section {
        padding: 2rem 1rem; /* Further reduce padding on mobile */
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .welcome-content {
        flex-direction: column;
    }
    .welcome-image {
        order: -1;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .testimonial-section {
        padding: 1.5rem 0.75rem;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
}

.testimonial-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    margin: 0 auto;
    margin-bottom: 20px;
    max-width: 100%; /* Allow to fill available space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Disable hover effect on touch devices */
@media (hover: none) {
    .testimonial-item:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

/* Adjust author info on very small screens */
@media (max-width: 360px) {
    .testimonial-author {
        flex-direction: column;
        gap: 10px;
    }
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.slider-dots .dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Make dots larger on touch devices for easier tapping */
@media (max-width: 768px) {
    .slider-dots .dot {
        height: 12px;
        width: 12px;
        margin: 0 8px;
    }
}

.slider-dots .dot:hover {
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background-color: #4CAF50 !important;
    transform: scale(1.3);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 0.8rem;
}

.footer-section.links ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section.links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    margin-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.7;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .welcome-content {
        flex-direction: column;
    }

.welcome-image {
    order: -1;
}

.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    Copy.hero-content h1 {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list li {
        margin: 0.5rem 0;
    }

    .welcome-features {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    Copy.welcome-section,
    .products-section,
    .testimonial-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Rempah Section Styles */
.rempah-section {
    background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 3rem 1.5rem;
        /* Reduced horizontal padding for mobile */
        margin-bottom: 2rem;
}

.rempah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.rempah-description {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.rempah-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.rempah-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rempah-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rempah-image {
    height: 250px;
    overflow: hidden;

}

.rempah-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rempah-card:hover .rempah-image img {
    transform: scale(1.05);
}

/*.rempah-info {
    padding: 15px;
    text-align: center;
}*/

.rempah-info h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rempah-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rempah-description {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .rempah-grid {
        grid-template-columns: 1fr;
    }

    .rempah-image {
        height: 200px;
    }
}

.rempah-description {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.rempah-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .rempah-description {
        padding: 0 20px;
    }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

.modal-product-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-product-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-product-rating {
  color: #f8ce0b;
  margin-bottom: 10px;
}

.modal-product-price {
  font-size: 20px;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 15px;
}

.modal-product-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Hero Carousel Styles */
.hero-carousel {
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    border-radius: 20px 20px 20px 20px; /* Sudut atas kiri dan kanan melengkung */
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-content .btn-primary {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.carousel-nav {
    position: absolute;
    bottom: 30px; /* Sesuaikan jarak dari bawah */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .carousel-nav {
        bottom: 15px; /* Even lower on mobile */
        padding-bottom: 10px;
    }
    
    /* Adjust the carousel container to accommodate the dots below */
    .carousel-container {
        padding-bottom: 60px; /* Add padding at the bottom of the container */
        position: relative; /* Ensure positioning context */
    }
    
    /* Make sure slide content doesn't push into dot area */
    .hero-content {
        padding-bottom: 20px;
    }
}

/* Video Section Styling */
.video-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem 1.5rem; /* Reduced horizontal padding for mobile */
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 24px;
}

.video-thumbnail:hover .play-button {
    background-color: #4CAF50;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.video-container.active {
    display: block;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

.video-info p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
}

/* For very small screens */
@media screen and (max-width: 350px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .play-button i {
        font-size: 16px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

/* WhatsApp Cart Button Styles */
.btn-cart {
    display: block;
    background-color: #25D366;
    /* WhatsApp green color */
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background-color: #128C7E;
    /* Darker WhatsApp green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-cart i {
    margin-right: 5px;
}

/* Adjust product card to accommodate the new button */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
    /* Adjust based on your image height */
}

.product-description {
    flex-grow: 1;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}