@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #0f9d58; /* A green similar to the logo */
    --text-color: #333;
    --font-family-body: 'Lora', serif;
    --font-family-heading: 'Playfair Display', serif;
}

body {
    margin: 0;
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow: hidden; /* Hide body scrollbars by default for horizontal layout */
    position: relative; /* For fixed header */
}

/* Website Content - visible by default */
#website-content {
    opacity: 1; /* Always visible */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: var(--secondary-color); /* Light background for header */
    color: var(--primary-color);
    position: fixed; /* Fixed header */
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid #eee; /* Subtle separator */
}

/* Logo Container in Header */
.logo-container {
    display: flex;
    align-items: center;
    height: 50px; /* Standard height for the logo area */
}

/* Image Logo (for Home slide) */
#image-logo {
    height: 100%; /* Fill logo container height */
    width: auto;
    display: none; /* Hidden by default */
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Text Logo (for other slides) */
#text-logo {
    font-family: var(--font-family-heading);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* When on Home slide (body.welcome-active) */
body.welcome-active #image-logo {
    display: block; /* Show image logo */
    opacity: 1;
}

body.welcome-active #text-logo {
    display: none; /* Hide text logo */
    opacity: 0;
}


nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-family-body);
    font-weight: 400;
    margin-left: 30px;
    transition: color 0.3s ease;
    font-size: 1.2em; /* Matched to body font size */
}

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

h1, h2, h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

/* Horizontal Scroll Container (Default for Desktop) */
#horizontal-scroll-container {
    display: flex;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    overflow-x: scroll; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Hide vertical scrollbar */
    scroll-snap-type: x mandatory; /* Snap to sections */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scroll animation */
}

/* Content Sections within Horizontal Scroll (Default for Desktop) */
.content-section {
    flex: 0 0 100vw; /* Each section takes full viewport width */
    height: 100vh; /* Each section takes full viewport height */
    scroll-snap-align: start; /* Snap to the start of each section */
    padding: 80px 10%;
    max-width: 100%; /* Ensure flex item respects its width */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: left; /* Default to left-align all text */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

/* General text content styling - all text paragraphs should adhere to this max-width rule */
.content-section .text-content {
    max-width: 600px; /* New global standard */
    margin: 0 auto 0 0; /* Ensure left alignment with max-width */
}

/* Specific content alignment for sections that need it */
.content-section > .text-content,
.content-section > h1,
.content-section > p,
.content-section > button,
.content-section > img,
.content-section > .image-stack {
    margin-left: auto; /* Re-center elements that might need it */
    margin-right: auto;
}

/* .content-section.dark-bg {
    color: var(--secondary-color);
} */

/* Welcome Section Styling - Left aligned */
#welcome-section {
    align-items: flex-start; /* Aligned left as per original design */
    padding-left: 10%; 
    padding-right: 10%;
    text-align: left; /* Ensure text itself is left aligned */
}

#welcome-section h1 {
    font-size: 3.8em;
    line-height: 1.1;
    max-width: 600px;
    margin-bottom: 20px;
    margin-left: 0; /* Override auto margins to ensure left align */
    margin-right: auto;
}

#welcome-section p {
    font-size: 1.3em;
    max-width: 600px; /* Adhere to new global standard */
    color: #555;
    margin-bottom: 40px;
    margin-left: 0; /* Override auto margins to ensure left align */
    margin-right: auto;
}

#welcome-section button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
    font-family: var(--font-family-body);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0; /* Override auto margins to ensure left align */
    margin-right: auto;
}

#welcome-section button:hover {
    background-color: var(--accent-color);
}

/* Hook section specific styling */
.content-section#hook-section {
    background-image: url('images/hook_section_image.png');
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 0; /* Ensures content is above the overlay */
}

.content-section#hook-section .text-content {
    color: var(--secondary-color); /* Inverted text to white */
}

.content-section#hook-section h2 {
    color: var(--secondary-color); /* Inverted h2 to white */
}

.content-section#hook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: -1; /* Position behind content, above background image */
}

/* Clean up old image styling */
.content-section#hook-section img {
    display: none; /* Ensure the image is not displayed */
    margin-bottom: 0;
}

.content-section#hook-section .text-content {
    max-width: 600px; 
    margin: 0 auto;
    padding-top: 20px; 
}

