/* Homepage styles (moved from resources/views/users/index.blade.php) */
.rrma-banner-section .rrma-slider-container .rrma-slider {
    margin-bottom: 50px;
    height: 400px;
}

.rrma-banner-section .rrma-slider-container .rrma-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

.rrma-banner-section .rrma-slider-container .rrma-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.rrma-banner-section .rrma-slider-container .rrma-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rrma-banner-section .rrma-slider-container .slider-content {
    position: absolute;
    bottom: -11%;
    left: 50%;
    transform: translate(-50%, 0%);
    color: #fff;
    text-align: center;
    padding: 40px 30px 20px 30px;
    max-width: 95%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: min-height 0.3s ease;
    width: 61%;
    color: #000;
    min-height: 180px;
}

.rrma-banner-section .rrma-slider-container .slider-content p {
    text-align: justify;
    font-size: 17px;
}

.rrma-banner-section .rrma-slider-container .slider-content h1 {
    font-size: 30px;
    font-weight: 500;
}

.rrma-banner-section .rrma-slider-container .rrma-slider .content-animate {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
    position: relative;
}

/* Hero copy: left-aligned (justify created wide word gaps) and keep inline links unbroken
   so punctuation after a link never starts a new line */
.rrma-banner-section .rrma-slider-container .slider-content .content-animate p {
    text-align: left;
    line-height: 1.7;
    color: #2d3d3f;
}

.rrma-banner-section .rrma-slider-container .slider-content .content-animate p a {
    white-space: nowrap;
    color: #358b8d;
    font-weight: 600;
}

/* Active slide content is visible without waiting for JS, so the card never renders empty */
.rrma-banner-section .rrma-slider-container .rrma-slider .slide.active .content-animate,
.rrma-banner-section .rrma-slider-container .rrma-slider .animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rrma-banner-section .rrma-slider-container .slider-content .content-animate .btn-slider {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    transform: translate(0%, 65%);
}

.rrma-banner-section .rrma-slider-container .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #bcdbdd;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;
    color: #000;
    font-weight: 700;
    opacity: .6;
}

.rrma-banner-section .rrma-slider-container .slider-nav:focus {
    outline: 2px solid #fff;
}

.rrma-banner-section .rrma-slider-container .slider-nav.prev {
    left: 15px;
}

.rrma-banner-section .rrma-slider-container .slider-nav.next {
    right: 15px;
}

.rrma-banner-section .rrma-slider-container .blank-div {
    height: 20px;
}

@media (max-width: 1300px) {

    .rrma-banner-section .rrma-slider-container .slider-content {
        padding: 25px 30px 20px 30px;
        min-height: 100px;
        width: 72%;
        bottom: -11%;
        transform: translate(-50%, -10%);
    }

    .rrma-banner-section .rrma-slider-container .rrma-slider {
        height: 450px;
    }

    .rrma-banner-section .rrma-slider-container .blank-div {
        height: 1px;
    }

}

