/*
Theme Name: Aviationspace Theme
Author: Christian Goos
Version: 1.0.1
Text Domain: aviationspace-theme
*/
:root {
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-dark: #0b1d33;
    --surface-darker: #06111f;
    --text: #18212d;
    --muted: #5f6d7d;
    --accent: #c89a3a;
    --accent-cool: #7ea6c7;
    --border: #cfd8e3;
    --shadow: 0 14px 35px rgba(7, 19, 33, 0.12);
    --radius-lg: 24px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at top, rgba(11, 29, 51, 0.05), transparent 28%),
            linear-gradient(to bottom, #f4f7fb 0%, #eef2f6 100%);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(180deg, rgba(6, 17, 31, 0.98), rgba(11, 29, 51, 0.96));
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav a {
    color: rgba(255, 255, 255, 0.84);
    position: relative;
    padding-bottom: 3px;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav a.active::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--accent);
}

.hero,
.page-hero {
    position: relative;
    color: white;
    padding: 120px 0 96px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(6, 17, 31, 0.88), rgba(11, 29, 51, 0.62)),
            linear-gradient(rgba(6, 17, 31, 0.16), rgba(6, 17, 31, 0.16));
}

.hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.hero p,
.page-hero p {
    margin: 0 0 28px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
}

.hero-buttons,
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #b37c22);
    color: white;
    box-shadow: 0 10px 22px rgba(201, 138, 46, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-dark {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    color: white;
}

section {
    padding: 68px 0;
}

.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--surface-dark);
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card,
.feature,
.intro-box,
.contact-box,
.stat,
.author-box,
.full-image,
.info-box {
    background: var(--surface);
    border: 1px solid rgba(11, 29, 51, 0.08);
    box-shadow: var(--shadow);
}

.card,
.feature,
.intro-box,
.contact-box,
.author-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(7, 19, 33, 0.16);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.card-link .card-body {
    padding-top: 22px;
}

.card-image,
.feature-image,
.photo,
.gallery-item {
    position: relative;
    overflow: hidden;
}

.card-image::after,
.feature-image::after,
.photo::after,
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 19, 33, 0.22), rgba(7, 19, 33, 0));
}

.card-image {
    height: 230px;
    background-size: cover;
    background-position: center;
}

.card-body,
.feature-body {
    padding: 24px;
}

