.main-section-1 {
    background: linear-gradient(to bottom, white, rgb(140, 245, 228));
    width: 100%;
    padding: 8em 0;
    display: flex;
    justify-content: flex-start;
}

.main-section-1-content {
    max-width: 50%;
    margin-left: 5em; /* keep the shared left margin */
    margin-right: 5em; /* match right margin */
    padding-left: 4em; /* extra left padding for visual balance */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

.main-section-1 h1 {
    font-size: 2.1em;
    line-height: 1.1;
}

.main-section-1 .subheading {
    font-size: 1em;
    margin-bottom: 0.5em;
}

.cta-button {
    display: inline-block;
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 0.6em 1.5em;
    border-radius: 999px;
}

.cta-button:hover {
    background-color: white;
    color: black;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.main-section-2 {
    background-color: white;
    width: 100%;
    padding: 8em 0;
    display: flex;
    justify-content: flex-start;
}

.main-section-2-content {
    display: flex;
    margin-left: 5em;
    margin-right: 5em;
    gap: 2em;
    width: 100%;
}

.main-section-2-left {
    max-width: 50%;
}

.main-section-2-left h2 {
    font-size: 2em;
    line-height: 1.2;
}

.main-section-2-left .subheading {
    font-size: 1em;
    margin-top: 0.75em;
}

.main-section-2-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.feature-toggle {
    width: 100%;
    background-color: black;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    font: inherit;
}

.feature-toggle::after {
    content: "";
    width: 0.35em;
    height: 0.35em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); /* right-pointing caret */
    transition: transform 200ms ease;
}

.feature-dropdown.open .feature-toggle::after {
    transform: rotate(45deg); /* v-shaped caret */
}

.feature-panel {
    display: none;
    background-color: #e6e6e6;
    padding: 1em 1.5em;
    border-radius: 0 0 12px 12px;
    margin-left: 1em;
    margin-right: 1em; /* center the narrower panel under the button */
}

.feature-dropdown.open .feature-panel {
    display: flex;
    flex-direction: column;
}

.feature-panel p {
    margin-bottom: 0.75em;
}

.learn-more {
    display: inline-block;
    background-color: white;
    color: black;
    text-decoration: none;
    padding: 0.5em 1.2em;
    border-radius: 999px;
    border: none;
    align-self: flex-end;
}

.learn-more:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .main-section-1-content {
        max-width: calc(100% - 3em);
        margin-left: 1.5em;
        margin-right: 1.5em;
        padding-left: 0; /* remove extra left padding on mobile */
    }

    .main-section-2-content {
        flex-direction: column;
        margin-left: 1.5em;
        margin-right: 1.5em;
    }

    .main-section-2-left {
        max-width: 100%;
    }
}
