:root {
    --primary-color: #0d1b2a; /* Institutional Navy Blue */
    --secondary-color: #415a77; /* Muted Slate Blue */
    --accent-color: #778da9; /* Soft Neutral Blue */
    --background-color: #f0f2f5; /* Light Neutral Grey */
    --text-color: #1b263b; /* Dark Neutral Grey */
    --text-light: #e0e1dd;
    --border-color: #d6d9e0;
    --font-family: 'Roboto Slab', serif;
    --header-height: 80px;
}

/* --- BASE & RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

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

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

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- HERO --- */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    min-height: 50vh;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/9900013/pexels-photo-9900013.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940&grayscale=1');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #fff;
    max-width: 25ch;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    max-width: 60ch;
    font-weight: 300;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumbs a {
    font-weight: 700;
}

.breadcrumbs span {
    color: var(--text-color);
}


/* --- CONTENT --- */
.content-section {
    padding: 4rem 0;
    background-color: #fff;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-intro {
    font-size: 1.2rem;
    font-weight: 300;
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}
.article-image {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

.article-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.5rem;
}
.card-content p {
    font-size: 0.95rem;
    margin-bottom: auto;
    flex-grow: 1;
}

.text-link {
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
}

.related-articles {
    background-color: var(--background-color);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}
.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.image-content img {
    border-radius: 8px;
}

/* --- STRUCTURE DIAGRAM --- */
.structure-diagram {
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    text-align: center;
}
.diagram-level {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.diagram-box {
    background-color: #fff;
    border: 1px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 200px;
}
.diagram-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    line-height: 1;
}
.diagram-note {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column p, .footer-column a {
    color: var(--accent-color);
}
.footer-column a:hover {
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.disclaimer-section {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--secondary-color);
    font-size: 0.85rem;
}
.disclaimer-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--accent-color);
}

/* --- CONTACT PAGE --- */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.form-disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--background-color);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}

.button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.contact-info-container {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
}
.contact-info-container address, .contact-info-container p {
    line-height: 1.6;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    border: 1px solid var(--border-color);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- THANK YOU PAGE --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}
.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.thank-you-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}
.thank-you-section p {
    color: var(--secondary-color);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}
#cookie-banner a {
    color: #fff;
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
#cookie-banner button {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    border: 1px solid var(--accent-color);
    font-family: var(--font-family);
}
#cookie-banner button.decline {
    background-color: transparent;
    color: var(--accent-color);
}
#cookie-banner button.decline:hover {
    background-color: rgba(255,255,255,0.1);
}
#cookie-banner button {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
#cookie-banner button:hover {
    background-color: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .main-nav a {
        font-size: 1.5rem;
        color: var(--text-light);
    }
    .main-nav a:hover,
    .main-nav a.active {
        color: #fff;
        border-bottom-color: var(--accent-color);
    }

    .mobile-nav-toggle {
        display: block;
    }
    .mobile-nav-toggle.active .hamburger {
        background: transparent;
    }
    .mobile-nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
         background: var(--primary-color);
    }
    .mobile-nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
         background: var(--primary-color);
    }
    .nav-open .mobile-nav-toggle.active .hamburger::before,
    .nav-open .mobile-nav-toggle.active .hamburger::after {
         background: #fff;
    }

    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}