@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Main Container */
.ingredients-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Quicksand', sans-serif;
}

/* Header */
.ingredients-header {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2c3e50;
    padding-top: 20px;
    font-family: 'Quicksand', sans-serif;
    position: relative;
}

.ingredients-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #14a971;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Accordion Items */
.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-item.active {
    border-color: #14a971;
    box-shadow: 0 5px 15px rgba(20, 169, 113, 0.2);
}

/* Accordion Header */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    font-size: inherit;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-item.active .accordion-header {
    background: #f0fdf7;
}

.accordion-h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    flex: 1;
    line-height: 1.4;
    font-family: 'Quicksand', sans-serif;
    /* REMOVED PADDING AND PSEUDO ELEMENTS */
}

.accordion-item.active .accordion-h3 {
    color: #14a971;
    font-weight: 700;
}

/* Accordion Content */
.accordion-content {
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 25px;
    padding-top: 5px;
}

.accordion-content ul {
    padding-left: 25px;
    margin: 10px 0;
}

.accordion-content li {
    margin-bottom: 10px;
    position: relative;
}

.accordion-content li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #14a971;
    border-radius: 50%;
}

/* Content Layout */
.accordion-content-container {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.accordion-content-text {
    flex: 1;
}

.accordion-content-image {
    width: 250px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(20, 169, 113, 0.2);
}

.accordion-item.active .accordion-content-image {
    display: block;
    animation: fadeIn 0.5s ease;
}

.accordion-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Only show first item active by default */
.accordion-item:not(:first-child) .accordion-content {
    max-height: 0;
    padding: 0 20px;
}

.accordion-item:not(:first-child).active .accordion-content {
    max-height: 1000px;
    padding-bottom: 25px;
    padding-top: 5px;
}

/* Accordion Icon */
.accordion-icon {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #999;
    flex-shrink: 0;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: #999;
    transition: all 0.3s ease;
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
    background: #14a971;
}

/* Static Items */
.accordion-item.static .accordion-header {
    cursor: default;
    background: #fff;
    padding: 20px;
}

.accordion-item.static .accordion-header:hover {
    background: #fff;
}

.accordion-item.static .accordion-icon {
    display: none;
}

/* Mobile view */
@media (max-width: 1024px) {
    .accordion-content-container {
        flex-direction: column;
    }
    
    .accordion-content-image {
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .ingredients-header {
        font-size: 28px;
    }
    
    .accordion-h3 {
        font-size: 16px;
    }
    
    .accordion-content-image {
        max-width: 100%;
    }
    
    .accordion-header {
        padding: 15px;
    }
}