/* ========================================
   Blog Page Enhancements
   Overrides GeneratePress default blog styles
   for a modern card-based grid layout.

   GP blog settings: column_layout=1, columns=50 (2-col),
   post_image_alignment=left, separate-containers, no-sidebar
   ======================================== */

/* ---- RESET GP SEPARATE-CONTAINERS DEFAULTS ---- */

/* Remove GP's massive inside-article padding */
body.blog .separate-containers .inside-article,
body.archive .separate-containers .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 10, 84, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.blog .separate-containers .inside-article:hover,
body.archive .separate-containers .inside-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 10, 84, 0.15);
}

/* Remove GP article bottom margin */
body.blog .separate-containers .site-main > article,
body.archive .separate-containers .site-main > article {
    margin-bottom: 0 !important;
    background: transparent !important;
}

/* ---- GRID LAYOUT - OVERRIDE GP FLOAT COLUMNS ---- */

/* Convert GP float columns to CSS Grid */
body.blog .generate-columns-container,
body.archive .generate-columns-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-left: 0 !important;
    float: none !important;
    overflow: visible !important;
}

/* Override individual column widths and floats */
body.blog .generate-columns-container .generate-columns,
body.archive .generate-columns-container .generate-columns {
    width: 100% !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
}

/* 3 columns on large screens */
@media screen and (min-width: 1200px) {
    body.blog .generate-columns-container,
    body.archive .generate-columns-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 1 column on mobile */
@media screen and (max-width: 768px) {
    body.blog .generate-columns-container,
    body.archive .generate-columns-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- CONTENT AREA ---- */

body.blog .site-content,
body.archive .site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

body.blog .site-main,
body.archive .site-main {
    margin: 0 !important;
}

/* ---- POST IMAGE ---- */

/* Reset GP's left-aligned image float */
body.blog .post-image-aligned-left .post-image,
body.archive .post-image-aligned-left .post-image,
body.blog .no-featured-image-padding .post-image,
body.archive .no-featured-image-padding .post-image,
body.blog .inside-article .post-image,
body.archive .inside-article .post-image {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    height: 220px;
}

body.blog .post-image a,
body.archive .post-image a {
    display: block;
    height: 100%;
}

body.blog .post-image img,
body.archive .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0 !important;
}

body.blog .inside-article:hover .post-image img,
body.archive .inside-article:hover .post-image img {
    transform: scale(1.05);
}

/* ---- ENTRY HEADER (TITLE + META) ---- */

body.blog .separate-containers .inside-article .entry-header,
body.archive .separate-containers .inside-article .entry-header {
    padding: 20px 20px 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: both;
}

body.blog .entry-title,
body.archive .entry-title {
    font-family: Poppins, sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

body.blog .entry-title a,
body.archive .entry-title a {
    color: #140a54;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
    color: #453c9e;
}

/* ---- ENTRY META (DATE, AUTHOR) ---- */

body.blog .inside-article .entry-meta,
body.archive .inside-article .entry-meta {
    font-family: Montserrat, sans-serif;
    font-size: 13px !important;
    color: #666;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body.blog .entry-header .entry-meta,
body.archive .entry-header .entry-meta {
    margin-top: 4px !important;
}

body.blog .entry-meta a,
body.archive .entry-meta a {
    color: #666 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.blog .entry-meta a:hover,
body.archive .entry-meta a:hover {
    color: #453c9e !important;
}

/* Hide GP SVG icons in meta */
body.blog .gp-icon,
body.archive .gp-icon {
    display: none !important;
}

body.blog .screen-reader-text,
body.archive .screen-reader-text {
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ---- ENTRY SUMMARY / EXCERPT ---- */

body.blog .separate-containers .inside-article .entry-summary,
body.archive .separate-containers .inside-article .entry-summary {
    padding: 12px 20px 20px !important;
    margin: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    float: none !important;
    width: 100% !important;
    clear: both;
}

body.blog .entry-summary p,
body.archive .entry-summary p {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* ---- READ MORE BUTTON ---- */

body.blog .read-more-container,
body.archive .read-more-container {
    margin-top: auto;
}

body.blog a.read-more.button,
body.archive a.read-more.button,
body.blog .read-more.button,
body.archive .read-more.button {
    display: inline-block !important;
    font-family: Poppins, sans-serif;
    font-size: 14px !important;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #23196e, #453c9e) !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none !important;
}

body.blog a.read-more.button:hover,
body.archive a.read-more.button:hover,
body.blog .read-more.button:hover,
body.archive .read-more.button:hover {
    background: linear-gradient(135deg, #140a54, #23196e) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 10, 84, 0.3);
    color: #fff !important;
}

/* ---- FOOTER META (CATEGORIES/TAGS) ---- */

body.blog .separate-containers article > .inside-article > footer.entry-meta,
body.archive .separate-containers article > .inside-article > footer.entry-meta {
    padding: 12px 20px 15px !important;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: both;
}

body.blog .cat-links a,
body.archive .cat-links a {
    color: #453c9e !important;
    font-weight: 500;
    text-decoration: none !important;
    background: rgba(69, 60, 158, 0.08);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.2s ease;
}

body.blog .cat-links a:hover,
body.archive .cat-links a:hover {
    background: rgba(69, 60, 158, 0.15);
    color: #23196e !important;
}

body.blog .tags-links a,
body.archive .tags-links a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 12px;
}

/* ---- GP PAGE HEADER (ARCHIVE TITLES) ---- */

body.blog .page-header,
body.archive .page-header {
    margin-left: 0 !important;
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    text-align: center;
}

body.blog .page-header h1,
body.archive .page-header h1 {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #140a54;
    text-align: center;
}

/* ---- PAGINATION ---- */

body.blog .paging-navigation,
body.archive .paging-navigation {
    text-align: center;
    padding: 40px 0 20px;
    grid-column: 1 / -1;
    background: transparent !important;
}

body.blog .paging-navigation a,
body.archive .paging-navigation a {
    display: inline-block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #23196e;
    background: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    border: 2px solid #23196e;
    transition: all 0.3s ease;
    margin: 0 5px;
}

body.blog .paging-navigation a:hover,
body.archive .paging-navigation a:hover {
    background: #23196e;
    color: #fff;
}

/* ---- MISC CLEANUP ---- */

/* Remove GP's clearfix after columns that breaks grid */
body.blog .generate-columns-container::after,
body.archive .generate-columns-container::after {
    display: none !important;
}

/* Ensure no sidebar overlap */
body.blog #right-sidebar,
body.archive #right-sidebar,
body.blog #left-sidebar,
body.archive #left-sidebar {
    display: none !important;
}

/* Blog title element (from GP Elements hook) */
body.blog .single-page-title,
body.archive .single-page-title {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 39px;
    color: #140a54;
    text-align: center;
}

/* ---- RELATED POSTS SECTION (Single Post Page) ---- */

.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-posts-title {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #140a54;
    margin-bottom: 30px;
}

.related-posts-section .related-posts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.related-posts-section .related-posts .post {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 10, 84, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts-section .related-posts .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 10, 84, 0.15);
}

.related-posts-section .related-posts .post .image {
    height: 200px;
    overflow: hidden;
}

.related-posts-section .related-posts .post .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-posts-section .related-posts .post:hover .image img {
    transform: scale(1.05);
}

.related-posts-section .related-posts .post .author-and-publish-date {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #666;
    padding: 15px 18px 5px;
}

.related-posts-section .related-posts .post .title {
    padding: 0 18px 18px;
}

.related-posts-section .related-posts .post .title h3 {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #140a54;
    line-height: 1.4;
    margin: 0;
}

/* Responsive: 2 columns on tablet */
@media screen and (max-width: 991px) {
    .related-posts-section .related-posts .post {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Responsive: 1 column on mobile */
@media screen and (max-width: 575px) {
    .related-posts-section .related-posts .post {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .related-posts-title {
        font-size: 22px;
    }
}

/* ---- KEY TAKEAWAYS BOX (AI Visibility) ---- */

.key-takeaways {
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
    border-left: 4px solid #453c9e;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 25px 0 30px;
    font-family: Montserrat, sans-serif;
}

.key-takeaways h2 {
    font-family: Poppins, sans-serif;
    font-size: 20px !important;
    font-weight: 700;
    color: #140a54;
    margin: 0 0 14px !important;
    padding: 0;
    line-height: 1.3;
}

.key-takeaways ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.key-takeaways ul li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.key-takeaways ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #453c9e;
    font-weight: 700;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .key-takeaways {
        padding: 18px 20px;
        margin: 20px 0 25px;
    }

    .key-takeaways h2 {
        font-size: 18px !important;
    }

    .key-takeaways ul li {
        font-size: 14px;
    }
}

/* ---- COMPARISON TABLE (Hub Posts) ---- */

.comparison-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table-wrapper h2 {
    font-family: Poppins, sans-serif;
    font-size: 22px !important;
    font-weight: 700;
    color: #140a54;
    margin: 0 0 16px !important;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e0ddf5;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #453c9e 0%, #2d2670 100%);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    border: none;
}

.comparison-table thead th:first-child {
    width: 40px;
    text-align: center;
}

.comparison-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #333;
    vertical-align: middle;
}

.comparison-table tbody td:first-child {
    text-align: center;
    font-weight: 700;
    color: #453c9e;
    width: 40px;
}

.comparison-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #140a54;
    min-width: 160px;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f7ff;
}

.comparison-table tbody tr:hover {
    background-color: #eeecfa;
    transition: background-color 0.15s ease;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 20px -15px;
        padding: 0 15px;
    }

    .comparison-table-wrapper h2 {
        font-size: 19px !important;
        padding: 0 15px;
    }

    .comparison-table {
        font-size: 13px;
        min-width: 600px;
    }

    .comparison-table thead th {
        padding: 10px 10px;
        font-size: 12px;
    }

    .comparison-table tbody td {
        padding: 8px 10px;
    }
}

/* ========================================
   SINGLE POST PAGE DESIGN
   Beautiful modern layout with hero image,
   sidebar, and related posts.
   ======================================== */

/* ---- HERO IMAGE SECTION ---- */

.single-hero {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    margin-top: -57px; /* Overlap the header padding */
}

@media screen and (min-width: 992px) {
    .single-hero {
        margin-top: 0;
        max-height: 520px;
    }
}

.single-hero__image {
    width: 100%;
    height: 100%;
}

.single-hero__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

@media screen and (min-width: 992px) {
    .single-hero__image img {
        height: 520px;
    }
}

.single-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 5, 76, 0.3) 0%,
        rgba(15, 5, 76, 0.05) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.7) 90%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
}

