/* Theme variables */
:root[data-theme="light"] {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --background-color: #f5f6fa;
    --nav-bg: #2c3e50;
    --nav-text: white;
    --footer-bg: #2c3e50;
    --footer-text: white;
    --hero-title: #2c3e50;
    --hero-subtitle: #3498db;
    --download-btn-bg: #3498db;
    --download-btn-text: white;
    --download-btn-hover-bg: #2980b9; /* Darker blue for hover */
    --mission-bg: white;
    --card-bg: white; /* Used for cards, content boxes, etc. */
    --important-info-bg: rgb(255, 0, 0, 0.45);
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --card-bg-color: var(--card-bg);
    --hero-bg-gradient: linear-gradient(135deg, #f5f6fa 0%, #e9edf6 100%);
}

:root[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #a3a3a3;
    --text-color: #e1e1e1;
    --background-color: #1a1a1a;
    --nav-bg: #000;
    --nav-text: #e1e1e1;
    --footer-bg: #000;
    --footer-text: #e1e1e1;
    --hero-title: #3498db;
    --hero-subtitle: #e1e1e1;
    --download-btn-bg: #2c3e50;
    --download-btn-text: #e1e1e1;
    --download-btn-hover-bg: #34495e; /* Slightly lighter dark blue for hover */
    --mission-bg: #2a2a2a;
    --card-bg: #2a2a2a; /* Used for cards, content boxes, etc. */
    --important-info-bg: rgb(255, 0, 0);
    --border-color: #444;
    --border-radius: 8px;
    --card-shadow: 0 2px 4px rgba(255, 255, 255, 0.05);
    --card-hover-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    --card-bg-color: var(--card-bg);
    --hero-bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

/* Base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
     margin-bottom: 1rem;
     margin-top: 1rem;
     line-height: 1.3;
}
h1 { color: var(--hero-title); font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { color: var(--hero-title); font-size: clamp(1.8rem, 4vw, 2.2rem); }
h3 { color: var(--hero-subtitle); font-size: clamp(1.3rem, 3vw, 1.5rem); }
h4 { color: var(--primary-color); font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Navigation */
nav {
    background-color: var(--nav-bg);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

.theme-switch {
    margin-left: auto;
}

#themeToggle {
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}
#themeToggle:hover {
    opacity: 0.8;
}

/* Hamburger menu icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--nav-text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Main content */
main {
    padding-top: 5rem;
    flex-grow: 1;
    width: 100%;
}

/* Page content styles */
.page-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.content-container ol, ul {
    margin-left: 0.5rem; /* Adjust this value */
    padding-left: 1.2rem; /* And potentially this one too */
}
/* General container for padded content sections */
.content-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}
.content-container:last-child { margin-bottom: 0; }
.content-container p { margin-bottom: 1rem; }

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh; /* Adjusted min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--hero-bg-gradient); /* Added subtle gradient */
}
.hero h1 { letter-spacing: 0.5rem; margin-bottom: 0.5rem; /* Reduced margin */ }
.hero h2 { margin-bottom: 0.5rem; /* Reduced margin */ }
.hero h3 { color: var(--text-color); margin-bottom: 1.5rem; font-weight: 400; font-size: 1.1rem; }
.hero .cta-button {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center; /* Center buttons */
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
/* Styling for links within .cta-button to look like actual buttons */
.hero .cta-button a {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--download-btn-bg);
    color: var(--download-btn-text) !important;
    text-decoration: none !important;
    border-radius: var(--border-radius); /* Use theme border-radius */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent; /* For consistency */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero .cta-button a:hover {
    background-color: var(--download-btn-hover-bg);
    color: var(--download-btn-text) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Mission section */
.mission {
    background-color: var(--mission-bg);
    padding: 3rem 2rem;
    text-align: center;
}
.latin-text {
    font-style: italic;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
    padding: 1rem;
    border-left: 3px solid var(--secondary-color);
    background-color: var(--background-color); /* Slight contrast */
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.quote {
    font-style: italic;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Intro Item (WHY/HOW audio) */
.intro-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background-color: transparent; /* Made transparent to blend with mission section */
    border: none; /* Removed border */
    padding: 1.5rem 0; /* Adjusted padding */
    margin: 2rem auto 0 auto;
    max-width: 900px;
    box-shadow: none; /* Removed shadow */
}
.intro-label {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background-color: var(--card-bg); /* Add card background here */
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.intro-label .cluster-card { /* Style the "Why?" and "Learn More" cards */
    background-color: var(--secondary-color);
    color: var(--nav-text);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: inline-block;
    cursor: default; /* If not clickable, otherwise keep as is */
}
.intro-label .cluster-card h2 {
    color: var(--nav-text);
    margin: 0;
    font-size: 1.2rem;
}
.intro-label h3 { color: var(--hero-subtitle); margin-bottom: 0.5rem; } /* Original H3 style if needed elsewhere */
.podcast-player { width: 100%; max-width: 350px; margin-top: 0.5rem; }

/* Stakeholders section */
.stakeholders {
    padding: 3rem 2rem;
    background-color: var(--background-color);
}
.stakeholders h2 { text-align: center; margin-bottom: 3rem; }

/* Card styles (used for Stakeholders, etc.) */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}
.card-header { background: var(--primary-color); padding: 1.5rem; text-align: center; }
.card-header h3 { color: white; margin: 0; font-size: 1.5rem; }
.card-content { padding: 1.5rem; flex-grow: 1; }

/* Consolidated Content Box Styling */
.content-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent; /* Placeholder for hover/active effect */
}
.content-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
    border-top-color: var(--secondary-color); /* Add accent on hover */
}
.content-box h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary-color); }
.content-box p { margin-bottom: 1rem; }
.content-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Universal List Styling */
.content-box ul, .content-box ol,
.card-content ul, .card-content ol {
    margin-bottom: 1rem;
    padding-left: 1.2rem; /* Adjusted padding */
    margin-left: 0.5rem; /* Added margin */
}
.content-box ul, .card-content ul { list-style:circle; font-size: 0.9rem; }
.content-box ol, .card-content ol { list-style: decimal; }
.content-box li, .card-content li {
    margin-bottom: 0.3rem; /* Increased spacing */
    padding-left: 0.8rem; /* Slight indent for content */
    line-height: 1.6;
}
/* Specific style for stakeholders list */
.card-content.stakeholders ul { list-style: none !important; padding-left: 0; }
.card-content.stakeholders li { padding-left: 1.5rem; position: relative; }
.card-content.stakeholders li:before {
    content: "→"; position: absolute; left: 0; top: 0; color: var(--secondary-color);
}
.card-content.stakeholders li:has(> a > i.fas):before { content: none !important; }

