/**
 * Resource Center — Base Stylesheet
 *
 * Structural and layout rules only.
 * All visual tokens are defined as CSS custom properties on :root.
 */

/* -------------------------------------------------------------------------
   Design tokens — override these in theme
   ---------------------------------------------------------------------- */
:root {
    /* Colours */
    --rc-color-primary:          #215D51;
    --rc-color-primary-dark:     #063930;
    --rc-color-primary-light:    #F4F6F5;
    --rc-color-secondary:        #0AAF96;
    --rc-color-text:             #304A41;
    --rc-color-text-muted:       #666666;
    --rc-color-border:           #cccccc;
    --rc-color-white:            #ffffff;

    /* Header */
    --rc-header-bg:              linear-gradient(to right, #063930 60%, #215D51);
    --rc-header-padding:         60px 0 50px;
    --rc-header-title-size:      2.5rem;
    --rc-header-title-color:     #ffffff;
    --rc-header-intro-color:     rgba(255, 255, 255, 0.85);
    --rc-header-intro-size:      1.05rem;

    /* Sidebar */
    --rc-sidebar-bg:             #ffffff;
    --rc-sidebar-padding:        10% 10%;

    /* Filters */
    --rc-filter-label-size:      16px;
    --rc-filter-label-color:     #304A41;
    --rc-filter-heading-size:    19px;
    --rc-filter-heading-color:   #215D51;
    --rc-filter-border-color:    #215D51;
    --rc-filter-checkbox-size:   16px;

    /* Search */
    --rc-search-border-color:    #215D51;
    --rc-search-border-radius:   35px;
    --rc-search-btn-bg:          #215D51;
    --rc-search-btn-color:       #ffffff;
    --rc-search-placeholder:     #215D51;

    /* Cards */
    --rc-card-bg:                #ffffff;
    --rc-card-border:            1px solid #cccccc;
    --rc-card-radius:            30px;
    --rc-card-image-height:      200px;
    --rc-card-title-size:        20px;
    --rc-card-title-color:       #215D51;
    --rc-card-excerpt-size:      16px;
    --rc-card-excerpt-color:     #304A41;

    /* Badges */
    --rc-badge-top:              20px;
    --rc-badge-inset:            34px;
    --rc-badge-height:           34px;
    --rc-badge-size:             17px;
    --rc-badge-radius:           17px;
    --rc-badge-bg:               #215D51;
    --rc-badge-color:            #ffffff;

    /* Star badge */
    --rc-badge-star-bg:          #EEB42D;
    --rc-badge-star-size:        34px;

    /* Tags */
    --rc-tag-bg:                 #F4F6F5;
    --rc-tag-color:              #063930;
    --rc-tag-size:               14px;
    --rc-tag-radius:             17px;

    /* Parent practice area pill */
    --rc-tag-parent-bg:          transparent;
    --rc-tag-parent-color:       #215D51;
    --rc-tag-parent-border:      1px solid #215D51;

    /* Filter chips */
    --rc-chip-bg:                transparent;
    --rc-chip-color:             #215D51;
    --rc-chip-border:            1px solid #215D51;
    --rc-chip-radius:            20px;
    --rc-chip-hover-bg:          #e8f0ee;

    /* Results area */
    --rc-main-bg:                #F4F6F5;
    --rc-main-padding:           60px 40px;

    /* Grid */
    --rc-grid-columns:           repeat(2, 1fr);
    --rc-grid-gap:               24px;
    --rc-grid-max-width:         945px;
}

/* -------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------- */
.resource-center-wrapper {
    display: flex;
    flex-direction: column;
}

.resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 500px) 1fr;
    gap: 0;
    max-width: 1800px;
    margin-inline: auto;
}

.resource-content.container {
    background-color: var(--rc-main-bg);
}

.resource-main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--rc-main-bg);
}

/* -------------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */
.resource-header {
    position: relative;
    background: var(--rc-header-bg);
    padding: var(--rc-header-padding);
    text-align: center;
    overflow: hidden;
}

.resource-header .container {
    position: relative;
    z-index: 1;
}

.resource-header-icon {
    display: block;
    margin: 0 auto 16px;
    width: 35px;
    height: auto;
}

