/* Hero Section */
.hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 2rem;
    font-weight: bold;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections Container */
.sections-wrapper {
    display: grid;
    gap: 0.3rem;
    padding: 2rem 2%;
}

/* Base Section Layout */
.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 400px;
    overflow: hidden;
    align-items: center;
    gap: 0;
    background-color: var(--theme-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--main-color);
}

/* Reverse Column Order for Alternating Sections */
.section-wrapper.section--reverse {
    grid-template-columns: 2fr 1fr;
}

/* Section Image / Icon Box */
.section-image,
.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: var(--theme-color);
    text-align: center;
    padding: 2rem;
}

.section-image {
    border-right: 1px solid var(--bg-color);
    border-left: 1px solid var(--bg-color);
}

.section-icon {
    background-color: var(--theme-color);
    color: var(--main-color);
    border-radius: 0 8px 8px 0;
    border-right: 1px solid var(--bg-color);
    border-left: 1px solid var(--bg-color);
}

.section-icon img {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.section-icon span {
    font-weight: bold;
    font-size: 1.9rem;
}

.section-title {
    font-size: 2rem;
    color: var(--main-color);
}

/* Section Content */
.section-content {
    padding: 2rem;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1rem;
    color: var(--main-color);
}

.section-content strong {
    font-size: 1.1rem;
    color: var(--main-color);
}

@media (max-width: 767px) {
    .sections-wrapper {
        padding: 2rem 3%;
    }

    .section-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        flex-direction: column;
        max-height: none;
    }

    /* On mobile, always keep icon first, content second by default */
    .section-icon {
        order: 1;
        border-radius: 8px 8px 0 0;
        padding: 1.5rem;
    }

    .section-content {
        order: 2;
        padding: 1.5rem;
    }

    /* For reversed sections on desktop, flip the order on mobile */
    .section-wrapper.section--reverse .section-icon {
        order: 1;
    }

    .section-wrapper.section--reverse .section-content {
        order: 2;
    }

    .section-wrapper.section--reverse {
        grid-template-columns: 1fr;
    }
}