.content-section#hook-section .text-content h2 {
    font-size: 2.5em; 
    line-height: 1.1; 
    margin-bottom: 0.5em;
}

/* Two-column layout for Quantum Mystery section */
.content-section.two-column-layout {
    display: flex;
    flex-direction: column; /* Default to column for small screens */
    align-items: center;
    text-align: left; /* Align text left within its column */
    padding: 80px 5%; /* Adjust padding for wider layout */
}

#quantum-mystery-section .text-content {
    max-width: 800px; /* Constrain width of text content */
    margin: 0 auto; /* Center the text block itself */
}

#quantum-mystery-section .memory-label {
    font-family: var(--font-family-heading);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent-color); /* Gold color from image */
    font-weight: 700; /* Bold as in image */
    text-align: left; /* Explicitly left-aligned */
}

#quantum-mystery-section .text-content h2 {
    font-size: 2.5em;
    line-height: 1.1;
    text-align: left; /* Explicitly left-aligned */
}

#quantum-mystery-section .text-content p {
    font-size: 1.2em; /* Ensure paragraphs are consistent */
    margin-bottom: 1em; /* Spacing between paragraphs */
    text-align: left; /* Explicitly left-aligned */
}

#quantum-mystery-section blockquote {
    margin: 40px 0 10px 20px; /* Spacing for quote, adjusted left margin for border */
    padding-left: 20px; /* Space for the border */
    border-left: 5px solid var(--accent-color); /* Gold vertical line */
    font-size: 1.2em; /* Legible size */
    font-style: italic; /* As per image */
    text-align: left; /* Explicitly left-aligned */
    color: var(--accent-color); /* Gold color for blockquote text */
}

#quantum-mystery-section cite {
    display: block; /* Ensure cite is on its own line */
    text-align: left; /* Explicitly left-aligned */
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-color); /* Standard text color */
}

/* Styling for the new two-column layout in #invitation-section */
#invitation-section {
    padding: 0; /* Adjust padding for wider layout */
}

#invitation-section .content-wrapper {
    display: flex;
    flex-direction: row; /* Desktop: side-by-side */
    justify-content: center;
    align-items: stretch; /* Make columns fill height */
    width: 100%;
    height: 100%;
    margin: 0 auto; /* Center the wrapper */
}

#invitation-section .image-column {
    flex: 0 0 50%; /* Image column takes 50% width */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow if image is object-fit: cover */
}

#invitation-section .image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image fills column, cropping as needed */
    display: block;
    border-radius: 0; /* Ensure no rounded corners */
    box-shadow: none; /* Remove shadows */
    margin: 0; /* Remove any auto margins */
}

#invitation-section .text-content {
    flex: 0 0 50%; /* Text column takes 50% width, no growing/shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text */
    padding: 80px 5%; /* Padding within the text column */
    text-align: left; /* Left align text */
    max-width: none; /* Let child elements handle their max-width */
}

#invitation-section .text-content h2,
#invitation-section .text-content p,
#invitation-section .text-content ul,
#invitation-section .text-content strong,
#invitation-section .text-content blockquote,
#invitation-section .text-content cite {
    max-width: 600px; /* Apply max-width to individual text elements */
    margin-left: 0; /* Ensure left alignment */
    margin-right: auto; /* Ensure left alignment */
}

#invitation-section .text-content h2 {
    text-align: left; /* Ensure h2 is left-aligned */
}

#invitation-section .text-content hr {
    margin-left: 0; /* Align hr to left */
    margin-right: auto;
}

#invitation-section ul {
    list-style: none; /* Remove default bullets */
    padding: 0; /* Remove default padding */
    margin: 30px auto 30px 0; /* Align to left */
    max-width: 600px; /* Constrain list width for readability */
    text-align: left;
}

#invitation-section ul li {
    font-size: 1.2em; /* Match body text size */
    margin-bottom: 0.8em; /* Space between list items */
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
    text-align: left; /* Align list item text left within its own space */
}

#invitation-section ul li::before {
    content: '→'; /* Custom arrow bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

#invitation-section strong {
    display: block; /* Make strong tags block-level */
    margin: 15px auto 15px 0; /* Align to left */
    font-size: 1.3em; /* Slightly larger for emphasis */
    max-width: fit-content; /* Only take width of content */
    text-align: left; /* Ensure text inside is left-aligned */
}