.resource-header h1 {
    font-size: var(--rc-header-title-size);
    font-weight: 600;
    color: var(--rc-header-title-color);
    margin: 0 0 16px 0;
}

.resource-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../assets/images/floral-overlay.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.resource-intro {
    font-size: var(--rc-header-intro-size);
    color: var(--rc-color-white);
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Sidebar
   ---------------------------------------------------------------------- */
.resource-sidebar {
    background: var(--rc-sidebar-bg);
    padding: var(--rc-sidebar-padding);
    min-height: 100%;
    box-shadow: 3px 0px 6px #00000026;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Search
   ---------------------------------------------------------------------- */
.resource-search {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    border: 1px solid var(--rc-search-border-color);
    border-radius: var(--rc-search-border-radius);
    background: var(--rc-color-white);
}

.resource-search input[type="search"],
.resource-search input[type="text"] {
    flex: 1;
    padding: 9px 25px 7px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    border-radius: 35px 0 0 35px;
}

.resource-search input[type="search"]::placeholder{
    color: var(--rc-search-placeholder);
     font-style: italic;
}

.resource-search button[type="submit"] {
    width: 52px;
    height: 45px;
    min-width: 52px;
    border-radius: var(--rc-search-border-radius);
    background: var(--rc-search-btn-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-search-btn-color);
}

.resource-search button[type="submit"] svg {
    width: 20px;
    height: 20px;
    display: block;
}

.resource-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.rc-banner-search {
    display: none;
}

/* -------------------------------------------------------------------------
   Filters heading
   ---------------------------------------------------------------------- */
.sidebar-filters-heading {
    display: flex;
    gap: 8px;
    font-size: 25px;
    font-weight: 600;
    color: var(--rc-filter-heading-color);
    padding-bottom: 16px;
    border-bottom: 1.25px solid var(--rc-filter-border-color);
    margin-bottom: 16px;
}

.sidebar-filters-heading svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Filter groups
   ---------------------------------------------------------------------- */
.archive form div::before,
.archive form div::after {
    display: none;
}

.filter-group {
    border-bottom: 1.25px solid var(--rc-filter-border-color);
    padding: 14px 0;
    display: block;
    margin-bottom: 0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-header {
    font-size: var(--rc-filter-heading-size);
    font-weight: 600;
    color: var(--rc-filter-heading-color);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--rc-filter-heading-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle-icon {
    display: block;
}

.filter-group.is-collapsed .filter-group-content {
    display: none;
}

.filter-group-content {
    overflow: hidden;
    padding-top: 12px;
}

/* Labels */
.parent-term,
.child-term,
.filter-group label:not(.parent-term):not(.child-term) {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--rc-filter-label-size);
    font-weight: 400;
    color: var(--rc-filter-label-color);
    margin-bottom: 7px;
    line-height: 1.8;
}

/* Checkbox base */
.parent-term input[type="checkbox"],
.child-term input[type="checkbox"],
.filter-group label:not(.parent-term):not(.child-term) input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: var(--rc-filter-checkbox-size);
    height: var(--rc-filter-checkbox-size);
    min-width: var(--rc-filter-checkbox-size);
    border: 1.5px solid var(--rc-filter-border-color);
    cursor: pointer;
    position: relative;
    background: var(--rc-color-white);
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

/* Parent checkbox — circle */
.parent-term input[type="checkbox"] {
    border-radius: 50%;
}

.parent-term input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rc-color-secondary);
}

/* Child + flat checkboxes */
.child-term input[type="checkbox"]:checked::after,
.filter-group label:not(.parent-term):not(.child-term) input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--rc-color-secondary);    
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Parent group spacing */
.filter-parent-group {
    margin-bottom: 10px;
}

.filter-parent-group:last-child {
    margin-bottom: 0;
}

.parent-term {
    margin-bottom: 6px;
}

.child-term:last-child {
    margin-bottom: 0;
}

.filter-children {
    margin-left: 10px;
    padding-left: 14px;
}

/* -------------------------------------------------------------------------
   Results area
   ---------------------------------------------------------------------- */
.resource-main {
    background: var(--rc-main-bg);
    padding: var(--rc-main-padding);
    min-height: 100vh;
    transition: opacity 0.3s;
}

