/* ==========================================================================
   Blog Page – v2.0
   ========================================================================== */

:root {
    /* Colors */
    --blog-dark: #070a1d;
    --blog-bg-light: #f1f1f1;
    --blog-bg-white: #ffffff;
    --blog-text: #303030;
    --blog-text-secondary: #616161;
    --blog-text-white: #ffffff;
    --blog-border: #e3e3e3;
    --blog-border-dark: #4a4a4a;
    --blog-border-sidebar: #8a8a8a;
    --blog-card-bg: #f8f7ff;
    --blog-gradient-from: #779dff;
    --blog-gradient-to: #2d68ff;
    --blog-separator-from: #4f515f;
    --blog-separator-to: #0e101e;
    --blog-pagination-border: #1a1a1a;

    /* Sizes */
    --blog-content-width: 1120px;
    --blog-sidebar-width: 323px;
    --blog-card-gap: 30px;
    --blog-section-gap: 60px;

    /* Font sizes */
    --blog-font-hero-title: 46px;
    --blog-font-hero-subtitle: 18px;
    --blog-font-section-title: 32px;
    --blog-font-journal-title: 40px;
    --blog-font-card-category: 14px;
    --blog-font-card-title: 22px;
    --blog-font-card-meta: 16px;
    --blog-font-nav: 16px;
    --blog-font-pagination: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.blog-hero {
    background-color: var(--blog-dark);
    background-image: url("../images/about/hero-bg.png");
    background-size: cover;
    background-position: center;
}

.blog-hero__inner {
    max-width: var(--blog-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 212px;
    padding: 0 16px;
}

.blog-hero__content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.blog-hero__title {
    font-weight: 900;
    font-size: var(--blog-font-hero-title);
    line-height: 64px;
    color: #fff;
    margin: 0;
}

.blog-hero__subtitle {
    font-weight: 400;
    font-size: var(--blog-font-hero-subtitle);
    line-height: normal;
    color: #fff;
    margin: 0;
    max-width: 640px;
}

/* Tall variant (updates page) */
.blog-hero--tall .blog-hero__inner {
    height: 360px;
}

/* ==========================================================================
   Category Nav
   ========================================================================== */

.blog-catnav {
    background-color: var(--blog-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-catnav__inner {
    max-width: var(--blog-content-width);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--blog-border-dark);
}

.blog-catnav__links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-catnav__link {
    font-weight: 600;
    font-size: var(--blog-font-nav);
    line-height: 26px;
    color: var(--blog-text);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.blog-catnav__link:hover {
    opacity: 0.7;
}

.blog-catnav__link--active {
    background: linear-gradient(to bottom, var(--blog-gradient-from), var(--blog-gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-catnav__search {
    position: relative;
    width: 301px;
}

.blog-catnav__search-input {
    width: 100%;
    background: var(--blog-bg-white);
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    padding: 10px 44px 10px 16px;
    font-family: inherit;
    font-size: var(--blog-font-nav);
    line-height: 26px;
    color: var(--blog-text);
    outline: none;
    box-sizing: border-box;
}

.blog-catnav__search-input::placeholder {
    color: var(--blog-text-secondary);
}

.blog-catnav__search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-text-secondary);
    transition: color 0.2s;
}

.blog-catnav__search-btn:hover {
    color: var(--blog-text);
}

.blog-catnav__search-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Editor's Pick
   ========================================================================== */

.blog-editors {
    background-color: var(--blog-bg-light);
    padding: 60px 0;
}

.blog-editors__inner {
    max-width: var(--blog-content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 16px;
}

.blog-editors__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-editors__title {
    font-weight: 800;
    font-size: var(--blog-font-section-title);
    line-height: normal;
    color: var(--blog-text);
    margin: 0;
}

.blog-editors__nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.blog-editors__nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--blog-text);
    transition: opacity 0.2s;
}

.blog-editors__nav-btn:hover {
    opacity: 0.6;
}

.blog-editors__nav-btn--prev svg {
    transform: rotate(180deg);
}

.blog-editors__cards {
    display: flex;
    gap: var(--blog-card-gap);
    overflow: hidden;
    scroll-behavior: smooth;
}

.blog-editors__cards .blog-card {
    flex: 0 0 calc((100% - 2 * var(--blog-card-gap)) / 3);
    min-width: calc((100% - 2 * var(--blog-card-gap)) / 3);
}

/* ==========================================================================
   Blog Card
   ========================================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    overflow: hidden;
}

.blog-card:hover .blog-card__title {
    opacity: 0.7;
}

.blog-card__image {
    aspect-ratio: 356 / 201;
    background-color: var(--blog-card-bg);
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #282828;
}

.blog-card__image--fallback .blog-card__logo {
    width: auto;
    height: auto;
    max-width: 120px;
    object-fit: contain;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card__category {
    font-weight: 700;
    font-size: var(--blog-font-card-category);
    line-height: normal;
    background: linear-gradient(to bottom, var(--blog-gradient-from), var(--blog-gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.blog-card__title {
    font-weight: 500;
    font-size: var(--blog-font-card-title);
    line-height: 30px;
    color: var(--blog-text);
    margin: 0;
    transition: opacity 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card__author,
.blog-card__readtime {
    font-weight: 400;
    font-size: var(--blog-font-card-meta);
    line-height: 26px;
    color: var(--blog-text-secondary);
    white-space: nowrap;
}

.blog-card__date {
    font-weight: 400;
    font-size: var(--blog-font-card-meta);
    line-height: 26px;
    color: var(--blog-text-secondary);
    white-space: nowrap;
}

.blog-card__separator {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: linear-gradient(104deg, var(--blog-separator-from) 0%, var(--blog-separator-to) 90%);
    flex-shrink: 0;
}

/* ==========================================================================
   The Journal
   ========================================================================== */

.blog-journal {
    background-color: var(--blog-bg-white);
    padding: 60px 0 80px;
}

.blog-journal__inner {
    max-width: var(--blog-content-width);
    margin: 0 auto;
    display: flex;
    gap: var(--blog-section-gap);
    align-items: flex-start;
    padding: 0 16px;
}

/* Sidebar */
.blog-journal__sidebar {
    width: var(--blog-sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 68px;
    background-color: var(--blog-bg-white);
    padding-bottom: 12px;
}

.blog-journal__sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-journal__sidebar-title {
    font-weight: 900;
    font-size: var(--blog-font-journal-title);
    line-height: normal;
    color: var(--blog-text);
    margin: 0;
}

.blog-journal__sidebar-subtitle {
    font-weight: 400;
    font-size: var(--blog-font-card-meta);
    line-height: 26px;
    color: var(--blog-text);
    margin: 0;
}

/* Sidebar search */
.blog-journal__search {
    position: relative;
    width: 100%;
}

.blog-journal__search-input {
    width: 100%;
    background: var(--blog-bg-white);
    border: 1px solid var(--blog-border-sidebar);
    border-radius: 12px;
    padding: 10px 44px 10px 16px;
    font-family: inherit;
    font-size: var(--blog-font-nav);
    line-height: 26px;
    color: var(--blog-text);
    outline: none;
    box-sizing: border-box;
}

.blog-journal__search-input::placeholder {
    color: var(--blog-text-secondary);
}

.blog-journal__search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-text-secondary);
    transition: color 0.2s;
}

.blog-journal__search-btn:hover {
    color: var(--blog-text);
}

.blog-journal__search-icon {
    width: 20px;
    height: 20px;
}

/* Sidebar filter links */
.blog-journal__filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-journal__filter-link {
    font-weight: 500;
    font-size: var(--blog-font-nav);
    line-height: 26px;
    color: var(--blog-text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-journal__filter-link:hover {
    opacity: 0.7;
}

.blog-journal__filter-link--active {
    background: linear-gradient(to bottom, var(--blog-gradient-from), var(--blog-gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid */
.blog-journal__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--blog-section-gap);
    align-items: center;
}

.blog-journal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--blog-card-gap) var(--blog-card-gap);
    row-gap: var(--blog-section-gap);
    width: 100%;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.blog-pagination {
    display: flex;
    align-items: center;
    gap: 11px;
    align-self: flex-start;
}

.blog-pagination__item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 400;
    font-size: var(--blog-font-pagination);
    line-height: normal;
    color: var(--blog-text);
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-pagination__item:hover {
    border-color: var(--blog-border);
}

.blog-pagination__item--active {
    border-color: var(--blog-pagination-border);
}

.blog-pagination__item--arrow {
    color: var(--blog-text);
}

.blog-pagination__item--arrow svg {
    width: 20px;
    height: 20px;
}

.blog-pagination__item--disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.blog-journal__empty {
    text-align: center;
    padding: 60px 0;
    color: var(--blog-text-secondary);
    font-size: var(--blog-font-card-meta);
    grid-column: 1 / -1;
}

/* ==========================================================================
   Blog Detail – Hero
   ========================================================================== */

.blogd-hero {
    background-color: var(--blog-dark);
    background-image: url("../images/about/hero-bg.png");
    background-size: cover;
    background-position: center;
}

.blogd-hero__inner {
    max-width: var(--blog-content-width);
    margin: 0 auto;
    height: 193px;
    padding: 0 16px;
}

/* ==========================================================================
   Blog Detail – Header Card
   ========================================================================== */

.blogd-header__container {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    top: -150px;
    margin-bottom: -150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blogd-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-text-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    transition: opacity 0.2s;
}

.blogd-header__back:hover {
    opacity: 0.7;
}

.blogd-header__back svg {
    flex-shrink: 0;
}

.blogd-header {
    background-color: var(--blog-bg-white);
    border-radius: 16px;
    max-width: var(--blog-content-width);
    position: relative;
    z-index: 1;
    padding: 30px;
}

.blogd-header__inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blogd-header__info {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blogd-header__meta {
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--blog-text-secondary);
    margin: 0;
}

.blogd-header__meta a {
    color: var(--blog-text-secondary);
    text-decoration: none;
}

.blogd-header__meta a:hover {
    text-decoration: underline;
}

.blogd-header__title {
    font-weight: 800;
    font-size: 36px;
    line-height: 50px;
    color: var(--blog-text);
    margin: 0;
}

.blogd-header__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blogd-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blogd-header__author-info {
    display: flex;
    flex-direction: column;
}

.blogd-header__author-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
}

.blogd-header__author-role {
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--blog-text-secondary);
}

.blogd-header__image {
    flex: 1;
    min-width: 0;
    height: 306px;
    border-radius: 12px;
    overflow: hidden;
}

.blogd-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blogd-header__image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #282828;
}

.blogd-header__image-fallback img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Blog Detail – Content Area
   ========================================================================== */

.blogd-content {
    background-color: var(--blog-bg-white);
    padding: 40px 0 60px;
}

.blogd-content__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    gap: 90px;
    align-items: flex-start;
    padding: 0 16px;
}

/* Sidebar */
.blogd-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blogd-sidebar__toc-title {
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: var(--blog-text);
    margin: 0 0 16px;
}

.blogd-sidebar__toc-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blogd-sidebar__toc-links a {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.blogd-sidebar__toc-links a:hover,
.blogd-sidebar__toc-links a.is-active {
    color: var(--blog-text);
}

.blogd-sidebar__share-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
    margin: 0 0 12px;
}

.blogd-sidebar__share-icons {
    display: flex;
    gap: 10px;
}

.blogd-share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--blog-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-text);
    text-decoration: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, color 0.2s;
    position: relative;
    font-family: inherit;
}