/* Grid Layouts */
.integration-grid, .framework-grid, .definitions-grid,
.risk-components-grid, .velocity-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.framework-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.velocity-types-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* Links within content */
.content-box a, .card-content a, .note-box a {
    color: var(--secondary-color);
    font-weight: 500;
}
.content-box a:hover, .card-content a:hover, .note-box a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Download button (general, if used outside hero) */
.download-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--download-btn-bg);
    color: var(--download-btn-text) !important;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: center;
}
.download-btn:hover {
    opacity: 0.9;
    background-color: var(--download-btn-hover-bg); /* Use hover variable */
    color: var(--download-btn-text) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}
footer p { margin: 0.25rem 0; }
footer a { color: var(--footer-text); text-decoration: underline; }
footer a:hover { color: var(--secondary-color); }
footer .attribution { font-size: 0.85em; opacity: 0.8; margin-top: 0.5rem; }

/* Emphasis box */
.emphasis-box {
    background: var(--important-info-bg);
    color: white !important;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    max-width: 1000px;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--card-shadow);
}
.emphasis-box p { margin-bottom: 1rem; line-height: 1.5; }
.emphasis-box p:last-child { margin-bottom: 0; }
.emphasis-box a { color: white !important; text-decoration: underline !important; font-weight: bold; }
.emphasis-box a:hover { opacity: 0.9; }

