/* Languages Page Specific Styles */

/* Page Header */
.page-header {
    margin-top: 140px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    padding: 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Overview Section */
.overview-section {
    padding: 3rem 2rem;
    background: var(--white);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInLeft 1s ease, mapPulse 3s ease-in-out infinite;
    max-width: 500px;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    animation: fadeInLeft 1s ease;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.map-container:hover .map-image {
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: 1.5rem 2rem;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.4s ease;
    animation: peekAnimation 3s ease-in-out infinite;
}

.map-container:hover .map-overlay {
    transform: translateY(0);
    animation: none;
}

.map-overlay h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-link {
    display: inline-block;
    background: var(--white);
    color: var(--primary-orange);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.map-link:hover {
    background: var(--secondary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.overview-text {
    animation: fadeInRight 1s ease;
}

.overview-text h2 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.overview-text p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.8;
    text-align: justify;
}

/* Cultural Landscape Section */
.cultural-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.cultural-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.cultural-text {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.cultural-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: var(--secondary-orange);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.cultural-text p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.9;
    text-align: justify;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes peekAnimation {
    0%, 100% {
        transform: translateY(calc(100% - 60px));
    }
    50% {
        transform: translateY(calc(100% - 80px));
    }
}

@keyframes mapPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 80px;
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .overview-section,
    .cultural-section {
        padding: 3rem 1rem;
    }
    
    .cultural-text {
        padding: 2rem;
    }
    
    .overview-text h2 {
        font-size: 1.5rem;
    }
}