.blogd-share-icon:hover {
    border-color: var(--blog-text);
}

.blogd-share-icon__tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--blog-text);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.blogd-share-icon--copy.is-copied .blogd-share-icon__tooltip {
    opacity: 1;
}

/* Article body */
.blogd-body {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* ==========================================================================
   Blog Detail – Author Bio
   ========================================================================== */

.blogd-author {
    background-color: var(--blog-bg-white);
    padding: 0 0 40px;
}

.blogd-author__inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 16px;
    border-top: 1px solid var(--blog-border-dark);
    border-bottom: 1px solid var(--blog-border-dark);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blogd-author__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blogd-author__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blogd-author__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blogd-author__name {
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
    color: var(--blog-text);
}

.blogd-author__role {
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--blog-text-secondary);
}

.blogd-author__bio {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
    margin: 0;
}

.blogd-author__socials {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   Blog Detail – Recommended Reads
   ========================================================================== */

.blogd-recommended {
    padding: 20px 0 80px;
}

.blogd-recommended__inner {
    max-width: var(--blog-content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 16px;
}

.blogd-recommended__title {
    font-weight: 600;
    font-size: 32px;
    line-height: normal;
    color: var(--blog-text);
    margin: 0;
    text-align: center;
}

.blogd-recommended__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--blog-card-gap);
}

