/*
═══════════════════════════════════════════════════════════════
INTANGIBLE HERITAGE PAGE - COMPLETE CORRECTED STYLESHEET
Fixed all content visibility and layout issues
═══════════════════════════════════════════════════════════════
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 170px;
}

/* CRITICAL FIX: Single body rule with proper values */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8ddd4 50%, #d4c4a0 100%);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 170px; /* Fixed header space */
}

/* CRITICAL FIX: Ensure main content is visible */
main {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0;
    padding-top: 0;
}

/* CRITICAL FIX: All sections must be visible */
section {
    display: block !important;
    visibility: visible !important;
    padding: 80px 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Typography */
.title-en, .section-en, .card-en, .nav-en, .btn-en, .footer-en, .logo-text-en,
.subtitle-en, .desc-en, .card-desc-en, .stat-en, .cta-en, .cta-desc-en,
.footer-desc-en, .link-en, .platform-desc-en, .contact-en, .copyright-en {
    font-family: 'Playfair Display', serif;
}

.title-bo, .section-bo, .card-bo, .nav-bo, .btn-bo, .footer-bo, .logo-text-bo,
.subtitle-bo, .desc-bo, .card-desc-bo, .stat-bo, .cta-bo, .cta-desc-bo,
.footer-desc-bo, .link-bo, .platform-desc-bo, .contact-bo, .copyright-bo {
    font-family: 'Noto Sans Tibetan', sans-serif;
}

/* Language Toggle */
body.tibetan .title-en, body.tibetan .section-en, body.tibetan .card-en,
body.tibetan .nav-en, body.tibetan .btn-en, body.tibetan .footer-en,
body.tibetan .subtitle-en, body.tibetan .desc-en, body.tibetan .card-desc-en,
body.tibetan .stat-en, body.tibetan .cta-en, body.tibetan .cta-desc-en,
body.tibetan .footer-desc-en, body.tibetan .link-en, body.tibetan .platform-desc-en,
body.tibetan .contact-en, body.tibetan .copyright-en, body.tibetan .logo-text-en {
    display: none;
}

body:not(.tibetan) .title-bo, body:not(.tibetan) .section-bo, body:not(.tibetan) .card-bo,
body:not(.tibetan) .nav-bo, body:not(.tibetan) .btn-bo, body:not(.tibetan) .footer-bo,
body:not(.tibetan) .subtitle-bo, body:not(.tibetan) .desc-bo, body:not(.tibetan) .card-desc-bo,
body:not(.tibetan) .stat-bo, body:not(.tibetan) .cta-bo, body:not(.tibetan) .cta-desc-bo,
body:not(.tibetan) .footer-desc-bo, body:not(.tibetan) .link-bo, body:not(.tibetan) .platform-desc-bo,
body:not(.tibetan) .contact-bo, body:not(.tibetan) .copyright-bo, body:not(.tibetan) .logo-text-bo {
    display: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to content for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #8B4513;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    margin: 0;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 5px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo i {
    display: none;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.header-title {
    flex: 2;
    text-align: center;
}

.header-title h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.header-lang-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.header-lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Navigation */
.nav-bottom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    margin: 0;
}

.nav-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(139, 69, 19, 0.2);
}

.nav-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-pills-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-pills-desktop li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: calc(100vh - 170px) !important; /* Account for header */
    min-height: 500px !important;
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(160, 82, 45, 0.7)),
                url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=1920&h=1080&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6), rgba(205, 133, 63, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    color: #8B4513;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #DEB887 0%, #F5DEB3 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
}

/* Content Sections */
.content-section {
    display: none;
    padding: 80px 0;
}

.content-section.active {
    display: block;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8B4513;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Heritage Categories Grid */
.heritage-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.15);
    border-color: #CD853F;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Heritage Images */
.heritage-image,
.artifact-image {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.heritage-image img,
.artifact-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .heritage-image img,
.category-card:hover .artifact-image img {
    transform: scale(1.05);
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: #f9f6f0;
    border-radius: 10px;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.audio-progress {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    width: 0%;
    transition: width 0.1s ease;
}

.current-time, .duration {
    font-size: 12px;
    color: #666;
}

/* Dance Showcase */
.dance-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.dance-type {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.dance-type:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.15);
}

.dance-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.dance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dance-type:hover .dance-image img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dance-type:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    transform: scale(1.1);
    background: white;
}

.dance-info {
    padding: 30px;
}

.dance-info h3 {
    font-size: 1.4rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.dance-info p {
    color: #666;
    line-height: 1.6;
}

/* Music Collection */
.music-collection {
    margin-top: 50px;
}

.song-category {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.song-category h3 {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e6d2;
}

.song-list {
    display: grid;
    gap: 15px;
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f9f6f0;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-item:hover {
    background: #f0e6d2;
    transform: translateX(5px);
}

.song-item.active {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
}

.song-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: inherit;
}

.song-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: inherit;
}

.song-item .play-button {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.15);
}

