/*
Theme Name: GSL Theme
Theme URI: https://blogs.getsetlive.com
Description: Child theme for Twenty Twenty-Five with wider content, card grid blog layout, and sidebar.
Author: SSM
Author URI: https://blogs.getsetlive.com
Template: twentytwentyfive
Version: 1.0.68
Text Domain: gsltheme
*/

/* ===========================
   Header - Logo in Nav Bar
   =========================== */
.site-corner-logo {
    flex-shrink: 0;
}

.site-corner-logo img {
    width: 125px !important;
    height: auto !important;
}

/* Override parent theme focus outline on all clickable elements */
:where(.wp-site-blocks :focus) {
    outline: none !important;
}

/* ===========================
   Navigation Menu Items
   =========================== */
.wp-block-navigation-item__label {
    font-weight: 500 !important;
}

.wp-block-navigation-item a:where(:not(.wp-element-button)):hover {
    text-decoration: none !important;
}

.wp-block-navigation-item:hover .wp-block-navigation-item__label {
    color: #503AA8 !important;
}

/* ===========================
   Post Content — H2 Section Spacing
   =========================== */
.wp-block-post-content {
    font-weight: 400 !important;
}

/* Post title (rendered outside post-content as wp-block-post-title) */
h1.wp-block-post-title {
    font-weight: 700 !important;
}

.wp-block-post-content h1.wp-block-heading {
    font-weight: 700 !important;
}

.wp-block-post-content h2.wp-block-heading {
    margin-top: 75px;
    font-weight: 600 !important;
}

.wp-block-post-content h3.wp-block-heading {
    font-weight: 500 !important;
}

/* 2026-04-03 — Consistent salmon highlight for all mark tags in article content */
body.single-post .entry-content mark {
    background-color: #fde8e0 !important;
    padding: 2px 4px;
}

/* 2026-04-03 — Highlight hyperlinks inside single post article body only */
/* Targets: 75% column > post-content > paragraph/list links on single post pages */
body.single-post .blog-layout-columns .entry-content > p a,
body.single-post .blog-layout-columns .entry-content > .wp-block-list a {
    color: #503AA8;
    text-decoration: underline;
    text-decoration-color: #c4b5fd;
    text-underline-offset: 2px;
}

body.single-post .blog-layout-columns .entry-content > p a:hover,
body.single-post .blog-layout-columns .entry-content > .wp-block-list a:hover {
    color: #3d2d80;
    text-decoration-color: #503AA8;
}

.wp-block-post-content .wp-block-list {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.wp-block-post-content .wp-block-list li {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.wp-block-post-content .wp-block-image {
    padding-left: 50px;
    padding-right: 50px;
}

/* 2026-03-01 — Rounded corners + proportionate sizing on post images */
.wp-block-post-content .wp-block-image img {
    border-radius: 10px;
    height: auto;
    width: 100%;
    margin-bottom: 10px;
}

/* 2026-04-04 — Zoom lens cursor on article images only (single post) */
body.single-post .entry-content .wp-block-image img {
    cursor: zoom-in;
}

/* 2026-03-01 — Image figcaption italic + free-to-use notice above image */
.wp-block-post-content figure.wp-block-image figcaption {
    font-style: italic;
}

.gsl-free-notice {
    display: block;
    font-size: 12px;
    color: #a48bd4;
    text-align: right;
    padding: 0 60px 2px 0;
    line-height: 1.4;
}

.gsl-free-notice + figure.wp-block-image {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* 2026-03-01 — Expand/fullsize icon overlay on post images */
.wp-block-post-content figure.wp-block-image {
    position: relative;
}

.gsl-expand-btn {
    position: absolute;
    top: 14px;
    right: 64px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #111111;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    z-index: 2;
}

.wp-block-post-content figure.wp-block-image:hover .gsl-expand-btn {
    opacity: 1;
}

.gsl-expand-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #503AA8;
}


/* 2026-03-01 — Lightbox overlay for full-size image viewing */
.gsl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
}

.gsl-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gsl-lightbox-wrap {
    position: relative;
    width: calc(90vh * 16 / 9);
    max-width: 92vw;
    height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gsl-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
    display: block;
}

.gsl-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #111111;
    padding: 0;
    transition: background-color 0.2s ease;
    z-index: 1;
}

.gsl-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #503AA8;
}