/* ==========================================================================
   Blog Detail – Custom Content Blocks
   ========================================================================== */

/* ---------- TL;DR Block ---------- */
.blogd-body .blogd-tldr {
    background: var(--blog-bg-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 2rem 0;
}

.blogd-body .blogd-tldr::before {
    content: '';
    width: 36px;
    height: 40px;
    flex-shrink: 0;
    background: url('../images/blog/tldr-icon.svg') no-repeat center / contain;
}

.blogd-body .blogd-tldr__content {
    flex: 1;
    min-width: 0;
}

.blogd-body .blogd-tldr__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    color: var(--blog-text);
    margin: 0 0 16px;
}

.blogd-body .blogd-tldr ul {
    margin: 0;
    padding-left: 24px;
}

.blogd-body .blogd-tldr li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
}

.blogd-body .blogd-tldr li:last-child {
    margin-bottom: 0;
}

/* ---------- CTA Banner (Light) ---------- */
.blogd-body .blogd-cta-banner {
    background: var(--blog-bg-light);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 2rem 0;
}

.blogd-body .blogd-cta-banner > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blogd-body .blogd-cta-banner__text {
    flex: 1;
    min-width: 0;
}

.blogd-body .blogd-cta-banner__title {
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
    margin: 0;
}

.blogd-body .blogd-cta-banner__subtitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--blog-text-secondary);
    margin: 1px 0 0;
}