/* -------------------------------------------------------------------------
   Filter results bar
   ---------------------------------------------------------------------- */
.filter-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
    max-width: var(--rc-grid-max-width);
    margin-inline: auto;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--rc-color-primary);
}

.filter-chips-label {
    font-weight: 600;
    font-size: 20px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 5px;
    background: var(--rc-chip-bg);
    border: var(--rc-chip-border);
    border-radius: var(--rc-chip-radius);
    cursor: pointer;
    transition: background 0.2s;
    color: var(--rc-chip-color);
    font-size: 15px;
}

.filter-chip:hover {
    background: var(--rc-chip-hover-bg);
}

.filter-chip-remove {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--rc-chip-color);
}

.filter-chips svg {
    color: #000000;
}

#rc-clear-all {
    background: none;
    border: none;
    padding: 0 4px;
    color: var(--rc-color-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    align-self: center;
    transition: color 0.2s;
}

#rc-clear-all:hover {
    color: var(--rc-color-primary);
}


.article-count {
    font-weight: 400;
    color: var(--rc-color-primary-dark);
    white-space: nowrap;
    margin-left: auto;
}

/* Mobile filter toggle — hidden on desktop */
#rc-filter-toggle,
.rc-drawer-header {
    display: none;
}



/* -------------------------------------------------------------------------
   Grid
   ---------------------------------------------------------------------- */
.resource-grid {
    display: grid;
    grid-template-columns: var(--rc-grid-columns);
    gap: var(--rc-grid-gap);
    margin-bottom: 40px;
    max-width: var(--rc-grid-max-width);
    margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Card
   ---------------------------------------------------------------------- */
.resource-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 460px;
}

.resource-card {
    position: relative;
    background: var(--rc-card-bg);
    border: var(--rc-card-border);
    border-radius: var(--rc-card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 560px;

    /* Badge defaults  */
    --rc-badge-bg:    #215D51;
    --rc-badge-color: #ffffff;
}

/* When a hero image is present flip badge colours */
.resource-card--has-image {
    --rc-badge-bg:    rgba(255, 255, 255, 0.87);
    --rc-badge-color: #215D51;
}

.resource-card-image-wrap {
    width: 100%;
    height: var(--rc-card-image-height);
    flex-shrink: 0;
}

.resource-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -------------------------------------------------------------------------
   Card content area
   ---------------------------------------------------------------------- */
.resource-card-content {
    padding: 35px 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between; 
}

.resource-card:not(.resource-card--has-image) .resource-card-content {
    padding-top: calc(var(--rc-badge-top) + var(--rc-badge-height) + 8px);
}


.resource-card:not(.resource-card--has-image) .rc-card-text {
    margin-top: auto;
    margin-bottom: auto;
}

/* Base: no image, not blog — most room */
.resource-card-excerpt {
    -webkit-line-clamp: 6;
}

/* Has image — less vertical space */
.resource-card--has-image .resource-card-excerpt {
    -webkit-line-clamp: 4;
}

/* Blog, no image — date + byline takes space */
.resource-card--blog .resource-card-excerpt {
    -webkit-line-clamp: 3;
}

/* Blog + image — tightest */
.resource-card--has-image.resource-card--blog .resource-card-excerpt {
    -webkit-line-clamp: 2;
}

/* -------------------------------------------------------------------------
   Badge row
   ---------------------------------------------------------------------- */
.resource-card-badges {
    position: absolute;
    top: var(--rc-badge-top);
    left: var(--rc-badge-inset);
    right: var(--rc-badge-inset);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rc-badges-left,
.rc-badges-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content type badge */
.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--rc-badge-size);
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 14px 6px;    
    border-radius: var(--rc-badge-radius);
    background: var(--rc-badge-bg);
    color: var(--rc-badge-color);
}

/* Star badge — gold filled circle */
.rc-badge-star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rc-badge-star-size);
    height: var(--rc-badge-star-size);
    border-radius: 50%;
    background: var(--rc-badge-star-bg);
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Card date / author (archive card byline)
   ---------------------------------------------------------------------- */
.rc-card-date {
    font-size:  var(--rc-card-excerpt-size);
    color: var(--rc-color-primary);
    margin: 0 0 18px;
    font-weight: 500;
}
.rc-card-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.rc-card-byline-photo-wrap {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.rc-card-byline-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.4);
    transform-origin: center 20%;
    display: block;
}