@media (max-width: 1100px) {

    .rrma-banner-section .rrma-slider-container .slider-content {
        font-size: 16px;
        min-height: 100px;
        width: 72%;
        bottom: -11%;
        transform: translate(-50%, -2%);
    }

    .rrma-banner-section .rrma-slider-container .slider-content p {
        font-size: 16px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content h1 {
        font-size: 28px;
    }

}

@media (max-width: 991px) {

    .rrma-banner-section .rrma-slider-container .slider-content {
        transform: translate(-50%, -8%);
    }

    .rrma-banner-section .rrma-slider-container .rrma-slider {
        height: 480px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content p {
        font-size: 15px;
    }

}

@media (max-width: 768px) {
    .rrma-banner-section .rrma-slider-container .rrma-slider {
        height: 420px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content {
        padding: 5px 10px 0px 10px;
        width: 92%;
        transform: translate(-50%, -8%);
    }

    .rrma-banner-section .rrma-slider-container .slider-content p {
        font-size: 14px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content h1 {
        font-size: 26px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content .content-animate .btn-slider {
        transform: translate(0%, 21%);
    }
}

@media (max-width: 480px) {

    .rrma-banner-section .rrma-slider-container .slider-content {
        width: 100%;
    }

    .rrma-banner-section .rrma-slider-container .slider-content .content-animate .btn-slider {
        font-size: 13px;
    }

    .rrma-banner-section .rrma-slider-container .slider-nav {
        font-size: 20px;
        padding: 3px 8px;
    }

    .rrma-banner-section .rrma-slider-container .rrma-slider {
        height: 530px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .rrma-banner-section .rrma-slider-container .slider-content {
        transform: translate(-50%, -0%);
    }

    .rrma-banner-section .rrma-slider-container .slider-content .content-animate .btn-slider {
        font-size: 12px;
    }

    .rrma-banner-section .rrma-slider-container .slider-content h1 {
        font-size: 22px;
    }
}

.image-pop-up {
    font-size: 1.1rem;
    margin-left: 8px;
    flex-shrink: 0;
    opacity: 0.3;
    width: 11%;
    top: 70%;
    left: 90%;
}

@media(max-width:768px) and (min-width:507px) {
    .image-pop-up {
        width: 8%;
    }
}








.rrma-recognition {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #eaf5f5;
    border-left: 4px solid #4d898c;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #263f42;
}

.rrma-recognition .recognition-icon {
    color: #26834a;
    font-size: 19px;
    font-weight: 700;
}

.rrma-recognition a {
    color: #358b8d;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.rrma-recognition a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .rrma-recognition {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ── About RRMA section ─────────────────────────────────────────── */
.rrma-about {
    --ra-teal: #4d898c;
    --ra-teal-dark: #358b8d;
    --ra-ink: #1e3a52;
    --ra-text: #45556c;
    --ra-soft: #eaf5f5;
    --ra-line: #d9e2ec;
    padding: 80px 0 72px;
    color: var(--ra-text);
    font-size: 16px;
    line-height: 1.7;
}

.rrma-about a {
    color: var(--ra-teal-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 139, 141, .3);
}

.rrma-about a:hover {
    border-bottom-color: currentColor;
}

.rrma-about strong {
    color: var(--ra-ink);
    font-weight: 600;
}

.rrma-about-block {
    margin-bottom: 64px;
}

.rrma-about-title {
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ra-ink);
    margin-bottom: 12px;
    max-width: 640px;
}

/* intro paragraph: lighter emphasis so the bold phrases don't compete with the heading */
.rrma-about .rrma-about-lead strong {
    font-weight: 600;
    color: #2c4446;
}

.rrma-about .rrma-about-lead {
    font-size: 16.5px;
    line-height: 1.8;
    color: #536466;
}

.rrma-about-tagline {
    font-size: 16px;
    margin-bottom: 22px;
}

.rrma-about .rrma-about-tagline strong {
    color: var(--ra-teal-dark);
    font-weight: 600;
}

.rrma-about-lead {
    font-size: 17px;
    margin-bottom: 0;
}

.rrma-about-heading {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ra-ink);
    margin-bottom: 14px;
    max-width: 860px;
}

.rrma-about-text {
    max-width: 860px;
}

/* Centered section intros above card grids */
.rrma-about-center > .rrma-about-heading,
.rrma-about-center > .rrma-about-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
}

.rrma-about-center > .rrma-about-heading {
    margin-bottom: 12px;
}

.rrma-about-center > .rrma-about-text {
    margin-bottom: 8px;
}

.rrma-about-center .rrma-industry-list {
    justify-content: center;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.rrma-about-center .row {
    margin-top: 32px !important;
}

/* Why choose: two-column highlight panel */
.rrma-about-why {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    background: #f5f9f9;
    border: 1px solid var(--ra-line);
    border-radius: 20px;
    padding: 44px 48px;
}

.rrma-about-why .rrma-about-heading,
.rrma-about-why .rrma-about-text {
    max-width: none;
    margin: 0;
}

.rrma-about-why .rrma-about-text {
    font-size: 16.5px;
}

@media (max-width: 991.98px) {
    .rrma-about-why {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 24px;
    }
}

/* Recognition card */
.rrma-recognition-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--ra-line);
    border-left: 4px solid var(--ra-teal);
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 10px 30px rgba(30, 58, 82, .07);
}

.rrma-recognition-badge {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ra-soft);
    color: var(--ra-teal);
    display: grid;
    place-items: center;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.rrma-recognition-text {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ra-ink);
    margin: 0 0 12px;
}

.rrma-about .rrma-about-link {
    border-bottom: 0;
}

.rrma-about .rrma-about-link:hover {
    text-decoration: underline;
}

/* Service cards */
.rrma-service-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ra-line);
    border-radius: 16px;
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.rrma-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--ra-teal);
    box-shadow: 0 16px 36px rgba(30, 58, 82, .09);
}