/* ---- MAIN POST WRAPPER ---- */

.single-post-wrapper {
    background: #fff;
    padding-bottom: 60px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 30px;
}

@media screen and (min-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr 300px;
        gap: 50px;
        padding-top: 40px;
    }
}

@media screen and (min-width: 1200px) {
    .single-post-layout {
        grid-template-columns: 1fr 340px;
    }
}

/* ---- ARTICLE CONTENT ---- */

.single-post-article {
    min-width: 0; /* Prevent grid blowout */
}

/* Breadcrumbs */
.single-breadcrumbs {
    margin-bottom: 24px;
}

.single-breadcrumbs__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    border: 1px solid #e8e5f5;
    border-radius: 30px;
    padding: 8px 18px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    line-height: 1;
    flex-wrap: wrap;
}

.single-breadcrumbs__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #453c9e;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.single-breadcrumbs__home:hover {
    color: #23196e;
}

.single-breadcrumbs__sep {
    color: #c4bde6;
    flex-shrink: 0;
}

.single-breadcrumbs__link {
    color: #453c9e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.single-breadcrumbs__link:hover {
    color: #23196e;
    text-decoration: underline;
}

.single-breadcrumbs__current {
    color: #666;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 350px;
}

@media screen and (max-width: 768px) {
    .single-breadcrumbs__inner {
        padding: 7px 14px;
        gap: 6px;
        font-size: 12px;
    }
    .single-breadcrumbs__current {
        max-width: 200px;
    }
}

