:root {
    --clr-bg-page: #f4f6f8;
    --clr-bg-card: #ffffff;
    --clr-text-main: #111827;
    --clr-text-muted: #4b5563;
    
    --clr-primary: #3730a3;
    --clr-primary-hover: #312e81;
    --clr-bg-hero: #2e1065;
    
    --clr-focus: #fbbf24;
    --clr-border: #e5e7eb;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg-page);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 4px solid var(--clr-focus) !important;
    outline-offset: 4px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-primary);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 800;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    background: linear-gradient(135deg, var(--clr-bg-hero) 0%, var(--clr-primary) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

main {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.card {
    background-color: var(--clr-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 3rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--clr-border);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: 2.5rem;
    border-left: 6px solid var(--clr-primary);
    padding-left: 1rem;
}

.section-title {
    color: var(--clr-primary);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

video, audio {
    width: 100%;
    margin-top: 1rem;
}

.rounded-media {
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px var(--clr-border), 0 10px 15px -3px rgba(0,0,0,0.1);
    background: #000;
    display: block;
}

.full-width-audio {
    background: #f8fafc;
    border-radius: 50px;
}

.transcript-accordion {
    margin-top: 2rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background-color: var(--clr-bg-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.transcript-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: var(--clr-primary);
    list-style: none;
}

.transcript-summary::-webkit-details-marker {
    display: none;
}

.transcript-summary:hover {
    background-color: #f1f5f9;
}

.summary-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

details[open] .summary-icon {
    transform: rotate(45deg);
}

.transcript-content {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--clr-border);
    background: white;
}

.transcript-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--clr-text-main);
    border-bottom: 2px solid var(--clr-bg-page);
    padding-bottom: 0.5rem;
}

.transcript-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.transcript-content p:last-child {
    margin-bottom: 0;
}

.advanced-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
    text-align: center;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
    transform: scale(1.08);
    opacity: 0.7;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
    transform: translateY(0);
    opacity: 1;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--clr-border), 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

.site-footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--clr-text-main);
    color: #9ca3af;
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }
}
