html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: 60px; /* Provide space for the fixed header */
    color: #666;
    background-color: #fff;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff6ea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Add space between logo and links */
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar-brand img {
    height: 40px; /* Adjust height as needed */
    width: auto;
    display: block; /* Removes extra space below the image */
}

.navbar-links {
    display: flex;
    align-items: center;
    justify-content: center;
}


.navbar-links a {
    color: #333;
    text-decoration: none;
    padding: 0 1rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.navbar-links a:hover {
    color: #4bb4e3; /* Use the primary color from the hero section */
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    padding: 15px;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger Active State (X) */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}
.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between; /* Logo left, hamburger right */
    }

    .hamburger {
        display: inline-block; /* Show hamburger on mobile */
        margin-right: 2rem; /* Add space on the right to prevent cutoff */
    }

    .navbar-links {
        display: none; /* Hide nav links by default */
        position: absolute;
        top: 60px; /* Position below navbar */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff6ea;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }

    .navbar-links.is-active {
        display: flex; /* Show when active */
    }

    .navbar-links a {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Widget Sections */
.widget {
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
}

/* Alternating background color for sections */
.widget:nth-of-type(odd) {
    background-color: #f7f7f7;
}

/* Centered content container for widgets */
.widget-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Specific styling for the experience widget container to not center text */
.experience-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.widget h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

/* Hero Section Styles */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    background-color: #e37c4b; /* Lighter blue from original gradient */
}

.hero {
    position: relative;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .widget-container {
    position: relative;
    z-index: 2;
}

/* New class to left-align hero content */
.hero-content-left {
    text-align: left;
    margin: 0 auto; /* Keep the block centered on the page */
}

/* Two-column hero layout */
.hero-split-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1100px; /* Wider container for split layout */
    text-align: left;
}

.hero-split-image {
    flex: 0 0 40%;
    max-width: 350px;
}

.hero-split-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Softens the corners of the image */
    /* A slightly stronger shadow to lift the image off the background */
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.hero-split-content {
    flex: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for the hero */
@media (max-width: 768px) {
    .hero-split-container {
        flex-direction: column;
        text-align: center;
    }
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero .prose {
    font-size: 1.2rem;
    max-width: 600px;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: -0.5rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    margin: 0.5rem;
    border: 2px solid transparent;
}

.button-primary {
    background-color: #fff;
    color: #333;
}

.button-primary:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

/* Experience Widget Styles */
.experience-container h2 {
    text-align: center;
}

.experience-container .subtitle {
    text-align: center;
    color: #666;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.experience-container .item {
    margin-bottom: 2rem;
    text-align: left; /* Override the centered container for item details */
}

.experience-container .item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.experience-container .item-meta {
    color: #555;
    margin-bottom: 0.5rem;
}

.experience-container .item-date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 0.75rem;
}

/* Content Typography */
.prose {
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.prose a {
    color: #2b94c3; /* Use the secondary color from the hero section */
    text-decoration: none;
    border-bottom: 1px solid #2b94c3;
}

/* --- Book Page Styles --- */
.book-widget {
    background-color: #e5f3ed; /* Light mint */
    color: #333;
}

.book-widget.alt {
    background-color: #fff;
}

.book-title-widget .widget-container {
    text-align: left;
}

.book-title {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.book-authors {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.book-copyright {
    font-size: 0.9rem;
}

.book-intro-widget .prose {
    text-align: left;
    max-width: 720px;
}

.book-for-you-widget {
    background-color: #bca485; /* Tan/Beige */
    color: #fff;
}

.book-for-you-widget h2 {
    color: #fff;
}

.book-for-you-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    max-width: 650px;
    margin: 2rem auto 0;
}

.book-for-you-list li {
    font-size: 1.1rem;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.book-for-you-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #3c935f; /* Green */
    font-weight: bold;
}

.review-item {
    background-color: #fff;
    border-left: 5px solid #bca485; /* Tan/Beige */
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.review-item blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
}

.review-item footer {
    font-weight: bold;
    color: #3c935f; /* Green */
}
}