/* ===========================
   Blog Card Grid - Blog Listing Page
   =========================== */
.blog-card-grid .wp-block-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card-grid .wp-block-post:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.blog-card-grid .wp-block-post .wp-block-post-featured-image {
    margin: 0;
    border-radius: 0;
}

.blog-card-grid .wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-card-grid .card-content-area {
    padding: 20px;
}

.blog-card-grid .wp-block-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-card-grid .wp-block-post-title a {
    text-decoration: none;
    color: #111111;
}

.blog-card-grid .wp-block-post-title a:hover {
    color: #503AA8;
}

.blog-card-grid .wp-block-post:hover .wp-block-post-title a {
    color: #503AA8 !important;
    transition: color 0.2s ease;
}

.blog-card-grid .wp-block-post-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-grid .wp-block-post-excerpt__more-link {
    display: none;
}

.blog-card-grid .post-meta-line {
    font-size: 14px;
    color: #888888;
}

.blog-card-grid .post-meta-line a {
    color: #503AA8;
    text-decoration: none;
}

.blog-card-grid .post-meta-line a:hover {
    text-decoration: underline;
}

/* ===========================
   Sidebar Headings (Featured Topics / Recent Posts)
   =========================== */
.gsl-sidebar-heading {
    font-size: 18px;
}

/* ===========================
   Sidebar - Featured Topics
   =========================== */
.sidebar-topic-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
    text-decoration: none;
    color: #111111;
    background: #ffffff;
}

.sidebar-topic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #503AA8;
}

.sidebar-topic-card h4,
.sidebar-topic-card .wp-block-heading {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

/* Sidebar Recent Posts */
.sidebar-recent-posts .wp-block-post-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2px;
}

.sidebar-recent-posts .wp-block-post-title a {
    text-decoration: none;
    color: #111111;
}

.sidebar-recent-posts .wp-block-post-title a:hover {
    color: #503AA8;
}

.sidebar-recent-posts .wp-block-post-date {
    font-size: 14px;
    color: #888888;
}