.blogd-body .blogd-cta-banner__btn {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.blogd-body .blogd-cta-banner__btn:hover {
    opacity: 0.85;
}

.blogd-body .blogd-cta-banner__btn--round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
}

/* Arrow variant – circular button */
.blogd-body .blogd-cta-banner__arrow .wp-block-button__link {
    width: 40px;
    height: 40px;
    border-radius: 9000px;
    padding: 0;
    font-size: 0;
    background: #303030 url('../images/blog/cta-arrow.svg') no-repeat center / 20px 20px;
}

.blogd-body .blogd-cta-banner__arrow .wp-block-button__link:hover {
    opacity: 0.85;
}

/* ---------- Dark CTA Banner ---------- */
.blogd-body .blogd-cta-dark {
    background-color: var(--blog-dark);
    background-image: url("../images/about/hero-bg.png");
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.blogd-body .blogd-cta-dark > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.blogd-body .blogd-cta-dark__title {
    font-weight: 900;
    font-size: 36px;
    line-height: normal;
    color: #fff;
    margin: 0;
}

.blogd-body .blogd-cta-dark__subtitle {
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #fff;
    margin: 13px 0 0;
}

.blogd-body .blogd-cta-dark__btn {
    background: #fff;
    color: var(--blog-dark);
    border: none;
    border-radius: 9000px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.blogd-body .blogd-cta-dark__btn:hover {
    opacity: 0.9;
}

/* ---------- Blockquote ---------- */
.blogd-body blockquote,
.blogd-body .wp-block-quote {
    border-left: 3px solid #0094d5;
    padding: 16px 0 16px 24px;
    margin: 2rem 0;
    background: none;
    font-style: normal;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.blogd-body blockquote p,
.blogd-body .wp-block-quote p {
    grid-column: 1;
}

.blogd-body blockquote cite,
.blogd-body .wp-block-quote cite {
    grid-column: 1;
}

.blogd-body blockquote::after,
.blogd-body .wp-block-quote::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / -1;
    width: 60px;
    height: 44px;
    background: url('../images/blog/quote-icon.svg') no-repeat center / contain;
}

.blogd-body blockquote p,
.blogd-body .wp-block-quote p {
    font-family: 'Neuton', serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 34px;
    color: #303030;
    font-style: normal;
    margin-bottom: 0;
}

.blogd-body blockquote cite,
.blogd-body .wp-block-quote cite {
    display: block;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    line-height: normal;
    color: #616161;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin-top: 24px;
}

/* ---------- Highlight / Info Box ---------- */
.blogd-body .blogd-highlight {
    background: #eaf4ff;
    border-radius: 12px;
    padding: 20px;
    margin: 2rem 0;
    color: #00527c;
}

.blogd-body .blogd-highlight h3,
.blogd-body .blogd-highlight h4,
.blogd-body .blogd-highlight strong {
    font-weight: 700;
    color: #00527c;
}

.blogd-body .blogd-highlight h3,
.blogd-body .blogd-highlight h4 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 26px;
}

.blogd-body .blogd-highlight p {
    color: #00527c;
    margin-bottom: 20px;
}

.blogd-body .blogd-highlight p:last-child {
    margin-bottom: 0;
}

.blogd-body .blogd-highlight ul {
    margin: 0;
    padding-left: 24px;
    color: #00527c;
}

.blogd-body .blogd-highlight li {
    color: #00527c;
    font-size: 16px;
    margin-bottom: 20px;
}

.blogd-body .blogd-highlight a {
    color: #00527c;
    text-decoration: underline;
}

/* ---------- Image + Text Card ---------- */
.blogd-body .blogd-media-card {
    margin: 2rem 0;
}

.blogd-body .blogd-media-card > .wp-block-group__inner-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.blogd-body .blogd-media-card__image {
    width: 230px;
    height: 230px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.blogd-body .blogd-media-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogd-body .blogd-media-card__content {
    flex: 1;
    min-width: 0;
}

.blogd-body .blogd-media-card__content > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.blogd-body .blogd-media-card__title {
    font-weight: 600;
    font-size: 20px;
    line-height: normal;
    color: var(--blog-text);
    margin: 0;
}

.blogd-body .blogd-media-card__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
    margin: 0;
}

.blogd-body .blogd-media-card__btn {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.blogd-body .blogd-media-card__btn:hover {
    opacity: 0.85;
}

/* ---------- Images ---------- */
.blogd-body .wp-block-image img {
    border-radius: 12px;
}

.blogd-body .wp-block-image figcaption {
    font-size: 14px;
    line-height: 22px;
    color: var(--blog-text-secondary);
    text-align: left;
    margin-top: 10px;
}

/* ---------- Stock Image + Caption ---------- */
.blogd-body .blogd-photo {
    margin: 2rem 0;
}

.blogd-body .blogd-photo .wp-block-image {
    margin: 0;
}

.blogd-body .blogd-photo .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.blogd-body .blogd-photo p {
    font-size: 16px;
    line-height: normal;
    color: var(--blog-text);
    margin: 16px 0 0;
}

/* Screenshot wrapper (gray bg for UI captures) */
.blogd-body .blogd-screenshot {
    margin: 2rem 0;
}

.blogd-body .blogd-screenshot .wp-block-image {
    background: #f3f3f3;
    border-radius: 12px;
    padding: 26px;
    overflow: hidden;
}

.blogd-body .blogd-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blogd-body .blogd-screenshot p {
    font-size: 16px;
    line-height: normal;
    color: var(--blog-text);
    margin: 16px 0 0;
}

.blogd-body .blogd-screenshot figcaption,
.blogd-body .blogd-screenshot + p {
    font-size: 14px;
    line-height: 22px;
    color: var(--blog-text-secondary);
    margin-top: 10px;
}

/* ---------- FAQ Accordion ---------- */
.blogd-body .blogd-faq {
    margin: 2rem 0;
}

.blogd-body .blogd-faq .wp-block-heading {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.2px;
    color: var(--blog-text);
    margin: 0 0 30px;
}

.blogd-body .blogd-faq .wp-block-details {
    border: none;
    border-bottom: 1px solid #4a4a4a;
    border-radius: 0;
    padding: 24px 0;
    margin: 0;
}

.blogd-body .blogd-faq .wp-block-heading + .wp-block-details {
    padding-top: 0;
}

.blogd-body .blogd-faq .wp-block-details summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: var(--blog-text);
}

.blogd-body .blogd-faq .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.blogd-body .blogd-faq .wp-block-details summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s;
    user-select: none;
}

