/*
===============
ROOT VARIABLES (Theme from Infographic)
===============
*/
:root {
    --bg-color: #212121;
    --card-bg-color: #1F2937; /* Equivalent to bg-gray-800 */
    --text-primary: #d5d5d5;
    --text-secondary: #9CA3AF; /* Equivalent to text-gray-400 */
    --accent-color: #F9A826;
    --accent-hover: #FBC02D;
    --text-on-accent: #212121;
    --font-body: 'Inter', sans-serif;
    --font-header: 'Oswald', sans-serif;
}

/*
===============
GLOBAL STYLES
===============
*/
* {
    box-sizing: border-box;
}

/* Body styles are now set in the <head> of index.html
  to load before your custom styles. You can leave this empty
  or remove it if you like.
*/
body {
    font-family: var(--font-body);
    /* background-color: var(--bg-color); */ /* Handled by inline <style> */
    /* color: var(--text-primary); */ /* Handled by inline <style> */
    margin: 0;
    line-height: 1.6;
}

/* *** CLASS RENAMED ***
  This is now .content-container to avoid conflict with Tailwind
*/
.content-container {
    width: 90%;
    max-width: 1000px; /* This width will now work correctly */
    margin: 0 auto;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/*
===============
TYPOGRAPHY
===============
*/
h1, h2 {
    font-family: var(--font-header);
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 3;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 2rem;
}

/* This rule is now in the <head> of index.html to fix text visibility */
/*
h2 + p {
    margin-top: 0.5rem;
}
*/

h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/*
===============
HEADER & FOOTER
===============
*/
/* This is your original header, which is no longer used */
.main-header {
    /*
    background-color: var(--card-bg-color);
    padding: 30px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
    margin-bottom: 5px;
    */
}

.main-header .content-container { /* Renamed */
    padding: 0 20px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.main-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    background-color: var(--card-bg-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/*
===============
CARD LAYOUT
===============
*/
.card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/*
===============
COMPONENTS
===============
*/

/* Audio Player */
.audio-player {
    background-color: #3c3c3c;
    padding: 15px 20px;
    border-radius: 5px;
}

.audio-player p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #FFFFFF;
}

/* space between description and first player */
section#audio p + .audio-player {
    margin-top: 2rem;
}

/* space *between* the two players */
.audio-player + .audio-player {
    margin-top: 2rem;
}


audio {
    width: 100%;
}

/* Document Links */
.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
}

.btn {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-on-accent);
    text-decoration: none;
}

/* Learning Hub Tabs */
.learning-tabs {
    border-bottom: 2px solid var(--text-secondary);
    margin-bottom: 20px;
    margin-top: 1.5rem;
}

.tab-link {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    color: var(--accent-hover);
}

.tab-link.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: -2px; /* Aligns with the main border */
}

.tab-content {
    display: none; /* JS will handle showing this */
}

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

iframe {
    border-radius: 5px;
    border: 1px solid var(--text-secondary);
}