/*--------------------------------------------------------------
# Table of Contents
--------------------------------------------------------------*/
.table-of-contents {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 1px solid #ddd;
    background: var(--background-color);
}

.table-of-contents h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

#toc li {
    margin-bottom: 0.2rem;
    padding: 0.25rem 0.5rem;
    transition: background 0.3s ease;
    border-radius: 0.5rem;
}

#toc li:hover,
#toc li.active-toc {
    background: var(--axillary-color);
    border-radius: 0.5rem;
    border-right: 2px solid var(--accent-color);
}

#toc li.active-toc {
    font-weight: bold;
}

.toc-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: var(--accent-color);
}

#toc li ul li {
    margin-inline-start: 1.5rem;
}

.wp-block-rank-math-toc-block {
    display: none;
}

@media (max-width: 991px) {
    .table-of-contents {
        display: none;
    }
    .wp-block-rank-math-toc-block {
        display: block !important;
    }
}

/*--------------------------------------------------------------
# Post Elements
--------------------------------------------------------------*/
.post-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 1rem;
}

.main-content {
    overflow-x: hidden;
}

.main-content div {
    width: 100% !important;
    overflow: hidden;
}

.main-content img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
}

.main-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 2;
}

.main-content h1,
.main-content h2 {
    color: var(--accent-color) !important;
}

.main-content blockquote {
    background-color: var(--axillary-color) !important;
    border-left: 4px solid var(--accent-color) !important;
    border-radius: 10px !important;
    padding: 1rem 1rem !important;
    margin: 1rem 0 !important;
}

.main-content blockquote strong {
    color: var(--dark-heading-color) !important;
}

.main-content blockquote p {
    margin-bottom: 0 !important;
}

/*--------------------------------------------------------------
# Post Meta (Author / Reading Time)
--------------------------------------------------------------*/
.post-header .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7386;
}

.post-header .meta-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.post-header .meta-item .author-name {
    color: var(--dark-heading-color);
    font-weight: 600;
    margin-right: 4px;
}

/*--------------------------------------------------------------
# Post Tags
--------------------------------------------------------------*/
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px dashed color-mix(in srgb, var(--default-color) 15%, transparent);
}

.post-tags__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-heading-color);
    margin-left: 4px;
}

