/* Single Post - Hero Section */
.section.section-inner-hero {
    padding-top: 0 !important;
}

.post-hero {
    position: relative;
    min-height: 225.19px; /* mobile */
}

@media (min-width: 992px) {
    .post-hero {
        min-height: 440px; /* desktop */
    }
}

.post-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: #00000066;
}

/* No featured image state */
.post-hero--no-image {
    background-color: #002b27;
}

.post-hero--no-image .post-hero__overlay {
    background: transparent;
}

.post-hero__breadcrumb {
    position: relative;
    z-index: 2;
    padding-top: 16px;
    color: #fff;
}
@media (min-width: 992px) {
  .post-hero__breadcrumb { padding-top: 24px; }
}

.breadcrumb .first-time a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb li a {
    color: #B4DAC3;
    text-decoration: none;
}

.breadcrumb li.active {
    color: #B4DAC3;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

.content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.post-hero__content {
    position: relative;
    display: flex;
    color: #fff;
    margin-top: auto;
    margin-bottom: 24px; /* mobile */
    align-items: flex-end;
    width: 100%;
}

@media (min-width: 992px) {
    .post-hero__content { margin-bottom: 80px; /* desktop */ }
  }

.post-hero__title {
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.1; /* 110% */
    letter-spacing: -0.02em; /* -2% */
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* clamp to 4 lines */
    line-clamp: 3;
    overflow: hidden;
}

.post-hero__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    color: #B4DAC3;
}

.post-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-hero__meta span {
    text-transform: lowercase;
}

.post-hero__meta i { /* icomoon icon */
    font-size: 120%;
}

/* Post content typography */
.post-content-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.post-content {
    font-family: "Manrope", sans-serif;
    color: #2E2D2C;
    display: flex;
    flex-direction: column;
}

.post-content p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.post-content p:not(:last-child) {
    margin-bottom: 20px;
}

.post-content p > span {
    margin-bottom: 20px;
}

/* mobile styles */
@media (max-width: 768px) {
    .post-content p {
      font-size: 14px; /* mobile default */
  }
}

/* About Author Card */
.about-author-section { 
    padding-top: 24px; 
}

.about-author__card {
    position: relative;
    background-color: #FCF7E3;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 214px auto; 
    max-width: 690px;
    padding: 36px 48px;
}

.about-author__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: #2E2D2C;
    margin-bottom: 16px;
}

.about-author__text {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #2E2D2C;
    margin: 0 0 16px 0;
    margin-bottom: 16px;
}

.about-author__name {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #2E2D2C;
}

.about-author__avatar {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
}

.custom-divider {
    border-top: 1px solid #2E2D2C;
    opacity: 30%;
}

/* mobile styles */
@media (max-width: 768px) {
    .about-author-section {
        padding-top: 16px;
    }

    .about-author__card { 
        padding: 20px 24px;
        background-size: 166px auto;
    }

    .about-author__title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .about-author__text {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .about-author__name {
        font-size: 10px;

    }

    .about-author__avatar {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .post-content-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

.about-author__footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Discover More */
.discover-more-section {
    background-color: #F1F5F4;
    padding: 48px 0 72px;
}
.discover-more__title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}
@media (min-width: 992px) {
  .discover-more__title { font-size: 48px; }
}

.discover-more__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 992px) {
  .discover-more__grid { grid-template-columns: repeat(3, 320px); justify-content: space-between; }
}

.discover-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.discover-card__image {
    position: relative;
    height: 241px;
    overflow: hidden;
}
.discover-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.discover-card__title-wrap {
    position: relative;
    background-color: #002B27;
    padding: 16px;
    min-height: 84px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-position: right bottom;
    /* Mobile background frame max width */
    background-size: 166px auto;
}
.discover-card__title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
}
@media (min-width: 992px) {
  .discover-card__title { font-size: 20px; }
  .discover-card__title-wrap { background-size: 214px auto; }
}
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: "Manrope", sans-serif;
    color: #2E2D2C;
    margin: 32px 0 16px 0;
}

/* Full-bleed content images (edge-to-edge) */
/* Default content images: full width of content column and centered */
.post-content .wp-block-image,
.post-content figure.wp-block-image,
.post-content p > img:only-child {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-content .wp-block-image,
.post-content figure.wp-block-image {
    margin-top: 24px;
    margin-bottom: 24px;
}

.post-content div > a {
    margin: 20px 0;
}

.post-content .wp-block-image img,
.post-content figure.wp-block-image img,
.post-content p > img:only-child {
    width: 100%;
    height: auto;
}

.post-content div:has(figure > video),
.post-content div:has(video),
.post-content div:has(figure > img) {
    margin: 16px 0;
}

.post-content p:has(img:only-child) {
    margin-top: 28px;
    margin-bottom: 48px;
}

/* Explicit full-bleed when author uses Align Full */
.post-content .wp-block-image.alignfull,
.post-content figure.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.post-content .wp-block-image.alignfull img,
.post-content figure.alignfull img {
    border-radius: 0;
}

/* Mobile: make regular post images edge-to-edge */
@media (max-width: 767.98px) {
  .post-content .wp-block-image,
  .post-content figure.wp-block-image,
  .post-content p > img:only-child {
      width: 100vw;
      max-width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
  }
  .post-content .wp-block-image img,
  .post-content figure.wp-block-image img,
  .post-content p > img:only-child {
      border-radius: 0 !important;
  }
}

/* Ensure header is themed (also handled by .section-inner-hero) */
.single-post-page main { padding-top: var(--header-height); }

/* In-content pagination (<!--nextpage-->) */
.post-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.post-pagination__links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.post-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 100%;
    padding: 0 12px;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2E2D2C;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

/* WordPress outputs current page without a link; style it via .current span */
.post-pagination__links .post-pagination__link.current,
.post-pagination__links .post-page-numbers.current {
    background: #002b27;
    color: #FFFFFF;
    border-color: #002b27;
}

.post-pagination__links a.post-page-numbers:hover {
    background: #F8FAFC;
}

/* Ensure WP default classes are covered */
.post-pagination__links .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    color: #2E2D2C;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 768px) {
  .post-pagination { margin-top: 16px; }
  .post-pagination__links { gap: 6px; }
  .post-pagination__links .post-page-numbers,
  .post-pagination__link { min-width: 36px; height: 36px; font-size: 12px; }
}

/* Breadcrumb spacing below hero */
/* Breadcrumb inside hero spacing */
.post-hero__breadcrumb { padding-top: 16px; }
@media (min-width: 992px) {
  .post-hero__breadcrumb { padding-top: 24px; }
}

