﻿/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: right;
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-light);
    }

.successalert {
    align-content: center;
    align-self: center;
    padding: 10px;
    background-color: lightgreen;
    border: 0.5px solid #2e7d32;
    border-radius: 15px;
    max-width: 70%;
}

/* Section Titles - FIXED */
.section-title {
    text-align:center;
    margin-bottom: 40px;
    position: relative;
}

    .section-title h2 {
        font-size: 2rem;
        color: var(--dark);
        display: inline-block;
        padding-bottom: 10px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            width: 70px;
            height: 3px;
            background-color: var(--primary);
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
        }

/* Products Section */
.products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.product-img {
    height: 300px;
    background-color: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

    .product-info h3 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .add-to-cart:hover {
        background-color: var(--primary-dark);
    }

/* About & Contact Section */
.about-contact {
    padding: 80px 0;
    background: white;
}


.about-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: right;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.8;
    text-align: right;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: right;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.feature-text h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--dark);
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #555;
}

.image-carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 400px;
    margin-bottom: 30px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .carousel-slide.active {
        opacity: 1;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.contact-info {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(241, 248, 233) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

    .contact-info h3 {
        margin-bottom: 25px;
        font-size: 1.5rem;
        color: var(--dark);
        text-align: right;
        position: relative;
        padding-bottom: 10px;
    }

        .contact-info h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    text-align: right;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--dark);
}

.contact-details p {
    color: #555;
    margin-bottom: 0;
}

.contact-map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 200px;
}

    .contact-map iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.business-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed rgba(46, 125, 50, 0.2);
}

    .business-hours h4 {
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: var(--dark);
        text-align: right;
    }

.hours-list {
    list-style: none;
}

    .hours-list li {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #e0e0e0;
        text-align: right;
    }

        .hours-list li:last-child {
            border-bottom: none;
        }

.social-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed rgba(46, 125, 50, 0.2);
}

    .social-contact h4 {
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: var(--dark);
        text-align: right;
    }

.social-contact-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}


    .social-contact-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #2e7d32, #4caf50);
        border-radius: 50%;
        color: white;
        transition: var(--transition);
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    }

        .social-contact-links a:hover {
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4);
        }

/* Articles Section */

.articles {
    padding: 80px 0;
    background: white;
    text-align: center;
    overflow:hidden;
}

.article-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
    transition: opacity 0.8s ease;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 350px;
    flex-shrink: 0;
    text-align: right;
    transition: transform 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .article-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.article-content {
    padding: 25px;
}

    .article-content h3 {
        font-size: 1.2rem;
        color: #1b5e20;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .article-content p {
        color: #555;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(46, 125, 50, 0.1);
}

    .read-more:hover {
        color: white;
        background: linear-gradient(135deg, #2e7d32, #4caf50);
        transform: translateX(-5px);
    }

.view-all {
    margin-top: 40px;
}

.view-all-btn {
    background: white;
    color: var(--primary-dark);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
    border: none;
    font-size: 1.1rem;
}

    .view-all-btn:hover {
        color:white;
        background: linear-gradient(135deg, #2e7d32, #4caf50);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(46, 125, 50, 0.5);
    }
.view-all-btn:hover i {
    transform: translateX(-5px);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
    }

    .about-contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        order: -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .about-features {
        grid-template-columns: 1fr;
    }

    .gallery-item img, .gallery-item video {
        height: 200px;
    }
    .article-slider {
        flex-direction: column;
        align-items: center;
    }

    .article-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        border-radius: 0 0 20px 20px;
    }

        .hero h1 {
            font-size: 1.8rem;
        }

}