.post-tags__label i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.post-tag i {
    font-size: 0.7rem;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.post-tag:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.post-tag:hover i {
    opacity: 1;
    color: #fff;
}

@media (max-width: 576px) {
    .post-tags {
        gap: 6px;
    }
    .post-tag {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

/*--------------------------------------------------------------
# Video Player
--------------------------------------------------------------*/
.post-media-container {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-media-container .video-player-wrapper {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 1rem;
    overflow: hidden;
}

.post-media-container .video-cover {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.post-media-container .video-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-cover:hover img {
    opacity: 1;
}

.post-media-container .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(102, 45, 145, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.post-media-container .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--second-brand-color);
}

.post-media-container .video-container {
    width: 100%;
    line-height: 0;
}

.post-media-container .custom-video-player {
    border-radius: 1rem;
    outline: none;
}

/*--------------------------------------------------------------
# Audio Podcast Player
--------------------------------------------------------------*/
.podcast-box {
    background-color: var(--axillary-color);
    border: 1px solid rgba(102, 45, 145, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.podcast-box .podcast-header {
    margin-bottom: 1rem;
    text-align: center;
}

.podcast-box .podcast-title {
    color: var(--accent-color);
    font-size: var(--font-size-18);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.podcast-box .podcast-subtitle {
    color: var(--dark-text-color);
    font-size: var(--font-size-12);
    text-align: center;
    margin: 0;
}

.podcast-box .audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #eee;
}

.podcast-box .audio-controls {
    flex-shrink: 0;
}

.podcast-box .audio-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.podcast-box .audio-btn:hover {
    background-color: var(--nav-color);
}

.podcast-box .waveform-container {
    flex-grow: 1;
    height: 40px;
    overflow: hidden;
}

.podcast-box .audio-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 80px;
}

.podcast-box .audio-time {
    font-size: var(--font-size-10);
    color: var(--dark-text-color);
    font-family: monospace;
    direction: ltr;
}

.podcast-box .audio-speed-select {
    font-size: var(--font-size-10);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: var(--dark-heading-color);
    background: #fff;
    cursor: pointer;
    outline: none;
}

@media (max-width: 768px) {
    .podcast-box .audio-player-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .podcast-box .audio-controls {
        align-self: center;
    }
    .podcast-box .audio-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/*--------------------------------------------------------------
# RankMath Questions
--------------------------------------------------------------*/
.rank-math-block .rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.rank-math-block .rank-math-list-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.rank-math-block .rank-math-list-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.rank-math-block .rank-math-question {
    margin: 0 !important;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    user-select: none;
    transition: background-color 0.3s ease;
}

.rank-math-block .rank-math-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #6b7280;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 15px;
}

.rank-math-block .rank-math-list-item.rm-active .rank-math-question {
    background-color: #f3f4f6;
    color: var(--accent-color);
}

.rank-math-block .rank-math-list-item.rm-active .rank-math-question::after {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.rank-math-block .rank-math-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.rank-math-block .rank-math-answer p {
    padding: 20px;
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

/*--------------------------------------------------------------
# Read More Box
--------------------------------------------------------------*/
.readmore-box {
    background-color: var(--second-axillary-color);
    border-left: 4px solid var(--second-accent-color);
    border-radius: 10px;
    padding: 1rem 1rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.readmore-box p {
    margin-bottom: 0 !important;
}

.readmore-box strong {
    color: var(--dark-heading-color);
}

.readmore-box a {
    color: var(--dark-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.readmore-box a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Post Meta Box
--------------------------------------------------------------*/
.post-meta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    margin: 1rem 0;
    overflow-y: visible;
}

.post-meta-box span {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Article Sources
--------------------------------------------------------------*/
.article-sources {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

.article-sources h3 {
    font-size: var(--font-size-16);
    margin-bottom: 10px;
}

.article-sources .sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-sources .badge {
    font-size: var(--font-size-10);
    padding: 6px 12px;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.article-sources .badge:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/*--------------------------------------------------------------
# Related Posts Box
--------------------------------------------------------------*/
.related-posts-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--accent-color) 14%, transparent);
    border-radius: 20px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 6px 24px -18px rgba(16, 22, 43, 0.25);
}

.related-posts-wrapper__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color) 8%, transparent);
}

.related-posts-wrapper__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.related-posts-wrapper__title {
    position: relative;
    font-size: var(--font-size-16);
    font-weight: 700;
    color: var(--dark-heading-color);
    margin: 0;
    line-height: 1.4;
}

.related-posts-wrapper__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--second-accent-color));
}

.related-posts-box {
    padding: 0;
    margin: 0;
    text-align: right;
}

.related-posts-box .related-post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.related-posts-box .related-post-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fbfcfe;
    border: 1px solid color-mix(in srgb, var(--default-color) 7%, transparent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-posts-box .related-post-inner:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-color) 30%, transparent);
    box-shadow: 0 12px 24px -16px rgba(16, 22, 43, 0.35);
}

.related-posts-box .post-thumbnail {
    display: block;
    overflow: hidden;
}

.related-posts-box .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-posts-box .related-post-inner:hover .post-thumbnail img {
    transform: scale(1.06);
}

.related-posts-box .related-post-card .card-body {
    flex-grow: 1;
    padding: 0.9rem 0.9rem 1rem;
    text-align: right;
}

.related-posts-box .related-post-card h6 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--dark-heading-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts-box .related-post-card h6 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.related-posts-box .related-post-card h6 a:hover {
    color: var(--accent-color);
}

.related-posts-box .related-post-card p {
    margin: 0;
    font-size: 0.78rem;
    color: #7a8296;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .related-posts-wrapper {
        padding: 1.25rem 1rem 1rem;
        border-radius: 16px;
    }
    .related-posts-box .related-post-inner {
        flex-direction: row;
        align-items: stretch;
    }
    .related-posts-box .post-thumbnail {
        flex-shrink: 0;
        width: 96px;
    }
    .related-posts-box .post-thumbnail img {
        width: 96px;
        height: 100%;
        min-height: 96px;
    }
    .related-posts-box .related-post-card .card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .related-posts-box .related-post-card h6 {
        font-size: 0.85rem;
    }
    .related-posts-box .related-post-card p {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }
}