.sidebar-recent-posts .wp-block-post {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-recent-posts .wp-block-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===========================
   Homepage Articles Grid
   =========================== */
.homepage-articles-grid .wp-block-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 2026-03-03 — Pin card metadata (date + category) to the bottom of every card */
.homepage-articles-grid .wp-block-post > .wp-block-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.homepage-articles-grid .wp-block-post:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.homepage-articles-grid .wp-block-post .wp-block-post-featured-image {
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.homepage-articles-grid .wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.homepage-articles-grid .card-content-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Push meta to bottom regardless of title/excerpt length */
.homepage-articles-grid .card-content-area > .post-meta-line {
    margin-top: auto;
}

.homepage-articles-grid .wp-block-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.homepage-articles-grid .wp-block-post-title a {
    text-decoration: none;
    color: #111111;
}

.homepage-articles-grid .wp-block-post-title a:hover {
    color: #503AA8;
}

.homepage-articles-grid .wp-block-post:hover .wp-block-post-title a {
    color: #503AA8 !important;
    transition: color 0.2s ease;
}

.homepage-articles-grid .wp-block-post-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.homepage-articles-grid .wp-block-post-excerpt__more-link {
    display: none;
}

.homepage-articles-grid .post-meta-line {
    font-size: 14px;
    color: #888888;
}

.homepage-articles-grid .post-meta-line a {
    color: #503AA8;
    text-decoration: none;
}

/* ===========================
   Homepage Hero - Latest Article
   =========================== */
.hero-latest-article .wp-block-post-template {
    display: block;
}

.hero-latest-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-latest-wrapper > .wp-block-post-featured-image {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
}

.hero-latest-wrapper > .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-latest-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 80px 50px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.hero-latest-overlay .wp-block-post-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-latest-overlay .wp-block-post-title a {
    color: #ffffff;
    text-decoration: none;
}

.hero-latest-overlay .wp-block-post-title a:hover {
    text-decoration: underline;
}

.hero-latest-overlay .wp-block-post-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-width: 1000px;
}

.hero-latest-overlay .wp-block-post-excerpt__more-link {
    display: none;
}

.hero-latest-overlay .post-meta-line {
    color: rgba(255, 255, 255, 0.7);
}

.hero-latest-overlay .post-meta-line a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.hero-latest-overlay .post-meta-line a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hero-latest-overlay .wp-block-button__link {
    background-color: #ffffff;
    color: #111111;
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 28px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-latest-overlay .wp-block-button__link:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* ===========================
   Single Post Enhancements
   =========================== */
.single-post-meta {
    font-size: 15px;
    color: #888888;
    margin-bottom: 24px;
}

.single-post-meta a {
    color: #503AA8;
    text-decoration: none;
}

.single-post-meta a:hover {
    text-decoration: underline;
}

/* Excerpt on single posts — smaller + italic to distinguish from body text */
body.single-post .wp-block-post-excerpt {
    font-size: 16px !important;
    font-style: italic;
    text-align: center;
}
body.single-post .wp-block-post-excerpt__excerpt {
    font-size: inherit !important;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 1024px) {
    .blog-layout-columns {
        flex-direction: column;
    }

    .blog-layout-columns .wp-block-column:first-child {
        flex-basis: 100% !important;
    }

    .blog-layout-columns .wp-block-column:last-child {
        flex-basis: 100% !important;
    }
}

@media (max-width: 768px) {
    .hero-latest-overlay {
        padding: 60px 30px 30px;
    }

    .hero-latest-overlay .wp-block-post-title {
        font-size: 28px;
    }

    .hero-latest-overlay .wp-block-post-excerpt {
        font-size: 16px;
    }

    .blog-card-grid .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }

    .homepage-articles-grid .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .blog-card-grid .card-content-area,
    .homepage-articles-grid .card-content-area {
        padding: 15px;
    }

    .blog-card-grid .wp-block-post-title,
    .homepage-articles-grid .wp-block-post-title {
        font-size: 18px;
    }
}

/* =============================================
   Breadcrumb Navigation — 2026-03-01
   ============================================= */
.gsl-breadcrumb {
    font-size: 14px;
    color: #888888;
    margin-bottom: 18px;
    padding: 6px 0;
    line-height: 1.4;
}
.gsl-breadcrumb .gsl-bc-link {
    color: #503AA8;
    text-decoration: none;
}
.gsl-breadcrumb .gsl-bc-link:hover {
    text-decoration: underline;
}
.gsl-breadcrumb .gsl-bc-sep {
    color: #888888;
    margin: 0 2px;
}
.gsl-breadcrumb .gsl-bc-current {
    color: #111111;
    font-weight: 500;
}

/* =============================================
   Remove global padding on main layout only — 2026-03-01
   Does not affect inner groups like category cards
   ============================================= */
.wp-site-blocks > .has-global-padding,
.wp-site-blocks > * > .has-global-padding,
main.has-global-padding,
.wp-block-post-content.has-global-padding {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* =============================================
   Remove gap between header and main — 2026-03-01
   ============================================= */
.wp-site-blocks > * + * {
    margin-block-start: 0;
}

/* =============================================
   Reduce gap between breadcrumb and page title — 2026-03-01
   ============================================= */
.gsl-breadcrumb {
    margin-bottom: 4px;
}
.gsl-breadcrumb + .wp-block-post-title,
.gsl-breadcrumb + .wp-block-heading {
    margin-block-start: 0 !important;
}

/* Single post — more space below breadcrumb — 2026-03-01 */
.single-post .gsl-breadcrumb {
    margin-bottom: 25px;
}

/* =============================================
   Category Grid Cards — Hover + Width Match — 2026-03-01
   ============================================= */
.categories-card-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem !important;
}

.categories-card-row > .wp-block-column {
    display: contents;
}

.category-card {
    background: #ffffff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 20px;
}

.category-card-desc {
    font-size: 14px;
}

.category-card-count {
    font-size: 13px;
}

.category-card h3 a {
    color: #111111;
    text-decoration: none;
}

.category-card h3 a:hover {
    color: #503AA8;
}

.category-card:hover h3 a {
    color: #503AA8 !important;
    transition: color 0.2s ease;
}

/* 2026-03-01 — Categories page pagination */
.gsl-categories-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.gsl-page-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gsl-page-btn:visited {
    color: #111111;
}

.gsl-page-btn:hover,
.gsl-page-btn:active {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

.gsl-page-btn:visited:hover,
.gsl-page-btn:visited:active {
    color: #ffffff;
}

.gsl-page-btn.disabled {
    color: #cccccc;
    border-color: #e0e0e0;
    cursor: default;
    pointer-events: none;
}

.gsl-page-num {
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    color: #111111;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gsl-page-num:hover {
    background-color: #f5f3ff;
    border-color: #503AA8;
    color: #503AA8;
}

.gsl-page-num.current {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

/* 2026-03-02 — WordPress block pagination (Blog page) — matches site-wide standard */
.wp-block-query-pagination {
    gap: 4px !important;
    margin-top: 32px;
}

.wp-block-query-pagination-numbers .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    color: #111111;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
    background-color: #f5f3ff;
    border-color: #503AA8;
    color: #503AA8;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: inline-block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

/* =============================================
   Main Content — Bottom Spacing Before Footer
   ============================================= */
main.wp-block-group {
    margin-bottom: 60px;
}

/* =============================================
   Homepage — Related Category Carousel — 2026-03-01
   ============================================= */
.related-articles-section {
    max-width: 1340px;
    margin: 0 auto;
}

.related-articles-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 32px;
    padding-top: 32px;
    border-top: 0.5px solid #e0e0e0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.related-articles-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-articles-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-articles-col li a {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: box-shadow 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.related-articles-col li a:hover {
    color: #503AA8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .related-articles-title {
        font-size: 28px;
    }
}

/* =============================================
   Read All Posts Button — 2026-03-03
   ============================================= */
.gsl-read-all-btn .wp-block-button__link {
    background-color: transparent !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
    padding: 12px 28px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.gsl-read-all-btn .wp-block-button__link:hover {
    background-color: #503AA8 !important;
    color: #ffffff !important;
    border-color: #503AA8 !important;
}

/* =============================================
   Site Footer — 2026-03-01
   ============================================= */
.site-footer {
    min-height: 400px;
}

.site-footer .footer-links {
    list-style: none;
    padding-left: 0 !important;
    margin: 0;
}

.site-footer .footer-links li {
    padding: 0;
}

.site-footer .footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
}

.site-footer .wp-block-separator {
    opacity: 0.2;
}

.site-footer p a {
    transition: color 0.2s ease;
}

.site-footer p a:hover {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .site-footer {
        min-height: auto;
    }
}

/* =============================================
   Header Search Icon + Dropdown — 2026-03-01
   ============================================= */

/* Wrapper keeps toggle + dropdown together */
.gsl-search-wrapper {
    position: static;
    display: flex;
    align-items: center;
    margin-left: 20px !important;
}

/* Toggle button — magnifying glass icon */
.gsl-search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #111111;
    padding: 0;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.gsl-search-toggle:hover {
    color: #503AA8;
}

/* Dropdown bar — full width below header */
.gsl-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.gsl-search-dropdown.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px 0;
}