/* Clusters Overview Section (Homepage Grid) */
.clusters-overview {
    padding: 3rem 2rem;
    background-color: var(--mission-bg);
}
.clusters-overview .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.clusters-overview h2 { text-align: center; margin-bottom: 1rem; }
.clusters-overview .section-subtitle {
    text-align: center; color: var(--text-color); max-width: 800px;
    margin: 0 auto 2.5rem auto; font-size: 1.1rem; opacity: 0.9;
}
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.cluster-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border: 1px solid var(--border-color); /* Added subtle border */
}
.cluster-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    color: inherit;
    border-color: var(--secondary-color); /* Accent border on hover */
}
.cluster-card .card-icon { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 0.75rem; line-height: 1; }
.cluster-card .card-icon i { display: inline-block; }
.cluster-card .card-number {
    position: absolute; top: 8px; left: 8px; background-color: var(--primary-color);
    color: var(--nav-text); border-radius: 50%; width: 28px; height: 28px;
    font-size: 0.8rem; font-weight: bold; display: flex; justify-content: center;
    align-items: center; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cluster-card .card-title { font-size: 1rem; color: var(--primary-color); margin: 0 0 0.5rem 0; font-weight: 600; }
.cluster-card .card-hover-text {
    position: absolute; bottom: 0; left: 0; right: 0;
    background-color: rgba(44, 62, 80, 0.95); /* Darker, more opaque */
    color: white; padding: 0.6rem 0.5rem; font-size: 0.85rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; margin: 0; line-height: 1.3;
}
.cluster-card:hover .card-hover-text { opacity: 1; visibility: visible; }

/* General Image Styles */
img { max-width: 100%; height: auto; display: block; }
.content-container img, .card-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 1.5rem auto;
}

/* Icon Link Styling */
a > i.fas, a > i.fa-brands, a > i.fa-solid {
    margin-left: 0.4em; font-size: 0.9em; vertical-align: middle;
    color: var(--secondary-color); transition: color 0.3s ease; display: inline-block;
}
a:hover > i.fas, a:hover > i.fa-brands, a:hover > i.fa-solid { color: var(--primary-color); }
.emphasis-box a i.fas, .emphasis-box a i.fa-brands, .emphasis-box a i.fa-solid { color: white !important; }
.emphasis-box a:hover i.fas, .emphasis-box a:hover i.fa-brands, .emphasis-box a:hover i.fa-solid { opacity: 0.9; color: white !important; }

/* Note Box */
.note-box {
    background: var(--card-bg); padding: 1.5rem; border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color); margin-top: 2rem; box-shadow: var(--card-shadow);
}
.note-box strong { color: var(--primary-color); }

/* Example Table */
.example-table {
    overflow-x: auto; margin: 2rem 0; background: var(--card-bg);
    border-radius: var(--border-radius); box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
}
.example-table table { width: 100%; border-collapse: collapse; }
.example-table th, .example-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.example-table th { background: var(--primary-color); color: white; border-bottom-width: 2px;}
.example-table tr:last-child td { border-bottom: none; }
.example-table tr:hover { background-color: rgba(0,0,0,0.03); }
:root[data-theme="dark"] .example-table tr:hover { background-color: rgba(255,255,255,0.05); }

/* Scroll-to-Top Button */
#scrollToTopBtn {
    display: block; position: fixed; bottom: 20px; right: 20px; z-index: 999;
    border: none; outline: none; background-color: var(--primary-color); color: var(--nav-text);
    cursor: pointer; padding: 12px 15px; border-radius: 50%; font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease;
}
#scrollToTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollToTopBtn:hover { background-color: var(--secondary-color); }

