main {
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Canva Sans', Arial, sans-serif;
}

/* Layout: split the section into two columns */
.skin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left column: normal skin info */
.skin-info h2,
.skin-info p {
    text-align: left;
}

/* Right column: image with overlay text */
.skin-why {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 12px;
}

.skin-why img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
}

/* Overlay title at the top */
.skin-why h2 {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    margin: 0;
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Overlay list near the bottom */
.skin-why ul {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0;
    padding: 12px 14px;
    list-style: disc inside;
    color: #fff;
    background: transparent;
    border-radius: 10px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.skin-why ul li {
    margin: 6px 0;
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
    .skin-layout {
        grid-template-columns: 1fr;
    }

    .skin-why {
        min-height: 360px;
    }
}

/* Ingredients section */
.ingredients-layout h1 {
    text-align: center;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ingredient-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.ingredient-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    filter: brightness(0.8);
}

.ingredient-item h2 {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    font-size: 1.2rem;
    z-index: 2;
}

.ingredient-item p {
    margin: 0;
    margin-top: 8px;
}

/* Responsive grid adjustments */
@media (max-width: 900px) {
    .ingredients-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ingredients-list {
        grid-template-columns: 1fr;
    }
}

/* Separator layout */
.seperator-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin: 40px 0;
    background: #f6e2db;
    border-radius: 12px;
    overflow: hidden;
}

.seperator-layout h2 {
    font-family: 'Ephesis', cursive;
    font-size: 2.5rem;
    color: #d4a574;
    margin: 0;
    text-align: center;
    flex: 1;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive separator */
@media (max-width: 900px) {
    .seperator-layout h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 600px) {
    .seperator-layout {
        flex-direction: column;
        gap: 10px;
        padding: 30px 0;
    }
    
    .seperator-layout h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
}

/* Recommended skincare routine layout */
.recommended-skincare-routine-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}

.recommended-skincare-routine-layout h2,
.recommended-skincare-routine-layout ol {
    text-align: left;
}

.recommended-skincare-routine-layout h2 {
    margin-top: 0;
}

.recommended-skincare-routine-layout h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f6e2db;
    color: #3a1f0d;
    margin: 8px 0;
    text-transform: capitalize;
    font-family: 'Abril Fatface', cursive;
    font-size: 1rem;
    border: 2px solid #f57f74;
}

.recommended-skincare-routine-layout ol {
    padding-left: 18px;
}

.recommended-skincare-routine-layout img {
    grid-column: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Ensure text container occupies left column */
.recommended-skincare-routine-layout .routine-text {
    grid-column: 1;
}

@media (max-width: 900px) {
    .recommended-skincare-routine-layout {
        grid-template-columns: 1fr;
    }

    .recommended-skincare-routine-layout img {
        grid-column: 1;
        max-width: 380px;
        justify-self: center;
    }
}
