/* Language Detail Page Styles */

.language-detail-page {
    background-color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 110px 0 10px;
    background-color: #fff;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2A9D8F;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #2A9D8F;
    font-weight: 600;
}

/* Hero Section */
.language-hero {
    padding: 80px 0 80px;
    background: linear-gradient(135deg, #2A9D8F 0%, #264653 100%);
    color: #fff;
    text-align: center;
}

/* When a background image is applied inline, ensure readability */
.language-hero.hero-has-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.language-hero.hero-has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.45) 100%);
}

.language-hero.hero-has-image .container {
    position: relative;
    z-index: 1;
}

.language-hero h1 {
    font-size: 64px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.language-hero .subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.language-hero .regions {
    font-size: 18px;
    opacity: 0.85;
}

/* Overview Section */
.language-overview {
    padding: 80px 0;
    background-color: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-content h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: 0.25px;
}

.overview-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.overview-stats {
    background-color: #f8f4f0;
    padding: 40px;
    border: 3px solid #2c2c2c;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.overview-stats h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.stat-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ddd;
}

.stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2A9D8F;
}

/* Cultural History Section */
.cultural-history {
    padding: 80px 0;
    background-color: #ffffff;
}

.cultural-history h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.25px;
}

/* History two-column layout */
.history-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 40px;
    align-items: start;
}

.history-image-wrapper {
    position: sticky;
    top: 110px;
    height: calc(100vh - 140px);
    min-height: 480px;
    border: 3px solid #2c2c2c;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #f0f0f0;
}

.history-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-content {
    max-width: 900px;
}

/* Accordion (collapsible) */
.accordion {
    border-top: 2px solid #eee;
}

.accordion-item {
    border-bottom: 2px solid #eee;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 22px;
    margin: 0;
    color: #2A9D8F;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
}

.accordion-icon {
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(90deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-panel-inner {
    padding: 0 10px 20px 10px;
}

.accordion-panel-inner p,
.accordion-panel-inner li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.history-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.history-content li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
}

/* Features Section */
.language-features {
    padding: 80px 0;
    background-color: #f8f4f0;
}

.language-features h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 0.25px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border: 2px solid #ddd;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #2A9D8F;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #2A9D8F;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 22px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Why Learn Section */
.why-learn {
    padding: 80px 0;
    background-color: #fff;
}

.why-learn h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.25px;
}

.reasons-list {
    max-width: 900px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding: 30px;
    background-color: #f8f4f0;
    border-left: 5px solid #2A9D8F;
}

.reason-number {
    width: 50px;
    height: 50px;
    background-color: #F4A259;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-family: 'Archivo Black', sans-serif;
    flex-shrink: 0;
}

.reason-content h3 {
    font-size: 24px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 12px;
}

.reason-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

/* CTA Section */
.language-cta {
    padding: 100px 0;
    background-color: #2A9D8F;
    text-align: center;
    color: #fff;
}

.language-cta h2 {
    font-size: 48px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.language-cta p {
    font-size: 20px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .history-image-wrapper {
        position: relative;
        height: 340px;
        top: 0;
    }
}

@media (max-width: 768px) {
    .language-hero {
        padding: 120px 20px 60px;
    }

    .language-hero h1 {
        font-size: 42px;
    }

    .language-hero .subtitle {
        font-size: 20px;
    }

    .overview-content h2,
    .cultural-history h2,
    .language-features h2,
    .why-learn h2 {
        font-size: 32px;
    }

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

    .reason-item {
        flex-direction: column;
        text-align: center;
    }

    .reason-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .language-hero h1 {
        font-size: 32px;
    }

    .language-hero .subtitle {
        font-size: 18px;
    }

    .overview-content h2,
    .cultural-history h2,
    .language-features h2,
    .why-learn h2 {
        font-size: 28px;
    }

    .language-cta h2 {
        font-size: 36px;
    }

    .overview-content p,
    .history-content p,
    .history-content li {
        font-size: 16px;
    }
}