@media (min-width: 768px) {
    .content-section.two-column-layout {
        flex-direction: row; /* Row for larger screens */
        justify-content: space-between;
    }

    .two-column-layout .text-content {
        flex: 1; /* Take up equal space */
        padding-right: 50px;
    }

    .two-column-layout .image-stack {
        flex: 1; /* Take up equal space */
        display: flex;
        flex-direction: column;
        gap: 20px; /* Space between stacked images */
        align-items: center; /* Center images within their column */
    }

    .two-column-layout .image-stack img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 8px; /* Slightly rounded corners for images */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

.content-section#quantum-mystery-section {
    min-height: auto;
    background-image: none;
}

.content-section#future-past-principle-section {
    background-image: url('images/future_past_blueprint_image.png');
    min-height: 500px;
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 0; /* Ensures content is above the overlay */
}

.content-section#future-past-principle-section h2 {
    font-size: 2.5em;
    line-height: 1.1;
    color: var(--secondary-color);
}

.content-section#future-past-principle-section p {
    font-size: 1.2em; /* Nudged up a size */
    color: var(--secondary-color);
}

.content-section#future-past-principle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: -1; /* Position behind content, above background image */
}

.content-section#proof-section {
    padding: 0; /* Remove default padding as content-wrapper will handle it */
}

#proof-section .content-wrapper {
    display: flex;
    flex-direction: row; /* Desktop: side-by-side */
    justify-content: center;
    align-items: stretch; /* Make columns fill height */
    width: 100%;
    height: 100%;
    margin: 0 auto; /* Center the wrapper */
}

#proof-section .text-column {
    flex: 1; /* Take 50% width */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text */
    padding: 80px 5%; /* Padding within the text column */
    text-align: left; /* Left align text */
}

#proof-section .text-content {
    max-width: 600px; /* Constrain text width for readability */
    margin: 0 auto 0 0; /* Align to left of column */
}

#proof-section .image-column {
    flex: 1; /* Take 50% width */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow if image is object-fit: cover */
}

#proof-section .image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image fills column, cropping as needed */
    display: block;
    border-radius: 0; /* Ensure no rounded corners */
    box-shadow: none; /* Remove shadows */
    margin: 0; /* Remove any auto margins */
}

/* Apply 1.2em body font size to all other content sections and footer */
.content-section p,
footer p {
    font-size: 1.2em;
}

/* Resize h2s for Proof and Invitation sections */
#proof-section .text-content h2,
#invitation-section .text-content h2,
#book-section .text-content h2,
#book-section .text-content h1 {
    font-size: 2.5em;
    line-height: 1.1;
    text-align: left; /* Ensure headings are left-aligned */
}

#invitation-section .text-content {
    max-width: 900px; /* Constrain text width for readability */
    margin: 0 auto; /* Center the text block */
    text-align: left; /* Ensure all text content inside is left-aligned */
    padding-top: 30px; /* Add some top padding */
    padding-bottom: 30px; /* Add some bottom padding */
}

.content-section#book-section {
    padding: 0; /* Remove default padding as content-wrapper will handle it */
}

#book-section .content-wrapper {
    display: flex;
    flex-direction: row; /* Desktop: side-by-side */
    justify-content: center;
    align-items: stretch; /* Make columns fill height */
    width: 100%;
    height: 100%;
    margin: 0 auto; /* Center the wrapper */
}

#book-section .left-column {
    flex: 1; /* Changed from 0 0 50% */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    padding: 80px 5%; /* Restore horizontal padding */
    text-align: left; /* Left align text */
    box-sizing: border-box; /* Crucial for padding calculation */
    overflow: hidden; /* Prevent content from overflowing */
}

#book-section .right-column {
    flex: 1; /* Changed from 0 0 50% */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    padding: 80px 5%; /* Padding within the text column */
    text-align: left; /* Left align text */
}

#book-section .left-column .text-content h2 {
    font-size: 2.5em; /* Ensure consistent h2 size */
    line-height: 1.1; /* Consistent line height */
    margin-top: 0; /* Remove top margin from h2 */
    margin-bottom: 0.5em; /* Consistent bottom margin */
}

#book-section .left-column .text-content p {
    font-size: 1.2em; /* Ensure consistent p size */
    margin-bottom: 1em; /* Consistent spacing between paragraphs */
}