/* Inner container — constrained width, centered */
.gsl-search-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search form */
.gsl-search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Input wrapper — holds input + close button */
.gsl-search-input-wrap {
    position: relative;
    width: 100%;
}

/* Search input */
.gsl-search-input {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-family: inherit;
    padding: 0 48px 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background: #f9f9f9;
    color: #111111;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.gsl-search-input:focus {
    border-color: #503AA8;
    background: #ffffff;
}

.gsl-search-input::placeholder {
    color: #999999;
}

/* Close button — positioned inside input area */
.gsl-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888888;
    padding: 0;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.gsl-search-close:hover {
    color: #111111;
    background-color: #f0f0f0;
}

/* Header wrapper needs position relative for dropdown absolute positioning */
.site-header-wrapper {
    position: relative;
}

/* =============================================
   Header Search — Responsive — 2026-03-01
   ============================================= */
@media (max-width: 768px) {
    .gsl-search-inner {
        padding: 0 16px;
    }

    .gsl-search-input {
        height: 44px;
        font-size: 15px;
    }

    .gsl-search-toggle {
        width: 36px;
        height: 36px;
    }

    .gsl-search-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* =============================================
   Live Search Dropdown Results — 2026-03-01
   ============================================= */
.gsl-live-results {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gsl-live-results.has-results {
    max-height: 360px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
}

.gsl-live-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #111111;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.gsl-live-item:last-child {
    border-bottom: none;
}

.gsl-live-item:hover {
    background-color: #f5f3ff;
}

.gsl-live-title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.gsl-live-meta {
    font-size: 12px;
    color: #503AA8;
    white-space: nowrap;
    flex-shrink: 0;
}

.gsl-live-empty {
    padding: 12px 16px;
    font-size: 14px;
    color: #888888;
    text-align: center;
}

/* =============================================
   Search Results Page — 2026-03-01
   ============================================= */

/* Search page query title */
.wp-block-query-title {
    font-size: 30px;
}

/* Front page site title */
.wp-block-site-title {
    font-size: 40px;
}

/* Search layout columns — same stacking behavior as blog */
.search-layout-columns {
    margin-top: 20px !important;
}

/* Results info bar */
.gsl-search-results-info {
    font-size: 15px;
    color: #555555;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

/* Numbered results list */
.gsl-search-results-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: none;
}

.gsl-search-result-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 36px;
}

