/* ==========================================================
   SHARED EDITOR + PUBLISHED HEADING SYSTEM
   ========================================================== */

/* Article body typography: same selectors in Gutenberg and published posts. */
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2 {
    position: relative;
    color: #F2623A !important;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 4rem 0 2rem;
    padding: 32px 0;
    background: transparent;
    border: 0;
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading::before,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading::after,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2::before,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0CB1F2, #00C2FD, #86DAFD);
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading::before,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2::before {
    top: 0;
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading::after,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2::after {
    bottom: 0;
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h3.wp-block-heading,
:where(.post-body, body.sg-editor-post .editor-styles-wrapper) h3 {
    color: #0CB1F2 !important;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) p {
    color: #D1D5DB;
    font-size: 1.12rem;
    line-height: 1.95;
}

:where(.post-body, body.sg-editor-post .editor-styles-wrapper) img {
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

/* Large homepage advanced headings, including LATEST ARTICLES. */
:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text {
    position: relative;
    display: block;
    width: 100%;
    margin: 56px 0 34px !important;
    padding: 28px 0 !important;
    text-align: center;
    font-size: clamp(2.6rem, 6vw, 4.8rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    color: #F2623A !important;
    background: linear-gradient(90deg, #F2623A 35%, #F29422 65%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text::before,
:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0CB1F2, #00C2FD, #86DAFD);
    -webkit-text-fill-color: initial;
}

:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text::before {
    top: 0;
}

:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text::after {
    bottom: 0;
}

/* Empty advanced-heading placeholders should not create blank decorated space. */
:where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading:has(.uagb-heading-text:empty) {
    display: none;
}

@media (max-width: 768px) {
    :where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2.wp-block-heading,
    :where(.post-body, body.sg-editor-post .editor-styles-wrapper) h2 {
        font-size: 1.7rem;
        margin: 3rem 0 1.5rem;
        padding: 24px 0;
    }

    :where(.home-page-content, body.sg-editor-front-page .editor-styles-wrapper) .wp-block-uagb-advanced-heading .uagb-heading-text {
        font-size: clamp(2rem, 10vw, 3.2rem) !important;
        margin: 40px 0 26px !important;
        padding: 22px 0 !important;
    }
}/* ==========================================================
   MODERN BLOG COMMENT FORM
   ========================================================== */

.comments-area {
    width: min(100%, 900px);
    margin: 70px auto 0;
    padding: 32px;
    background: linear-gradient(180deg, #10182a 0%, #0b1425 100%);
    border: 1px solid rgba(0, 191, 255, 0.22);
    border-radius: 20px;
}

.comments-area .comment-reply-title,
.comments-area .comments-title {
    margin: 0 0 22px;
    color: #f4f7ff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 7px;
    color: #cbd7e7;
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 15px 16px;
    color: #eef5ff;
    background: #08111f;
    border: 1px solid rgba(124, 145, 190, 0.35);
    border-radius: 11px;
    font: inherit;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    background: #0b1628;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.12);
}

.comment-form .logged-in-as {
    padding: 13px 15px;
    color: #9fb0c7;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(124, 145, 190, 0.18);
    border-radius: 10px;
}

.comment-form .logged-in-as a {
    color: #00bfff;
}

.comment-form .form-submit {
    margin-top: 4px;
}

.comment-form .submit {
    min-height: 48px;
    padding: 12px 25px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #00bfff, #1677ff);
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 191, 255, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 191, 255, 0.28);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #9fb0c7;
    font-size: 0.88rem;
}

.comment-form-cookies-consent input {
    margin-top: 4px;
}

/* Prevent injected Gravatar controls from dominating the form */
.comment-form img.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

@media (max-width: 650px) {
    .comments-area {
        margin-top: 45px;
        padding: 22px 18px;
        border-radius: 16px;
    }
}