#book-section .left-column .text-content ul {
    padding-left: 0; /* Remove default ul padding */
    margin: 30px auto 30px 0; /* Align to left */
    max-width: 600px; /* Constrain list width for readability */
}

#book-section .left-column .text-content ul li {
    text-align: left; /* Ensure list item text is left aligned */
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
}

#book-section .left-column .text-content ul li::before {
    content: '→'; /* Custom arrow bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Ensure the inner text-content div handles its own width and alignment */
#book-section .left-column > .text-content {
    max-width: 600px; /* Apply max-width to the inner text-content div */
    width: 100%; /* Make max-width effective in flex context */
    margin: 0 auto 0 0; /* Align to left within the column's padding */
    box-sizing: border-box; /* Include padding in width calculation if any */
    padding: 0;
}

#book-section .text-content {
    /* This is the general .text-content rule, keep its max-width global */
    max-width: 600px; 
    margin: 0 auto 0 0; 
    padding-top: 0; 
    padding-bottom: 0; 
}

#book-section hr {
    border: none; 
    border-top: 1px solid #eee; 
    margin: 30px auto; 
    max-width: 600px;
}

#book-section p {
    font-size: 1.2em;
}

#book-section a {
    display: inline-block; /* Make it block-level to apply button styles */
    background-color: var(--accent-color); /* Gold background */
    color: var(--secondary-color); /* White text */
    padding: 15px 35px; /* Button padding */
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px; /* Slightly rounded corners */
    text-decoration: none; /* Remove underline */
    margin-top: 30px;
    margin-bottom: 20px;
    margin-left: 0; /* Ensure left-aligned */
    margin-right: auto; /* Push to left if max-width is applied */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

#book-section a:hover {
    background-color: darken(var(--accent-color), 10%); /* Darken on hover */
}

#book-section blockquote {
    margin: 40px 0 10px 20px; /* Spacing for quote, adjusted left margin for border */
    padding-left: 20px; /* Space for the border */
    border-left: 5px solid var(--accent-color); /* Gold vertical line */
    font-size: 1.2em;
    font-style: italic;
    text-align: left; /* Ensure left-aligned */
    color: var(--accent-color); /* Gold color for blockquote text */
}

#book-section cite {
    display: block;
    text-align: left; /* Ensure left-aligned */
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-color); /* Standard text color */
}

#book-section ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 30px auto 30px 0; /* Align to left */
    max-width: 600px; /* Constrain list width for readability */
    text-align: left;
}

#book-section ul li {
    font-size: 1.2em;
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
    text-align: left;
}

#book-section ul li::before {
    content: '→'; /* Custom arrow bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

#book-section strong {
    display: block; /* Make strong tags block-level */
    margin: 15px auto 15px 0; /* Align to left */
    font-size: 1.4em; /* Slightly larger for emphasis */
    max-width: fit-content; /* Only take width of content */
    text-align: left; /* Ensure text inside is left-aligned */
    color: var(--accent-color); /* Gold for emphasis */
}