.blogd-body .blogd-faq .wp-block-details[open] summary::after {
    transform: rotate(45deg);
}

.blogd-body .blogd-faq .wp-block-details > :not(summary) {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--blog-text);
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease;
}

.blogd-body .blogd-faq .wp-block-details p {
    margin: 0;
}

/* ---------- WP Native Block Resets inside custom blocks ---------- */

/*
 * blocks.css sets .blogd-body .wp-block-group { padding: 1.5rem; margin: 2rem 0 }
 * and WP core adds is-layout-flow gap. We need higher-specificity overrides
 * so custom block styles are not clobbered.
 */

/* 1. Outer container: .wp-block-group + custom class → specificity 0-3-0 beats 0-2-0 */
.blogd-body .wp-block-group.blogd-tldr {
    padding: 20px;
}

.blogd-body .wp-block-group.blogd-cta-banner {
    padding: 12px 16px;
}

.blogd-body .wp-block-group.blogd-cta-dark {
    padding: 40px 30px;
}

.blogd-body .wp-block-group.blogd-highlight {
    padding: 20px;
}

.blogd-body .wp-block-group.blogd-media-card {
    padding: 0;
}

.blogd-body .wp-block-group.blogd-screenshot {
    padding: 0;
}

.blogd-body .wp-block-group.blogd-photo {
    padding: 0;
}

