/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

header .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Add this */
}

header h1 {
    margin: 0;
    flex: 1;
}

/* Logo Styles */
header .logo {
    flex: 1;
    text-align: left;
}

header .logo-text {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
}

header .logo-text:hover {
    color: #007BFF;
}

/* Navigation */
header nav {
    flex: 1;
    text-align: right;
}

header nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

header nav a.active {
    border-bottom: 2px solid #007BFF;
}

header nav a:hover {
    color: #007BFF;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    color: #333;
    margin-bottom: 15px;
}

/* hero */ 
.hero-section {
    background-color: #2a2f4f;
    color: white;
    position: relative;
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
    min-height: 372px; /* adjust height of the hero section */
    /* Add these properties */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top:-20px; /* eliminate white line under the nav bar */
    padding: 0;
}

.hero-section .container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 60px;  /* Changed from padding: 60px 0 */
    position: relative;
    max-width: 1200px;  /* Add a max-width */
    margin: 0 auto;     /* Center the container */
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.2em;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: -50px; /* move the image up or down */
}

.hero-image img {
    display: block;
    max-height: 400px; /* Adjust this value to match your needs */
    width: auto;
}

/* Episodes Section */
.episode-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.episode-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.episode-item-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.episode-image {
    flex-shrink: 0;
    width: 150px;
    margin-right: 20px;
    padding: 0;
    border-radius: 5px;
}

.episode-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.episode-text {
    flex: 1;
}

.episode-text h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.episode-text h3 a {
    color: #333;
    text-decoration: none;
}

.episode-text h3 a:hover {
    color: #007BFF;
}

.episode-text p {
    font-size: 0.9em;
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

/* Player Fullscreen Section */
.player-fullscreen {
    width: 100%;
    background-color: #f4f4f4;
    padding: 40px 20px;
    text-align: left;
    margin-bottom: 20px;
}

.player-fullscreen .episode-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.player-fullscreen img {
    max-width: 20%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.player-fullscreen h3 {
    margin-bottom: 10px;
    color: #333;
}

.player-fullscreen audio {
    width: 100%;
    margin-top: 20px;
}

/* Description Toggle */
.mobile-description {
    display: none;
}

/* Forms */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

form input, form textarea, form select {
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="submit"] {
    width: 100%; /* Full width for buttons */
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

form button:hover, form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* waitlist */

.waitlist-title {
    text-align: center;
    margin-bottom: 20px;
}

.waitlist-title.desktop {
    display: block;
}

.waitlist-title.mobile {
    display: none;
}


/* Mobile Menu */
.mobile-menu-button {
    position: absolute; /* Add this */
    right: 0; /* Add this */
    top: 50%; /* Add this */
    transform: translateY(-50%); /* Add this */
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    gap: 5px;
}

.mobile-menu-button span {
    font-size: 16px;
}

.menu-header {
    display: none;
}

.player-2episodes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.player-2episodes .episode-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.player-2episodes .episode-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.player-2episodes .episode-item img {
    width: 150px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.player-2episodes .episode-text {
    flex: 1;
}

.episode-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
    gap: 20px; /* Space between episodes */
}

.episode-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.episode-item img {
    width: 150px;
    height: auto;
    border-radius: 5px;
    margin-right: 10px;
    float: left;
}

/* Full-width dark background for the subscribe section */
#subscribe-dark {
    background-color: #2a2a2a; /* Uniform dark gray background */
    padding: 40px 20px; /* Inner padding */
    margin: 0; /* Remove any default margin */
    width: 100vw; /* Full viewport width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    border: none; /* Remove any potential border causing the white line */
}

/* Remove the inner box shadow or different background */
#subscribe-dark .subscribe-form-container {
    background-color: #2a2a2a; /* Match the overall background */
    padding: 20px;
    max-width: 600px; /* Limit the width of the form content */
    margin: 0 auto; /* Center the form */
    border-radius: 8px; /* Rounded corners for the form */
    box-shadow: none; /* Remove shadow to simplify design */
}

/* General styles for dark subscribe section */
#subscribe-dark h2,
#subscribe-dark p {
    color: #ffffff; /* White text for general headings and text */
    text-align: center;
}

/* Make the second h2 inside the form box black */
#subscribe-dark .subscribe-form-container h2 {
    color: #000000; /* Black text for the form header */
}

.arrow-icon {
    display: inline-block;
    margin-right: 10px; /* Spacing between arrow and text */
    vertical-align: middle; /* Align arrow with text */
    height: 60px; /* Set height to 20px */
    width: 60px; /* Set width to 20px */
    object-fit: contain; /* For images, ensures it scales proportionally */
}

/* ------------------------MOBILE STARTS HERE ----------------------- */
/* For mobile screens, stack them vertically */
@media screen and (max-width: 768px) {
    /* Mobile Menu */
    header .container {
        position: relative;
        text-align: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .mobile-menu-button {
        position: absolute;
        right: 0px;
        top: 50%;  /* Change from -10px to 50% */
        transform: translateY(-50%);  /* Add this to center vertically */
        z-index: 100;
        display: flex;  /* Make sure it's displayed */
    }

    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .close-menu-button {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #2a2a2a;
        flex-direction: column;
        width: 100%;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        text-align: center;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active {
        background: rgba(255,255,255,0.1);
    }

    /* hero mobile */
    .hero-section {
        min-height: auto;
        padding-top: 10px; /* Added to create space below header */
        margin-top: -20px; /* Add negative margin to move content up */
        padding-bottom: 50px; /* adjust the height of the hero section so the bottom aligns with bottom of image */
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .hero-content {
        margin-bottom: 0px;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-image {
        position: relative;
        width: 100%;
        text-align: center;
        margin-top: -100px; /* Add negative margin to move image up */
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Episode List Mobile Styles */
    .episode-item-content {
        flex-direction: column;
        padding: 15px;
    }

    .episode-image {
        width: 150px;
        margin: 0 auto 15px auto;
    }

    .episode-text {
        text-align: center;
    }

    .episode-text h3 {
        font-size: 1.2em;
    }

    .desktop-description {
        display: none;
    }

    .mobile-description {
        display: block;
        text-align: left;
        margin-top: 15px;
        font-size: 0.9em;
        line-height: 1.5;
    }

    .episode-row {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .player-2episodes .episode-row {
        grid-template-columns: 1fr;
    }

    /* Player Fullscreen Mobile */
    .player-fullscreen img {
        max-width: 200px;
    }
}

/* waitlist for mobile */
@media screen and (max-width: 768px) {
    .waitlist-title.desktop {
        display: none;
    }
    .waitlist-title.mobile {
        display: block;
    }
}

/* Utility Classes */
.formkit-powered-by-convertkit-container {
    display: none !important;
}
/* --------------- 600px begins here -------------------- */

