/* Blog layout & cards (uses site-wide fixed header from style.css) */

:root {
    --blog-gold: #c38c34;
    --blog-gold-light: #e2c169;
    --blog-navy: #000435;
    --blog-cream: #f8f6f2;
    --blog-cream-dark: #efe9df;
}

/* ─── Hero banner ─── */

.blog-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 5rem 0 5.5rem;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(0, 4, 53, 0.94) 0%, rgba(26, 35, 50, 0.9) 45%, rgba(60, 45, 37, 0.92) 100%),
        url("../images/bg-contact.webp") center center / cover no-repeat;
    overflow: hidden;
}

.blog-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(195, 140, 52, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(226, 193, 105, 0.1) 0%, transparent 35%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    pointer-events: none;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(195, 140, 52, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

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

.blog-hero-eyebrow {
    display: inline-block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blog-gold-light);
    margin-bottom: 1rem;
    padding: 0.35rem 1.25rem;
    border: 1px solid rgba(226, 193, 105, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
}

.blog-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.blog-hero h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 1.25rem auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--blog-gold), var(--blog-gold-light), transparent);
    border-radius: 2px;
}

.blog-hero p {
    max-width: 580px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.blog-hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--blog-cream);
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 2;
}

.blog-hero-curve--light {
    background: #fff;
}

/* ─── Category filters ─── */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0.5rem;
}

.blog-filter-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-filter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-filter-btn.active {
    background: linear-gradient(135deg, var(--blog-gold) 0%, var(--blog-gold-light) 100%);
    border-color: transparent;
    color: var(--blog-navy);
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(195, 140, 52, 0.4);
}

/* ─── Grid section ─── */

.blog-grid-section {
    position: relative;
    padding: 2rem 0 5.5rem;
    background: var(--blog-cream);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(195, 140, 52, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(0, 4, 53, 0.04) 0%, transparent 30%);
}

.blog-section-head {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 0.5rem;
}

.blog-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--blog-navy);
    margin-bottom: 0.75rem;
}

.blog-section-line {
    width: 64px;
    height: 3px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, var(--blog-gold), var(--blog-gold-light));
    border-radius: 2px;
}

.blog-section-desc {
    max-width: 480px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.5;
}

/* ─── Blog cards ─── */

.blog-card-public {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 4, 53, 0.06);
    box-shadow:
        0 4px 6px rgba(0, 4, 53, 0.04),
        0 12px 40px rgba(0, 4, 53, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-public:hover {
    transform: translateY(-10px);
    box-shadow:
        0 8px 16px rgba(0, 4, 53, 0.06),
        0 24px 56px rgba(0, 4, 53, 0.12);
}

.blog-card-media {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 4, 53, 0.55) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.blog-card-public:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-card-public:hover .blog-card-media-overlay {
    opacity: 0.85;
}

.blog-card-body {
    padding: 1.75rem 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.blog-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blog-gold);
    padding: 0.25rem 0.65rem;
    background: rgba(195, 140, 52, 0.12);
    border-radius: 4px;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.blog-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blog-navy);
    margin-bottom: 0.75rem;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-public:hover .blog-card-title a {
    color: var(--blog-gold);
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--blog-navy);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--blog-cream-dark);
    transition: color 0.25s ease, gap 0.25s ease;
}

.blog-read-more i {
    transition: transform 0.25s ease;
}

.blog-read-more:hover {
    color: var(--blog-gold);
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* ─── Empty state ─── */

.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 24px;
    border: 1px dashed rgba(195, 140, 52, 0.35);
    max-width: 520px;
    margin: 2rem auto 0;
}

.blog-empty i {
    color: var(--blog-gold) !important;
    opacity: 0.5 !important;
}

.blog-empty h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--blog-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-empty p {
    color: #64748b;
    font-size: 1rem;
}

/* ─── Single post ─── */

.blog-single-hero {
    position: relative;
    min-height: 380px;
    background: var(--blog-navy);
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}

.blog-single-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.blog-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 4, 53, 0.95) 0%,
        rgba(0, 4, 53, 0.6) 45%,
        rgba(0, 4, 53, 0.35) 100%
    );
    z-index: 1;
}

.blog-single-hero .container {
    position: relative;
    z-index: 2;
    padding: 3rem 0 1rem;
    color: #fff;
}

.blog-single-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blog-gold-light);
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(226, 193, 105, 0.5);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.blog-single-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 700;
    max-width: 820px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.blog-single-meta {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.blog-single-meta-divider {
    opacity: 0.6;
}

.blog-single-wrap {
    padding-top: 0.5rem;
}

.blog-single-lead {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.6;
    color: #475569;
    border-left: 4px solid var(--blog-gold);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.blog-single-content {
    padding: 3rem 0 2rem;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #334155;
}

.blog-single-content h4,
.blog-single-content h3,
.blog-block-heading {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--blog-navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-single-content p,
.blog-block-text {
    margin-bottom: 1.25rem;
}

.blog-single-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 12px 40px rgba(0, 4, 53, 0.1);
}

.blog-single-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--blog-cream);
    border-left: 4px solid var(--blog-gold);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.blog-single-footer {
    padding-bottom: 4rem;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: var(--blog-navy);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 4, 53, 0.2);
}

.blog-back-btn:hover {
    background: linear-gradient(135deg, var(--blog-gold), var(--blog-gold-light));
    color: var(--blog-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(195, 140, 52, 0.35);
}

.blog-not-found-wrap {
    padding: 3rem 1rem 4rem;
}

/* ─── Responsive ─── */

@media (max-width: 767.98px) {
    .blog-hero {
        min-height: 360px;
        padding: 3.5rem 0 4.5rem;
    }

    .blog-hero-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .blog-hero p {
        font-size: 1.15rem;
    }

    .blog-card-body {
        padding: 1.35rem;
    }

    .blog-section-head {
        margin-bottom: 2rem;
    }
}