footer {
    flex: 0 0 100vw; /* Make footer also take full viewport width in horizontal scroll */
    height: 100vh; /* Make footer also take full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 10%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* ========================================= */
/* Mobile Responsiveness: Vertical Scrolling */
/* ========================================= */
@media (max-width: 1023px) {

    body {
        overflow-y: scroll; /* Allow vertical scrolling */
        overflow-x: hidden; /* Hide horizontal scrollbar */
    }

    #horizontal-scroll-container {
        display: block; /* Stack sections vertically */
        width: auto; /* Auto width */
        height: auto; /* Auto height */
        overflow-x: hidden; /* No horizontal scrolling */
        overflow-y: auto; /* Allow vertical scrolling within container */
        scroll-snap-type: y mandatory; /* Snap vertically */
        scroll-behavior: smooth;
    }

    .content-section {
        flex: none; /* Disable flex sizing for horizontal */
        width: 100%; /* Full width */
        height: auto; /* Height adapts to content */
        min-height: 100vh; /* Ensure each section is at least a full screen height */
        scroll-snap-align: start; /* Snap to start of section */
        padding: 40px 5%; /* Adjusted padding for mobile */
        justify-content: flex-start; /* Align content to top for vertical scroll */
    }

    .content-section img {
        max-width: 100%;
        height: auto;
    }

    /* Header adjustments for mobile */
    header {
        padding: 15px 5%; /* Smaller padding for mobile header */
    }

    .logo-container {
        justify-content: center; /* Center logo container content */
        flex-grow: 1; /* Allow logo container to take available space */
    }

    nav {
        display: none; /* Hide desktop navigation for now, will implement hamburger later */
    }

    /* Welcome Section adjustments for mobile */
    #welcome-section {
        padding-top: 80px; /* Account for fixed header */
        padding-left: 5%; 
        padding-right: 5%;
        min-height: 100vh; /* Ensure it still fills the screen initially */
        text-align: left; /* Ensure left alignment for welcome section on mobile */
    }

    #welcome-section h1 {
        font-size: 2.5em; /* Smaller h1 for mobile */
        max-width: 90%;
        margin-left: 0; /* Left align h1 */
        margin-right: auto;
    }

    #welcome-section p {
        font-size: 1.1em; /* Smaller p for mobile */
        max-width: 90%;
        margin-left: 0; /* Left align p */
        margin-right: auto;
    }

    #welcome-section button {
        font-size: 1em; /* Smaller button text */
        padding: 12px 25px;
        margin-left: 0; /* Left align button */
        margin-right: auto;
    }

    /* Adjust hook section for mobile */
    .content-section#hook-section {
        padding-top: 80px; /* Account for fixed header */
        text-align: left; /* Ensure left alignment on mobile */
    }

    .content-section#hook-section img {
        margin-bottom: 0; /* Remove 30px bottom margin for mobile */
    }

    .content-section#hook-section .text-content {
        text-align: left; /* Ensure left alignment on mobile */
    }

    .content-section#hook-section .text-content h2 {
        font-size: 2em; /* Smaller h2 for mobile */
    }

    .content-section#hook-section .text-content p {
        font-size: 1em; /* Smaller p for mobile */
    }

    /* Two-column layout becomes single column for mobile */
    .content-section.two-column-layout {
        flex-direction: column; /* Ensure vertical stack */
        padding-top: 80px; /* Account for fixed header */
        text-align: left; /* Ensure left alignment on mobile */
    }

    .two-column-layout .text-content {
        padding-right: 0; /* Remove right padding */
        padding-bottom: 30px; /* Add space below text before images */
    }

    .two-column-layout .image-stack {
        gap: 15px; /* Adjust gap for mobile */
    }

    /* Adjust proof section image for mobile */
    .content-section#proof-section {
        padding: 40px 5%; /* Restore padding for mobile */
    }

    #proof-section .content-wrapper {
        flex-direction: column; /* Stack columns vertically on mobile */
        gap: 30px; /* Adjust gap for mobile */
    }

    #proof-section .text-column {
        order: 2; /* Text after image on mobile */
        padding: 0; /* Remove horizontal padding, main section padding applies */
    }

    #proof-section .image-column {
        order: 1; /* Image first on mobile */
        height: 300px; /* Constrain image height for mobile */
        margin-bottom: 30px; /* Space below image */
    }

    #proof-section .image-column img {
        border-radius: 8px; /* Reintroduce rounded corners for mobile aesthetic */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Principle section adjustments for mobile */
    .content-section#future-past-principle-section {
        padding: 40px 5%; /* Restore padding for mobile */
    }

    #future-past-principle-section .content-wrapper {
        flex-direction: column; /* Stack columns vertically on mobile */
        gap: 30px; /* Adjust gap for mobile */
    }

    #future-past-principle-section .text-column {
        order: 2; /* Text after image on mobile */
        padding: 0; /* Remove horizontal padding, main section padding applies */
    }

    #future-past-principle-section .image-column {
        order: 1; /* Image first on mobile */
        height: 300px; /* Constrain image height for mobile */
        margin-bottom: 30px; /* Space below image */
    }

    #future-past-principle-section .image-column img {
        border-radius: 8px; /* Reintroduce rounded corners for mobile aesthetic */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Invitation section adjustments for mobile */
    #invitation-section {
        padding: 40px 5%; /* Adjusted padding for mobile */
    }

    #invitation-section .content-wrapper {
        flex-direction: column; /* Stack columns vertically on mobile */
        gap: 30px; /* Adjust gap for mobile */
    }

    #invitation-section .image-column {
        order: 1; /* Image first */
    }

    #invitation-section .text-content {
        order: 2; /* Text second */
        text-align: left; /* Ensure left alignment on mobile */
    }

    #invitation-section .text-content h2,
    #invitation-section .text-content p {
        text-align: left; /* Ensure text is left-aligned for mobile */
    }

    #invitation-section .text-content hr {
        margin-left: auto; /* Center hr on mobile */
        margin-right: auto;
    }

    #invitation-section ul li {
        text-align: center; /* Center list items on mobile */
        padding-left: 0; /* Remove custom bullet padding if centered */
    }

    #invitation-section ul li::before {
        display: none; /* Hide custom arrow bullet if centered */
    }

    /* Book section adjustments for mobile */
    .content-section#book-section {
        padding: 40px 5%; /* Restore padding for mobile */
    }

    #book-section .content-wrapper {
        flex-direction: column; /* Stack columns vertically on mobile */
        gap: 30px; /* Adjust gap for mobile */
    }

    #book-section .left-column,
    #book-section .right-column {
        flex: none; /* Disable flex sizing, take full width */
        width: 100%;
        padding: 0; /* Remove horizontal padding, main section padding applies */
    }

    #book-section .left-column {
        order: 1; /* Left column (main text) first on mobile */
    }

    #book-section .right-column {
        order: 2; /* Right column (CTA, quote) second on mobile */
        margin-top: 30px; /* Space between columns */
    }

    #book-section .text-content {
        margin: 0 auto; /* Center text content within columns on mobile */
    }

    /* Ensure footer aligns content for mobile */
    footer {
        height: auto; /* Auto height for content */
        min-height: 200px; /* Minimum height for footer */
        padding-top: 40px; /* Adjusted padding */
        padding-bottom: 40px;
    }

}

