/* ==================================================
   UPLAND SITES - BLOG DETAILS
================================================== */

.ubd-page {
    --ubd-navy: #172b4d;
    --ubd-navy-dark: #101e36;
    --ubd-red: #c93445;
    --ubd-text: #263449;
    --ubd-muted: #728093;
    --ubd-border: #e7ebf0;
    --ubd-light: #f7f9fc;

    font-family: 'Space Grotesk', sans-serif;
    color: var(--ubd-text);
}

.ubd-page *,
.ubd-page *::before,
.ubd-page *::after {
    box-sizing: border-box;
}

.ubd-page .container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.ubd-page a {
    text-decoration: none;
}

/* ==================================================
   ARTICLE HERO
================================================== */

.ubd-hero {
    position: relative;
    background: linear-gradient(
        115deg,
        #101e36,
        #203b64
    );
    padding: 72px 0 82px;
    overflow: hidden;
}

.ubd-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    right: -150px;
    top: -200px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
}

.ubd-hero-content {
    position: relative;
    max-width: 850px;
    z-index: 1;
}

.ubd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    font-size: 11px;
}

.ubd-breadcrumb a {
    color: rgba(255,255,255,.65);
}

.ubd-breadcrumb a:hover {
    color: #fff;
}

.ubd-breadcrumb i {
    font-size: 8px;
    color: #fa8591;
}

.ubd-breadcrumb span {
    color: #fff;
}

.ubd-category {
    display: inline-block;
    color: #ff929b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.ubd-hero h1 {
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -1.3px;
}

.ubd-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.ubd-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.77);
    font-size: 12px;
}

.ubd-hero-meta i {
    color: #fb9ba3;
}

/* ==================================================
   MAIN LAYOUT
================================================== */

.ubd-article-section {
    background: #fff;
    padding: 65px 0 95px;
}

.ubd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    align-items: start;
    gap: 40px;
}

.ubd-article {
    min-width: 0;
}

.ubd-featured-image {
    overflow: hidden;
    border-radius: 12px;
    background: #edf0f4;
}

.ubd-featured-image img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.ubd-article-body {
    padding: 34px 0 25px;
}

.ubd-article-label {
    color: var(--ubd-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

/* ==================================================
   SUMMERNOTE ARTICLE CONTENT
================================================== */

.ubd-rich-content {
    color: #3e4b5e;
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.ubd-rich-content p {
    margin: 0 0 20px;
}

.ubd-rich-content h2,
.ubd-rich-content h3,
.ubd-rich-content h4 {
    color: var(--ubd-navy);
    font-weight: 700;
    line-height: 1.35;
    margin: 30px 0 15px;
}

.ubd-rich-content h2 {
    font-size: 25px;
}

.ubd-rich-content h3 {
    font-size: 21px;
}

.ubd-rich-content h4 {
    font-size: 18px;
}

.ubd-rich-content ul,
.ubd-rich-content ol {
    padding-left: 24px;
    margin-bottom: 22px;
}

.ubd-rich-content li {
    margin-bottom: 9px;
}

.ubd-rich-content blockquote {
    margin: 25px 0;
    padding: 18px 24px;
    background: var(--ubd-light);
    border-left: 3px solid var(--ubd-red);
    color: var(--ubd-navy);
    font-style: italic;
}

.ubd-rich-content a {
    color: var(--ubd-red);
    text-decoration: underline;
}

.ubd-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

/* ==================================================
   PHOTO GALLERY
================================================== */

.ubd-gallery-section {
    padding-top: 32px;
    margin-top: 25px;
    border-top: 1px solid var(--ubd-border);
}

.ubd-section-heading {
    margin-bottom: 22px;
}

.ubd-section-heading > span {
    color: var(--ubd-red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.ubd-section-heading h3 {
    color: var(--ubd-navy);
    font-size: 23px;
    font-weight: 700;
    margin: 8px 0 0;
    letter-spacing: -.5px;
}

.ubd-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ubd-gallery-item {
    display: block;
    position: relative;
    height: 235px;
    overflow: hidden;
    border-radius: 9px;
    background: #edf0f4;
}

.ubd-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s;
}

.ubd-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,30,54,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity .3s;
}

.ubd-gallery-item:hover img {
    transform: scale(1.06);
}

.ubd-gallery-item:hover .ubd-gallery-overlay {
    opacity: 1;
}

/* ==================================================
   ARTICLE FOOTER
================================================== */

.ubd-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--ubd-border);
    margin-top: 35px;
    padding-top: 25px;
}

.ubd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ubd-navy);
    font-size: 12px;
    font-weight: 700;
}