.blogd-body .wp-block-group.blogd-faq {
    padding: 0;
}

/* 2. Kill WP is-layout-flow block-gap inside custom blocks */
.blogd-body .blogd-tldr.is-layout-flow > * + *,
.blogd-body .blogd-cta-banner.is-layout-flow > * + *,
.blogd-body .blogd-cta-dark.is-layout-flow > * + *,
.blogd-body .blogd-highlight.is-layout-flow > * + *,
.blogd-body .blogd-media-card.is-layout-flow > * + *,
.blogd-body .blogd-screenshot.is-layout-flow > * + *,
.blogd-body .blogd-photo.is-layout-flow > * + *,
.blogd-body .blogd-faq.is-layout-flow > * + * {
    margin-block-start: 0;
}

/* Also kill gap on inner groups */
.blogd-body .blogd-tldr .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-cta-banner .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-cta-dark .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-highlight .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-media-card .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-screenshot .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-photo .wp-block-group.is-layout-flow > * + *,
.blogd-body .blogd-faq .wp-block-group.is-layout-flow > * + * {
    margin-block-start: 0;
}

/* 3. Inner group padding/margin reset */
.blogd-body .blogd-tldr .wp-block-group,
.blogd-body .blogd-cta-banner .wp-block-group,
.blogd-body .blogd-cta-dark .wp-block-group,
.blogd-body .blogd-highlight .wp-block-group,
.blogd-body .blogd-media-card .wp-block-group,
.blogd-body .blogd-screenshot .wp-block-group,
.blogd-body .blogd-photo .wp-block-group {
    padding: 0;
    margin: 0;
}

/* 4. Buttons wrapper + button margin reset */
.blogd-body .blogd-cta-banner .wp-block-buttons,
.blogd-body .blogd-cta-dark .wp-block-buttons,
.blogd-body .blogd-media-card .wp-block-buttons {
    margin: 0;
    flex-direction: row;
    justify-content: flex-start;
}

.blogd-body .blogd-cta-banner .wp-block-button,
.blogd-body .blogd-cta-dark .wp-block-button,
.blogd-body .blogd-media-card .wp-block-button {
    margin: 0;
}

/* 5. Paragraph resets inside custom blocks */
.blogd-body .blogd-tldr p,
.blogd-body .blogd-cta-banner p,
.blogd-body .blogd-highlight p,
.blogd-body .blogd-media-card p,
.blogd-body .blogd-screenshot p,
.blogd-body .blogd-photo p {
    margin-bottom: 0;
}

.blogd-body .blogd-cta-banner__text p {
    margin-bottom: 1px;
}