.rc-card-byline-name a {
    color: var(--rc-color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.rc-card-byline-name a:hover {
    text-decoration: underline;
}


/* -------------------------------------------------------------------------
   Blog single byline  (single post — separate from card byline)
   ---------------------------------------------------------------------- */

.blog-meta-left {
    display: flex;
    align-items: center;
    gap: 35px;
}
.blog-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.blog-byline-photo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-byline-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
}

span.blog-byline-name {
    color: var(--rc-color-primary);
    font-size: 15px;
}

span.blog-byline-name a {
    text-decoration: underline;
    color: #000000;
}

.blog-date {
    font-size: 15px;
    color: var(--rc-color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* -------------------------------------------------------------------------
   Card title
   ---------------------------------------------------------------------- */
.resource-card-content h3 {
    font-size: var(--rc-card-title-size);
    font-weight: 600;
    color: var(--rc-card-title-color);
    margin: 0 0 18px;
    line-height: 1.4;
}

.resource-card-content h3 a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
}

.resource-card-content h3 a:hover{
    color: var(--rc-color-primary-dark);
}

/* -------------------------------------------------------------------------
   Card excerpt
   ---------------------------------------------------------------------- */
.resource-card-excerpt {
    font-size: var(--rc-card-excerpt-size);
    color: var(--rc-card-excerpt-color);
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Card tags / pills
   ---------------------------------------------------------------------- */
.resource-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    margin-top: 0;
}

/* Base pill */
.rc-tag {
    display: inline-flex;
    align-items: center;
    background: var(--rc-tag-bg);
    color: var(--rc-tag-color);
    font-size: var(--rc-tag-size);
    font-weight: 400;
    padding: 9px 12px 8px;
    border-radius: var(--rc-tag-radius);
}

/* Parent practice area pill */
.rc-tag--parent {
    gap: 6px;
    padding: 7px 12px 7px;
}

.rc-tag span {
    padding-top: 3px;
}

/* +N More pill */
.rc-tag--more {
    background: transparent;
    border: none;
    cursor: default;
}

button.rc-tag {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    font-family: inherit;
    font-size: var(--rc-tag-size);
    line-height: inherit;
    cursor: pointer;
}

button.rc-tag:hover {
    opacity: 0.8;
}


/* -------------------------------------------------------------------------
   Filter match
   ---------------------------------------------------------------------- */
.resource-card-filter-match {
    font-size: 15px;
    color: #555;
    font-style: italic;
    padding: 6px 40px 0;
}

.filter-match-label {
    font-weight: 600;
    font-style: normal;
}

/* -------------------------------------------------------------------------
   Top Articles heading
   ---------------------------------------------------------------------- */
.rc-top-bar {
    display: none;
}

.rc-top-articles-heading {
    font-size: 25px;
    font-weight: 600;
    color: var(--rc-color-primary);
    margin: 0;
    line-height: 1.2;
}

.rc-top-articles-mobile {
    display: none;
}

/* -------------------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------------- */
.rc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    max-width: var(--rc-grid-max-width);
    margin-inline: auto;
}

/* Shared styles — numbered links and prev/next arrows */
.rc-pagination a,
.rc-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

/* Inactive page links */
.rc-pagination a {
    color: var(--rc-color-primary-dark);
    background: transparent;
}

.rc-pagination a:hover {
    background: var(--rc-color-primary);
    color: var(--rc-color-white);
}

/* Active / current page */
.rc-pagination-current {
    background: var(--rc-color-primary);
    color: var(--rc-color-white);
    font-weight: 700;
    pointer-events: none;
}

/* Prev « and Next » arrows — slightly wider */
.rc-pagination a[aria-label="Previous page"],
.rc-pagination a[aria-label="Next page"] {
    font-size: 18px;
    color: var(--rc-color-primary);
    background: transparent;
}

.rc-pagination a[aria-label="Previous page"]:hover,
.rc-pagination a[aria-label="Next page"]:hover {
    background: var(--rc-color-primary);
    color: var(--rc-color-white);
}

/* Ellipsis */
.rc-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--rc-color-text-muted);
    font-size: 15px;
}