.rrma-service-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ra-teal);
    background: var(--ra-soft);
    border-radius: 8px;
    padding: 4px 10px;
    margin-bottom: 16px;
}

.rrma-about h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ra-ink);
    margin-bottom: 10px;
}

.rrma-service-card p {
    font-size: 15px;
    margin-bottom: 16px;
}

.rrma-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rrma-check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.55;
}

.rrma-check-list li:last-child {
    margin-bottom: 0;
}

.rrma-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ra-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d898c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Features */
.rrma-feature {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ra-line);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
}

.rrma-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--ra-soft);
    color: var(--ra-teal);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.rrma-feature p {
    font-size: 15px;
    margin-bottom: 0;
}

.rrma-about .rrma-feature-title {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: var(--ra-ink);
    margin-bottom: 10px;
}

/* Industries */
.rrma-industry-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rrma-industry-list li {
    background: #fff;
    border: 1px solid var(--ra-line);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ra-ink);
}

/* Membership CTA */
.rrma-member-cta {
    background: linear-gradient(135deg, #233242 0%, #1e3a52 55%, #358b8d 100%);
    border-radius: 24px;
    padding: 48px;
    color: rgba(255, 255, 255, .88);
}

.rrma-member-cta .rrma-about-heading {
    color: #fff;
}

.rrma-member-cta p {
    margin-bottom: 0;
}

.rrma-member-cta p a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .5);
}

.rrma-benefits {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    color: var(--ra-text);
}

.rrma-member-cta .rrma-member-explore {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

/* ── Regulatory updates (expanding panels) ──────────────────────── */
.slider-container.sec-slider-cont-hei {
    min-height: 0;
    padding-top: 24px;
}

.slider-container > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin: 0;
    align-items: stretch;
}

.slider-container > .container > .row > * {
    width: auto;
    padding: 0;
    margin: 0;
    max-width: none;
}

.slider-container .box-area {
    grid-column: 1;
    grid-row: 1;
    width: auto !important;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.slider-container .box {
    flex: 0 0 56px;
    width: 56px;
    height: 340px;
    margin-right: 0;
    border-radius: 16px;
    background: #e3f0f0 !important;
    border: 1px solid #d0e5e5;
    cursor: pointer;
    text-align: left;
    transition: flex-basis .5s ease, background-color .3s ease;
}

.slider-container .box:not(.active):hover {
    background: #cfe6e6 !important;
}

.slider-container .box.active {
    flex: 1 1 auto;
    width: auto;
    cursor: default;
    background: linear-gradient(150deg, #233242 0%, #1e3a52 100%) !important;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(30, 58, 82, .18);
}

.slider-container .box > div {
    padding: 34px 36px 34px !important;
    min-width: 420px;
}

.slider-container .box h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 0;
}

.slider-container .box hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, .18);
    opacity: 1;
    margin: 18px 0;
}

.slider-container .box p {
    color: rgba(255, 255, 255, .82);
    font-size: 15.5px;
    line-height: 1.7;
    text-align: left;
}

.slider-container .box p:not(.description-snippet) {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #bfe3e4;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* right-hand title card */
.slider-container .fixed-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding: 34px 30px 100px !important;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 58, 82, .06);
}

.slider-container .fixed-content h2 {
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #1e3a52;
    margin: 0 0 18px;
}

.slider-container .fixed-content hr {
    border: 0;
    height: 1px;
    background: #e3eeee;
    opacity: 1;
    margin: 0 0 18px;
}

.slider-container .fixed-content a {
    margin-left: 0;
    color: #358b8d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 139, 141, .35);
    align-self: flex-start;
}

.slider-container .fixed-content a:hover {
    text-decoration: none;
    border-bottom-color: currentColor;
}

/* arrows: chevron buttons at the bottom of the white title card */
.slider-container .arrows {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    align-self: end;
    justify-self: start;
    gap: 10px;
    margin: 0 0 30px 30px !important;
    z-index: 10;
}

.slider-container .arrows span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #cfe3e3;
    background: #fff;
    font-size: 0;
    color: transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.slider-container .arrows span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid #358b8d;
    border-right: 2px solid #358b8d;
}

.slider-container .arrows .prev-btn::before {
    transform: translateX(2px) rotate(-135deg);
}

