/* ==========================================================================
   Article layout (shared by Blogs + News modules)
   Markup uses .blogs-page / .blogs-detail-page class names on both CPTs.
   Enqueued via uob_enqueue_article_styles() and blogs listing hook.
   ========================================================================== */

/* ==========================================================================
   Blog listing page
   ========================================================================== */

.blogs-page .row > [class*="col-"] {
    min-width: 0;
}

.blogs-page .mb-32 {
    margin-bottom: 32px !important;
}

.blogs-page .mt-32 {
    margin-top: 32px;
}

.blogs-page .blogs-listing-title {
    margin-bottom: 24px;
}

.blogs-page .blog-section {
    display: grid;
    gap: 16px;
    align-items: flex-start;
    position: relative;
}

.blogs-page .blog-section:hover a {
    text-decoration: none;
}

.blogs-page .blog-header,
.blogs-page .blog-image {
    min-width: 0;
}

.blogs-page .blog-image img {
    border-radius: 4px;
    object-fit: cover;
}

.blogs-page .blog-card-clickable {
    cursor: pointer;
}

.blogs-page .blog-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blogs-page .social-side-navigation-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blogs-page .social-side-navigation-item span {
    text-decoration: underline;
}

.blogs-page #social-left-sidebar-menu li {
    border-top: 1px solid #e3e6e5;
    padding: 16px 0;
}

.blogs-page #social-left-sidebar-menu li:last-child {
    border-bottom: 1px solid #e3e6e5;
}

.blogs-page.blogs-listing-is-loading .all-blogs-list,
.blogs-page.blogs-listing-is-loading .blogs-pagination {
    opacity: 0.45;
    pointer-events: none;
}

.blogs-page .blog-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blogs-page .blog-content a {
    color: var(--primary-color);
}