.story-header {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
    padding: 25px 30px;
}

.story-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.story-content {
    padding: 30px;
}

.story-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    color: #8B4513;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 133, 63, 0.3);
}

/* Festival Timeline */
.festival-timeline {
    margin-top: 50px;
    position: relative;
}

.festival-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    transform: translateX(-50%);
}

.festival-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.festival-item:nth-child(even) {
    flex-direction: row-reverse;
}

.festival-date {
    width: 150px;
    text-align: center;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    position: relative;
    z-index: 2;
}

.festival-date .month {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.festival-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px;
}

.festival-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.1);
    margin: 0 30px;
    position: relative;
}

.festival-content h3 {
    font-size: 1.4rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.festival-content p {
    color: #666;
    line-height: 1.6;
}

/* Knowledge Areas */
.knowledge-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.knowledge-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.knowledge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.15);
    border-color: #CD853F;
}

.knowledge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.knowledge-card h3 {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 15px;
}

.knowledge-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.stats::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 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.cta-section::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 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 80px 80px;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-section .cta-button {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c1810 0%, #3d2317 50%, #4a2c1a 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513 0%, #CD853F 50%, #DEB887 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #CD853F;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #CD853F;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #d4c4a0;
}

.footer-section a {
    color: #d4c4a0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #CD853F;
}

.footer-section a i {
    font-size: 16px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 0;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a2c1a;
    color: #a0896b;
    font-size: 0.9rem;
}

/* Floating Social */
.floating-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.social-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.social-toggle:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
}

.social-buttons {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.floating-social:hover .social-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.instagram { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}

.social-btn.youtube { 
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%); 
}

.social-btn.twitter { 
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%); 
}

.social-btn.email { 
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%); 
}

.social-btn:hover {
    transform: scale(1.1) translateX(-5px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in[data-delay="0.1"] { transition-delay: 0.1s; }
.fade-in[data-delay="0.2"] { transition-delay: 0.2s; }
.fade-in[data-delay="0.3"] { transition-delay: 0.3s; }
.fade-in[data-delay="0.4"] { transition-delay: 0.4s; }
.fade-in[data-delay="0.5"] { transition-delay: 0.5s; }
.fade-in[data-delay="0.6"] { transition-delay: 0.6s; }

.counter {
    display: inline-block;
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.header-lang-btn:focus,
button:focus {
    outline: 2px solid #CD853F;
    outline-offset: 2px;
}

.logo:focus {
    outline: 2px solid #CD853F;
    outline-offset: 2px;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-modal-header {
    padding: 1rem 2rem;
    background: #8B4513;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    padding: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Story Highlight Styles */
.story-card.highlighted {
    border-color: #CD853F;
    box-shadow: 0 25px 50px rgba(218, 165, 32, 0.3);
    transform: translateY(-20px) scale(1.02);
}

/* Timeline Animation Styles */
@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.festival-item:nth-child(even) {
    animation-name: slideInTimelineRight;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-pills-desktop {
        gap: 20px;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .heritage-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .dance-showcase {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .logo {
        width: 55px;
        height: 55px;
    }
    
    .festival-timeline::before {
        left: 30px;
    }
    
    .festival-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .festival-item:nth-child(even) {
        flex-direction: column;
    }
    
    .festival-date {
        position: absolute;
        left: 0;
        width: 120px;
    }
    
    .festival-content {
        margin: 20px 0 0 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 210px !important;
    }
    
    .hero {
        height: calc(100vh - 210px) !important;
        background-attachment: scroll !important;
    }
    
    .top-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section,
    .header-title,
    .header-lang-section {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .nav-bottom {
        top: 116px;
        padding: 10px 0;
    }
    
    .nav-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-pills-desktop {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .heritage-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dance-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dance-type {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2.2rem;
    }
    
    .knowledge-areas {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-header-content {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .category-card,
    .knowledge-card {
        padding: 30px 20px;
    }
    
    .dance-info {
        padding: 20px;
    }
    
    .story-header,
    .story-content {
        padding: 20px;
    }
    
    .festival-item {
        padding-left: 40px;
    }
    
    .festival-date {
        width: 100px;
        padding: 15px 10px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .nav-pills-desktop {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        padding: 3px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .floating-social {
        bottom: 20px;
        right: 20px;
    }
    
    .social-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll !important;
    }
}

/* Print Styles */
@media print {
    .top-header,
    .nav-bottom,
    .floating-social,
    .video-overlay,
    .audio-player {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .hero {
        height: auto !important;
        min-height: 300px !important;
        break-inside: avoid;
    }
    
    .content-section {
        display: block !important;
        break-inside: avoid;
    }
    
    .category-card,
    .dance-type,
    .story-card,
    .knowledge-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