.gsl-search-result-item::marker {
    font-size: 14px;
    font-weight: 600;
    color: #503AA8;
}

/* Re-enable ordered list numbering with accent color */
.gsl-search-results-list {
    list-style: decimal;
    padding-left: 20px;
}

.gsl-search-result-item {
    padding-left: 12px;
}

/* Result title */
.gsl-result-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}

.gsl-result-title:hover {
    color: #503AA8;
}

/* Result metadata line */
.gsl-result-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 4px;
}

.gsl-result-cat {
    color: #503AA8;
    text-decoration: none;
    font-weight: 500;
}

.gsl-result-cat:hover {
    text-decoration: underline;
}

.gsl-result-sep {
    color: #cccccc;
    margin: 0 2px;
}

.gsl-result-date {
    color: #888888;
}

/* Result excerpt — limited to 2 lines */
.gsl-result-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.gsl-search-empty {
    padding: 40px 0;
    text-align: center;
    color: #555555;
}

.gsl-search-empty a {
    color: #503AA8;
    text-decoration: none;
}

.gsl-search-empty a:hover {
    text-decoration: underline;
}

/* Pagination — Search results (matches site-wide standard) */
.gsl-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.gsl-search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    color: #111111;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gsl-search-pagination .page-numbers:hover {
    background-color: #f5f3ff;
    border-color: #503AA8;
    color: #503AA8;
}