.wp-caption-text,
.wp-element-caption {
    font-size: var(--font-size-14) !important;
    color: #666 !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
}

/*--------------------------------------------------------------
# Sidebar Base
--------------------------------------------------------------*/
.sidebar .sidebar-inner-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Admin bar offset */
body.admin-bar .sidebar .sidebar-inner-sticky {
    top: 142px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sidebar .sidebar-inner-sticky {
        top: 156px;
    }
}

@media (max-width: 991px) {
    .sidebar-left,
    .sidebar-right {
        order: 2;
        margin-top: 2rem;
    }
    .sidebar .sidebar-inner-sticky {
        position: relative;
        top: 0;
    }
    body.admin-bar .sidebar .sidebar-inner-sticky {
        top: 0;
    }
}

/*--------------------------------------------------------------
# Sidebar Service Cards
--------------------------------------------------------------*/
.sidebar-service-box {
    padding: 0;
}

.sidebar-service-box__title {
    position: relative;
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--dark-heading-color);
    margin-bottom: 1rem;
    padding-right: 14px;
    line-height: 1.4;
}

.sidebar-service-box__title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 4px;
}

.sidebar-service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-service-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--accent-color) 14%, transparent);
    text-decoration: none;
    color: var(--dark-heading-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 14px -10px rgba(16, 22, 43, 0.25);
}

.sidebar-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, #1a2a4a 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sidebar-service-card > * {
    position: relative;
    z-index: 1;
}

.sidebar-service-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent-color) 45%, transparent);
    color: #fff;
}

.sidebar-service-card:hover::before {
    opacity: 1;
}

.sidebar-service-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    font-size: 1.15rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sidebar-service-card:hover .sidebar-service-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05) rotate(-4deg);
}

.sidebar-service-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-service-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
}

.sidebar-service-card__desc {
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-service-card__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-service-card:hover .sidebar-service-card__arrow {
    opacity: 1;
    transform: translateX(-4px);
}

/*--------------------------------------------------------------
# Sidebar Widget Area
--------------------------------------------------------------*/
.sidebar-widget-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget-area .widget {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--default-color) 8%, transparent);
    border-radius: 16px;
    box-shadow: 0 4px 14px -12px rgba(16, 22, 43, 0.2);
    font-size: 0.9rem;
    color: var(--dark-text-color);
}

.sidebar-widget-area .widget-title {
    position: relative;
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--dark-heading-color);
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    padding-right: 14px;
    line-height: 1.4;
}

.sidebar-widget-area .widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    width: 4px;
    height: 16px;
    background: var(--second-accent-color);
    border-radius: 4px;
}

.sidebar-widget-area .widget-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: color-mix(in srgb, var(--default-color) 8%, transparent);
}

.sidebar-widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget-area .widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--default-color) 8%, transparent);
    line-height: 1.8;
}

.sidebar-widget-area .widget ul li:last-child {
    border-bottom: 0;
}

.sidebar-widget-area .widget a {
    color: var(--dark-text-color);
    text-decoration: none;
    transition: color 0.25s ease, padding 0.25s ease;
}

.sidebar-widget-area .widget a:hover {
    color: var(--accent-color);
    padding-right: 4px;
}

.sidebar-widget-area .widget img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.sidebar-widget-area .widget select,
.sidebar-widget-area .widget input[type="text"],
.sidebar-widget-area .widget input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--default-color) 15%, transparent);
    font-size: 0.85rem;
}

.sidebar-widget-area .widget .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px 2px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
    color: var(--accent-color);
    font-size: 0.75rem !important;
    transition: background 0.25s ease, color 0.25s ease;
}

.sidebar-widget-area .widget .tagcloud a:hover {
    background: var(--accent-color);
    color: #fff;
}

