/* --- Global Styles & Variables --- */
:root {
    --primary-bg: #0a4c6a; /* Dark Blue/Teal */
    --secondary-bg: #4ba3c3; /* Light Blue */
    --text-color: #000000; /* Black for text */
    --highlight-color: #4ba3c3; /* Light Blue for accents */
    --card-bg: rgba(255, 255, 255, 0.9); /* Light background for cards */
    --border-color: rgba(10, 76, 106, 0.2); /* Subtle borders */
    --link-hover-color: #0a4c6a; /* Dark Blue/Teal for hover */
    --light-gray: #f5f5f5; /* Light Gray */

    --font-primary: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background-image: linear-gradient(to bottom, #ffffff, var(--light-gray));
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-bg);
}

h1 {
    font-size: 2.5rem; /* Responsive adjustments below */
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-bg);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.75rem;
}

strong {
    font-weight: 700;
    color: var(--primary-bg);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.highlight {
    color: var(--highlight-color);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}
.logo:hover,
.logo:focus {
    color: var(--light-gray);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--light-gray);
    text-decoration: none;
}

.mobile-nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
}

.mobile-nav-toggle .icon-hamburger,
.mobile-nav-toggle .icon-close {
    fill: #ffffff;
    width: 1.5em;
    height: 1.5em;
}

.mobile-nav-toggle .icon-close {
    display: none;
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background-color: var(--primary-bg);
    text-align: center;
    position: relative;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 76, 106, 0.7); /* Dark overlay */
    z-index: 1;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero .intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--link-hover-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Highlights Section --- */
.highlights-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-bg);
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--highlight-color);
}

.learn-more:hover {
    color: var(--primary-bg);
}

/* --- Snippets Section --- */
.snippets-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.snippets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.snippet-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.snippet-card h4 {
    color: var(--primary-bg);
    margin-bottom: 0.5rem;
}

/* --- Generic Page Content --- */
.page-content {
    padding: 3rem 0;
    background-color: #ffffff;
}

.page-content .container {
    max-width: 900px;
}

.page-content section {
    margin-bottom: 2.5rem;
}

.page-content .inline-link {
    font-weight: 600;
}

.page-content .benefit {
    background-color: rgba(75, 163, 195, 0.1);
    border-left: 4px solid var(--highlight-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-style: italic;
}

.page-content .important-note {
    font-weight: 600;
    color: var(--primary-bg);
}

.references {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.references h3 {
    font-size: 1.1rem;
    color: var(--primary-bg);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #ffffff;
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer nav a {
    color: #ffffff;
    margin: 0 0.5rem;
}

footer nav a:hover,
footer nav a:focus {
    color: var(--light-gray);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .nav-links {
        position: fixed;
        inset: 0 0 0 30%; /* Slide in from right */
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 1.5em;
        background: var(--primary-bg);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .nav-links[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        top: 1.5rem;
        right: 1.5rem;
        background: transparent;
        border: 0;
        padding: 0.5em;
        cursor: pointer;
    }

    .mobile-nav-toggle svg {
        width: 1.5em;
        height: 1.5em;
        fill: #ffffff;
    }

    .mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
        display: none;
    }
    .mobile-nav-toggle[aria-expanded="false"] .icon-close {
        display: none;
    }

    .highlights-grid,
    .snippets-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .hero .intro { font-size: 1rem; }
    .cta-button { padding: 0.7rem 1.5rem; }
}