.card h3,
.feature-body h2,
.feature-body h3,
.contact-box h2,
.info-box h3 {
    margin-top: 0;
    color: var(--surface-dark);
    letter-spacing: -0.02em;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p,
.feature-body p,
.feature-body li,
.contact-box p,
.info-box p,
.intro-box p {
    color: var(--muted);
}

.card p {
    margin: 0;
}

.meta {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-image {
    min-height: 380px;
    background-size: cover;
    background-position: center;
}

.feature-body h2,
.feature-body h3 {
    margin-bottom: 12px;
}

.text-box,
.quote-box {
    background: linear-gradient(135deg, var(--surface-darker), var(--surface-dark));
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.text-box h2,
.quote-box h2 {
    margin-top: 0;
    color: white;
}

.text-box p,
.quote-box p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag {
    background: #e7edf4;
    color: var(--surface-dark);
    border: 1px solid rgba(11, 29, 51, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud .tag {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

.tag-sm {
    padding: 8px 12px;
    font-size: 0.84rem;
}

.tag-md {
    padding: 10px 14px;
    font-size: 0.92rem;
}

.tag-lg {
    padding: 12px 16px;
    font-size: 1rem;
}

.tag-xl {
    padding: 14px 18px;
    font-size: 1.08rem;
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    color: white;
}

.photo-strip,
.gallery {
    display: grid;
    gap: 16px;
}

.photo-strip {
    grid-template-columns: repeat(4, 1fr);
}

.gallery {
    grid-template-columns: repeat(3, 1fr);
}

.photo,
.gallery-item {
    height: 260px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
}

.photo span,
.gallery-item span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat {
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--surface-dark);
    margin-bottom: 6px;
}

.stat span {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-box {
    padding: 30px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-item {
    padding: 14px 16px;
    background: #edf3f8;
    border-radius: 14px;
    color: var(--surface-dark);
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

main {
    padding: 56px 0 32px;
}

.article-content h2 {
    margin: 42px 0 14px;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--surface-dark);
}

.article-content p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: var(--text);
}

.article-content strong {
    color: var(--surface-dark);
}

.full-image {
    margin: 34px 0;
    border-radius: 20px;
    overflow: hidden;
}

.full-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.caption {
    padding: 14px 18px;
    font-size: 0.94rem;
    color: var(--muted);
    background: #fff;
}

.info-box {
    margin: 34px 0;
    padding: 24px 26px;
    background: #edf3f8;
    border-left: 5px solid var(--accent);
    border-radius: 14px;
}

.info-box h3 {
    margin: 0 0 10px;
}

.info-box p {
    margin: 0;
}

.gallery-article {
    margin: 36px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-article .gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: auto;
    position: static;
}

.gallery-article .gallery-item::after {
    display: none;
}

.gallery-article .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-article .gallery-item div {
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--muted);
}

.author-box {
    margin: 48px 0 24px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: center;
    padding: 24px;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.pagination-nav {
    margin-top: 34px;
}

.pagination-nav .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-nav .page-numbers li {
    margin: 0;
}

.pagination-nav .page-numbers a,
.pagination-nav .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #edf3f8;
    color: var(--surface-dark);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(11, 29, 51, 0.08);
    transition: 0.18s ease;
}

.pagination-nav .page-numbers a:hover {
    background: var(--surface-dark);
    color: white;
    transform: translateY(-1px);
}

.pagination-nav .page-numbers .current {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    color: white;
    border-color: transparent;
}

.pagination-nav .page-numbers .dots {
    background: transparent;
    border: none;
    padding: 10px 4px;
    color: var(--muted);
}

.pagination-nav .page-numbers .prev,
.pagination-nav .page-numbers .next {
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-darker));
    color: white;
    border-color: transparent;
    padding-inline: 18px;
}

.pagination-nav .page-numbers .prev:hover,
.pagination-nav .page-numbers .next:hover {
    background: linear-gradient(135deg, var(--surface-darker), #02070d);
    color: white;
}

.sector-zivil {
    --accent: #c89a3a;
}

.sector-defense {
    --accent: #7ea6c7;
}

.sector-events {
    --accent: #9c7bb8;
}

.sector-space {
    --accent: #8f9fd4;
}

.sector-foto {
    --accent: #d48f6a;
}

.page-hero-photo {
    min-height: 68vh;
}

.footer {
    background: #060f1b;
    color: rgba(255, 255, 255, 0.78);
    padding: 36px 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.footer strong {
    color: #ffffff;
}

@media (max-width: 980px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .photo-strip,
    .gallery,
    .gallery-article,
    .stats {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 240px;
    }

    .card-image {
        height: 240px;
    }

    .topbar-inner {
        padding: 10px 0;
    }

    .nav {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero,
    .page-hero {
        padding: 72px 0 60px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand {
        font-size: 1.12rem;
    }

    .nav {
        gap: 10px;
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 40px 0;
    }

    .section-header h2,
    .feature-body h2,
    .contact-box h2 {
        font-size: 1.55rem;
    }

    .card-body,
    .feature-body,
    .intro-box,
    .contact-box,
    .text-box {
        padding: 18px;
    }

    .quote-box p {
        font-size: 1.08rem;
    }

    .pagination-nav {
        margin-top: 28px;
    }

    .pagination-nav .page-numbers {
        gap: 8px;
    }

    .pagination-nav .page-numbers a,
    .pagination-nav .page-numbers span {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .pagination-nav .page-numbers .prev,
    .pagination-nav .page-numbers .next {
        padding-inline: 14px;
    }

    .pagination-nav .page-numbers .dots {
        padding: 8px 2px;
    }

    .author-box {
        text-align: center;
    }

    .author-photo {
        margin: 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }
}

.single-post__wrap {
       width: min(1200px, calc(100% - 40px));
       margin: 0 auto;
       padding: 34px 0 0;
   }

.sector-wrap {
    padding-top: 34px;
}

.sector-hero {
    margin-bottom: 0;
}

.sector-feature-section,
.sector-archive-section {
    width: 100%;
}
.sector-feature-grid {
    align-items: stretch;
}

.sector-archive-grid {
    align-items: stretch;
}

.sector-feature-section .feature-image {
    min-height: 340px;
}

.sector-archive-section .section-header {
    margin: 0 0 24px;
}

.sector-archive-section {
    margin-top: 32px;
}

@media (max-width: 640px) {
    .single-post__wrap {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .sector-feature-section .feature-image {
        min-height: 220px;
    }
}
