/* Variables for brand colors */
:root {
  --blue-700: hsl(215, 51%, 22%);
  --accent-orange: #ff8c00; 
  --muted: #6b7280;
}

.amazon-success-section {
    padding: 60px 20px;
    background-color: var(--blue-300); /* Use a very light blue for background if defined */
}

.amazon-success-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.text-content {
    flex: 1;
    min-width: 40%;
}

.text-content h2 {
    color: var(--blue-700);
    font-size: 32px;
    margin-bottom: 12px;
}

.text-content p {
    color: var(--muted);
    margin-bottom: 30px;
}

/* --- Accordion Styles --- */
.accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 1px;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-700);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-header {
    color: var(--accent-orange); /* Highlight active header */
}

.accordion-header::after {
    content: '▲'; /* Up arrow for closed/inactive */
    font-size: 10px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--accent-orange);
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header::after {
    content: '▼'; /* Down arrow for active */
    transform: rotate(0deg);
}


.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.accordion-item.active .accordion-body {
    max-height: 200px; /* Adjust this value as needed for content height */
    padding-bottom: 20px;
}

.accordion-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* --- Image Display Styles --- */
.image-display {
    flex: 1;
    min-width: 50%;
    position: relative;
    padding: 20px;
    height: 400px; /* Fixed height for visual balance */
}

.image-display #dynamic-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image fits without cropping */
    border-radius: 12px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: whitesmoke
    border-radius: 12px;
    transform: rotate(-2deg);
    z-index: 1;
    opacity: 0.8;
}

/* Media Query for Mobile */
@media (max-width: 980px) {
    .amazon-success-section .container {
        flex-direction: column;
    }
    .image-display {
        order: -1; /* Move image above text on mobile */
        margin-bottom: 20px;
    }
}