.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #E0F7FA 0%, #FFFFFF 100%);
    overflow: hidden;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-copy {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-copy span {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-2deg);
    background: #fff;
    padding: 10px;
}

.hero-student-img {
    border-radius: calc(var(--radius-lg) - 5px);
}

/* Page Hero (Subpages) */
.courses-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.course-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.course-img-box {
    width: 100%;
    height: 240px;
    position: relative;
    flex-shrink: 0;
}

.course-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.course-info {
    padding: 2rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.course-tagline {
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-price {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-main);
}

.course-price span {
    color: var(--text-light);
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.section-title .title-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    vertical-align: middle;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    margin-bottom: 0;
    line-height: inherit;
}

.section-title .title-part,
.section-title .title-divider {
    white-space: nowrap;
    font-size: inherit;
    color: inherit;
    display: inline;
    margin: 0;
}

/* Course Grid Adaptation */
@media (min-width: 500px) {
    .course-item {
        flex-direction: row;
        align-items: stretch;
    }

    .course-img-box {
        width: 40%;
        height: auto;
        min-height: 250px;
    }

    .course-info {
        width: 60%;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .courses-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-item {
        flex-direction: column;
    }

    .course-img-box {
        width: 100%;
        height: 240px;
    }

    .course-info {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 1150px) {
    .course-item {
        flex-direction: row;
    }

    .course-img-box {
        width: 40%;
        height: auto;
        min-height: 250px;
    }

    .course-info {
        width: 60%;
        justify-content: center;
    }
}

/* Results Section */
.results-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F4FAFD 100%);
    position: relative;
    overflow: hidden;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 650px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 3rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card.highlight {
    border: 2px solid var(--primary);
    background: #fff;
}

.stat-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.stat-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-period {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-value-box {
    margin: 0.5rem 0 1rem;
    line-height: 1;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 0.2rem;
}

.stat-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Stories */
.stories-wrapper {
    margin-top: 2rem;
}

.stories-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.stories-title span {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.student-grade {
    background: var(--bg-pale);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.student-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.story-result {
    margin-bottom: 1rem;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.result-grade {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.3;
}

.story-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.story-card:hover .read-more {
    gap: 0.8rem;
}

/* Instructor (Flex) */
.instructor-wrapper {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    flex-direction: column;
}

.instructor-img-col {
    width: 100%;
    min-height: 250px;
}

.instructor-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info-col {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 900px) {
    .instructor-wrapper {
        flex-direction: row;
    }

    .instructor-img-col {
        flex: 1;
        min-height: 400px;
    }

    .instructor-info-col {
        flex: 1;
        padding: 3rem;
    }
}

/* Flow Section */
.flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-top: 5rem;
    position: relative;
}

.flow-step {
    background: var(--white);
    padding: 3rem 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    -webkit-text-stroke: 2px var(--primary);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    filter: drop-shadow(0px 3px 0px rgba(0, 174, 239, 0.2));
}

.step-content {
    width: 100%;
}

.flow-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.4;
}

.title-part {
    display: inline-block;
    white-space: nowrap;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    text-align: left;
}

/* Flow Arrows & Connectors */
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--border-light);
    z-index: 1;
}

@media (min-width: 600px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .flow-step::after,
    .flow-step::before,
    .flow-step:not(:last-child)::after {
        content: none;
        border: none;
        width: auto;
        height: auto;
        background: none;
        transform: none;
        left: auto;
        bottom: auto;
    }

    .flow-step:nth-child(odd):not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1.5rem;
        transform: translateY(-50%) rotate(-90deg);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid var(--border-light);
    }

    .flow-step:nth-child(2)::after {
        content: '';
        position: absolute;
        z-index: 0;
        top: 100%;
        bottom: auto;
        left: auto;
        transform: none;
        border: none;
        right: 50%;
        width: calc(100% + 2rem + 4px);
        height: 1.5rem;
        border-right: 2px solid var(--border-light);
        border-bottom: 2px solid var(--border-light);
        border-bottom-right-radius: 0;
    }

    .flow-step:nth-child(3)::before {
        content: '';
        position: absolute;
        z-index: 0;
        top: -1.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: 14px;
        height: 1.6rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M0,0 L7,10 L14,0' fill='%23E1F0F5'/%3E%3C/svg%3E"), linear-gradient(to bottom, var(--border-light), var(--border-light));
        background-repeat: no-repeat;
        background-position: bottom center, center top;
        background-size: 14px 10px, 2px calc(100% - 9px);
    }
}

@media (min-width: 1024px) {
    .flow-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .flow-step {
        padding: 3.5rem 1.5rem 2rem;
    }

    .flow-step:nth-child(3)::before {
        content: none;
    }

    .flow-step:not(:last-child)::after,
    .flow-step:nth-child(odd):not(:last-child)::after,
    .flow-step:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 55%;
        right: -1.4rem;
        bottom: auto;
        left: auto;
        transform: translateY(-50%) rotate(-90deg);
        border-top: 10px solid var(--primary);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: none;
        width: 0;
        height: 0;
        background: none;
        border-radius: 0;
        opacity: 0.3;
    }
}

/* =========================================
   Mobile Hero Styles
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding-top: 8rem;
        flex-direction: column-reverse;
        text-align: center;
        padding-bottom: 4rem;
    }

    .hero-bg {
        width: 100%;
        height: 50%;
        opacity: 0.5;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-text {
        padding-right: 0;
        margin-top: 1rem;
    }

    .hero-copy {
        font-size: 2rem;
    }

    .hero-bg-img {
        -webkit-mask-image: linear-gradient(to top, transparent, black 30%);
        mask-image: linear-gradient(to top, transparent, black 30%);
    }

    .hero-img-wrapper {
        transform: none !important;
        margin: 0 auto;
        max-width: 90%;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}