/* Post Meta */
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post-meta img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.single-post-meta__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-post-meta__author {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #140a54;
}

.single-post-meta__date {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    color: #666;
}

.single-post-meta__sep {
    margin: 0 6px;
    color: #ccc;
}

.single-post-meta__readtime {
    color: #453c9e;
    font-weight: 500;
}

.single-post-meta__readtime .rt-prefix,
.single-post-meta__readtime .rt-suffix {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Title */
.single-post-title {
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #140a54;
    line-height: 1.3;
    margin: 0 0 30px;
}

@media screen and (max-width: 768px) {
    .single-post-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

/* Post Content */
.single-post-content {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-post-content h2 {
    font-family: Poppins, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #140a54;
    margin: 45px 0 18px;
    line-height: 1.3;
}

.single-post-content h3 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #23196e;
    margin: 35px 0 14px;
    line-height: 1.4;
}

.single-post-content h4 {
    font-family: Poppins, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 28px 0 12px;
}

.single-post-content p {
    margin-bottom: 18px;
}

.single-post-content a {
    color: #453c9e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.single-post-content a:hover {
    color: #23196e;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 20px 30px;
    padding: 0;
}

.single-post-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.single-post-content blockquote {
    border-left: 4px solid #453c9e;
    background: #f8f7ff;
    margin: 25px 0;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.single-post-content .wp-caption {
    max-width: 100%;
}

.single-post-content .wp-caption-text {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

/* FAQ section styling */
.single-post-content h2:has(+ h3) {
    margin-bottom: 12px;
}

@media screen and (max-width: 768px) {
    .single-post-content {
        font-size: 15px;
    }

    .single-post-content h2 {
        font-size: 22px;
        margin: 35px 0 14px;
    }

    .single-post-content h3 {
        font-size: 18px;
        margin: 28px 0 12px;
    }
}

/* Post Tags */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.single-post-tag {
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #453c9e;
    background: rgba(69, 60, 158, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-post-tag:hover {
    background: rgba(69, 60, 158, 0.18);
    color: #23196e;
}

/* ---- SIDEBAR ---- */

.single-sidebar {
    display: none;
}

@media screen and (min-width: 992px) {
    .single-sidebar {
        display: block;
    }
}

.single-sidebar__inner {
    position: sticky;
    top: 30px;
}

.single-sidebar__widget {
    background: #f9f8ff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.single-sidebar__title {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #140a54;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e5f5;
}

/* Sidebar Related Items */
.sidebar-related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eeecf5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-related-item:first-child {
    padding-top: 0;
}

.sidebar-related-item:hover {
    opacity: 0.85;
}

.sidebar-related-item__thumb {
    flex-shrink: 0;
    width: 70px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-related-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-related-item__text {
    min-width: 0;
}

.sidebar-related-item__text h4 {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #140a54;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-related-item__date {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    color: #666;
}

/* ---- SIDEBAR: BROWSE TOPICS WIDGET ---- */

.sidebar-categories-widget {
    background: linear-gradient(135deg, #f9f8ff 0%, #f0edff 100%);
}

.sidebar-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    border: 1.5px solid #e8e5f5;
    border-radius: 20px;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #453c9e;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.3;
}

.sidebar-cat-btn:hover {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 60, 158, 0.25);
}

.sidebar-cat-btn--active {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(69, 60, 158, 0.3);
}

.sidebar-cat-btn--active:hover {
    background: #23196e;
    border-color: #23196e;
}

.sidebar-cat-btn__icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-cat-btn__label {
    white-space: nowrap;
}

/* ---- SIDEBAR: HUB GUIDES WIDGET ---- */

.sidebar-hubs-widget {
    background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
    border: 1px solid #fde8d0;
}

.sidebar-hubs-widget .single-sidebar__title {
    color: #8b5e2b;
    border-bottom-color: #f5dfc5;
}

.sidebar-hub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-hub-list li {
    margin-bottom: 4px;
}

.sidebar-hub-list li:last-child {
    margin-bottom: 0;
}

.sidebar-hub-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #453c9e;
    line-height: 1.45;
    transition: all 0.2s ease;
}

.sidebar-hub-link:hover {
    background: rgba(69, 60, 158, 0.06);
    color: #23196e;
}

.sidebar-hub-link__arrow {
    flex-shrink: 0;
    margin-top: 3px;
    color: #b0a6e0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-hub-link:hover .sidebar-hub-link__arrow {
    transform: translateX(3px);
    color: #453c9e;
}

.sidebar-hub-link span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- BOTTOM RELATED POSTS SECTION ---- */

.single-related-section {
    background: linear-gradient(180deg, #f9f8ff 0%, #fff 100%);
    padding: 60px 0 80px;
}

.single-related-section__title {
    font-family: Poppins, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #140a54;
    text-align: center;
    margin: 0 0 40px;
}

.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media screen and (max-width: 991px) {
    .single-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 575px) {
    .single-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-related-section {
        padding: 40px 0 60px;
    }

    .single-related-section__title {
        font-size: 24px;
        margin-bottom: 28px;
    }
}

/* Related Post Card */
.single-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(20, 10, 84, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(20, 10, 84, 0.15);
}

.single-related-card__image {
    height: 200px;
    overflow: hidden;
}

.single-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-related-card:hover .single-related-card__image img {
    transform: scale(1.08);
}

.single-related-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.single-related-card__date {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.single-related-card__title {
    font-family: Poppins, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #140a54;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-related-card__excerpt {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-related-card__link {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #453c9e;
    transition: color 0.2s ease;
}

.single-related-card:hover .single-related-card__link {
    color: #23196e;
}

/* ---- GP OVERRIDES FOR SINGLE POST ---- */

/* Reset GP's outer containers so our custom layout is full-width */
body.single-post #page {
    max-width: none !important;
    padding: 0 !important;
}

body.single-post .site-content {
    display: block !important;
    padding: 0 !important;
    max-width: none !important;
}

/* Hide GP's default content/sidebar structure */
body.single-post .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

body.single-post .entry-header,
body.single-post .entry-meta {
    display: none !important;
}

body.single-post #right-sidebar,
body.single-post #left-sidebar {
    display: none !important;
}

body.single-post .site-main {
    margin: 0 !important;
}

body.single-post .content-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

body.single-post .separate-containers .inside-article {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-post .post-navigation {
    display: none !important;
}

body.single-post footer.entry-meta {
    display: none !important;
}

/* ---- MEGA MENU: Blog Categories Dropdown ---- */

@media screen and (min-width: 992px) {
    /* Wider dropdown for Blog item with many categories */
    ul#main-menu > .menu-item-has-children .sub-menu {
        width: 280px;
        border-radius: 12px;
        padding: 8px 0 !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    ul#main-menu > .menu-item-has-children .sub-menu .menu-item {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    ul#main-menu > .menu-item-has-children .sub-menu .menu-item:last-child {
        border-bottom: none !important;
    }

    ul#main-menu > .menu-item-has-children .sub-menu .menu-item a {
        padding: 11px 18px !important;
        font-size: 13.5px !important;
        white-space: nowrap !important;
        transition: background 0.15s ease;
        border-radius: 0;
    }

    ul#main-menu > .menu-item-has-children .sub-menu .menu-item a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ============================================
   ARCHIVE & SEARCH PAGES
   ============================================ */

/* GP Overrides for archive/search pages */
body.archive #page,
body.search #page {
    max-width: none !important;
    padding: 0 !important;
}

body.archive .site-content,
body.search .site-content {
    display: block !important;
    padding: 0 !important;
    max-width: none !important;
}

body.archive .content-area,
body.search .content-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

body.archive #right-sidebar,
body.archive #left-sidebar,
body.search #right-sidebar,
body.search #left-sidebar {
    display: none !important;
}

body.archive .inside-article,
body.search .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.archive .site-main,
body.search .site-main {
    margin: 0 !important;
}

/* ---- Archive Hero Banner ---- */

.archive-hero {
    position: relative;
    background: linear-gradient(135deg, #23196e 0%, #150c57 50%, #0f054c 100%);
    padding: 60px 0 50px;
    text-align: center;
    overflow: hidden;
}

.archive-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(66, 232, 224, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(69, 60, 158, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.archive-hero .aa-container {
    position: relative;
    z-index: 1;
}

.archive-hero__title {
    font-family: Poppins, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.archive-hero__desc {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.archive-hero__meta {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
    .archive-hero {
        padding: 40px 0 35px;
    }
    .archive-hero__title {
        font-size: 26px;
    }
}

/* ---- Search Form ---- */

.archive-search-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.archive-search-form__input {
    flex: 1;
    padding: 12px 22px;
    border: none;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #333;
    background: #fff;
    outline: none;
}

.archive-search-form__input::placeholder {
    color: #aaa;
}

.archive-search-form__btn {
    padding: 12px 28px;
    border: none;
    background: #42e8e0;
    color: #180e5b;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.archive-search-form__btn:hover {
    background: #33d4cc;
}

/* ---- Category Navigation Strip ---- */

.archive-categories {
    background: #f9f8ff;
    border-bottom: 1px solid #e8e5f5;
    padding: 16px 0;
}

.archive-categories__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.archive-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #e8e5f5;
    border-radius: 24px;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #453c9e;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.archive-cat-btn:hover {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 60, 158, 0.25);
}

.archive-cat-btn--active {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(69, 60, 158, 0.3);
}

.archive-cat-btn--active:hover {
    background: #23196e;
    border-color: #23196e;
}

.archive-cat-btn__icon {
    font-size: 15px;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .archive-categories__grid {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .archive-cat-btn {
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ---- Posts Grid ---- */

.archive-content {
    background: #fff;
    padding: 50px 0 70px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media screen and (max-width: 991px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 575px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .archive-content {
        padding: 30px 0 50px;
    }
}

/* ---- Archive Card ---- */

.archive-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(20, 10, 84, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(20, 10, 84, 0.15);
}

.archive-card__image {
    height: 200px;
    overflow: hidden;
    background: #f0edff;
}

.archive-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card__image img {
    transform: scale(1.06);
}

.archive-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0edff 0%, #e8e5f5 100%);
    font-size: 40px;
}

.archive-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-card__cat {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #453c9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.archive-card__title {
    font-family: Poppins, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #140a54;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card__excerpt {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0edff;
}

.archive-card__date {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #666;
}

.archive-card__read {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #453c9e;
    transition: color 0.2s ease;
}

.archive-card:hover .archive-card__read {
    color: #23196e;
}

/* ---- Pagination ---- */

.archive-pagination {
    margin-top: 50px;
    text-align: center;
}

.archive-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers li {
    display: inline-flex;
}

.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #453c9e;
    background: #f9f8ff;
    border: 1.5px solid #e8e5f5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.archive-pagination .page-numbers li a:hover {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
}

.archive-pagination .page-numbers li span.current {
    background: #453c9e;
    border-color: #453c9e;
    color: #fff;
    font-weight: 700;
}

.archive-pagination .page-numbers li .prev,
.archive-pagination .page-numbers li .next {
    font-weight: 600;
}

/* ---- Empty State ---- */

.archive-empty {
    text-align: center;
    padding: 80px 20px;
}

.archive-empty h2 {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #140a54;
    margin: 0 0 12px;
}

.archive-empty p {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
}

.archive-empty__btn {
    display: inline-block;
    padding: 14px 32px;
    background: #42e8e0;
    color: #180e5b;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.archive-empty__btn:hover {
    background: #33d4cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 232, 224, 0.35);
}