/* -------------------------------------------------------------------------
   Single Blog Template
   ---------------------------------------------------------------------- */

body.rc-single-blog #primary-header {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.blog-single {
    display: grid;
    grid-template-columns: [full-start] 1fr [break-start] 25px [content-start] minmax(0,1000px) [content-end] 25px [break-end] 1fr [full-end];
    padding-top: 40px;
    padding-bottom: 60px;
}

.blog-single > * {
    grid-column: content;
}

.blog-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.blog-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.blog-type-pill .rc-tag--parent {
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rc-color-secondary);
    background: transparent;
}

.blog-type-pill .rc-badge {
    border-radius: var(--rc-badge-radius);
    border: none;
    font-size: 16px;
}

.blog-single h1 {
    font-size: 50px;
    font-weight: 600;
    color: var(--rc-color-primary);
    margin: 0 0 16px;
    padding-bottom: 30px;
    border-bottom: 1.25px solid var(--rc-color-border);
}

.blog-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 50px;
}

.blog-date {
    font-size: 15px;
    color: var(--rc-color-primary);
}

.blog-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.blog-featured-image {
    margin-bottom: 32px;
    height: 515px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.blog-single .content h2 {
    font-weight: 600;
    line-height: 1.5;
    margin: 2.25rem 0 1rem 0;
    color: #215D51;
}

.blog-single .content h3 {
    font-weight: 600;
    line-height: 1.5;
    margin: 2.25rem 0 1rem 0;
    color: #215D51;
}

.blog-single .content h4,
.blog-single .content h5,
.blog-single .content h6 {
    font-weight: 600;
    line-height: 1.5;
    margin: 1.25rem 0 1rem 0;
    color: #215D51;
}

.blog-single .content p {
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.blog-single .content ul {
    list-style: disc;
    margin-left: 2.25rem;
    margin-bottom: 0.625rem;
}

.blog-single .content ol {
    list-style: decimal;
    margin-left: 2.25rem;
    margin-bottom: 0.625rem;
}

.blog-single .content li {
    margin-bottom: 0.625rem;
    line-height: 1.5;
}


/* -------------------------------------------------------------------------
   Blog single — post navigation
   ---------------------------------------------------------------------- */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    margin-top: 48px;
    border-top: 1.25px solid var(--rc-color-border);
}

.blog-post-nav-prev {
    display: flex;
    justify-content: flex-start;
}

.blog-post-nav-center {
    display: flex;
    justify-content: center;
}

.blog-post-nav-next {
    display: flex;
    justify-content: flex-end;
}

.blog-post-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rc-color-primary-dark);
    transition: color 0.2s;
}

.blog-post-nav-link:hover {
    color: var(--rc-color-secondary);
}

.blog-post-nav-arrow {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--rc-color-primary);
    flex-shrink: 0;
}

.blog-post-nav-label {
    font-size: 14px;
    color: var(--rc-color-primary);
}

/* -------------------------------------------------------------------------
   Mobile
   ---------------------------------------------------------------------- */
@media screen and (max-width: 1350px) {
    .resource-layout {
        grid-template-columns: minmax(0, 390px) 1fr;
    }

    .resource-card-content {
        padding: 35px 25px;
    }

    .resource-grid {
        gap: 16px;
    }
}