.gsl-search-pagination .page-numbers.current {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

.gsl-search-pagination .page-numbers.prev,
.gsl-search-pagination .page-numbers.next {
    padding: 8px 16px;
    font-weight: 500;
}

.gsl-search-pagination .page-numbers.prev:hover,
.gsl-search-pagination .page-numbers.next:hover {
    background-color: #503AA8;
    border-color: #503AA8;
    color: #ffffff;
}

/* =============================================
   Search Filters Sidebar — 2026-03-01
   ============================================= */
.gsl-search-filters {
    position: sticky;
    top: 20px;
}

.gsl-filter-heading {
    font-size: 17px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #503AA8;
}

.gsl-filter-heading + .gsl-filter-heading {
    margin-top: 24px;
}

/* Sort buttons */
.gsl-sort-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.gsl-sort-btn {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gsl-sort-btn:hover {
    color: #503AA8;
    background-color: #f5f3ff;
}

.gsl-sort-btn.active {
    color: #503AA8;
    font-weight: 600;
    background-color: #f5f3ff;
}

/* Category filter buttons */
.gsl-cat-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gsl-cat-filter-btn {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gsl-cat-filter-btn:hover {
    color: #503AA8;
    background-color: #f5f3ff;
}

.gsl-cat-filter-btn.active {
    color: #503AA8;
    font-weight: 600;
    background-color: #f5f3ff;
}

.gsl-cat-count {
    color: #888888;
    font-weight: 400;
}

/* =============================================
   Search Results + Filters — Responsive — 2026-03-01
   ============================================= */
@media (max-width: 1024px) {
    .search-layout-columns {
        flex-direction: column;
    }

    .search-layout-columns .wp-block-column:first-child {
        flex-basis: 100% !important;
    }

    .search-layout-columns .wp-block-column:last-child {
        flex-basis: 100% !important;
    }

    .gsl-search-filters {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .gsl-sort-options,
    .gsl-cat-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gsl-sort-btn,
    .gsl-cat-filter-btn {
        border-left: none;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        padding: 6px 14px;
    }

    .gsl-sort-btn.active,
    .gsl-cat-filter-btn.active {
        border-color: #503AA8;
        background-color: #f5f3ff;
    }

    .gsl-sort-btn:hover,
    .gsl-cat-filter-btn:hover {
        border-color: #503AA8;
    }
}

@media (max-width: 768px) {
    .gsl-result-title {
        font-size: 17px;
    }

    .gsl-result-excerpt {
        font-size: 14px;
    }

    .gsl-search-result-item {
        padding: 12px 0 12px 12px;
    }
}

/* =============================================
   Category Archive Page — Hybrid Layout — 2026-03-01
   ============================================= */

/* Layout columns — same stacking as blog/search */
.category-layout-columns {
    margin-top: 20px !important;
}

/* Section heading */
.gsl-cat-section {
    margin-bottom: 40px;
}

.gsl-cat-section:last-child {
    margin-bottom: 0;
}

.gsl-cat-section-heading {
    font-size: 22px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #503AA8;
}

/* Card grid — 3 columns */
.gsl-cat-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

/* Individual card */
.gsl-cat-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gsl-cat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Card thumbnail */
.gsl-cat-card-thumb {
    display: block;
    line-height: 0;
}

.gsl-cat-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Card body */
.gsl-cat-card-body {
    padding: 16px;
}

/* Card title */
.gsl-cat-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.gsl-cat-card-title a {
    color: #111111;
    text-decoration: none;
}

.gsl-cat-card-title a:hover {
    color: #503AA8;
}

.gsl-cat-card:hover .gsl-cat-card-title a {
    color: #503AA8;
    transition: color 0.2s ease;
}

/* Card excerpt */
.gsl-cat-card-excerpt {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card meta */
.gsl-cat-card-meta {
    font-size: 13px;
    color: #888888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gsl-cat-card-views {
    color: #503AA8;
    font-weight: 500;
}

/* === All Articles — Compact List === */
.gsl-cat-article-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.gsl-cat-list-item {
    padding: 14px 0 14px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.gsl-cat-list-item:last-child {
    border-bottom: none;
}

.gsl-cat-list-item::marker {
    font-size: 14px;
    font-weight: 600;
    color: #503AA8;
}

/* List title */
.gsl-cat-list-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}

.gsl-cat-list-title:hover {
    color: #503AA8;
}

/* List meta */
.gsl-cat-list-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 4px;
}

.gsl-cat-list-views {
    color: #503AA8;
    font-weight: 500;
}

/* List excerpt — limited to 2 lines */
.gsl-cat-list-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.gsl-cat-empty {
    padding: 24px 0;
    color: #888888;
    font-size: 15px;
}

/* === Category Archive — Responsive === */
@media (max-width: 1024px) {
    .category-layout-columns {
        flex-direction: column;
    }

    .category-layout-columns .wp-block-column:first-child {
        flex-basis: 100% !important;
    }

    .category-layout-columns .wp-block-column:last-child {
        flex-basis: 100% !important;
    }
}

@media (max-width: 768px) {
    .gsl-cat-card-grid {
        grid-template-columns: 1fr;
    }

    .gsl-cat-card-title {
        font-size: 16px;
    }

    .gsl-cat-list-title {
        font-size: 16px;
    }

    .gsl-cat-list-excerpt {
        font-size: 14px;
    }

    .gsl-cat-section-heading {
        font-size: 20px;
    }
}

/* =============================================
   FAQ SCHEMA STYLING - Option C: Tinted cards with gap (Post 449)
   Added: 2026-04-05, font fix: 2026-04-05
   ============================================= */
body.postid-449 .schema-faq.wp-block-yoast-faq-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

body.postid-449 .schema-faq-section {
    background: #f9f8fc;
    border-radius: 8px;
    padding: 16px 20px;
}

/* =============================================
   FAQ SCHEMA STYLING - Left border accent + tinted bg (Post 413)
   Added: 2026-04-05, font fix: 2026-04-05
   ============================================= */
body.postid-413 .schema-faq.wp-block-yoast-faq-block {
    margin-top: 20px;
}

body.postid-413 .schema-faq-section {
    background: #f9f8fc;
    border-left: 3px solid #503AA8;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 12px;
}

/* =============================================
   FAQ SCHEMA STYLING - Common styles for all FAQ posts
   Added: 2026-04-05
   ============================================= */
body.single-post .schema-faq.wp-block-yoast-faq-block {
    margin-top: 20px;
}

body.single-post strong.schema-faq-question {
    color: #503AA8;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

body.single-post p.schema-faq-answer {
    margin-left: 20px;
    color: #444;
    line-height: 1.7;
    margin-top: 0;
}