.blogs-page .blog-h2 {
    font-size: 24px;
    line-height: 32px;
    color: var(--primary-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blogs-page .blog-h3 {
    font-size: 20px;
    line-height: 28px;
    color: var(--primary-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blogs-page .blog-category {
    font-size: 14px;
    background: #e3e6e5;
    border-radius: 4px;
    padding: 4px 8px;
    width: fit-content;
    color: #000;
}

.blogs-page .blog-description {
    font-size: 16px;
    color: #333;
    line-height: 24px;
}

.blogs-page .blog-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blogs-page .blog-meta strong {
    width: 14.55%;
    display: inline-block;
}

.blogs-page .blog-meta span,
.blogs-page .featured-blogs-list .blog-meta p {
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.blogs-page .blog-section--featured {
    grid-template-columns: minmax(0, 33.02%) minmax(0, 1fr);
}

.blogs-page .blog-section--list {
    grid-template-columns: minmax(0, 19.66%) minmax(0, 1fr);
    padding: 16px 0;
}

.blogs-page .blog-section--featured .blog-image img {
    width: 100%;
    max-width: 210px;
}

.blogs-page .all-blogs-list .blog-image img {
    width: 100%;
    max-width: 215px;
    max-height: 83.33px;
}

.blogs-page .featured-blog {
    border-bottom: 2px solid #e3e6e5;
    padding-bottom: 32px;
}

.blogs-page .blogs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 0;
    border-top: 1px solid #e3e6e5;
    margin-top: 32px;
}

.blogs-page .blogs-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.blogs-page .blogs-pagination-pages a,
.blogs-page .blogs-pagination-pages .blogs-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-family: var(--fontstack-heading);
}

.blogs-page .blogs-pagination-pages a:hover {
    color: #b01c2e;
    text-decoration: none;
}

.blogs-page .blogs-pagination-pages a.is-active {
    background-color: #b01c2e;
    color: #fff;
    border-radius: 4px;
}

.blogs-page .blogs-pagination-pages a.is-active:hover {
    color: #fff;
}

.blogs-page .blogs-pagination-ellipsis {
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
}

.blogs-page .blogs-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    font-family: var(--fontstack-heading);
}

.blogs-page .blogs-pagination-btn:hover {
    text-decoration: none;
}

.blogs-page .blogs-pagination-btn--prev,
.blogs-page .blogs-pagination-btn--next {
    background-color: #b01c2e;
    color: #fff;
}

.blogs-page .blogs-pagination-btn--prev:hover,
.blogs-page .blogs-pagination-btn--next:hover {
    background-color: #8f1725;
    color: #fff;
}

.blogs-page .blogs-pagination-btn--prev.is-disabled,
.blogs-page .blogs-pagination-btn--next.is-disabled {
    background-color: #e8b4ba;
    color: #fff;
    pointer-events: none;
    cursor: not-allowed;
}

.blogs-page .blogs-pagination-status {
    display: none;
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #333;
    font-family: var(--fontstack-heading);
}

.blogs-page .cms-center > .all-blogs-list:has(+ .blogs-pagination) .blog-section--list {
    padding-bottom: 0;
}

.blogs-page .featured-blogs-list .blog-section {
    grid-template-columns: 79px minmax(0, 1fr);
}

.blogs-page .featured-blogs-list .blog-section--list {
    padding: 16px 0;
}

.blogs-page .featured-blogs-list .blog-section--list:last-child {
    padding-bottom: 0;
}

.blogs-page .featured-blogs-list .blog-section:first-child {
    padding-top: 0;
}

.blogs-page .featured-blogs-list .blog-header,
.blogs-page .featured-blogs-list .blog-image {
    width: 79px;
    height: 52px;
}

.blogs-page .featured-blogs-list .blog-image img {
    width: 79px;
    height: 52px;
}

.blogs-page .featured-blogs-list .blog-content {
    width: auto;
    min-width: 0;
    min-height: 0;
}

.blogs-page .featured-blogs-list .blog-h3 {
    font-size: 16px;
    line-height: 24px;
    color: #b01c2e;
    margin: 0;
}

.blogs-page .featured-blogs-list .blog-content a {
    color: #b01c2e;
    text-decoration: underline;
}

.blogs-page .featured-blogs-list .blog-content a:hover {
    text-decoration: none;
}

.blogs-page .featured-blogs-list .blog-meta {
    gap: 4px;
}

@media (max-width: 1250px) {
    .blogs-page .blogs-pagination-btn {
        padding: 3px 10px;
    }

    .blogs-page .blogs-pagination-pages a,
    .blogs-page .blogs-pagination-pages .blogs-pagination-ellipsis {
        min-width: 30px;
        height: 30px;
    }
}

@media (max-width: 767px) {
    .blogs-page .blog-description {
        display: none;
    }

    .blogs-page .blog-section--featured,
    .blogs-page .blog-section--list {
        grid-template-columns: minmax(0, 38.23%) minmax(0, 1fr) !important;
    }

    .blogs-page .blog-section--list {
        padding: 12px 0;
    }

    .blogs-page .blog-section--featured .blog-h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .blogs-page .featured-blogs-list .blog-section {
        grid-template-columns: 79px minmax(0, 1fr) !important;
    }

    .blogs-page .featured-blogs-list .blog-image img {
        width: 79px;
        height: 52px;
    }

    .blogs-page .blogs-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 0 0;
        margin-top: 32px;
    }

    .blogs-page .blogs-pagination-pages {
        display: none;
    }

    .blogs-page .blogs-pagination-status {
        display: block;
        font-weight: 400;
    }

    .blogs-page .blogs-pagination-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
    }

    .blogs-page .blogs-pagination-btn-text {
        display: none;
    }

    .blogs-page .blogs-pagination-btn .material-symbols-rounded {
        font-size: 24px;
        line-height: 1;
    }

    .blogs-page .cms-center > .all-blogs-list:has(+ .blogs-pagination) .blog-section--list {
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .blogs-page .side-navigation-box {
        border: 0 !important;
    }

    .blogs-page .social-side-navigation-box {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        background: #f6f6f6;
    }

    .blogs-page #social-left-sidebar-menu li {
        padding: 16px 20px;
    }
}

@media (min-width: 992px) {
    .blogs-page .highlight-banner {
        padding-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .blogs-page .highlight-banner {
        padding-bottom: 48px !important;
    }
}

/* ==========================================================================
   Blog detail page
   ========================================================================== */

.blogs-detail-page .page-title,
.blogs-detail-page .cms-card {
    margin-bottom: 24px;
}

.blogs-detail-page .blog-article-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.blogs-detail-page .blog-article-overview {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 0;
}

.blogs-detail-page .overview-separator {
    margin-bottom: 32px;
}

.blogs-detail-page .blog-article-meta__byline {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #666666;
}

.blogs-detail-page .blog-article-meta__byline a {
    color: #1a5877;
    text-decoration: underline;
}

.blogs-detail-page .blog-article-meta__byline a:hover {
    color: #085a7d;
    text-decoration: none;
}

.blogs-detail-page .blog-article-meta__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 16px;
    line-height: 24px;
    color: #666666;
}

