@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --color-navy: #003366;
    --color-gray: #5A6D80;
    --color-orange: #FF6B35;
    --color-white: #F5F5F5;
    --color-green: #2E8B57;
    --color-dark: #1F2A35;
    --max-width: 1200px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background: var(--color-white);
    color: var(--color-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--color-green);
}

.site-header {
    background: rgba(0, 51, 102, 0.94);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-orange), var(--color-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.branding strong {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03rem;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

main {
    display: block;
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-hero {
    padding: 4.5rem 0 3rem;
    background: #fff;
}

.page-hero.homepage-hero {
    background: linear-gradient(135deg, rgba(0,51,102,0.92), rgba(46,139,87,0.88)), url('https://picsum.photos/1600/900?random=72&gravity=center') center/cover no-repeat;
    color: #fff;
    padding: 7rem 0 5rem;
}

.hero-content {
    max-width: 760px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 600;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    margin: 0 0 1rem;
    line-height: 1.1;
}

.hero-summary {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-orange);
    color: #fff;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.button:hover,
.button:focus {
    background: var(--color-green);
    color: #fff;
}

.button.secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
}

.button.secondary:hover,
.button.secondary:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--color-navy);
}

.section-heading p {
    margin: 0;
    color: var(--color-gray);
}

.grid {
    display: grid;
    gap: clamp(1.5rem, 2vw, 2.5rem);
}

.grid.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    height: auto;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-category {
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-green);
}

.card-title {
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-navy);
    line-height: 1.35;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.card-excerpt {
    color: #2f3b47;
    margin: 0;
    flex-grow: 1;
}

.subscribe-bar {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0,51,102,0.9), rgba(90,109,128,0.95));
    border-radius: 18px;
    color: #fff;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.5rem;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1 1 260px;
    padding: 0.95rem 1.1rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
}

.subscribe-form button {
    flex: 0 0 auto;
}

.post-listing {
    padding: 4rem 0 3rem;
}

.filter-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

.search-filter input[type="search"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 1rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-filters label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 51, 102, 0.08);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    transition: var(--transition);
}

.category-filters label:hover {
    background: rgba(255, 107, 53, 0.18);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: var(--color-navy);
    font-weight: 600;
}

.pagination a.current {
    background: var(--color-orange);
    color: #fff;
}

.article-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(145deg, rgba(0,51,102,0.88), rgba(90,109,128,0.92));
    color: #fff;
}

.article-hero .wrapper {
    display: grid;
    gap: 2rem;
}

.article-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.article-layout {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.article-layout h2,
.article-layout h3 {
    color: var(--color-navy);
}

.article-layout p {
    color: #2f3b47;
    margin-bottom: 1.3rem;
}

.article-layout ul,
.article-layout ol {
    padding-left: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2f3b47;
}

.related-articles {
    margin-top: 3.5rem;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.sidebar-note {
    padding: 1.5rem;
    border-left: 4px solid var(--color-green);
    background: rgba(46,139,87,0.08);
    border-radius: 10px;
    margin: 2rem 0;
}

.about-page,
.faq-page,
.terms-page,
.privacy-page,
.cookies-page,
.contact-page {
    padding: 4rem 0;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.highlight-block {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.highlight-block h3 {
    margin-top: 0;
    color: var(--color-navy);
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.faq-item + .faq-item {
    margin-top: 1.5rem;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--color-navy);
}

.terms-section,
.privacy-section,
.cookies-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.terms-section + .terms-section,
.privacy-section + .privacy-section,
.cookies-section + .cookies-section {
    margin-top: 1.5rem;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.cookies-table th,
.cookies-table td {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.85rem;
    text-align: left;
    font-size: 0.95rem;
}

.cookies-table th {
    background: rgba(0,51,102,0.08);
    color: var(--color-navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--color-navy);
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--color-navy);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.site-footer {
    background: #031933;
    color: rgba(255,255,255,0.82);
    padding: 3rem 0 2.5rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav,
.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-contacts a {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}

.footer-contacts a:hover,
.footer-contacts a:focus {
    color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 2rem, 540px);
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 1.75rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.cookie-banner.active {
    display: flex;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn.accept {
    background: var(--color-orange);
    color: #fff;
}

.cookie-btn.decline {
    background: rgba(0,51,102,0.1);
    color: var(--color-navy);
}

.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
    background: var(--color-green);
}

.cookie-btn.decline:hover,
.cookie-btn.decline:focus {
    background: rgba(0,51,102,0.2);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(46,139,87,0.1);
    color: var(--color-green);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-orange);
    background: rgba(255, 107, 53, 0.08);
    border-radius: 12px;
    color: #2f3b47;
    font-style: italic;
}

.thanks-page {
    padding: 5rem 0;
    text-align: center;
}

.thanks-page h1 {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.thanks-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(3, 25, 51, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        width: min(280px, 90vw);
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.35s ease;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .site-nav.open {
        clip-path: inset(0 0 0 0);
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        position: relative;
    }

    .page-hero.homepage-hero {
        padding: 6rem 0 4rem;
    }
}

@media (max-width: 600px) {
    .hero-content {
        text-align: left;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}