﻿/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px;
    overflow: hidden;
}

.section-heading {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1e90ff, #0073e6);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
    /* Adding an overlay for a subtle textured look */
    .section-heading::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
        transform: rotate(45deg);
    }
    /* Bring text above the overlay */
    .section-heading h1 {
        position: relative;
        z-index: 1;
        font-size: 48px;
        margin: 0;
        font-weight: 700;
        color: #FFFFFF;
    }

    .section-heading p {
        position: relative;
        z-index: 1;
        font-size: 20px;
        margin-top: 20px;
        line-height: 1.4;
        color: #f0f0f0; /* A softer off-white */
    }
/* Search Form */
#search-form_3 {
    display: flex;
    align-items: center;
    padding: 10px;
    flex-wrap: nowrap; /* Ensure it stays on one line */
}

.category-dropdown_3, .search_3, .submit_3 {
    margin-right: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.category-dropdown_3 {
    flex-grow: 1;
}
/* Home Panels */
.homep {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 25px;
    width: calc(50% - 20px); /* Two columns */
    margin-right: 20px;
    float: left;
    box-sizing: border-box; /* Ensure padding doesn’t affect width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .homep:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .homep:nth-child(2n) {
        margin-right: 0; /* No right margin on even-numbered cards */
    }

    .homep h2, .homep h3 {
        color: #2c3e50;
        font-size: 24px;
        margin-bottom: 15px;
        font-weight: 600;
    }

.home-c p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

.home-c ul {
    list-style: none;
    padding: 0;
}

    .home-c ul li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 12px;
        font-size: 16px;
    }

        .home-c ul li:before {
            content: '\f058';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            color: #3498db;
            font-size: 14px;
        }

.a-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

    .a-link:hover {
        background: #2980b9;
    }
/* Recommendation Widget */
.recommendation-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 10px;
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto; /* Add scrollbar if content exceeds height */
}

    .recommendation-widget h2 {
        font-size: 24px;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 10px;
    }

.item-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .item-list li:last-child {
        border-bottom: none;
    }

.item-list a {
    color: #3498db;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
}

    .item-list a:hover {
        color: #2980b9;
    }

.purchase-options {
    display: flex;
    gap: 10px;
}

.btn1, .btn2 {
    padding: 5px 10px;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn1 {
    background: #3498db;
}

    .btn1:hover {
        background: #2980b9;
    }

.btn2 {
    background: #25D366;
}

    .btn2:hover {
        background: #1ebd52;
    }
/* Carousel container */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

/* Carousel inner wrapper */
.carousel-inner {
    position: relative;
    width: 100%;
    height: 350px;
}

/* Each carousel item */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.5s ease;
    transform: scale(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

    .carousel-item.active {
        opacity: 1;
        transform: scale(1);
        position: relative;
    }
    /* Success story title and text */
    .carousel-item h3 {
        font-size: 28px;
        margin-bottom: 15px;
        color: #2c3e50;
        font-family: 'Georgia', serif;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .carousel-item p {
        font-size: 18px;
        color: #7f8c8d;
        line-height: 1.6;
        font-family: 'Arial', sans-serif;
        max-width: 80%;
        margin: 0 auto;
    }

.person-name {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: bold;
    font-style: italic;
}
/* Navigation controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.8);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 24px;
}

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-control:hover {
        background: rgba(41, 128, 185, 1);
        transform: translateY(-50%) scale(1.1);
    }
/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .indicator.active {
        background: #3498db;
        transform: scale(1.3);
    }

    .indicator:hover {
        background: #2980b9;
    }

@media (max-width: 768px) {
    .homep {
        float: none;
        width: 100% !important;
        margin-right: 0 !important;
        clear: both;
    }

    .recommendation-widget {
        padding: 20px;
        margin: 20px 0;
    }
}
/* Trending Panel Styles */
.trending-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 20px 0;
    animation: fadeIn 1s ease;
}

    .trending-panel h2 {
        font-size: 32px;
        color: #2c3e50;
        margin-bottom: 20px;
        text-align: center;
    }

/* Trending List & Item Styles */
.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

    .trending-list li {
        background: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        padding: 15px 20px;
        width: calc(33% - 20px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .trending-list li:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }

        .trending-list li a {
            text-decoration: none;
            font-size: 20px;
            font-weight: 600;
            color: #3498db;
            display: block;
            margin-bottom: 10px;
        }

/* Icon Styling */
.trending-icon {
    margin-right: 8px;
    color: #e74c3c; /* Red icon for trending */
}

.trending-purchase-icon {
    margin-right: 5px;
    color: #3498db; /* Blue icon for purchase count */
}

/* Paragraph Styling */
.trending-list li p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Adjust Recommendation Widget for Small Screens */
@media (max-width: 768px) {
    .recommendation-widget {
        padding: 10px; /* Further reduce padding */
        margin: 10px 0;
    }

    .item-list li {
        padding: 8px 0; /* Tighter padding */
        flex-direction: column;
        align-items: flex-start;
    }

    .item-list a {
        font-size: 14px; /* Reduced from 18px to 14px */
        word-wrap: break-word;
        max-width: 100%;
        line-height: 1.4; /* Improve readability */
    }

    .item-list p {
        font-size: 13px; /* Slightly smaller price text */
    }

    .purchase-options {
        flex-direction: row; /* Keep buttons side by side */
        justify-content: space-between; /* Distribute space evenly */
        gap: 5px; /* Small gap between buttons */
        width: 100%; /* Full width container */
    }

    .btn1, .btn2 {
        flex: 1; /* Buttons share available space equally */
        font-size: 13px;
        padding: 6px 8px; /* Adjusted padding for smaller screens */
        box-sizing: border-box;
        text-align: center; /* Center text in buttons */
        min-width: 0; /* Allow buttons to shrink if needed */
    }
}

/* Adjust Trending Panel for Small Screens */
@media (max-width: 768px) {
    .trending-panel {
        padding: 10px; /* Reduce padding */
    }

    .trending-list {
        flex-direction: column;
        gap: 12px; /* Slightly smaller gap */
    }

        .trending-list li {
            width: 100%;
            padding: 8px 12px; /* Adjusted padding */
            margin: 0;
        }

            .trending-list li a {
                font-size: 16px; /* Reduced from 20px to 16px */
                word-wrap: break-word;
                max-width: 100%;
                line-height: 1.4; /* Improve readability */
            }

            .trending-list li p {
                font-size: 13px; /* Reduced from 16px to 13px */
            }
}

/* Ensure Container Doesn’t Overflow */
@media (max-width: 768px) {
    .container {
        padding: 10px; /* Further reduce padding */
    }
}
/* Optional fadeIn animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.review-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem; /* Adjust size as needed */
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}
