/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-weight: 400;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #333;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: #666;
}

/* Desktop Navigation */
#main-nav {
    display: none;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

#main-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#main-nav a:hover,
#main-nav a.active {
    color: #333;
}

/* Mobile Navigation */
#mobile-nav {
    display: block;
    position: relative;
}

#mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

#mobile-nav-menu.active {
    display: block;
}

#mobile-nav-menu ul {
    list-style: none;
}

#mobile-nav-menu li {
    margin-bottom: 1.5rem;
}

#mobile-nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    transition: color 0.3s ease;
}

#mobile-nav-menu a:hover,
#mobile-nav-menu a.active {
    color: #666;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
#main-content {
    padding: 60px 0;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-image-wrapper {
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.hero-caption {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    margin-bottom: 60px;
}

.content-block {
    max-width: 800px;
    margin: 0 auto 40px;
}

.content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.translation {
    border-top: 2px solid #e5e5e5;
    padding-top: 40px;
    margin-top: 60px;
}

.translation h2 {
    margin-bottom: 30px;
    color: #333;
}

/* Video Wrapper */
.video-wrapper {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Audio Section */
.audio-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.audio-section p {
    margin-bottom: 15px;
}

.podcast-player {
    width: 100%;
    margin: 20px 0;
}

.audio-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

/* Support Section */
.support-section {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.support-section h2 {
    margin-bottom: 40px;
    color: #333;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.logo-item {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.logo-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    background-color: #f8f8f8;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    margin-top: 80px;
}

#footer .container {
    text-align: center;
}

#footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and up */
@media (min-width: 768px) {
    #mobile-nav {
        display: none;
    }

    #main-nav {
        display: block;
    }

    .hero-section {
        margin-bottom: 80px;
    }

    .content-block p {
        font-size: 1.1rem;
    }

    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    #main-content {
        padding: 80px 0;
    }

    #header {
        padding: 40px 0;
    }
}

/* Small screens */
@media (max-width: 640px) {
    .logo a {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .content-block p {
        text-align: left;
        font-size: 1rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .logo-item {
        max-width: 150px;
    }

    #main-content {
        padding: 40px 0;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Ensure sufficient contrast for links */
a {
    color: inherit;
}

/* Print styles */
@media print {
    #header,
    #footer,
    #mobile-nav {
        display: none;
    }

    .video-wrapper {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
