/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
    /* Native CSS smooth scrolling */
    scroll-behavior: smooth; 
}

/* Top Navigation Bar */
.top-nav {
    background-color: #2c3e50; /* A dark, professional blue/grey. You can change this to match your brand */
    color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #3498db; /* Changes color when the mouse hovers over the link */
}

.top-nav .divider {
    color: #7f8c8d; /* A subtle grey for the vertical lines */
    margin: 0 4px;
}

/* Makes sure the nav bar stacks neatly on narrow mobile screens */
@media (max-width: 768px) {
    .top-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .top-nav .divider {
        display: none; /* Hides the vertical dividers on mobile for a cleaner look */
    }
}

/* Hero Section (The Top red area) */
.hero-section {
    text-align: center;
    padding: 60px 20px 0 20px; 
    
    /* THE FIX: Makes the background transparent so the body's gradient shows through perfectly */
    background: transparent; 
    
    border-bottom: none !important; 
    margin-bottom: 0; 
}


/* Container to align the logo, divider, and title */
.title-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 25px; /* Slightly increased gap to make room for the line */
    margin-bottom: 40px; /* INCREASED from 15px to add that vertical space before the subtitle paragraph! */
    flex-wrap: wrap; 
}

/* The new vertical line divider */
.logo-divider {
    width: 3px; /* Thickness of the line */
    height: 60px; /* Matches the height of your logo */
    background-color: #ffffff; /* Solid white line */
    border-radius: 2px; /* Softens the ends of the line slightly */
}

/* Controls the size of your logo */
.hero-logo {
    height: 60px; 
    width: auto;
}

/* Makes sure the divider still looks good on narrow mobile screens when elements stack */
@media (max-width: 768px) {
    .logo-divider {
        width: 60%; /* Turns into a horizontal line */
        height: 2px;
        margin: 10px 0; /* Adds spacing above and below the line */
    }
}
/* Forces the main header and paragraph in the red section to be white */
.hero-section h1 {
    margin-top: 0;
    color: #ffffff !important; 
    /* NEW: Fixes the optical alignment */
    line-height: 1; /* Strips out the invisible font spacing */
    position: relative;
    top: 7px; /* Nudges the text down just a hair. You can change this number to 4px or 5px if it needs a bit more! */
}

/* Centered, white banner with a dark red outline */
.instruction-banner {
    background-color: #ffffff; /* Solid white background */
    
    max-width: 650px; 
    margin: 0 auto 40px auto; 
    padding: 12px 30px; 
    border-radius: 12px; 
    
    /* Creates a distinct, dark red outline */
    border: 3px solid #8b0000; 
    
    /* Adds a slightly stronger drop shadow so the white box floats above the background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); 
}

/* Formats the text inside the new banner to pop */
.instruction-banner p {
    color: #8b0000; /* Matches the text to the dark red border for a cohesive, punchy look */
    font-weight: 800; /* Makes the font extra bold so it stands out prominently */
    margin: 0; 
    font-size: 18px; /* Slightly bumped up the size for readability */
    letter-spacing: 0.5px;
}

/* Book Links inside the Grid */
.book-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

/* Specifically forces the span text (the book titles) to be white */
.book-link span {
    color: #ffffff !important;
    font-weight: bold;
    margin-top: 10px; /* Adds a tiny bit of breathing room below the cover */
}

.book-link:hover {
    transform: translateY(-5px); 
}


.book-cover {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Video Sections */
.video-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.playlist-container {
    margin-bottom: 40px;
}

/* Make YouTube iframes responsive */
iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Stylish "Back to Book Selection" Button */
.back-button {
    display: inline-block;
    margin-top: 30px; /* Gives it some breathing room from the videos above it */
    padding: 12px 28px;
    background-color: #8b0000; /* Your signature deep red */
    color: #ffffff; /* Crisp white text */
    text-decoration: none !important; /* Forcefully removes that default blue underline */
    font-weight: 700;
    font-size: 16px;
    border-radius: 30px; /* Creates a sleek, modern pill shape */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Adds a soft drop shadow so it floats */
    transition: all 0.3s ease; /* Makes the hover effect perfectly smooth */
}

/* The interactive hover effect */
.back-button:hover {
    background-color: #a61c1c; /* Lightens the red slightly when the mouse is over it */
    transform: translateY(-3px); /* Lifts the button up a tiny bit */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); /* Deepens the shadow to complete the floating illusion */
    color: #ffffff; 
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* RED gradient for the ENTIRE full-page background */
    background: linear-gradient(to bottom, #a61c1c 0%, #4a0000 100%) fixed;
    scroll-behavior: smooth; 
}

/* Hero Section (The Top red area, updated) */
.hero-section {
    text-align: center;
    padding: 60px 20px 0 20px; /* Removed bottom padding, keeping spacing clean at the top */
    /* REMOVED: background gradient and border from here */
    border-bottom: none !important; 
    margin-bottom: 0; 
}

/* (The navigation and grid text/link styles are unchanged) */

.hero-section h1 {
    margin-top: 0;
    color: #2c3e50;
}

/* Book Grid Layout */
.book-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Ensures it looks good on mobile */
}

.book-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.book-link:hover {
    transform: translateY(-5px); /* Creates a slight "lift" effect when hovered/tapped */
}

.book-cover {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Video Sections (The content boxes) */
.video-section {
    padding: 60px 20px;
    max-width: 800px; /* Keeping content centered and readable */
    margin: 0 auto 40px auto; 
    text-align: center;
    
    /* MODIFIED: Sections are transparent; content flows freely */
    background-color: transparent; 
    border-radius: 12px;
    box-shadow: none; 
}

.playlist-container {
    margin-bottom: 40px;
}

/* Make YouTube iframes responsive */
iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.back-to-top:hover {
    text-decoration: underline;
}

/* NEW: Creates the Centered White Content Column from the sketch */
.content-column {
    background-color: #ffffff; 
    max-width: 1000px; 
    
    /* THE FIX: Changed '0' to '50px' for the top margin to create that gap! */
    margin: 50px auto 40px auto; 
    
    padding: 40px 0; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    border-radius: 12px; 
}