@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --navy:   #2D6283;
    --accent: #e8a020;
    --light:  #f8f6f1;
    --card-bg:#ffffff;
    --muted:  #6b7280;
    --border: #e9e4db;
    --text:   #1f2937;
}

/* ── Banner ── */
.blog-banner {
    background: var(--navy);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(232,160,32,.12) 0%, transparent 70%);
    pointer-events: none;
}

.blog-banner .banner-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.blog-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}

.blog-banner p {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,.6);
    font-size: 16px;
    max-width: 480px;
}

/* ── Grid Section ── */
.blog-section {
    background: var(--light);
    padding: 72px 0 96px;
}

/* ── Card ── */
.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(15,31,61,.06);
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(15,31,61,.13);
}

/* Image wrapper */
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 230px;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.06);
}

/* Date badge on image */
.blog-date-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15,31,61,.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .3px;
}

.blog-date-badge svg {
    opacity: .75;
    flex-shrink: 0;
}

/* Card body */
.blog-card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 22px;
}

/* Read more button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border: 2px solid var(--navy);
    border-radius: 8px;
    padding: 9px 20px;
    align-self: flex-start;
    transition: background .2s, color .2s, gap .2s;
}

.btn-read-more:hover {
    background: var(--navy);
    color: #fff;
    gap: 12px;
    text-decoration: none;
}

.btn-read-more svg {
    transition: transform .2s;
}

.btn-read-more:hover svg {
    transform: translateX(3px);
}

/* Empty state */
.blogs-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
}

.blogs-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 10px;
}

/* Pagination */
.blog-pagination .page-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px !important;
    margin: 0 3px;
    padding: 8px 14px;
    transition: background .2s, color .2s;
}

.blog-pagination .page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.blog-pagination .page-link:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Stagger animation */
.blog-card-col {
    animation: fadeUp .5s ease both;
}

.blog-card-col:nth-child(1) { animation-delay: .05s; }
.blog-card-col:nth-child(2) { animation-delay: .12s; }
.blog-card-col:nth-child(3) { animation-delay: .19s; }
.blog-card-col:nth-child(4) { animation-delay: .26s; }
.blog-card-col:nth-child(5) { animation-delay: .33s; }
.blog-card-col:nth-child(6) { animation-delay: .40s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ── Hero ── */
.blog-hero {
    position: relative;
    height: clamp(340px, 52vw, 560px);
    overflow: hidden;
    background: var(--navy);
}

.blog-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,31,61,.92) 0%, rgba(15,31,61,.3) 60%, transparent 100%);
}

.blog-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 0 48px;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
}

.blog-hero-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(232,160,32,.12);
    border: 1px solid rgba(232,160,32,.3);
    padding: 5px 14px;
    border-radius: 20px;
}

.blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    max-width: 760px;
}

/* ── Main layout ── */
.blog-body-section {
    background: var(--light);
    padding: 64px 0 96px;
}

/* ── Article card ── */
.blog-article-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 48px 52px;
    box-shadow: 0 2px 16px rgba(15,31,61,.06);
}

.blog-short-desc {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.75;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 36px;
    font-style: italic;
}

.blog-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.blog-content {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    line-height: 1.85;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.blog-content h2 { font-size: 26px; }
.blog-content h3 { font-size: 22px; }

.blog-content p {
    margin-bottom: 20px;
}

.blog-content img {
    border-radius: 12px;
    max-width: 100%;
    margin: 28px 0;
    box-shadow: 0 4px 24px rgba(15,31,61,.1);
}

.blog-content ul,
.blog-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent);
    background: #fdf8ee;
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 28px 0;
    font-style: italic;
    color: var(--navy);
    font-size: 17px;
}

.blog-content a {
    color: var(--navy);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.blog-tag {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 5px 14px;
    letter-spacing: .3px;
    transition: background .2s, color .2s;
    cursor: default;
}

.blog-tag:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ── Sticky sidebar ── */
.blog-sidebar {
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 28px 26px;
    box-shadow: 0 2px 12px rgba(15,31,61,.05);
    margin-bottom: 24px;
}

.sidebar-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Share buttons */
.share-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    transition: background .2s, border-color .2s;
}

.share-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    text-decoration: none;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    margin-bottom: 32px;
    opacity: .75;
    transition: opacity .2s, gap .2s;
}

.back-link:hover {
    opacity: 1;
    gap: 4px;
    text-decoration: none;
    color: var(--navy);
}

/* ── Recommended ── */
.recommended-section {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 72px 0 88px;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 48px;
}

/* Recommended card */
.rec-card {
    background: var(--light);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}

.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(15,31,61,.11);
}

.rec-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.rec-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.rec-card:hover .rec-card-img-wrap img {
    transform: scale(1.06);
}

.rec-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15,31,61,.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rec-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rec-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.btn-rec-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color .2s, gap .2s;
}

.btn-rec-read:hover {
    color: var(--accent);
    gap: 10px;
    text-decoration: none;
}

/* Animations */
.fade-in-up {
    animation: fadeUp .55s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .blog-article-card { padding: 28px 22px; }
    .blog-sidebar { position: static; margin-top: 40px; }
}