/* Articles Library Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 cards per row, responsive */
    gap: 30px; /* Space between cards */
    padding: 30px 0; /* Padding above and below the grid */
    max-width: 1200px; /* Constrain grid width */
    margin: 0 auto; /* Center the grid */
}

/* Individual Article Card */
.article-card {
    background-color: var(--secondary-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push read more button to bottom */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    font-family: var(--font-family-heading);
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-card p {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.article-card .read-more-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: none;
    padding: 8px 0;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start; /* Align button to the left */
    transition: color 0.2s ease;
}

.article-card .read-more-button:hover {
    color: darken(var(--accent-color), 10%);
}

/* Article Detail Page specific content section styling */
#article-detail-section {
    padding-top: 100px; /* Adjust for fixed header */
    padding-bottom: 80px;
}

#article-detail-section #article-content-container {
    max-width: 800px; /* Max width for readability of article text */
    margin: 0 auto; /* Center the article content */
    padding: 20px 0; /* Some vertical padding */
}

#article-detail-section h2 {
    font-size: 2.5em; /* Consistent heading size */
    margin-bottom: 0.5em;
    text-align: left;
}

#article-detail-section p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 1em;
    text-align: left;
}

#article-detail-section strong {
    color: var(--accent-color); /* Highlight strong text */
}

#article-detail-section ul {
    list-style: disc; /* Default disc for lists in articles */
    margin-left: 20px;
    margin-bottom: 1em;
    text-align: left;
}


/* ========================================= */
/* Specific styling for Articles Page        */
/* ========================================= */
body.articles-page {
    overflow-y: scroll; /* Allow vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

body.articles-page #horizontal-scroll-container {
    display: block; /* Disable flex behavior for main container */
    width: auto; /* Auto width */
    height: auto; /* Auto height */
    overflow-x: hidden; /* No horizontal scrolling */
    overflow-y: hidden; /* No vertical scrolling on this specific container */
    scroll-snap-type: none; /* Disable scroll snapping */
}

body.articles-page .content-section {
    flex: none; /* Disable flex sizing for horizontal layout */
    width: 100%; /* Full width */
    height: auto; /* Height adapts to content */
    min-height: 100vh; /* Ensure each section is at least a full screen height */
    scroll-snap-align: none; /* Disable scroll snapping */
    justify-content: flex-start; /* Align content to top for vertical scroll */
    padding-top: 100px; /* Add padding to account for fixed header */
}

body.articles-page header {
    position: sticky; /* Keep header visible when scrolling */
    top: 0;
}