/*--------------------------------------------------------------
# Comment CTA Box
--------------------------------------------------------------*/
.comment-cta-box {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.comment-cta-box--gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1a2a4a 100%);
}

.comment-cta-box--image {
    background-color: var(--accent-color);
}

.comment-cta-box__bg {
    position: absolute;
    inset: 5px;
    border-radius: calc(1.25rem - 5px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.comment-cta-box__overlay {
    position: absolute;
    inset: 5px;
    border-radius: calc(1.25rem - 5px);
    z-index: 0;
}

.comment-cta-box__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.comment-cta-box__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1.25rem;
    transition: transform 0.35s ease;
}

.comment-cta-box:hover .comment-cta-box__icon {
    transform: scale(1.06) rotate(-4deg);
}

.comment-cta-box__eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: #fff;
}

.comment-cta-box__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 0.85rem;
}

.comment-cta-box__desc {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    max-width: 300px;
    margin: 0 auto 1.75rem;
}

.comment-cta-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    background: #fff;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.comment-cta-box__btn:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
}

.comment-cta-box__btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.comment-cta-box__btn:hover i {
    transform: translateX(-4px);
}

@media (max-width: 991px) {
    .comment-cta-box {
        height: auto;
        min-height: 320px;
        margin-bottom: 0;
    }
    .comment-cta-box__content {
        padding: 2.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .comment-cta-box {
        min-height: 280px;
        border-radius: 1rem;
    }
    .comment-cta-box__bg,
    .comment-cta-box__overlay {
        inset: 4px;
        border-radius: calc(1rem - 4px);
    }
    .comment-cta-box__icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    .comment-cta-box__title {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-service-card,
    .sidebar-service-card__icon,
    .sidebar-service-card__arrow,
    .comment-cta-box__icon,
    .comment-cta-box__btn,
    .comment-cta-box__btn i {
        transition: none !important;
    }
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-section {
    margin: 0;
    padding: 0;
    background: var(--contrast-color);
    border-radius: 1rem;
}

.commnet-rules {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

.commnet-rules .commnet-rules-title {
    font-size: var(--font-size-14);
}

.commnet-rules .commnet-rule-items {
    font-size: var(--font-size-12);
    font-weight: 400;
    margin: 0;
    padding: 0;
    list-style: none;
}

.commnet-rules .commnet-rule-items .important-item {
    color: var(--accent-color);
}

.comments-title {
    font-size: var(--font-size-16);
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-details {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date a {
    color: #888;
    text-decoration: none;
    font-size: var(--font-size-12);
}

.comment-text {
    margin: 0.5rem 0;
    color: #555;
}

.comment-reply a {
    color: var(--accent-color);
    text-decoration: none;
}

.comment-reply a:hover {
    text-decoration: underline;
}

.awaiting-approval {
    color: var(--accent-color);
    font-style: italic;
}

.comment-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.toggle-comment-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.toggle-comment-btn:hover {
    background: var(--default-color);
}

.comment-form-container {
    margin-top: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border: 1px solid var(--accent-color) !important;
    outline: none;
}

.submit-button {
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--default-color);
}

.g-recaptcha {
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr 1fr;
    }
    .comment-form-comment {
        grid-column: span 2;
    }
    .g-recaptcha,
    .form-submit {
        grid-column: span 2;
    }
}

/*--------------------------------------------------------------
# Responsive Spacing Fixes (Mobile)
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .single-below-section {
        margin-top: 1.5rem !important;
    }

    .single-below-section .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }

    .comments-section {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }

    .commnet-rules {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .related-posts-wrapper {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .single-below-section {
        margin-top: 1rem !important;
    }

    .single-below-section .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }

    .commnet-rules {
        padding: 0.9rem 0.85rem;
        border-radius: 0.75rem;
    }

    .commnet-rules .commnet-rules-title {
        font-size: 0.82rem;
    }

    .commnet-rules .commnet-rule-items {
        font-size: 0.72rem;
        line-height: 1.7;
    }

    .comments-section {
        padding: 0.65rem;
    }
}