/* Education Theme Section - References main.css for theme colors and base styles */

/*
 * Theme Colors (from main.css):
 * --primary-color: #0e415b (Dark teal)
 * --primary-dark: #0a3547
 * --primary-light: #e8f3f7
 * --secondary-color: #e13732 (Red)
 * --text-dark: #1a1a1a
 * --text-light: #666666
 * --bg-light: #f8f9fa
 * --white: #ffffff
 */

/* ========================
   Education Theme Section
   ======================== */

.education-theme-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.education-theme-section .container {
    position: relative;
}

/* Header Text - Positioned at Top */
.theme-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.theme-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

/* Main Content Grid - 3 columns for desktop */
.theme-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
}

/* Images wrapper - desktop: use grid, mobile: becomes grid container */
.theme-images-wrapper {
    display: contents;
}

/* Left Column - 2 stacked images */
.theme-left-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme-image-small {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-image-small img {
    width: 100%;
    height: auto;
    display: block;
}

.theme-image-large {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.theme-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

/* Middle Column - Main large image */
.theme-main-image {
    position: relative;
    width: 100%;
}

.theme-main-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* Decorative Dots - positioned near main image */
.decorative-dots {
    position: absolute;
    bottom: 20px;
    right: -30px;
    width: 80px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary-color) 3px, transparent 3px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 3;
}

/* Decorative Arrow */
.decorative-arrow {
    position: absolute;
    top: -30px;
    left: -60px;
    width: 150px;
    height: 70px;
    z-index: 1;
}

/* Right Column - Text box and small image */
.theme-text-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.theme-text-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    padding: 40px 35px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.theme-goal-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    opacity: 0.95;
}

.theme-quote {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--white);
}

.theme-image-bottom {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-left: auto;
}

.theme-image-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* Decorative Elements */
.decorative-plus {
    position: absolute;
    font-size: 48px;
    font-weight: 300;
    color: #ff6b6b;
    z-index: 1;
}

.decorative-plus-1 {
    top: 50px;
    left: 50px;
}

.decorative-plus-2 {
    top: 100px;
    right: 80px;
    font-size: 56px;
    color: #ffb347;
}

.decorative-cross {
    position: absolute;
    bottom: 80px;
    right: 100px;
    font-size: 52px;
    font-weight: 300;
    color: var(--secondary-color);
    z-index: 1;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 1200px) {
    .theme-content {
        gap: 30px;
    }

    .theme-main-image img {
        max-width: 320px;
    }

    .theme-text-box {
        padding: 35px 30px;
    }

    .theme-quote {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .education-theme-section {
        padding: 60px 0;
    }

    .theme-header {
        margin-bottom: 50px;
    }

    .theme-title {
        font-size: 28px;
    }

    .theme-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .theme-main-image {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .theme-main-image img {
        max-width: 400px;
    }

    .decorative-arrow {
        top: -30px;
        right: -40px;
        width: 150px;
    }

    .decorative-plus-2 {
        top: 80px;
        right: 60px;
    }
}

@media (max-width: 768px) {
    .education-theme-section {
        padding: 50px 20px;
    }

    .theme-header {
        margin-bottom: 30px;
    }

    .theme-title {
        font-size: 22px;
        text-align: center;
        padding: 0;
        line-height: 1.4;
    }

    .theme-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Images wrapper becomes the 2x2 grid container */
    .theme-images-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }

    /* Left images use display: contents to flatten into grid */
    .theme-left-images {
        display: contents;
    }

    .theme-image-small {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .theme-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1;
    }

    .theme-image-large {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .theme-image-large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1;
    }

    /* Main image - takes right column both rows */
    .theme-main-image {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 100%;
        margin: 0;
        order: 0;
    }

    .theme-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    /* Hide decorative dots */
    .decorative-dots {
        display: none;
    }

    /* Text content (orange box) - full width at bottom */
    .theme-text-content {
        width: 100%;
        order: 1;
    }

    /* Hide the bottom small image in mobile */
    .theme-image-bottom {
        display: none;
    }

    .decorative-arrow {
        display: none;
    }

    .theme-text-box {
        padding: 30px 25px;
        margin: 0;
    }

    .theme-goal-label {
        font-size: 14px;
    }

    .theme-quote {
        font-size: 19px;
    }

    .decorative-plus-1 {
        display: none;
    }

    .decorative-plus-2 {
        display: none;
    }

    .decorative-cross {
        display: none;
    }
}

@media (max-width: 480px) {
    .education-theme-section {
        padding: 40px 0;
    }

    .theme-header {
        margin-bottom: 30px;
    }

    .theme-title {
        font-size: 20px;
    }

    .theme-content {
        gap: 25px;
    }

    .theme-text-box {
        padding: 25px 20px;
    }

    .theme-goal-label {
        font-size: 14px;
    }

    .theme-quote {
        font-size: 18px;
    }

    .decorative-plus-1,
    .decorative-plus-2,
    .decorative-cross {
        font-size: 32px;
    }

    .decorative-plus-1 {
        top: 20px;
        left: 20px;
    }

    .decorative-plus-2 {
        top: 40px;
        right: 20px;
    }

    .decorative-cross {
        bottom: 40px;
        right: 30px;
    }
}