.slider-container .arrows .next-btn::before {
    transform: translateX(-2px) rotate(45deg);
}

.slider-container .arrows span:hover,
.slider-container .arrows span:focus-visible {
    background: #4d898c;
    border-color: #4d898c;
    outline: 0;
}

.slider-container .arrows span:hover::before,
.slider-container .arrows span:focus-visible::before {
    border-color: #fff;
}

/* mobile heading block */
.slider-container .reg-head-for-small {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a52;
}

.slider-container .regulatory_update_link {
    color: #358b8d;
}

@media (max-width: 767.98px) {
    .slider-container > .container > .row {
        grid-template-columns: 1fr;
    }

    .slider-container .box:not(.active) {
        display: none;
    }

    .slider-container .box.active {
        height: auto;
        min-height: 340px;
    }

    .slider-container .box > div {
        min-width: 0;
        padding: 26px 22px 26px !important;
    }

    .slider-container .arrows {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        margin: 4px 0 0 !important;
    }
}

/* ── Section headings ("Courses we offer  view all …") ───────────── */
.course-section > .container > .container {
    padding: 0;
    max-width: none !important;
}

.course-section .ind-page-head-h2-cont,
.event-section .ind-page-head-h2-cont,
.resources-section .ind-page-head-h2-cont {
    align-items: baseline;
    gap: 16px;
}

.course-section .ind-page-head-h2-cont h2,
.event-section .ind-page-head-h2-cont h2,
.resources-section .ind-page-head-h2-cont h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    color: #1e3a52;
    margin: 0;
}

.course-section .ind-page-head-h2-cont a,
.event-section .ind-page-head-h2-cont a,
.resources-section .ind-page-head-h2-cont a {
    font-size: 15px;
    font-weight: 600;
    color: #358b8d;
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 139, 141, .35);
    margin-left: 0 !important;
    transition: border-color .2s ease, color .2s ease;
}

.course-section .ind-page-head-h2-cont a::after,
.event-section .ind-page-head-h2-cont a::after,
.resources-section .ind-page-head-h2-cont a::after {
    content: " →";
}

.course-section .ind-page-head-h2-cont a:hover,
.event-section .ind-page-head-h2-cont a:hover,
.resources-section .ind-page-head-h2-cont a:hover {
    color: #1e3a52;
    border-bottom-color: currentColor;
}

/* ── Course cards ───────────────────────────────────────────────── */
.course-section .row > [class*="col-"] {
    padding-top: 28px !important;
}