.ubd-back-link:hover {
    color: var(--ubd-red);
}

.ubd-share-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ubd-share-links > span {
    color: var(--ubd-muted);
    font-size: 12px;
    margin-right: 5px;
}

.ubd-share-links a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ubd-navy);
    border: 1px solid var(--ubd-border);
    border-radius: 6px;
    transition: .25s;
}

.ubd-share-links a:hover {
    background: var(--ubd-navy);
    color: #fff;
}

/* ==================================================
   LIKES / ENGAGEMENT
================================================== */

.ubd-engagement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 28px;
    margin: 20px 0 48px;
    background: var(--ubd-light);
    border: 1px solid var(--ubd-border);
    border-radius: 10px;
}

.ubd-engagement-info h3 {
    color: var(--ubd-navy);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 7px;
}

.ubd-engagement-info p {
    color: var(--ubd-muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.ubd-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--ubd-red);
    background: var(--ubd-red);
    color: #fff;
    padding: 12px 17px;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s;
}

.ubd-like-btn:not(:disabled) {
    cursor: pointer;
}

.ubd-like-btn:not(:disabled):hover {
    background: #ad2738;
}

.ubd-like-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.ubd-like-btn strong {
    background: rgba(255,255,255,.18);
    border-radius: 4px;
    padding: 3px 7px;
}

/* ==================================================
   COMMENTS
================================================== */

.ubd-comments-section {
    padding-top: 8px;
}

.ubd-comments-list {
    margin: 22px 0 40px;
}

.ubd-comments-placeholder {
    padding: 42px 20px;
    text-align: center;
    border: 1px dashed #d8dfe8;
    border-radius: 9px;
    background: #fbfcfe;
}

.ubd-comments-placeholder i {
    display: block;
    color: #a0acba;
    font-size: 31px;
    margin-bottom: 14px;
}

.ubd-comments-placeholder p {
    color: var(--ubd-muted);
    font-size: 13px;
    margin: 0;
}

/* ==================================================
   COMMENT FORM
================================================== */

.ubd-comment-form-card {
    padding: 30px;
    background: var(--ubd-light);
    border: 1px solid var(--ubd-border);
    border-radius: 11px;
}

.ubd-form-intro {
    font-size: 12px;
    color: var(--ubd-muted);
    margin: -5px 0 24px;
}

.ubd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ubd-field-full {
    grid-column: 1 / -1;
}

.ubd-form-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--ubd-navy);
    font-size: 12px;
    font-weight: 700;
}

.ubd-form-field label span {
    color: var(--ubd-red);
}

.ubd-form-field input,
.ubd-form-field textarea {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #dfe5ed;
    outline: none;
    border-radius: 7px;
    padding: 12px 14px;
    font: inherit;
    font-size: 12px;
    color: var(--ubd-navy);
    transition: border-color .2s, box-shadow .2s;
}

.ubd-form-field textarea {
    resize: vertical;
    min-height: 135px;
}

.ubd-form-field input:focus,
.ubd-form-field textarea:focus {
    border-color: var(--ubd-navy);
    box-shadow: 0 0 0 3px rgba(23,43,77,.06);
}