.blogd-body .blogd-cta-banner__text p:last-child {
    margin-bottom: 0;
}

.blogd-body .blogd-cta-dark p {
    margin-bottom: 0;
    color: #fff;
    font-size: 18px;
}

.blogd-body .blogd-highlight p {
    color: #00527c;
    margin-bottom: 20px;
}

.blogd-body .blogd-highlight p:last-child {
    margin-bottom: 0;
}

/* 6. Heading resets inside custom blocks */
.blogd-body .blogd-tldr .wp-block-heading {
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    margin: 0 0 16px;
}

.blogd-body .blogd-highlight .wp-block-heading {
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    color: #00527c;
    margin: 0 0 16px;
}

.blogd-body .blogd-cta-dark .wp-block-heading {
    color: #fff;
    font-weight: 900;
    font-size: 36px;
    line-height: normal;
    margin: 0;
}

.blogd-body .blogd-media-card .wp-block-heading {
    font-weight: 600;
    font-size: 20px;
    line-height: normal;
    margin: 0;
}

/* 7. List resets inside custom blocks */
.blogd-body .blogd-tldr .wp-block-list,
.blogd-body .blogd-tldr ul {
    margin: 0;
    padding-left: 24px;
}

.blogd-body .blogd-tldr li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 26px;
}

.blogd-body .blogd-highlight .wp-block-list,
.blogd-body .blogd-highlight ul {
    margin: 0;
    padding-left: 24px;
}

.blogd-body .blogd-highlight li {
    color: #00527c;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 26px;
}

.blogd-body .blogd-highlight li:last-child,
.blogd-body .blogd-tldr li:last-child {
    margin-bottom: 0;
}

/* 8. Link decoration reset inside buttons */
.blogd-body .blogd-cta-banner .wp-block-button__link,
.blogd-body .blogd-media-card .wp-block-button__link {
    text-decoration: none;
}

/* 9. Dark CTA – white button override */
.blogd-body .blogd-cta-dark .wp-block-button__link {
    background: #fff;
    color: #303030;
    font-weight: 600;
    font-size: 18px;
    border-radius: 16px;
    padding: 17px 30px;
    text-decoration: none;
    border: 1px solid #fff;
    transition: background 0.2s, color 0.2s;
}

.blogd-body .blogd-cta-dark .wp-block-button__link:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* 10. Media card – image block */
.blogd-body .wp-block-group.blogd-media-card .wp-block-image {
    width: 230px;
    min-width: 230px;
    height: 230px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
}

.blogd-body .wp-block-group.blogd-media-card .wp-block-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* 11. Screenshot – image reset */
.blogd-body .blogd-screenshot .wp-block-image {
    margin: 0;
}

/* ==========================================================================
   Responsive – Tablet (992px)
   ========================================================================== */

@media (max-width: 992px) {
    :root {
        --blog-font-hero-title: 36px;
        --blog-font-journal-title: 32px;
        --blog-font-section-title: 26px;
    }

    .blog-hero__inner {
        height: 180px;
    }

    .blog-hero--tall .blog-hero__inner {
        height: 300px;
    }

    .blog-catnav__inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .blog-catnav__links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .blog-catnav__search {
        width: 100%;
    }

    .blog-editors__cards .blog-card {
        flex: 0 0 calc((100% - var(--blog-card-gap)) / 2);
        min-width: calc((100% - var(--blog-card-gap)) / 2);
    }

    .blog-journal__inner {
        flex-direction: column;
        gap: 40px;
    }

    .blog-journal__sidebar {
        width: 100%;
        z-index: 2;
        top: -10px;
    }

    .blog-journal__filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Blog Detail – Tablet */
    .blogd-hero__inner {
        height: 160px;
        padding-bottom: 24px;
    }

    .blogd-header__inner {
        flex-direction: column;
        gap: 24px;
    }

    .blogd-header__info {
        width: 100%;
    }

    .blogd-header__image {
        width: 100%;
        height: 260px;
    }

    .blogd-header__title {
        font-size: 30px;
        line-height: 42px;
    }

    .blogd-content__inner {
        flex-direction: column;
        gap: 40px;
    }

    .blogd-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .blogd-sidebar__toc {
        flex: 1;
        min-width: 200px;
    }

    .blogd-sidebar__share {
        flex-shrink: 0;
    }

    .blogd-recommended__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blogd-recommended__title {
        font-size: 26px;
    }

    /* Custom Content Blocks – Tablet */
    .blogd-body .blogd-media-card__image {
        width: 100%;
        height: 200px;
    }

    .blogd-body .blogd-cta-dark {
        padding: 40px 24px;
    }

    .blogd-body .blogd-cta-dark__title {
        font-size: 28px;
        line-height: 38px;
    }
}