.course-section .course {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(30, 58, 82, .06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.course-section .course:hover {
    transform: translateY(-4px);
    border-color: #4d898c;
    box-shadow: 0 18px 40px rgba(30, 58, 82, .12);
}

.course-section .course img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 408 / 224;
    object-fit: contain;
    border-bottom: 1px solid #eef4f4;
    background: #fff;
    color: transparent;
}

.course-section .course-content p:empty {
    display: none;
}

.course-section .course-content {
    flex: 1;
    height: auto !important;
    background: #fff;
    padding: 22px 24px 26px;
}

.course-section .course-title {
    text-align: left !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.course-section .course-title a {
    color: #1e3a52 !important;
    transition: color .2s ease;
}

.course-section .course:hover .course-title a {
    color: #358b8d !important;
}

/* descriptions come from the DB as <p> nested in <p>, which browsers split,
   so style every paragraph in the card body, not only .course-description */
.course-section .course-content p,
.course-section .course-description,
.course-section .course-description * {
    text-align: left !important;
    font-size: 15px;
    line-height: 1.7;
    color: #45556c;
    margin: 0;
}

/* ── Events ─────────────────────────────────────────────────────── */
.event-section-two.bg-light-blue-background {
    background: transparent !important;
    padding-top: 8px !important;
    padding-bottom: 24px !important;
}

.event-section-two .container {
    display: block;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.event-section {
    padding-bottom: 8px !important;
}

.event-section-two .row {
    row-gap: 24px;
}

/* a single event gets a wider card instead of half the row */
.event-section-two .row.justify-content-center > [class*="col-"] {
    width: min(100%, 1000px);
    flex: 0 0 auto;
}

/* let each card switch to a stacked layout when its own column is narrow */
.event-section-two .row > [class*="col-"] {
    container-type: inline-size;
}

@container (max-width: 720px) {
    .event-section-two .event-card-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .event-section-two .event-card img,
    .event-section-two .evn-mob-img {
        grid-row: 1;
        min-height: 0;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid #eef4f4;
    }

    .event-section-two .date {
        grid-column: 1;
        grid-row: 2;
        margin: 22px 24px 0;
    }

    .event-section-two .event-content {
        grid-column: 1;
        grid-row: 3;
        padding: 12px 24px 26px;
    }
}

.event-section-two .event-card-wrapper {
    display: grid;
    /* image column sized so a 16:9 banner roughly matches the text column height */
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    /* date + title sit together, vertically centred beside the image */
    grid-template-rows: auto auto;
    align-content: center;
    height: 100%;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 58, 82, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.event-section-two .event-card-wrapper:hover {
    transform: translateY(-4px);
    border-color: #4d898c;
    box-shadow: 0 18px 40px rgba(30, 58, 82, .12);
}

/* flatten the inner card so image, title and date share one grid */
.event-section-two .event-card {
    display: contents;
}

.event-section-two .event-card:hover {
    transform: none;
}

.event-section-two .event-card img,
.event-section-two .evn-mob-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100% !important;
    height: 100% !important;
    min-height: 240px;
    /* event images are banners with text in them: show the whole image, never crop */
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border-right: 1px solid #eef4f4;
    /* soft placeholder when the image is missing; hides broken-image alt text */
    background: #f7fbfb;
    color: transparent;
}

.event-section-two .date {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    /* the image spans both rows and splits its height between them:
       pin date to the bottom of row 1 and title to the top of row 2 so they meet in the middle */
    align-self: end;
    width: auto;
    margin: 28px 28px 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eaf5f5;
    color: #358b8d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
}

.event-section-two .date em {
    font-style: normal;
}

.event-section-two .date b {
    font-weight: 700;
}

.event-section-two .event-content {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 14px 28px 28px;
    justify-content: flex-start;
}

.event-section-two .event-content h3 {
    text-align: left !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.event-section-two .event-content h3 a {
    color: #1e3a52 !important;
    transition: color .2s ease;
}

.event-section-two .event-card-wrapper:hover .event-content h3 a {
    color: #358b8d !important;
}

@media (max-width: 575.98px) {
    .event-section-two .event-card-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .event-section-two .event-card img,
    .event-section-two .evn-mob-img {
        grid-row: 1;
        min-height: 0;
        height: auto !important;
        border-right: 0;
        border-bottom: 1px solid #eef4f4;
    }

    .event-section-two .date {
        grid-column: 1;
        grid-row: 2;
        margin: 20px 20px 0;
    }

    .event-section-two .event-content {
        grid-column: 1;
        grid-row: 3;
        padding: 12px 20px 22px;
    }
}

/* ── Stats / counter band ───────────────────────────────────────── */
.counter-section.bg-light-blue-background {
    background: transparent !important;
    border-radius: 0;
}

.counter-section > .container {
    /* RRMA logo colours: teal bar #7acbcd -> grey bar #9ba3a3 */
    background: linear-gradient(135deg, #7acbcd 0%, #95bfc0 55%, #9ba3a3 100%);
    border-radius: 24px;
    padding: 56px 48px 48px;
    box-shadow: 0 18px 40px rgba(30, 58, 82, .12);
    color: #1e3a52;
}

.counter-section .counter-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.counter-section .counter-box {
    text-align: center;
    padding: 4px 16px;
}

.counter-section .counter-box + .counter-box {
    border-left: 1px solid rgba(30, 58, 82, .2);
}

.counter-section .counter-box h2 {
    color: #1e3a52;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.counter-section .counter-box p {
    color: #233242;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0;
}

.counter-section hr {
    height: 1px;
    border: 0;
    background: rgba(30, 58, 82, .2);
    opacity: 1;
    margin: 40px 0 24px;
}

.counter-section .description {
    color: #1e3a52;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding-top: 0 !important;
}

.counter-section .button-container {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.counter-section .button-container .btn {
    width: auto;
    height: auto;
    min-width: 210px;
    padding: 14px 28px !important;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.counter-section .button-container .btn-primary {
    background: #1e3a52;
    color: #fff;
    border: 2px solid #1e3a52;
}

.counter-section .button-container .btn-primary:hover {
    background: #233242;
    border-color: #233242;
    color: #fff;
}

.counter-section .button-container .btn-secondary {
    background: #fff;
    color: #1e3a52;
    border: 2px solid #fff;
}

.counter-section .button-container .btn-secondary:hover {
    background: #eaf5f5;
    border-color: #eaf5f5;
    color: #1e3a52;
}

@media (max-width: 767.98px) {
    .counter-section > .container {
        padding: 36px 20px 32px;
        border-radius: 18px;
    }

    .counter-section .counter-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .counter-section .counter-box + .counter-box {
        border-left: 0;
        border-top: 1px solid rgba(30, 58, 82, .2);
        padding-top: 20px;
    }

    .counter-section .button-container .btn {
        width: 100%;
    }
}

/* ── Resources cards ────────────────────────────────────────────── */
.resources-section .row > [class*="col-"] {
    display: flex;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.resources-section .resources-card-container {
    flex: 1;
    margin-top: 0;
    align-items: stretch;
    transition: none;
}

.resources-section .resources-card-container:hover {
    transform: none;
}

.resources-section [class^="circle-bg-"] {
    display: none;
}

.resources-section .card {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 58, 82, .05);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.resources-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(30, 58, 82, .1);
}

.resources-section .card-header-blue { --rc: #1e3a52; --rc-soft: #eef2f6; }
.resources-section .card-header-green { --rc: #358b8d; --rc-soft: #e8f3f3; }
.resources-section .card-header-red { --rc: #f58721; --rc-soft: #fef3e9; }
.resources-section .card-header-purple { --rc: #7acbcd; --rc-soft: #eaf5f5; }

.resources-section .card-header-blue,
.resources-section .card-header-green,
.resources-section .card-header-red,
.resources-section .card-header-purple {
    background: #fff;
    border-top: 4px solid var(--rc);
    border-radius: 0;
    text-align: left;
    padding: 22px 24px 10px;
}

.resources-section .card-header-blue a,
.resources-section .card-header-green a,
.resources-section .card-header-red a,
.resources-section .card-header-purple a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    color: #1e3a52 !important;
    text-decoration: none;
}

.resources-section [class^="card-header-"] a::after {
    content: "→";
    color: var(--rc);
    transition: transform .2s ease;
}

.resources-section [class^="card-header-"] a:hover::after {
    transform: translateX(4px);
}

.resources-section .card-body {
    width: auto;
    height: auto;
    min-height: 150px;
    padding: 10px 24px 24px;
    text-align: left;
}

/* Static, wrapping pills instead of scrolling rows (scrolling left empty gaps on wide screens) */
.resources-section .marquee {
    height: auto;
    overflow: visible;
    display: block;
}

.resources-section .marquee + .marquee {
    margin-top: 10px;
}

.resources-section .marquee-1 {
    position: static;
    min-width: 0;
    animation: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resources-section .marquee-2 {
    display: contents;
}

.resources-section .marquee-tags-box-one {
    overflow: visible;
}

.resources-section .marquee-tags-content-one {
    animation: none;
    flex-wrap: wrap;
    padding: 0;
}

.resources-section .marquee-tags-content-one:empty,
.resources-section .marquee-tags-box-two {
    display: none;
}

.resources-section .marquee.style-1 {
    background: transparent;
    color: inherit;
}

.resources-section .marquee .text {
    white-space: normal;
    line-height: 1.45;
    padding: 7px 16px;
    border-radius: 999px;
    background: #eef2f6;
    color: #1e3a52;
    font-size: 14.5px;
    font-weight: 500;
}

.resources-section .marquee-tags-box-two {
    margin: 14px 0 0;
}

.resources-section .marquee-tags-content-one,
.resources-section .marquee-tags-content-two {
    gap: 12px;
}

.resources-section .marquee-tags-text {
    padding: 7px 16px;
    border: 1px solid #cfe3e4;
    background: #e8f3f3;
    color: #1f5b3c;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.4;
}

.resources-section .marquee-tags-text:hover {
    background: #fff;
    border-color: #358b8d;
}

/* additional resources list */
.resources-section ul.df {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-section .df li {
    font-family: inherit;
    font-size: 16px;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: left;
    border-bottom: 1px solid #f6e6d8;
}

.resources-section .df li:last-child {
    border-bottom: 0;
}

.resources-section .df li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 2px;
    color: #1e3a52;
    font-weight: 600;
    text-decoration: none;
}

.resources-section .df li a::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: #c2620f;
    transition: transform .2s ease;
}

.resources-section .df li a:hover {
    color: #c2620f;
}

.resources-section .df li a:hover::after {
    transform: translateX(3px);
}

/* organisation tiles */
.resources-section .card-grid {
    gap: 12px;
}

.resources-section .card-grid-item {
    border: 0 !important;
    padding: 0 !important;
}

.resources-section .card-grid-item a {
    display: block;
    padding: 16px 10px;
    border-radius: 12px;
    background: #eaf5f5;
    color: #1e3a52 !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.resources-section .card-grid-item a:hover {
    background: #4d898c;
    color: #fff !important;
}

/* ── FAQ section ────────────────────────────────────────────────── */
section.home_faq_section {
    background: #f5f9f9 !important;
    padding: 80px 0 !important;
}

section.home_faq_section .ind-page-head-h2-cont h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: #1e3a52;
    margin-bottom: 20px;
}

section.home_faq_section .ind-page-head-h2-cont {
    justify-content: center;
    text-align: center;
}

section.home_faq_section .accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

section.home_faq_section .accordion .accordion-item {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

section.home_faq_section .accordion .accordion-item:hover {
    border-color: #b9d6d7;
}

section.home_faq_section .accordion .accordion-item:has(button[aria-expanded=true]) {
    border-color: #4d898c;
    box-shadow: 0 10px 28px rgba(30, 58, 82, .08);
}

section.home_faq_section .accordion button,
section.home_faq_section .accordion button[aria-expanded=true] {
    padding: 20px 64px 20px 24px;
    border-bottom: 0;
    color: #1e3a52;
}

section.home_faq_section .accordion button .accordion-title {
    display: block;
    padding: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #1e3a52;
}

section.home_faq_section .accordion button:hover .accordion-title,
section.home_faq_section .accordion button:focus-visible .accordion-title,
section.home_faq_section .accordion button[aria-expanded=true] .accordion-title {
    color: #358b8d;
}

section.home_faq_section .accordion button:focus-visible {
    outline: 2px solid #4d898c;
    outline-offset: -2px;
    border-radius: 14px;
}

section.home_faq_section .accordion button .icon {
    top: 50%;
    right: 24px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border: 0;
    border-radius: 50%;
    background: #eaf5f5;
    color: #4d898c;
    transition: background-color .2s ease, color .2s ease, transform .3s ease;
}

section.home_faq_section .accordion button .icon::before {
    top: 14px;
    left: 9px;
    width: 12px;
    height: 2px;
    background: currentColor;
}

section.home_faq_section .accordion button .icon::after {
    top: 9px;
    left: 14px;
    width: 2px;
    height: 12px;
    background: currentColor;
    transition: transform .3s ease;
}

section.home_faq_section .accordion button:hover .icon,
section.home_faq_section .accordion button:focus .icon {
    border-color: transparent;
}

section.home_faq_section .accordion button:hover .icon::before,
section.home_faq_section .accordion button:hover .icon::after,
section.home_faq_section .accordion button:focus .icon::before,
section.home_faq_section .accordion button:focus .icon::after {
    background-color: currentColor;
}

section.home_faq_section .accordion button[aria-expanded=true] .icon {
    background: #4d898c;
    color: #fff;
    transform: rotate(180deg);
}

section.home_faq_section .accordion button[aria-expanded=true] .icon::after {
    width: 2px;
    transform: scaleY(0);
}

section.home_faq_section .accordion .accordion-content .h3 {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #45556c;
}

@media (max-width: 767.98px) {
    section.home_faq_section {
        padding: 56px 0 !important;
    }

    section.home_faq_section .accordion button,
    section.home_faq_section .accordion button[aria-expanded=true] {
        padding: 16px 56px 16px 18px;
    }

    section.home_faq_section .accordion button .icon {
        right: 16px;
    }

    section.home_faq_section .accordion .accordion-content .h3 {
        padding: 0 18px 18px;
    }
}

@media (max-width: 767.98px) {
    .rrma-about {
        padding: 56px 0 48px;
    }

    .rrma-about-block {
        margin-bottom: 44px;
    }

    .rrma-recognition-card,
    .rrma-service-card,
    .rrma-benefits {
        padding: 22px;
    }

    .rrma-member-cta {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .rrma-about-why {
        padding-left: 16px;
    }
}