.blogs-detail-page .blog-article-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blogs-detail-page .blog-article-meta__item .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
}

.blogs-detail-page .blog-article-meta__divider,
.blogs-detail-page .blog-article-meta__updated {
    color: #666666;
}

.blogs-detail-page .blog-article-share {
    position: relative;
    width: fit-content;
}

.blogs-detail-page .blog-article-meta__share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 0;
    border: 0;
    background: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #1a5877;
    text-decoration: none;
    cursor: pointer;
}

.blogs-detail-page .blog-article-meta__share span {
    text-decoration: underline;
}

.blogs-detail-page .blog-article-meta__share:hover {
    color: #085a7d;
    text-decoration: none;
}

.blogs-detail-page .blog-article-meta__share .material-symbols-rounded {
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.blogs-detail-page .blog-share-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 20;
    width: 196px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #b01c2e;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blogs-detail-page .blog-share-popup[hidden] {
    display: none;
}

.blogs-detail-page .blog-share-popup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #B01C2E;
}

.blogs-detail-page .blog-share-popup__header .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
}

.blogs-detail-page .blog-share-popup__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.blogs-detail-page .blog-share-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.blogs-detail-page .blog-share-popup__btn:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

.blogs-detail-page .blog-share-popup__btn .material-symbols-rounded {
    font-size: 24px;
    line-height: 1;
}

.blogs-detail-page .blog-share-popup__btn--facebook {
    background-color: #1877f2;
}

.blogs-detail-page .blog-share-popup__btn--x {
    background-color: #000000;
    font-family: var(--fontstack-heading, sans-serif);
}

.blogs-detail-page .blog-share-popup__btn--email {
    background-color: #e85d04;
}

.blogs-detail-page .blog-share-popup__btn--linkedin {
    background-color: #0a66c2;
    font-size: 16px;
    text-transform: lowercase;
}

.blogs-detail-page .blog-share-popup__btn--copy {
    background-color: #9e9e9e;
}

.blogs-detail-page .blog-share-popup__btn--copy.is-copied {
    background-color: #3f7f4f;
}

.blogs-detail-page .blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.blogs-detail-page .blog-article-tags .blog-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    text-decoration: none;
    color: #000000;
}

.blogs-detail-page .blog-article-tags .blog-category:hover {
    background: #d5d9d8;
    color: #000000;
    text-decoration: none;
}

.blogs-detail-page .blog-article-featured {
    margin: 0 0 24px;
    min-width: 0;
}

.blogs-detail-page .blog-article-featured img,
.blogs-detail-page .blog-article-featured__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 612 / 380;
    object-fit: cover;
}

.blogs-detail-page .blog-article-featured__figcaption {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blogs-detail-page .blog-article-featured__caption {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
}

.blogs-detail-page .blog-article-featured__credit {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #666666;
}

.blogs-detail-page .blogs-article-content > *:last-child {
    margin-bottom: 0;
}

.blogs-detail-page .blogs-in-this-article ul {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .blogs-detail-page .blog-article-tags {
        margin-bottom: 24px;
    }
}

/* ==========================================================================
   Supplemental layout (article singles — news + blogs detail pages)
   Blog listing-specific rules stay in modules/blogs/frontend/hooks.php inline CSS.
   ========================================================================== */

.breadcrumb-section .breadcrumbs img[src*="home.svg"] {
    width: 17px;
    height: 18px;
}

.blogs-detail-page .row > [class*="col-"] {
    min-width: 0;
}

.blogs-detail-page .page-title {
    border-bottom: 0.25rem double #e3e6e5;
    color: #b01c2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    font-size: 32px;
    line-height: 40px;
    font-family: var(--fontstack-heading);
    overflow-wrap: break-word;
}

.blogs-detail-page .cms-card {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    width: 100%;
    color: #333;
    margin-bottom: 24px;
}

.blogs-detail-page .blog-article-meta {
    min-height: 88px;
}

.blogs-detail-page .blog-article-featured img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 612 / 380;
    object-fit: cover;
}

@media (max-width: 767px) {
    .blogs-detail-page .page-title {
        font-size: 28px;
        line-height: 36px;
    }

    .blogs-detail-page .blog-article-meta {
        min-height: 112px;
    }
}
