/* ============================================================
   BLOG (T3M COMPASS) — T3M Tours
   ============================================================ */

/* ---- Page Header ----------------------------------------- */
.blog-page-header {
    position: relative;
    padding: 190px 60px 90px;
    text-align: center;
    overflow: hidden;
}
.blog-page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}
.blog-page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,12,8,.5) 0%, rgba(15,12,8,.1) 50%, rgba(15,12,8,.9) 100%);
}
.blog-page-header-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}
.blog-page-header h1 {
    font-family: var(--ff-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    color: var(--text-light);
    margin: 14px 0 16px;
    line-height: 1.1;
}
.blog-page-header h1 em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}
.blog-page-header p {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245,240,235,.7);
}

/* ---- Listing --------------------------------------------- */
.blog-list {
    padding: 100px 60px 120px;
    background: var(--bg-dark);
}
.blog-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(245,240,235,.02);
    transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.blog-card:hover {
    border-color: rgba(192,27,27,.4);
    transform: translateY(-4px);
}
.blog-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

/* Newest post: featured, full width */
.blog-card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
}
.blog-card:first-child .blog-card-img {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 380px;
}
.blog-card:first-child .blog-card-body {
    padding: 44px 44px 44px;
    justify-content: center;
}
.blog-card:first-child h2 { font-size: 40px; }
.blog-card-body {
    padding: 28px 30px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.blog-meta-dot { color: var(--text-muted); }
.blog-meta time { color: var(--text-muted); }
.blog-card h2 {
    font-family: var(--ff-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 14px;
}
.blog-card h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.blog-card h2 a:hover { color: var(--accent); }
.blog-card-body p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.blog-read {
    margin-top: auto;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}
.blog-read span { display: inline-block; color: var(--accent); transition: transform .3s; }
.blog-read:hover span { transform: translateX(4px); }

/* ---- Single post ----------------------------------------- */
.post-body {
    padding: 80px 60px 120px;
    background: var(--bg-dark);
}
.post-container {
    max-width: 760px;
    margin: 0 auto;
}
.post-back {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.post-back:hover { color: var(--accent); }

.post-body p {
    font-size: 15px;
    line-height: 1.95;
    color: rgba(245,240,235,.72);
    margin-bottom: 20px;
}
.post-body p strong { color: var(--text-light); font-weight: 500; }
.post-body .post-lead {
    font-family: var(--ff-display);
    font-size: 26px;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 36px;
}
.post-body h2 {
    font-family: var(--ff-display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-light);
    margin: 56px 0 20px;
}
.post-body h2 em,
.post-body h3 em { color: var(--accent); font-style: italic; font-weight: 400; }
.post-body .post-accent {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin: 28px 0;
}

/* Figures */
.post-figure { margin: 36px 0; }
.post-figure img {
    width: 100%;
    border-radius: var(--radius);
}
.post-figure figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .5px;
}
.post-figure-portrait {
    float: right;
    width: 46%;
    margin: 6px 0 20px 32px;
}

/* "I learned" list */
.post-learned {
    list-style: none;
    margin: 28px 0 32px;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    clear: both;
}
.post-learned li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(245,240,235,.72);
    margin-bottom: 6px;
}
.post-learned strong { color: var(--text-light); font-weight: 500; }

/* Pull quote */
.post-pullquote {
    font-family: var(--ff-display);
    font-size: clamp(24px, 3vw, 32px);
    font-style: italic;
    line-height: 1.35;
    color: var(--text-light);
    text-align: center;
    margin: 56px 0;
    padding: 36px 20px;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    clear: both;
}

/* Stay tuned */
.post-tuned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    margin: 64px 0 48px;
    padding: 28px;
    background: var(--cream);
    border-radius: var(--radius);
    clear: both;
}
.post-tuned-text { grid-template-columns: 1fr; padding: 36px 40px; }
.post-tuned img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.post-tuned h3 {
    font-family: var(--ff-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 12px;
}
.post-body .post-tuned p { color: var(--text-body); margin-bottom: 12px; font-size: 14px; }
.post-tuned ul { list-style: none; }
.post-tuned-text ul { columns: 2; column-gap: 32px; }
.post-tuned li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 8px;
    break-inside: avoid;
}
.post-tuned li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Testimonial */
.post-testimonial {
    margin: 48px 0 0;
    padding: 40px 44px;
    background: var(--accent);
    border-radius: var(--radius);
    text-align: center;
}
.post-testimonial blockquote {
    font-family: var(--ff-display);
    font-size: 22px;
    line-height: 1.5;
    color: #fff;
}
.post-testimonial figcaption {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}
.post-testimonial figcaption::before { content: '— '; }

/* Actions + prev/next */
.post-actions {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.post-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    transition: border-color .3s, color .3s;
}
.post-pdf svg { width: 18px; height: 18px; color: var(--accent); }
.post-pdf:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-link span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}
.post-nav-link strong {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.25;
    transition: color .3s;
}
.post-nav-link:hover strong { color: var(--accent); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; max-width: 620px; }
    .blog-card:first-child { flex-direction: column; }
    .blog-card:first-child .blog-card-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
    .blog-card:first-child .blog-card-body { padding: 28px 30px 32px; }
    .blog-card:first-child h2 { font-size: 30px; }
}
@media (max-width: 768px) {
    .blog-page-header { padding: 140px 20px 60px; }
    .blog-list { padding: 60px 20px 80px; }
    .blog-card-body { padding: 24px 22px 28px; }
    .blog-card h2 { font-size: 26px; }
    .post-body { padding: 48px 20px 80px; }
    .post-body .post-lead { font-size: 22px; }
    .post-body h2 { font-size: 30px; margin-top: 44px; }
    .post-figure-portrait { float: none; width: 100%; margin: 28px 0; }
    .post-tuned { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .post-tuned-text { padding: 28px 24px; }
    .post-tuned-text ul { columns: 1; }
    .post-tuned img { min-height: 200px; }
    .post-testimonial { padding: 32px 24px; }
    .post-testimonial blockquote { font-size: 19px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { grid-column: 1; text-align: left; }
}
