.post-header {
    background: #031E47;
    color: #ffffff;
    padding: calc(6rem + env(safe-area-inset-top, 0px)) 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-header__content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    background: rgba(0, 223, 122, 0.2);
    color: #00DF7A;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.post-image-container {
    max-width: 1000px;
    margin: -3rem auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.post-image-container--placeholder {
    max-width: 720px;
    margin: -2rem auto 2rem;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f0f0f0;
}

.post-image--placeholder {
    aspect-ratio: auto;
    height: 220px;
    box-shadow: none;
}

.post-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #031E47 0%, #052a61 100%);
    color: rgba(255, 255, 255, 0.2);
}

.post-image-placeholder svg {
    width: 70px;
    height: 70px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.8;
    color: #333333;
}

.post-content h2 {
    color: #031E47;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
}

.post-content h3 {
    color: #031E47;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content iframe,
.post-content iframe.youtube-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.post-content iframe.youtube-embed--shorts {
    width: min(100%, 420px);
    aspect-ratio: 9 / 16;
    margin-inline: auto;
}

.post-content a {
    color: #00DF7A;
    font-weight: 600;
}

.post-content a:hover {
    color: #031E47;
}

.post-content blockquote {
    border-left: 4px solid #00DF7A;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    font-style: italic;
    color: #555555;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    min-width: 640px;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.post-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #031E47;
    white-space: nowrap;
}

.post-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 2rem 0;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
}

.post-content :not(pre) > code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #031E47;
}

.post-author {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.post-author__card {
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    align-items: start;
    background: #f8fbff;
    border: 1px solid rgba(3, 30, 71, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
}

.post-author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #031E47 0%, #0A2A5C 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
}

.post-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4b5563;
}

.post-author__name {
    margin: 0;
    color: #031E47;
    font-size: 1.15rem;
}

.post-author__name a {
    color: inherit;
    text-decoration: none;
}

.post-author__role {
    margin: 0.25rem 0 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.post-author__bio {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
}

.post-author__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.post-author__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #031E47;
    font-weight: 600;
}

.post-footer {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    color: #031E47;
    font-weight: 600;
}

.btn-back:hover {
    color: #00DF7A;
}

.post-related {
    background: #f8fafc;
    padding: 4rem 1rem;
}

.post-related__container {
    max-width: 1200px;
    margin: 0 auto;
}

.post-related__heading {
    color: #031E47;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

.post-related__card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.post-related__card a {
    display: block;
    height: 100%;
}

.post-related__image {
    background: #e2e8f0;
    min-height: 180px;
}

.post-related__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-related__body {
    padding: 1.25rem;
}

.post-related__title {
    margin: 0 0 0.75rem;
    color: #031E47;
    font-size: 1.05rem;
}

.post-related__excerpt {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-related__link {
    color: #031E47;
    font-weight: 600;
}

@media (max-width: 767px) {
    .post-author__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .post-author__avatar {
        margin: 0 auto;
    }

    .post-author__links {
        justify-content: center;
    }

    .post-related {
        padding: 3rem 1rem;
    }
}
