/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-text: #333333;
    --secondary-text: #666666;
    --background: #ffffff;
    --accent: #567b95;
    --link: #326891;
    --link-hover: #265e8b;
    --border: #e2e2e2;
    --box-bg: #f7f7f7;
    --quote-bg: #f2f3f4;
}

body {
    font-family: 'Georgia', serif;
    color: var(--primary-text);
    line-height: 1.6;
    background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cheltenham', 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Navigation styles */
nav {
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    font-family: 'georgia', sans-serif;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--link);
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Hero section */
.hero {
    height: 100vh;
    background-image: url('Photos/portofentry.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
}

.hero-content h1 {
    font-family: "Georgia", serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    font-family: 'Georgia', serif;
    line-height: 1.4;
}

/* Intro section */
.intro {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 12px 25px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* Article styles */
.article {
    max-width: 780px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.articleintro {
    margin-top: 20px;
}

.article h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.article p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    color: var(--primary-text);
}

.article img {
    max-width: 100%;
    height: auto;
    margin: 35px 0;
}

.article figcaption {
    text-align: center;
}


/* Audio article styles */
.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 4rem;
    margin-bottom: 1rem;
    margin: 0;
}

.byline {
    display: flex;
    flex-direction: column;
    align-items: left;
    line-height: 1.2;
    margin-top: 100px;
    margin-bottom: 1px;
}

.byline p {
    margin: 0px;
}

.audio-story {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--box-bg);
    border-radius: 0;
    border-top: 5px solid var(--border);
    border-bottom: 5px solid var(--border);
}

.audio-storycler {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--box-bg);
    border-radius: 0;
    border-top: 5px solid rgb(22, 21, 66);
    border-bottom: 5px solid rgb(22, 21, 66);
}

.audio-storymarialuisa {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--box-bg);
    border-radius: 0;
    border-top: 5px solid rgb(120, 64, 115);
    border-bottom: 5px solid rgb(120, 64, 115);
}

.audio-storytania {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--box-bg);
    border-radius: 0;
    border-top: 5px solid rgb(25, 72, 138);
    border-bottom: 5px solid rgb(25, 72, 138);
}

.audio-storyjavier {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--box-bg);
    border-radius: 0;
    border-top: 5px solid rgb(223, 136, 29);
    border-bottom: 5px solid rgb(223, 136, 29);
}

.audio-story h3 {
    font-size: 1.8rem;
    margin-bottom: 1em;
}

.audio-story img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
}

.audio-player,
.video-player {
    width: 100%;
    margin: 25px 0;
}

.video-player {
    width: 100%;
    max-height: 400px;
    margin: 20px 0;
}

.transcript-container {
    margin: 25px 0;
}

.transcript-box {
    border: 1px solid var(--border);
    margin-bottom: 15px;
    overflow: hidden;
    background-color: rgb(250, 250, 250);
}


.transcript-header {
    background-color: #f5f5f5;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}


.transcript-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.transcript-content.open {
    max-height: 500px;
    padding: 20px;
    overflow-y: auto;
    transition: max-height 0.5s ease-in;
}

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

.transcript-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.transcript-toggle::before,
.transcript-toggle::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease;
}

.transcript-toggle::before {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.transcript-toggle::after {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.transcript-toggle.open::before {
    transform: translateX(-50%) rotate(90deg);
}

.transcript-content p {
    margin: 0 0 10px 0;
}

.transcript-content.open::-webkit-scrollbar {
    width: 8px;
}

.transcript-content.open::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.transcript-content.open::-webkit-scrollbar-thumb {
    background: gray;
    border-radius: 3px;
}

.transcript-content.open::-webkit-scrollbar-thumb:hover {
    background: var(--primary-text);
}

.linedivider {
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin-bottom: 10px;
}