.ubd-comment-note {
    color: var(--ubd-muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 18px 0;
}

.ubd-submit-btn,
.ubd-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    background: var(--ubd-navy);
    border: none;
    border-radius: 7px;
    color: #fff !important;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: background .25s;
}

.ubd-submit-btn:not(:disabled) {
    cursor: pointer;
}

.ubd-submit-btn:not(:disabled):hover,
.ubd-primary-btn:hover {
    background: var(--ubd-red);
}

.ubd-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ==================================================
   SIDEBAR
================================================== */

.ubd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ubd-sidebar-card {
    border: 1px solid var(--ubd-border);
    padding: 27px 25px;
    border-radius: 10px;
    background: #fff;
}

.ubd-sidebar-eyebrow {
    display: block;
    color: var(--ubd-red);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ubd-sidebar-card > h3 {
    color: var(--ubd-navy);
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 15px;
}

.ubd-sidebar-card > p {
    color: var(--ubd-muted);
    font-size: 12px;
    line-height: 1.9;
    margin: 0 0 20px;
}

.ubd-sidebar-card > a {
    color: var(--ubd-navy);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
}

.ubd-sidebar-card > a:hover {
    color: var(--ubd-red);
}

/* Related articles */

.ubd-related-list {
    display: flex;
    flex-direction: column;
}

.ubd-related-item {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ubd-border);
}

.ubd-related-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ubd-related-image {
    height: 68px;
    overflow: hidden;
    border-radius: 6px;
    background: #e9edf2;
}

.ubd-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ubd-related-info span {
    display: block;
    font-size: 10px;
    color: var(--ubd-muted);
    margin-bottom: 6px;
}

.ubd-related-info h4 {
    color: var(--ubd-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.ubd-related-item:hover h4 {
    color: var(--ubd-red);
}

/* Sidebar CTA */

.ubd-sidebar-cta {
    position: relative;
    padding: 34px 27px;
    background: linear-gradient(
        145deg,
        var(--ubd-navy),
        var(--ubd-navy-dark)
    );
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.ubd-sidebar-cta::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    right: -70px;
    bottom: -80px;
}

.ubd-sidebar-cta > span {
    color: #ff9aa4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.ubd-sidebar-cta h3 {
    position: relative;
    z-index: 1;
    margin: 15px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.ubd-sidebar-cta p {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.73);
    font-size: 12px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.ubd-sidebar-cta a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: var(--ubd-red);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
}

/* ==================================================
   NOT FOUND
================================================== */

.ubd-not-found {
    padding: 110px 0;
    background: #f8fafc;
}

.ubd-not-found-content {
    text-align: center;
    max-width: 550px;
    margin: auto;
}

.ubd-not-found-content > i {
    display: block;
    font-size: 50px;
    color: #a3afbd;
    margin-bottom: 20px;
}

.ubd-not-found h1 {
    color: var(--ubd-navy);
    font-size: 32px;
}

.ubd-not-found p {
    color: var(--ubd-muted);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 991px) {

    .ubd-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 25px;
    }

    .ubd-featured-image img {
        height: 345px;
    }

    .ubd-sidebar-card {
        padding: 22px 19px;
    }
}

@media (max-width: 767px) {

    .ubd-page .container {
        width: min(100% - 30px, 1200px);
    }

    .ubd-hero {
        padding: 55px 0 62px;
    }

    .ubd-hero h1 {
        font-size: 30px;
    }

    .ubd-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .ubd-article-section {
        padding: 35px 0 75px;
    }

    .ubd-featured-image img {
        height: 270px;
    }

    .ubd-engagement-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ubd-sidebar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ubd-form-grid {
        grid-template-columns: 1fr;
    }

    .ubd-comment-form-card {
        padding: 22px;
    }

    .ubd-image-gallery {
        gap: 10px;
    }

    .ubd-gallery-item {
        height: 160px;
    }
}

@media (max-width: 420px) {

    .ubd-hero h1 {
        font-size: 26px;
    }

    .ubd-hero-meta {
        gap: 12px;
    }

    .ubd-featured-image img {
        height: 225px;
    }

    .ubd-image-gallery {
        grid-template-columns: 1fr;
    }

    .ubd-gallery-item {
        height: 225px;
    }

    .ubd-article-footer {
        align-items: flex-start;
    }
}

/* =============================================
   AJAX BLOG LIKES
============================================= */

.ubd-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #c93445;
    border: 1px solid #c93445;
    border-radius: 7px;
    padding: 12px 18px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all .25s ease;
}