/* ==========================================================================
   Responsive – Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --blog-font-hero-title: 30px;
        --blog-font-hero-subtitle: 16px;
        --blog-font-journal-title: 28px;
        --blog-font-section-title: 24px;
        --blog-font-card-title: 20px;
    }

    .blog-hero__inner {
        height: 160px;
    }

    .blog-hero--tall .blog-hero__inner {
        height: 260px;
    }

    .blog-hero__title {
        line-height: 40px;
    }

    .blog-editors {
        padding: 40px 0;
    }

    .blog-editors__cards .blog-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .blog-journal {
        padding: 40px 0 60px;
    }

    .blog-journal__grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    /* Blog Detail – Mobile */
    .blogd-hero__inner {
        height: 140px;
        padding-bottom: 20px;
    }

    .blogd-header {
        margin-top: -20px;
        border-radius: 12px 12px 0 0;
    }

    .blogd-header__inner {
    }

    .blogd-header__title {
        font-size: 26px;
        line-height: 36px;
    }

    .blogd-header__image {
        height: 200px;
    }

    .blogd-content {
        padding: 30px 0 40px;
    }

    .blogd-sidebar {
        flex-direction: column;
    }

    .blogd-recommended__grid {
        grid-template-columns: 1fr;
    }

    .blogd-recommended {
        padding: 40px 0 60px;
    }

    /* Custom Content Blocks – Mobile */
    .blogd-body .blogd-tldr {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .blogd-body .blogd-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blogd-body .blogd-cta-dark {
        padding: 32px 20px;
    }

    .blogd-body .blogd-cta-dark__title {
        font-size: 24px;
        line-height: 34px;
    }

    .blogd-body blockquote p,
    .blogd-body .wp-block-quote p {
        font-size: 18px;
        line-height: 28px;
    }

    .blogd-body .blogd-faq__question {
        font-size: 16px;
        padding: 14px 0;
    }
}

/* ==========================================================================
   Responsive – Small Mobile (490px)
   ========================================================================== */

@media (max-width: 490px) {
    :root {
        --blog-font-hero-title: 26px;
        --blog-font-journal-title: 24px;
        --blog-font-card-title: 18px;
        --blog-font-card-meta: 14px;
    }

    .blog-hero__inner {
        height: 140px;
    }

    .blog-hero--tall .blog-hero__inner {
        height: 220px;
    }

    .blog-catnav__links {
        gap: 8px;
    }

    .blog-catnav__link {
        font-size: 14px;
    }

    .blog-editors__inner {
        gap: 20px;
    }

    .blog-journal__inner {
        gap: 30px;
    }

    .blog-pagination__item {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .blog-pagination {
        gap: 6px;
    }

    /* Blog Detail – Small Mobile */
    .blogd-header__title {
        font-size: 22px;
        line-height: 32px;
    }

    .blogd-header__image {
        height: 180px;
    }

    .blogd-recommended__title {
        font-size: 22px;
    }

    /* Custom Content Blocks – Small Mobile */
    .blogd-body .blogd-cta-dark__title {
        font-size: 20px;
        line-height: 30px;
    }

    .blogd-body .blogd-cta-dark__subtitle {
        font-size: 14px;
    }

    .blogd-body .blogd-highlight {
        padding: 16px;
    }

    .blogd-body .blogd-cta-banner__title {
        font-size: 18px;
    }

    .blogd-body .blogd-media-card > .wp-block-group__inner-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .blogd-body .wp-block-group.blogd-media-card .wp-block-image {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .blogd-body .blogd-media-card__image {
        width: 100%;
        height: 180px;
    }
}
