/*
Theme Name: Hope Lactation Services
Theme URI: #
Author: Custom Theme Builder
Author URI: #
Description: A custom WordPress theme designed for Hope Lactation Services.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hopelactation
*/

/* --- CSS Variables (Color Palette from Logo) --- */
:root {
    --primary-teal: #1D6A7E;
    --secondary-teal: #78BCC6;
    --text-gray: #4A4A4A;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
}

/* --- Base & Layout Resets --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-gray);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* --- Structural Layout (Sticky Footer Fix) --- */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the wrapper is at least the height of the screen */
}

/* --- Header Styling --- */
.site-header {
    background-color: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--secondary-teal);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-branding a {
    color: var(--primary-teal);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: -5px;
    display: block;
}

/* --- Navigation --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--secondary-teal);
}

/* --- Main Content Area --- */
/* --- Main Content Area (Global default for all pages) --- */
.site-main {
    flex: 1; /* Pushes the footer down */
    width: 100%;
    max-width: 1200px; /* Standard wide width for normal pages */
    margin: 40px auto; /* Normal top/bottom spacing */
    padding: 0 20px;
    box-sizing: border-box;
}


/* --- Coming Soon Page Specific Styling (Only applies to the homepage) --- */

/* Centers and sizes the logo image ONLY on the front page */
.home .site-main img {
    max-width: 240px;
    height: auto;
    margin-bottom: 20px;
}

/* Styles the "Coming Soon!" heading ONLY on the front page */
.home .site-main h1,
.home .site-main h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-teal);
    line-height: 1.2;
    width: 100%;
    text-align: center !important; /* The important tag overrides any WordPress editor defaults */
}

/* Formats the paragraphs for easy reading ONLY on the front page */
.home .site-main p {
    font-size: 1.2rem;
    max-width: 650px; /* Keeps text lines from getting too long */
    margin: 0 auto 20px auto;
    color: var(--text-gray);
}

/* --- Typography & Links (Applies globally to all pages) --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-teal);
}

a {
    color: var(--secondary-teal);
}

a:hover {
    color: var(--primary-teal);
    text-decoration: none;
}

/* --- Footer Styling (Applies globally to all pages) --- */
.site-footer {
    background-color: var(--primary-teal);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.site-footer a {
    color: var(--secondary-teal);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

/* --- Distraction-Free Course Viewer --- */
body.course-active {
    background-color: #000000; /* Dark background to make HTML5 content pop */
    margin: 0;
    overflow: hidden; /* Prevents double scrollbars if HTML5 has its own */
}

.course-viewer-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Top bar with Logo and Exit Button */
.course-header-bar {
    background-color: var(--white);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 2px solid var(--secondary-teal);
    flex-shrink: 0;
}

.course-header-bar img {
    height: 40px;
    width: auto;
}

.button-exit {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.button-exit:hover {
    background-color: var(--secondary-teal);
    color: var(--white);
}

/* The area where the HTML5 content lives */
.course-content-area {
    flex-grow: 1;
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Makes sure embedded iframes or HTML5 interactives fill the space perfectly */
.course-content-area iframe,
.course-content-area object,
.course-content-area embed {
    width: 100%;
    height: 100%;
    border: none;
}