.ubd-like-btn:hover {
    background: #fff1f3;
    transform: translateY(-2px);
}

.ubd-like-btn.liked {
    background: #c93445;
    color: #ffffff;
}

.ubd-like-btn.liked:hover {
    background: #ac2636;
}

.ubd-like-btn strong {
    background: rgba(201, 52, 69, .1);
    color: inherit;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
}

.ubd-like-btn.liked strong {
    background: rgba(255,255,255,.18);
}

.ubd-like-btn:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

#ubdHeartIcon {
    font-size: 15px;
}

#ubdHeartIcon.fa-heart {
    transition: transform .2s ease;
}

.ubd-like-btn:hover #ubdHeartIcon.fa-heart {
    transform: scale(1.15);
}


/* ==================================================
   PUBLIC BLOG COMMENTS
================================================== */

.ubd-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0 42px;
}

.ubd-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 23px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
}

.ubd-comment-avatar {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf0f7;
    color: #172b4d;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
}

.ubd-comment-content {
    flex: 1;
    min-width: 0;
}

.ubd-comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.ubd-comment-top strong {
    color: #172b4d;
    font-size: 13px;
    font-weight: 700;
}

.ubd-comment-top span {
    color: #8793a5;
    font-size: 11px;
}

.ubd-comment-content > p {
    margin: 0;
    color: #5f6c7d;
    font-size: 13px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* ADMINISTRATOR RESPONSE */

.ubd-admin-reply {
    margin-top: 18px;
    padding: 16px 19px;
    background: #f4f7fb;
    border-left: 3px solid #c93445;
    border-radius: 0 7px 7px 0;
}

.ubd-admin-reply-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 10px;
}

.ubd-admin-reply-heading i {
    color: #c93445;
    font-size: 12px;
}

.ubd-admin-reply-heading strong {
    color: #172b4d;
    font-size: 12px;
}

.ubd-admin-reply-heading span {
    margin-left: auto;
    color: #8793a5;
    font-size: 10px;
}

.ubd-admin-reply p {
    margin: 0;
    color: #536276;
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* ACTIVE LIKE BUTTON */

.ubd-like-btn.liked {
    background: #c93445;
    border-color: #c93445;
    color: #fff;
}

.ubd-like-btn.liked:hover {
    background: #ac2636;
}

.ubd-like-btn:not(:disabled) {
    cursor: pointer;
}

@media (max-width: 575px) {

    .ubd-comment-item {
        padding: 17px;
        gap: 11px;
    }

    .ubd-comment-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ubd-admin-reply {
        padding: 13px 14px;
    }

    .ubd-admin-reply-heading span {
        margin-left: 0;
    }
}


.ubd-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ============================================
   BLOG COMMENT FORM FEEDBACK
============================================ */

.ubd-comment-feedback {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 7px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
}

.ubd-feedback-success {
    background: #e9f7ef;
    border: 1px solid #bce7ce;
    color: #17633b;
}

.ubd-feedback-error {
    background: #fff0f1;
    border: 1px solid #f2c3ca;
    color: #a72739;
}

/* SUBMIT BUTTON */

.ubd-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #172b4d;
    color: #fff;

    border: none;
    border-radius: 7px;

    padding: 13px 22px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;

    transition: background .25s ease;
}

.ubd-submit-btn:hover:not(:disabled) {
    background: #c93445;
}

.ubd-submit-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.ubd-submit-btn .spinner-border {
    width: 13px;
    height: 13px;
    border-width: 2px;
}