@media screen and (max-width: 1200px) {
    .rc-top-articles-desktop {
        display: none;
    }
    .resource-sidebar {
        padding: 0;
    }

    .article-count {
        display: none;
    }

    #filter-form {
        padding: 20px 24px 24px;
    }

    form#filter-form div {
        max-width: unset;
    }

    .resource-layout {
        grid-template-columns: 1fr;
    }
    .resource-main {
        padding: 20px;
    }
    #rc-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 2px solid var(--rc-color-primary);
        border-radius: 50%;
        color: var(--rc-color-primary);
        width: 42px;
        height: 42px;
        cursor: pointer;
        margin-left: auto;
    }

    .resource-search {
        display: none;
    }

    .resource-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100%;
        overflow-y: auto;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .resource-sidebar.is-open {
        transform: translateX(0);
    }

    .rc-drawer-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .rc-drawer-backdrop.is-open {
        display: block;
    }

    .sidebar-filters-heading {
        display: none;
    }

    .rc-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        position: relative;
        background: linear-gradient(88deg, #063930, #215D51);
        box-shadow: -3px 3px 6px #00000029;
    }
    #rc-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid #ffffff;
        border-radius: 1.25rem;      
        background: transparent;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

    #rc-drawer-close::before,
    #rc-drawer-close::after {
        content: '';
        width: 15px;
        height: 1px;
        background-color: #ffffff;
        position: absolute;
        top: 50%;
        left: 50%;
    }

    #rc-drawer-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #rc-drawer-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .rc-drawer-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #ffffff;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #rc-drawer-back {
        background: transparent;
        border: none;
        width: 40px;
        height: 40px;
        position: relative;
        cursor: pointer;
        flex-shrink: 0;
    }

    #rc-drawer-back::before {
        content: '';
        width: 12px;
        height: 12px;
        border-bottom: 1px solid #ffffff;
        border-left: 1px solid #ffffff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-30%, -50%) rotate(45deg);
    }

    .rc-banner-search {
        display: flex;
        align-items: center;
        border: 1px solid var(--rc-search-border-color);
        border-radius: var(--rc-search-border-radius);
        overflow: hidden;
        background: var(--rc-color-white);
        max-width: 400px;
        width: 85%;
        margin: 20px auto 0;
    }

    .rc-banner-search input[type="search"] {
        flex: 1;
        padding: 10px 20px;
        border: none;
        outline: none;
        font-size: 0.95rem;
        background: transparent;
        min-width: 0;
    }

    .rc-banner-search button[type="submit"] {
        width: 52px;
        height: 45px;
        border-radius: var(--rc-search-border-radius);
        background: var(--rc-color-secondary);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--rc-search-btn-color);
    }

    .rc-banner-search button[type="submit"] svg {
        width: 20px;
        height: 20px;
    }

    .rc-banner-search input[type="search"]::placeholder {
        color: var(--rc-search-placeholder);
        font-style: italic;
    }

    .rc-banner-search input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;    
        appearance: none;
    }

    .rc-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.75rem 2.25rem 0;
    }

    .rc-top-articles-mobile {
        display: block;
        text-align: center;
        flex: 1;
    }

    .filter-group {
        border-bottom: none;
    }

    .resource-header {
        padding: 40px 40px 36px;
    }
}

@media screen and (max-width: 1024px) {
    .blog-single {
        grid-template-columns: [full-start] 1fr [break-start] 25px [content-start] minmax(0,1000px) [content-end] 25px [break-end] 1fr [full-end];
    }
    .blog-single .content {
        grid-column: content;
    }
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .filter-chips {
        font-size: 0.85rem;
    }

    .filter-chip {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .filter-results-bar {
        flex-wrap: wrap;
    }

    .article-count {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }

    .resource-header {
        padding: 40px 15px 36px;
    }

    .resource-intro {
        font-size: 0.95rem;
    }

    .blog-single {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .blog-single h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .blog-meta-row {
        flex-wrap: wrap;
    }

    .blog-meta-left {
        width: 100%;
        justify-content: space-between;
    }

    .blog-meta-tags {
        width: 100%;
        justify-content: flex-start;
    }

    .resource-card {
        height: auto;
    }

    .resource-card-content h3 a {
        font-size: 18px;
    }

    .blog-post-nav {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .blog-post-nav-center {
        display: none;
    }

    .resource-header-icon {
        width: 25px;
    }
    .resource-card-wrapper {
        margin: auto;
    }
    .resource-card:not(.resource-card--has-image) .resource-card-content {
        padding-top: calc(var(--rc-badge-top) + var(--rc-badge-height) + 25px);
    }

    .blog-featured-image {
        max-height: 160px;
    }
}

@media screen and (max-width: 450px) {
    .rc-top-bar {
        padding: 1.75rem 1.20rem 0;
    }
    .rc-banner-search {
        width: 75%;
    }

    .resource-grid {
        display: block
    }
    .resource-card-wrapper {
        margin-bottom: 12px;
    }
    .blog-meta-left {
        gap: 8px;
    }
    .blog-date,span.blog-byline-name a, span.blog-byline-name{
        font-size: 14px;
    }
}