/* ===================================
   KoreaWave Academy - Home Page Styles
   =================================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(49, 46, 129, 0.65) 100%),
        url('../images/home/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-inner {
    max-width: 1230px;
    margin: 0 auto;
    padding: 4rem 20px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: white;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #e8c547 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.hero-card-title h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-card-title p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.hero-card-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.hero-card-progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    height: 100%;
    width: 65%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}

.hero-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hero-card-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gold-light);
    font-weight: 700;
}

.hero-card-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Stats Bar */
.hero-stats {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: auto;
}

.hero-stats-inner {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Programs Section */
.programs {
    padding: 6rem 20px;
    background: var(--warm-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.program-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid var(--border-subtle);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.program-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.program-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.program-image h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-image p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.program-body {
    padding: 2rem;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0;
    color: var(--text-body);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.program-levels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.level-badge {
    padding: 8px 16px;
    background: var(--warm-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.level-badge:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
}

.btn-program {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.btn-program:hover {
    color: var(--gold);
    gap: 12px;
}

/* Roadmap Section */
.roadmap {
    padding: 6rem 20px;
    background: white;
}

.roadmap-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 3rem;
}

.roadmap-track::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--border-subtle), var(--gold), var(--navy), var(--gold), var(--border-subtle));
    border-radius: 2px;
    z-index: 0;
}

.roadmap-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.roadmap-number {
    width: 100px;
    height: 100px;
    background: white;
    border: 3px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.roadmap-step:hover .roadmap-number {
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.2);
}

.roadmap-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.roadmap-step p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

.roadmap-cta {
    text-align: center;
    margin-top: 3.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Why Section */
.why {
    padding: 6rem 20px;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--warm-white);
    border-radius: 24px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.why-card:hover {
    background: white;
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.15);
    transform: translateY(-8px);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-pale) 0%, #fff 100%);
    border: 2px solid var(--gold);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scale(1.1);
}

.why-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.7rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 3rem 20px;
    background: white;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 31, 53, 0.8) 100%),
        url('../images/home/cta-bg.webp');
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: white;
}

.cta-inner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats-inner {
        gap: 2.5rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap-track {
        flex-direction: column;
        gap: 2rem;
    }

    .roadmap-track::before {
        display: none;
    }

    .roadmap-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
    }

    .roadmap-number {
        margin: 0;
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats-inner {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stat strong {
        font-size: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 2rem 15px;
    }

    .cta-inner {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .cta-inner h2 {
        font-size: 1.5rem;
    }

    .program-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .roadmap-cta {
        flex-direction: column;
    }
}