/* Section symbols */
.section-symbol {
    list-style-type: none !important; position: relative; padding-left: 15px !important;
    margin-bottom: 8px; display: flex; align-items: flex-start;
}
.section-symbol::before {
    content: "§"; position: absolute; left: 5px; top: 0; font-weight: bold;
    color: #3498db; font-size: 24px; line-height: 1.6; display: block;
    width: 20px; height: 20px; text-align: center;
}
.section-symbol a { margin-left: 5px; }
li.section-symbol { margin-left: 0 !important; padding-left: 25px !important; }
:root[data-theme="light"] .section-symbol::before { color: #3498db; }
:root[data-theme="dark"] .section-symbol::before { color: #3498db; }
.section-symbol::before { text-shadow: 0 0 1px rgba(0,0,0,0.3); }

/* Blog Section (on homepage) */
.blog-section {
    margin-bottom: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem;
}
.blog-section h2 {
    text-align: center; margin-bottom: 2rem; font-size: 1.75rem;
    color: var(--secondary-color); font-weight: 500;
}
.blog-post {
    display: flex; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.blog-post:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.blog-image-placeholder {
    width: 200px; height: 200px; flex-shrink: 0; overflow: hidden;
    border-radius: var(--border-radius); border: 1px solid var(--border-color);
}
.blog-image-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder-bg {
     width: 100%; height: 100%; background-color: #e9ecef; display: flex;
     align-items: center; justify-content: center; color: var(--secondary-color);
     font-size: 0.9rem; text-align: center;
}
[data-theme="dark"] .placeholder-bg { background-color: #333; color: var(--secondary-color); }
.placeholder-bg::after { content: "Image Placeholder"; }
.blog-text-content { flex-grow: 1; }
.blog-text-content.full-width { flex-basis: 100%; }
.blog-meta { font-size: 0.85rem; color: var(--secondary-color); margin-bottom: 0.5rem; }
.blog-text-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.blog-text-content h3 a { color: var(--primary-color); }
.blog-text-content h3 a:hover { color: var(--secondary-color); }
.blog-text-content p { font-size: 1rem; color: var(--text-color); margin-bottom: 0; }
.blog-pagination { text-align: center; margin-top: 2rem; }
.blog-pagination a {
    font-weight: 700; padding: 0.5rem 1rem; border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.blog-pagination a:hover {
    background-color: var(--card-bg-color); text-decoration: none; border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    body { font-size: 95%; }
    .hamburger { display: flex; }
    nav ul {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: 100%; left: 0; background-color: var(--nav-bg); padding: 1rem;
        box-shadow: 0 4px 5px rgba(0,0,0,0.2); max-height: calc(100vh - 4rem);
        overflow-y: auto; gap: 0.5rem; align-items: flex-start;
    }
    nav ul.show { display: flex; }
    nav li { width: 100%; }
    nav a { padding: 0.8rem 1rem; display: block; border-bottom: none; border-radius: 4px; }
    nav a:hover, nav a.active { background-color: rgba(255, 255, 255, 0.1); color: var(--nav-text); border-bottom: none; }
    nav a.active { background-color: rgba(255, 255, 255, 0.15); }
    .theme-switch { margin: 0; padding: 0.5rem 1rem; order: 99; align-self: stretch; text-align: left; }
    #themeToggle { font-size: 1.6rem; padding: 0.5rem 0; }
    main { padding-top: 4rem; }
    .hero h1 { font-size: clamp(2rem, 6vw, 2.5rem); letter-spacing: 0.2rem; }
    .hero h2 { font-size: clamp(1.3rem, 4vw, 1.5rem); }
    .hero h3 { font-size: clamp(1rem, 3vw, 1.2rem); }
    .hero .cta-button a { width: 90%; max-width: 350px; font-size: 0.9rem; padding: 0.8rem 1rem;}
    .page-content, .stakeholders, .mission, .clusters-overview { padding: 2rem 1rem; }
    .card-container, .integration-grid, .framework-grid, .definitions-grid,
    .risk-components-grid, .velocity-types-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .content-container, .content-box, .card-content, .note-box, .intro-item, .emphasis-box { padding: 1.2rem; }
    .content-box ul, .content-box ol, .card-content ul, .card-content ol { padding-left: 1.5rem; margin-left: 0.25rem; }
    .content-box li, .card-content li { margin-bottom: 0.6rem; }
    .card-content.stakeholders li { padding-left: 1.2rem; }
    .emphasis-box { margin: 1.5rem -1rem; border-radius: 0; }
    .cluster-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
    .cluster-card { padding: 1rem 0.5rem; min-height: 140px; }
    .cluster-card .card-icon { font-size: 2rem; }
    .cluster-card .card-title { font-size: 0.9rem; }
    .cluster-card .card-hover-text { font-size: 0.8rem; padding: 0.4rem 0.3rem; }
    .cluster-card .card-number { width: 24px; height: 24px; font-size: 0.7rem; top: 5px; left: 5px; }
    img, .content-box img, .card-content img { margin: 1rem auto; border-radius: 4px; }
    footer { padding: 1rem; }
    footer p { font-size: 0.9rem; }
    .example-table { margin: 1.5rem -1rem; border-radius: 0; border-left: none; border-right: none; }
    .example-table table { min-width: 600px; }
    .blog-post { flex-direction: column; }
    .blog-image-placeholder { width: 100%; height: 200px; margin-bottom: 1rem; }
    #scrollToTopBtn { bottom: 15px; right: 15px; padding: 10px 13px; font-size: 1rem; }
}

@media (max-width: 480px) {
    body { font-size: 90%; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2rem); }
    .hero h2 { font-size: clamp(1.1rem, 5vw, 1.3rem); }
    .hero h3 { font-size: clamp(0.9rem, 4vw, 1.1rem); }
    .cluster-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-item { padding: 1rem; }
    .intro-label { min-width: 100%; }
    .content-box, .card-content, .emphasis-box { padding: 1rem; }
    .content-box ul, .content-box ol, .card-content ul, .card-content ol { padding-left: 1.25rem; }
}

/* ==========================
   PRINT STYLES
   ========================== */
@media print {
    body {
        font-family: 'Times New Roman', Times, serif;
        font-size: 12pt;
        line-height: 1.4;
        background-color: #fff !important;
        color: #000 !important;
        padding-top: 0 !important;
        margin: 0.75in; /* Adjusted margins for better fit */
    }

    nav,
    .hero .cta-button,
    .hamburger,
    #themeToggle,
    .theme-switch,
    .podcast-player,
    #scrollToTopBtn,
    .popup-overlay,
    .emphasis-box,
    .blog-pagination,
    .intro-item .cluster-card h2, /* Hide "Why?" and "Learn More" decorative headers in print */
    .intro-item .podcast-player,
    .cluster-card .card-number, /* Hide card numbers in print */
    .cluster-card .card-hover-text /* Hide hover text on cluster cards */
    {
        display: none !important;
    }

    main {
        padding-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-content, .content-container, .content-box, .card, .card-content,
    .mission, .clusters-overview, .hero /* Apply to hero as well for consistency */
    {
        background-color: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: none !important; /* Remove borders in print for cleaner look */
        padding: 0 !important;
        margin: 0 0 1rem 0 !important; /* Reduced bottom margin */
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero { min-height: auto !important; padding: 1rem 0 !important; } /* Reset hero for print */
    .hero h1 { font-size: 24pt; margin-bottom: 0.5rem;}
    .hero h2 { font-size: 18pt; margin-bottom: 0.5rem;}
    .hero h3 { font-size: 14pt; margin-bottom: 1rem;}


    body.blog-page .page-content { margin: 0 auto; }
    body.blog-page .content-container { padding: 0 !important; margin: 0 !important; }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
        margin-top: 1.2rem;
        margin-bottom: 0.4rem;
    }
    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 13pt; }
    h4 { font-size: 12pt; font-weight: bold; }

    p { orphans: 3; widows: 3; font-size: 11pt; margin-bottom: 0.6rem; color: #000 !important; }

    a { color: #000 !important; text-decoration: underline !important; }
    a[href^="http"]:after, a[href^="https"]:after {
        content: " (" attr(href) ")"; font-size: 8pt; font-weight: normal; word-break: break-all;
    }
    a[href^="/"]:after, a[href^="#"]:after, .download-btn:after, .cluster-card:after,
    .blog-text-content h3 a:after, footer a:after /* Don't show URL for footer links */
    {
        content: "" !important;
    }

    ul, ol { margin-bottom: 0.8rem; padding-left: 18pt; color: #000 !important; }
    li { margin-bottom: 0.25rem; color: #000 !important; font-size: 11pt;}

    img {
        max-width: 100% !important; height: auto !important; page-break-inside: avoid;
        display: block; margin: 0.8rem auto; border: 1px solid #bbb; /* Light border for all images */
    }
    .blog-image-placeholder { border: 1px solid #bbb; }
    .placeholder-bg::after {
        content: "[Image: " attr(alt) "]" !important; display: block; padding: 1rem;
        border: 1px dashed #999; color: #555; background-color: #f0f0f0;
    }
    .blog-image-placeholder img.placeholder-bg { display: none; }
    .blog-image-placeholder:has(img.placeholder-bg) {
        border: 1px dashed #999; padding: 1rem; text-align: center;
    }
    .blog-image-placeholder:has(img.placeholder-bg)::before {
        content: "[Image: " attr(data-alt-text) "]"; color: #555; font-style: italic;
    }

    table { width: 100%; border-collapse: collapse; margin-bottom: 0.8rem; page-break-inside: auto; }
    th, td { border: 1px solid #000 !important; padding: 0.25rem 0.4rem; color: #000 !important; background-color: #fff !important; font-size: 10pt;}
    th { font-weight: bold; background-color: #eee !important; }
    tr { page-break-inside: avoid; }

    pre, code, .code-block pre {
        font-family: 'Courier New', Courier, monospace; font-size: 9pt;
        background-color: #f8f8f8 !important; border: 1px solid #ccc !important;
        padding: 0.4rem; page-break-inside: avoid; white-space: pre-wrap;
        word-wrap: break-word; color: #000 !important;
    }
    .code-block { margin-bottom: 0.8rem; }
    .code-block h3 { font-size: 10pt; margin-bottom: 0.2rem; font-weight: bold; }

    .blog-post {
        display: block !important; page-break-inside: avoid; margin-bottom: 1.5rem;
        padding-bottom: 0.8rem; border-bottom: 1px solid #ccc;
    }
    .blog-post:last-of-type { border-bottom: none; }
    .blog-text-content h1, .blog-text-content h2 { font-size: 16pt; margin-top: 0; }
    .blog-meta { font-size: 8pt; color: #555 !important; margin-bottom: 0.8rem; }

    * { box-shadow: none !important; text-shadow: none !important; border-radius: 0 !important; }
    .card-container, .integration-grid, .cluster-grid, .content-box, .card { page-break-inside: avoid; }

    /* Footer in Print - will appear at the end of the document content */
    footer {
        display: block !important;
        text-align: center;
        font-size: 9pt;
        color: #333 !important; /* Dark grey for footer text */
        margin-top: 1.5rem; /* Space before the footer */
        padding-top: 0.5rem; /* Padding above footer content */
        border-top: 1px solid #aaa !important; /* Solid separator line */
        width: 100%;
        page-break-before: auto; /* Default, try to avoid break but allow if needed */
    }
    footer p, footer a {
        color: #333 !important;
        font-size: 9pt !important;
        text-decoration: none !important; /* No underlines in print footer text */
        margin: 0.2rem 0; /* Reduced margin for footer paragraphs */
    }
    /* Note: True repeating page footers (on every page) are complex with CSS for HTML.
       This will print the footer at the end of the document.
       For repeating footers/headers like page numbers, use browser's print settings. */
}
