.hero-navy { background: #1a2432; color: #fff; padding: 100px 5%; display: flex; justify-content: center; }
.container-flex { display: flex; max-width: 1200px; gap: 80px; align-items: center; }
.book-shadow-wrapper { box-shadow: 30px 30px 60px rgba(0,0,0,0.5); line-height: 0; }
.hero-book-cover { max-width: 380px; height: auto; border-radius: 4px; }
.editorial-title { font-family: 'Playfair Display', serif; font-size: 4rem; margin: 10px 0 30px; }
.editorial-label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; opacity: 0.7; }
.btn-editorial-buy { background: #fff; color: #1a2432; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; }
.editorial-body { background: #fdfaf6; padding: 80px 0; font-size: 1.2rem; line-height: 1.8; color: #333; }
.content-container { max-width: 700px; margin: 0 auto; }
.editorial-footer { text-align: center; padding: 60px 0; background: #fff; border-top: 1px solid #eee; }

/* ===========================
   Single Event Page
   =========================== */
body.single-event {
    background: #F4F1EA;
}

.single-event .site-main--offset {
    background: #F4F1EA;
}

.event-single-wrap {
    background: #F4F1EA;
    padding: 150px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card-shell {
    width: 100%;
    max-width: 1280px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.event-card-shell.no-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.event-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 0.5px solid rgba(45, 45, 45, 0.3);
    box-shadow:
        0 2px 0 rgba(22, 22, 22, 0.22),
        0 20px 34px rgba(96, 84, 70, 0.15),
        22px 28px 70px rgba(176, 165, 150, 0.18);
}

.event-featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.event-card-header {
    margin-bottom: 1rem;
}

.event-kicker {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6a675f;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    color: #2d2d2d;
    margin: 0.5rem 0 0;
    line-height: 1.1;
}

.event-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1.65vw, 1.32rem);
    line-height: 1.82;
    color: #3f3a32;
    margin: 1rem 0 0;
    max-width: 42ch;
}

.event-description {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.06rem, 1.3vw, 1.2rem);
    line-height: 1.82;
    color: #2f2b24;
    max-width: 56ch;
}

.event-description p {
    margin: 0 0 0.95rem;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.event-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 520px);
    gap: 36px;
    align-items: start;
    padding-top: 8px;
}

.event-left-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-meta-row {
    display: flex;
    gap: 0.72rem;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #3f362b;
}

.event-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 45, 45, 0.48);
    border-radius: 50%;
    color: #2d2d2d;
    flex-shrink: 0;
}

.event-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-location-name {
    font-weight: 600;
    color: #2d2d2d;
}

.event-location-address {
    font-size: 0.95rem;
    color: #5d584f;
}

.event-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 14px;
    background: #f4ede3;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #3f362b;
    text-decoration: none;
    width: fit-content;
}

.event-map iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .event-body-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.event-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    padding-top: 3rem;
    border-top: none;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 2rem;
    min-width: 192px;
    border-radius: 999px;
    border: 2px solid #2d2d2d;
    background: #2d2d2d;
    color: #F4F1EA;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.event-cta.secondary {
    background: #2d2d2d;
    color: #F4F1EA;
}

.event-cta:hover,
.event-cta.secondary:hover {
    background: transparent;
    color: #2d2d2d;
}

.event-map-frame {
    border: 0.5px solid rgba(45, 45, 45, 0.38);
    box-shadow:
        0 2px 0 rgba(22, 22, 22, 0.22),
        0 20px 34px rgba(96, 84, 70, 0.15),
        22px 28px 70px rgba(176, 165, 150, 0.18);
    overflow: hidden;
}

.event-back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #2d2d2d;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 45, 45, 0.35);
    padding-bottom: 0.12rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.event-back-link:hover {
    color: #4f6354;
    border-color: #2d2d2d;
}

/* ===========================
   Events archive tweaks
   =========================== */
.events-archive {
    background: #ffffff;
}

.events-archive .blog-card {
    box-shadow: none;
    transition: none;
}

.events-archive .blog-card:hover {
    transform: none;
    box-shadow: none;
}

.events-archive .blog-card-image img {
    transition: none;
    transform: none;
}

.events-archive .blog-card:hover .blog-card-image img {
    transform: none !important;
}

/* Journal/resource hubs hover */
body.post-type-archive-resource_hub .blog-card .blog-card-image img,
body.page-template-template-resource-hubs .blog-card .blog-card-image img {
    transition: transform 0.35s ease;
}
body.page-template-template-journal .blog-card .blog-card-image img {
    transition: transform 0.35s ease;
}
body.page-template-template-journal .blog-card:hover .blog-card-image img {
    transform: scale(1.035);
}
body.post-type-archive-resource_hub .blog-card:hover .blog-card-image img,
body.page-template-template-resource-hubs .blog-card:hover .blog-card-image img {
    transform: scale(1.035);
}

/* Prevent whole card from moving on hover; only the image scales */
body.page-template-template-journal .blog-card,
body.page-template-template-resource-hubs .blog-card,
body.post-type-archive-resource_hub .blog-card {
    transform: none !important;
    transition: none !important;
}

/* Ensure WooCommerce notices display when we redirect to cart/checkout quickly */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: block !important;
    margin: 16px 0;
}

.cart-link {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.site-header:not(.transparent-nav) .cart-link {
    color: #242e38;
    border: 1px solid rgba(36,46,56,0.18);
    background: rgba(36,46,56,0.06);
}

.site-header:not(.transparent-nav) .cart-link:hover {
    background: rgba(36,46,56,0.12);
    color: #242e38;
}

.site-header.transparent-nav .cart-link {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
}

.site-header.transparent-nav .cart-link:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.cart-link .cart-icon svg {
    display: block;
}

.cart-count {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    background: #ff8a3d;
    color: #0f1720;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cart-count.bump {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(255,138,61,0.22);
}

.events-archive .blog-card-content {
    padding: 18px 16px 20px;
}

.events-archive .blog-card-date {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #5a5145;
}

.events-archive .blog-card-date.location-line {
    margin-top: 4px;
    line-height: 1.35;
}

@media (max-width: 960px) {
    .event-card-body {
        grid-template-columns: 1fr;
    }
    .event-cta-row {
        flex-direction: column;
    }
    .event-cta {
        justify-content: center;
        width: 100%;
    }
}
