/* =====================================================================
   BLA UK — Premium frontend skin
   ---------------------------------------------------------------------
   Loaded LAST in resources/views/frontend/layouts/header.blade.php.
   To undo the whole redesign: remove that one <link> line (or delete
   this file). Nothing else depends on it.

   Brand colours come from the site's own CSS variables
   (frontend/layouts/dynamic-color.blade.php), so admin colour settings
   still work:
     --primary-color  #cdef84  lime (brand)
     --hover-color    #afd449  deeper lime
     --black-color    #121421  ink navy
     --text-black     #1b1c17  text
     --para-color     #707070  muted text
     --event-bg       #fbf9f1  warm cream
   Only tints/shades of these plus white / greys are used.
   ===================================================================== */

:root {
    --pm-lime: var(--primary-color, #cdef84);
    --pm-lime-deep: var(--hover-color, #afd449);
    --pm-lime-50: #f6fce8;           /* very light tint of the lime */
    --pm-lime-100: #ecf8cf;          /* light tint of the lime */
    --pm-lime-ink: #556b1c;          /* dark shade of the lime, AA on white */
    --pm-ink: var(--black-color, #121421);
    --pm-ink-80: #2a2c38;
    --pm-text: #1b1c17;
    --pm-body: #4a4c55;
    --pm-muted: #6b6d75;
    --pm-line: #e7e8ec;
    --pm-surface: #ffffff;
    --pm-soft: #f7f7f5;
    --pm-cream: var(--event-bg, #fbf9f1);

    --pm-radius-sm: 10px;
    --pm-radius: 14px;
    --pm-radius-lg: 20px;
    --pm-shadow-sm: 0 1px 2px rgba(18, 20, 33, .06), 0 1px 3px rgba(18, 20, 33, .05);
    --pm-shadow: 0 2px 4px rgba(18, 20, 33, .04), 0 10px 28px -8px rgba(18, 20, 33, .14);
    --pm-shadow-lg: 0 4px 8px rgba(18, 20, 33, .05), 0 22px 44px -14px rgba(18, 20, 33, .24);
    --pm-ring: 0 0 0 4px rgba(175, 212, 73, .45);

    --pm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pm-font-head: "Inter Tight", "Inter", system-ui, sans-serif;
    --pm-section: 80px;
    --pm-gutter: 24px;
}

@media (max-width: 767.98px) {
    :root {
        --pm-section: 48px;
        --pm-gutter: 16px;
    }
}

/* ---------------------------------------------------------------------
   1. Base: typography, motion, focus
   --------------------------------------------------------------------- */
html {
    scroll-padding-top: 110px;
}

body {
    font-family: var(--pm-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--pm-body);
    background: var(--pm-surface);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* The theme animates *every* property on every element (layout jank on
   resize/load). Keep the hover polish, drop the layout animation. */
*,
*::before,
*::after {
    transition-property: color, background-color, border-color, box-shadow, opacity, transform;
    transition-duration: .25s;
    transition-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pm-font-head);
    color: var(--pm-ink);
    letter-spacing: -0.015em;
}

.container {
    max-width: 1240px;
    padding-left: var(--pm-gutter);
    padding-right: var(--pm-gutter);
}

a {
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--pm-ink) !important;
    outline-offset: 2px;
    box-shadow: var(--pm-ring) !important;
}

::selection {
    background: var(--pm-lime);
    color: var(--pm-ink);
}

/* Consistent section rhythm (80px desktop / 48px mobile) */
section.pb-110 {
    padding-bottom: var(--pm-section) !important;
}

section.pt-60 {
    padding-top: var(--pm-section) !important;
}

/* Section headings ("Image Gallery", "News & Events", "Editorial") */
.header-one {
    padding-bottom: 40px !important;
}

.header-one h4 {
    font-size: clamp(28px, 3.4vw, 40px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    padding-bottom: 0 !important;
    position: relative;
}

.header-one h4::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: var(--pm-lime-deep);
}

/* ---------------------------------------------------------------------
   2. Header / navbar (sticky)
   --------------------------------------------------------------------- */
#lang_code + div {
    position: sticky;
    top: 0;
    z-index: 1030;
}

#lang_code + div > .bg-primary-color {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 1px 0 rgba(18, 20, 33, .08);
}

/* shadow appears once the page is scrolled (progressive enhancement) */
@supports (animation-timeline: scroll()) {
    #lang_code + div > .bg-primary-color {
        animation: pm-header-shadow linear both;
        animation-timeline: scroll(root);
        animation-range: 0 120px;
    }

    @keyframes pm-header-shadow {
        from { box-shadow: 0 1px 0 rgba(18, 20, 33, .08); }
        to   { box-shadow: 0 1px 0 rgba(18, 20, 33, .06), 0 10px 30px -12px rgba(18, 20, 33, .35); }
    }
}

#lang_code + div .max-w-146 {
    justify-content: flex-start !important;
}

#lang_code + div .max-w-146 img {
    width: auto;
    max-height: 84px;
}

.menu-navbar-nav {
    column-gap: 4px !important;
    align-items: center;
    justify-content: flex-end !important;
}

.menu-navbar-nav .nav-link {
    position: relative;
    padding: 8px 14px !important;
    border-radius: 999px;
    font-family: var(--pm-font);
    font-size: 15.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: var(--pm-ink) !important;
    white-space: nowrap;
}

.menu-navbar-nav .nav-link:hover,
.menu-navbar-nav .nav-link:focus-visible,
.menu-navbar-nav .nav-item.show > .nav-link {
    background: rgba(18, 20, 33, .08);
}

.menu-navbar-nav .nav-link.active {
    background: var(--pm-ink);
    color: var(--pm-lime) !important;
}

.menu-navbar-nav .dropdown-toggle::after {
    vertical-align: .2em;
    margin-left: 6px;
}

.menu-navbar-nav .dropdown-menu {
    min-width: 210px;
    margin-top: 10px !important;
    padding: 8px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: var(--pm-radius) !important;
    box-shadow: var(--pm-shadow-lg) !important;
}

.menu-navbar-nav .dropdown-item,
.menu-navbar-collapse .dropdown-item {
    padding: 10px 14px !important;
    border-radius: var(--pm-radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--pm-ink);
}

.menu-navbar-nav .dropdown-item:hover,
.menu-navbar-nav .dropdown-item:focus,
.menu-navbar-collapse .dropdown-item:hover {
    padding-left: 14px !important;
    background: var(--pm-lime-100) !important;
    color: var(--pm-ink) !important;
}

.menu-navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(18, 20, 33, .25) !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-navbar-toggler:focus {
    box-shadow: var(--pm-ring);
}

@media (max-width: 991.98px) {
    #lang_code + div .max-w-146 img {
        max-height: 60px;
    }

    .menu-navbar-collapse.offcanvas {
        width: min(320px, 86vw) !important;
        padding: 72px 20px 28px !important;
        box-shadow: var(--pm-shadow-lg);
    }

    .menu-navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        row-gap: 4px !important;
    }

    .menu-navbar-nav .nav-link {
        display: block;
        padding: 12px 16px !important;
        border-radius: 12px;
        font-size: 16px !important;
    }

    .menu-navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin: 6px 0 0 !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, .7) !important;
    }

    /* the drawer repeats the Membership menu a second time — hide the duplicate */
    .menu-navbar-collapse > .pt-20.w-100.d-lg-none {
        display: none !important;
    }

    .menu-navbar-collapse [data-bs-dismiss="offcanvas"] {
        width: 40px !important;
        height: 40px !important;
        top: 16px !important;
        right: 16px !important;
        box-shadow: var(--pm-shadow-sm);
    }
}

/* ---------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------- */
.home-banner a.bd-ra-12,
.primary-form button[type="submit"],
section form button[type="submit"],
.register-right button[type="submit"] {
    min-height: 48px;
    padding: 12px 26px !important;
    border-radius: 12px !important;
    font-family: var(--pm-font);
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    gap: 12px;
    column-gap: 12px !important;
}

section form button[type="submit"],
.register-right button[type="submit"] {
    background-color: var(--pm-lime) !important;
    color: var(--pm-ink) !important;
    border: 1px solid var(--pm-lime-deep) !important;
}

section form button[type="submit"]:hover,
.register-right button[type="submit"]:hover {
    background-color: var(--pm-ink) !important;
    border-color: var(--pm-ink) !important;
    color: var(--pm-lime) !important;
    transform: translateY(-1px);
    box-shadow: var(--pm-shadow);
}

.home-banner a.bd-ra-12:hover {
    transform: translateY(-2px);
}

.home-banner a.bd-ra-12 i,
a.hover-color-primary i {
    transition: transform .25s ease;
}

.home-banner a.bd-ra-12:hover i,
a.hover-color-primary:hover i {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   4. Hero banner (home) + page banners (breadcrumb)
   --------------------------------------------------------------------- */
.home-banner {
    padding: 120px 0 300px !important;
    min-height: 640px;
    background-position: center;
}

.home-banner::before {
    background: linear-gradient(180deg, rgba(18, 20, 33, .62) 0%, rgba(18, 20, 33, .78) 55%, #121421 100%) !important;
}

.home-banner .banner-title {
    font-size: clamp(32px, 4.6vw, 56px) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    letter-spacing: -0.012em;
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 22px !important;
    text-wrap: balance;
}

.home-banner .banner-desc {
    font-size: clamp(15.5px, 1.35vw, 18px) !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, .86) !important;
    max-width: 760px;
    padding-bottom: 34px !important;
}

.breadcrumb-wrap {
    padding: 88px 0 !important;
    background-position: center;
}

.breadcrumb-wrap::before {
    background: linear-gradient(180deg, rgba(18, 20, 33, .66) 0%, rgba(18, 20, 33, .9) 100%) !important;
}

.breadcrumb-wrap h4 {
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    padding: 0 16px 14px !important;
    letter-spacing: -0.02em;
}

.breadcrumb-list {
    display: inline-flex !important;
    padding: 6px 18px;
    gap: 22px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.breadcrumb-list a,
.breadcrumb-list li::after {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.breadcrumb-list li:not(:last-child)::after {
    right: -14px !important;
    color: rgba(255, 255, 255, .5) !important;
}

@media (max-width: 767.98px) {
    .home-banner {
        padding: 72px 0 230px !important;
        min-height: 0;
    }

    .breadcrumb-wrap {
        padding: 56px 0 !important;
    }
}

/* ---------------------------------------------------------------------
   5. About (home, overlaps the hero)
   --------------------------------------------------------------------- */
.joinCommunity-section {
    margin-top: -220px !important;
}

.joinCommunity-wrap {
    background-color: var(--pm-surface) !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow-lg);
    padding: 64px 56px !important;
}

.joinCommunity-wrap > h4 {
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    padding-bottom: 28px !important;
}

.joinCommunity-wrap > h4::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: var(--pm-lime-deep);
}

/* The about text is pasted from MS Word (inline Arial/10pt/justify). Because it
   sits inside <p class="about-text">, the browser hoists the inner <p>s out into
   .items, so target .items rather than .about-text. */
.joinCommunity-wrap .items {
    display: block !important;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.joinCommunity-wrap .items p,
.joinCommunity-wrap .items span,
.joinCommunity-wrap .items font {
    font-family: var(--pm-font) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--pm-body) !important;
    text-align: left !important;
}

.joinCommunity-wrap .items p {
    margin: 0 0 6px !important;
}

.joinCommunity-wrap .items b,
.joinCommunity-wrap .items b span,
.joinCommunity-wrap .items strong,
.joinCommunity-wrap .items strong span {
    font-family: var(--pm-font-head) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--pm-ink) !important;
}

/* section sub-headings ("Our Present:" etc.) get breathing room above */
.joinCommunity-wrap .items p:has(b),
.joinCommunity-wrap .items p:has(strong) {
    margin-top: 18px !important;
}

.joinCommunity-wrap .items > p.about-text:empty {
    display: none;
}

@media (max-width: 767.98px) {
    .joinCommunity-section {
        margin-top: -170px !important;
    }

    .joinCommunity-wrap {
        padding: 36px 20px !important;
    }

    .joinCommunity-wrap .items p,
    .joinCommunity-wrap .items span {
        font-size: 15.5px !important;
    }
}

/* ---------------------------------------------------------------------
   6. President / Secretary message
   --------------------------------------------------------------------- */
#welcomeSpeechCarousel .welcomeSpeech-wrap {
    padding: 48px !important;
    border-radius: var(--pm-radius-lg) !important;
    background: var(--pm-surface) !important;
    border: 1px solid var(--pm-line);
    box-shadow: var(--pm-shadow) !important;
}

#welcomeSpeechCarousel .welcomeSpeech-wrap > .row {
    align-items: flex-start !important;
    column-gap: 0;
}

#welcomeSpeechCarousel .speech-image-wrapper {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    background: var(--pm-soft);
    box-shadow: var(--pm-shadow);
    position: relative;
}

#welcomeSpeechCarousel .speech-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(18, 20, 33, .06);
    pointer-events: none;
}

#welcomeSpeechCarousel .speech-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
}

#welcomeSpeechCarousel .speech-img:hover {
    transform: none !important;
}

#welcomeSpeechCarousel .speech-title {
    font-size: clamp(24px, 2.6vw, 32px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: var(--pm-ink) !important;
    margin-bottom: 20px !important;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pm-line);
    position: relative;
}

#welcomeSpeechCarousel .speech-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--pm-lime-deep);
}

#welcomeSpeechCarousel .speech-content,
#welcomeSpeechCarousel .speech-content p,
#welcomeSpeechCarousel .speech-content span,
#welcomeSpeechCarousel .speech-content div {
    font-family: var(--pm-font) !important;
    font-size: 16.5px !important;
    line-height: 1.75 !important;
    color: var(--pm-body) !important;
}

/* the messages already use empty paragraphs as spacers */
#welcomeSpeechCarousel .speech-content p {
    margin: 0 0 4px !important;
}

/* Keep every slide in the layout (hidden) so the carousel is always as tall as
   its longest message: no page jump when it auto-rotates. */
#welcomeSpeechCarousel .carousel-inner {
    display: grid;
}

#welcomeSpeechCarousel .carousel-item {
    display: block;
    grid-area: 1 / 1;
    float: none;
    margin-right: 0;
    visibility: hidden;
}

#welcomeSpeechCarousel .carousel-item.active,
#welcomeSpeechCarousel .carousel-item-next,
#welcomeSpeechCarousel .carousel-item-prev {
    visibility: visible;
}

#welcomeSpeechCarousel .carousel-item > .welcomeSpeech-wrap {
    height: 100%;
}

/* desktop: fixed-width photo column, text takes the rest */
@media (min-width: 992px) {
    #welcomeSpeechCarousel .welcomeSpeech-wrap > .row > .col-lg-5 {
        flex: 0 0 auto;
        width: 368px;
        padding-right: 24px;
    }

    #welcomeSpeechCarousel .welcomeSpeech-wrap > .row > .col-lg-7 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding-left: 24px;
    }

    #welcomeSpeechCarousel .speech-image-wrapper {
        margin: 0;
        position: relative;
    }
}

/* prev / next arrows: small dark circles in the card's bottom-right corner */
#welcomeSpeechCarousel .carousel-control-prev,
#welcomeSpeechCarousel .carousel-control-next {
    top: auto;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pm-ink);
    opacity: .9;
    box-shadow: var(--pm-shadow-sm);
}

#welcomeSpeechCarousel .carousel-control-prev {
    left: auto;
    right: 72px;
}

#welcomeSpeechCarousel .carousel-control-next {
    right: 22px;
}

#welcomeSpeechCarousel .carousel-control-prev:hover,
#welcomeSpeechCarousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--pm-ink-80);
}

#welcomeSpeechCarousel .carousel-control-prev-icon,
#welcomeSpeechCarousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

#welcomeSpeechCarousel .welcomeSpeech-wrap {
    padding-bottom: 80px !important;
}

/* only one message: no arrows, normal padding */
#welcomeSpeechCarousel:has(.carousel-item:only-child) .carousel-control-prev,
#welcomeSpeechCarousel:has(.carousel-item:only-child) .carousel-control-next {
    display: none;
}

#welcomeSpeechCarousel:has(.carousel-item:only-child) .welcomeSpeech-wrap {
    padding-bottom: 48px !important;
}

@media (max-width: 991.98px) {
    #welcomeSpeechCarousel .welcomeSpeech-wrap {
        padding: 28px 22px 80px !important;
    }

    #welcomeSpeechCarousel:has(.carousel-item:only-child) .welcomeSpeech-wrap {
        padding-bottom: 28px !important;
    }

    #welcomeSpeechCarousel .speech-image-wrapper {
        max-width: 280px;
        margin-bottom: 8px;
    }

    #welcomeSpeechCarousel .speech-title {
        text-align: left;
    }

    #welcomeSpeechCarousel .speech-content,
    #welcomeSpeechCarousel .speech-content p,
    #welcomeSpeechCarousel .speech-content span,
    #welcomeSpeechCarousel .speech-content div {
        font-size: 15.5px !important;
    }

    /* the theme hides the arrows on phones; keep them reachable */
    #welcomeSpeechCarousel .carousel-control-prev,
    #welcomeSpeechCarousel .carousel-control-next {
        display: flex;
    }
}

/* ---------------------------------------------------------------------
   7. Gallery
   --------------------------------------------------------------------- */
.imageGallery .galleryImage-item {
    height: auto !important;
    aspect-ratio: 4 / 3;
    border-radius: var(--pm-radius) !important;
    box-shadow: var(--pm-shadow) !important;
    background: var(--pm-soft);
}

.imageGallery .galleryImage-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.imageGallery .galleryImage-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center 30%;
    transition: transform .5s ease;
}

.imageGallery .galleryImage-item:hover img {
    transform: scale(1.04) !important;
}

.gallery-button .swiper-button-next,
.gallery-button .swiper-button-prev {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: var(--pm-ink) !important;
    color: var(--pm-lime) !important;
    border: 0 !important;
    box-shadow: var(--pm-shadow);
}

.gallery-button .swiper-button-next:hover,
.gallery-button .swiper-button-prev:hover {
    background: var(--pm-lime) !important;
    color: var(--pm-ink) !important;
}

.gallery-button .swiper-button-next i,
.gallery-button .swiper-button-prev i {
    color: inherit !important;
}

/* ---------------------------------------------------------------------
   8. Cards: news, editorial, notices, events, stories, jobs
   --------------------------------------------------------------------- */
.row > [class*="col-"] > .hover-scale-img {
    height: 100%;
}

.hover-scale-img.bd-one {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--pm-surface) !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: var(--pm-radius) !important;
    box-shadow: var(--pm-shadow-sm);
}

.hover-scale-img.bd-one:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
    border-color: transparent !important;
}

/* image area: fixed ratio, never stretched */
.hover-scale-img.bd-one > .overflow-hidden.h-234 {
    height: auto !important;
    aspect-ratio: 16 / 10;
    border-radius: 0 !important;
    background: var(--pm-soft);
    flex: 0 0 auto;
}

.hover-scale-img.bd-one > .overflow-hidden.h-234 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    border-radius: 0 !important;
}

.hover-scale-img.bd-one:hover > .overflow-hidden img {
    transform: scale(1.04);
}

/* text area */
.hover-scale-img.bd-one > .pt-29 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px !important;
}

.hover-scale-img.bd-one > .pt-29 h4 {
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    min-height: 0 !important;
    margin-bottom: 14px !important;
    color: var(--pm-ink) !important;
}

.hover-scale-img.bd-one > .pt-29 > a {
    margin-top: auto;
    align-self: flex-start;
    gap: 10px;
    column-gap: 10px !important;
    padding-bottom: 2px;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: var(--pm-ink) !important;
    border-bottom: 2px solid var(--pm-lime-deep);
}

.hover-scale-img.bd-one > .pt-29 > a:hover {
    color: var(--pm-lime-ink) !important;
    border-bottom-color: var(--pm-ink);
}

.hover-scale-img.bd-one > .pt-29 p,
.hover-scale-img.bd-one > .pt-29 p * {
    font-family: var(--pm-font) !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: var(--pm-body) !important;
}

.hover-scale-img.bd-one > .pt-29 p {
    padding-bottom: 0 !important;
}

/* Editorial: single card centred, readable width */
section .row.rg-24 > .col-lg-5.col-md-5.col-12:only-child {
    flex: 0 0 auto;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    section .row.rg-24 > .col-lg-5.col-md-5.col-12:only-child > .hover-scale-img.bd-one {
        flex-direction: row;
        align-items: stretch;
    }

    section .row.rg-24 > .col-lg-5.col-md-5.col-12:only-child > .hover-scale-img.bd-one > .overflow-hidden.h-234 {
        width: 300px;
        aspect-ratio: 4 / 5;
        align-self: flex-start;
    }
}

/* "pb-50" under card rows on home adds a second gap after the section */
section > .container > .row.rg-24.pb-50 {
    padding-bottom: 0 !important;
}

/* Notice cards */
.row > [class*="col-"] > .bd-ra-25.bg-event-bg.py-32 {
    background: var(--pm-surface) !important;
    border: 1px solid var(--pm-line);
    border-left: 4px solid var(--pm-lime-deep);
    border-radius: var(--pm-radius) !important;
    box-shadow: var(--pm-shadow-sm);
    padding: 26px 26px 28px !important;
}

.row > [class*="col-"] > .bd-ra-25.bg-event-bg.py-32:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
}

.row > [class*="col-"] > .bd-ra-25.bg-event-bg.py-32 > a {
    font-size: 19px !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    margin-bottom: 10px !important;
}

.row > [class*="col-"] > .bd-ra-25.bg-event-bg.py-32 > a:hover {
    color: var(--pm-lime-ink) !important;
}

.row > [class*="col-"] > .bd-ra-25.bg-event-bg.py-32 > p {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
}

/* Empty states ("No Notice Found" etc.) */
.row.rg-24 > p.py-78 {
    width: 100%;
    max-width: 560px;
    margin: 0 auto !important;
    padding: 48px 24px !important;
    border: 1px dashed #d6d8de;
    border-radius: var(--pm-radius);
    background: var(--pm-soft);
    color: var(--pm-muted) !important;
    font-size: 16px !important;
}

/* ---------------------------------------------------------------------
   9. Detail pages (news / notice / event / CMS pages)
   --------------------------------------------------------------------- */
section.pt-60 .col-lg-7 > .text-center > h4 {
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

section.pt-60 .col-lg-8 > .bd-ra-20.overflow-hidden {
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow);
    margin-bottom: 36px !important;
}

section.pt-60 .col-lg-8 > p,
section.pt-60 .col-lg-8 > p *,
section.pt-60 .col-lg-10,
section.pt-60 .col-lg-10 p,
section.pt-60 .col-lg-10 li {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--pm-body);
}

section.pt-60 .col-lg-10 h1,
section.pt-60 .col-lg-10 h2,
section.pt-60 .col-lg-10 h3,
section.pt-60 .col-lg-10 h4 {
    margin: 32px 0 12px !important;
    line-height: 1.3;
}

section.pt-60 .col-lg-10 h1 { font-size: 30px; }
section.pt-60 .col-lg-10 h2 { font-size: 26px; }
section.pt-60 .col-lg-10 h3 { font-size: 21px; }

section.pt-60 .col-lg-10 p {
    margin: 0 0 6px !important;
}

section.pt-60 .col-lg-10 ul,
section.pt-60 .col-lg-10 ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

section.pt-60 .col-lg-10 ul { list-style: disc; }
section.pt-60 .col-lg-10 ol { list-style: decimal; }

section.pt-60 .col-lg-10 a,
section.pt-60 .col-lg-8 > p a {
    color: var(--pm-lime-ink);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------
   10. Committee tables
   --------------------------------------------------------------------- */
.table-responsive:has(> .table-bordered) {
    padding: 0;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow-sm);
    background: var(--pm-surface);
}

.table-responsive > .table-bordered {
    margin: 0;
    border: 0;
    font-size: 15.5px;
    color: var(--pm-body);
}

.table-responsive > .table-bordered > :not(caption) > * > * {
    border-width: 0 0 1px 0;
    border-color: var(--pm-line);
    padding: 14px 20px;
    vertical-align: middle;
}

.table-responsive > .table-bordered thead th {
    background: var(--pm-ink);
    color: #ffffff;
    font-family: var(--pm-font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-color: var(--pm-ink);
    white-space: nowrap;
}

.table-responsive > .table-bordered tbody tr:nth-child(even) > * {
    background: #fafaf8;
}

.table-responsive > .table-bordered tbody tr:hover > * {
    background: var(--pm-lime-50);
}

.table-responsive > .table-bordered tbody tr:last-child > * {
    border-bottom: 0;
}

.table-responsive > .table-bordered td b {
    display: inline-block;
    color: var(--pm-ink);
    font-weight: 600;
    margin-bottom: 8px;
}

.table-responsive > .table-bordered td img {
    width: 72px !important;
    height: 90px !important;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px !important;
    box-shadow: var(--pm-shadow-sm);
}

/* the row-gap helper on the wrapping .row adds stray space */
.pb-62 > .row.rg-24 {
    margin: 0;
}

.pb-62 > .row.rg-24 > .table-responsive {
    padding: 0;
}

.pb-62:has(.table-responsive) {
    padding-bottom: 0 !important;
}

@media (max-width: 575.98px) {
    .table-responsive > .table-bordered > :not(caption) > * > * {
        padding: 12px 12px;
    }

    .table-responsive > .table-bordered {
        font-size: 14.5px;
    }
}

/* ---------------------------------------------------------------------
   11. Membership plans
   --------------------------------------------------------------------- */
.max-w-964 .bd-ra-12.max-w-303 {
    height: 100%;
    border-radius: var(--pm-radius) !important;
    border-color: var(--pm-line) !important;
    box-shadow: var(--pm-shadow-sm);
    padding: 26px !important;
    background: var(--pm-surface);
}

.max-w-964 .bd-ra-12.max-w-303:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
}

/* ---------------------------------------------------------------------
   12. Forms (contact, login, register)
   --------------------------------------------------------------------- */
.primary-form-group .primary-form-group-wrap .form-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    color: var(--pm-ink) !important;
}

.primary-form-group .primary-form-group-wrap .primary-form-control {
    min-height: 52px;
    padding: 14px 18px !important;
    border: 1px solid #d9dbe1 !important;
    border-radius: 12px !important;
    background: #ffffff;
    font-family: var(--pm-font) !important;
    font-size: 15px !important;
    font-weight: 500;
    color: var(--pm-text);
}

.primary-form-group .primary-form-group-wrap .primary-form-control:hover {
    border-color: #b9bcc6 !important;
}

.primary-form-group .primary-form-group-wrap .primary-form-control:focus {
    outline: none !important;
    border-color: var(--pm-ink) !important;
    box-shadow: var(--pm-ring) !important;
}

.primary-form-group .primary-form-group-wrap .primary-form-control::placeholder {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #9a9ca4 !important;
}

/* Contact page: present the form as a card */
section.pt-60 .col-lg-6 > form[action*="contact-us"] {
    padding: 40px 36px 36px;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius-lg);
    background: var(--pm-surface);
    box-shadow: var(--pm-shadow);
}

@media (max-width: 575.98px) {
    section.pt-60 .col-lg-6 > form[action*="contact-us"] {
        padding: 28px 18px 22px;
    }
}

/* ---------------------------------------------------------------------
   13. Pagination
   --------------------------------------------------------------------- */
.pagination {
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    border: 1px solid var(--pm-line);
    color: var(--pm-ink);
    font-weight: 600;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: var(--pm-ink);
    border-color: var(--pm-ink);
    color: var(--pm-lime);
}

/* ---------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------- */
.footer-section {
    border-radius: 0 !important;
    background: var(--pm-ink) !important;
    position: relative;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pm-lime);
}

.footer-top {
    padding-top: 72px !important;
    padding-bottom: 48px !important;
}

.footer-top > .row {
    row-gap: 40px;
}

.footer-section .max-w-193 {
    max-width: 120px !important;
    padding-bottom: 20px !important;
}

.footer-section .max-w-193 img {
    border-radius: 12px;
}

.footer-section p.fs-18,
.footer-section .text-white-80 {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, .74) !important;
}

.footer-section h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffffff !important;
    padding-bottom: 22px !important;
}

.footer-section h4::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 12px;
    border-radius: 3px;
    background: var(--pm-lime);
}

.footer-nav {
    flex-direction: column;
    gap: 12px !important;
}

.footer-nav li {
    flex: 0 0 auto !important;
}

.footer-section a.text-white-80:hover {
    color: var(--pm-lime) !important;
    text-decoration: underline;
}

.footer-section .w-50.h-50.rounded-circle {
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .16);
}

.footer-section .w-50.h-50.rounded-circle img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.footer-section .w-50.h-50.rounded-circle:hover {
    background: var(--pm-lime) !important;
    border-color: var(--pm-lime);
    transform: translateY(-2px);
}

.footer-section .w-50.h-50.rounded-circle:hover img {
    filter: brightness(0);
}

.footer-bottom {
    padding: 20px 0 22px !important;
    border-top-color: rgba(255, 255, 255, .12) !important;
}

.footer-bottom p {
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, .62) !important;
}

@media (min-width: 992px) {
    .footer-section .pl-xl-75,
    .footer-section .pl-lg-60 {
        padding-left: 48px !important;
    }
}

@media (max-width: 991.98px) {
    .footer-section .offset-md-1 {
        margin-left: 0 !important;
    }

    .footer-section .pl-xl-75,
    .footer-section .pl-lg-60 {
        padding-left: 0 !important;
    }
}

/* ---------------------------------------------------------------------
   15. Misc: cookie bar, scroll-to-top
   --------------------------------------------------------------------- */
.cookie-consent-wrap .js-cookie-consent {
    padding: 14px 0 !important;
    background: #ffffff !important;
    border-top: 1px solid var(--pm-line);
    box-shadow: 0 -10px 30px -14px rgba(18, 20, 33, .3);
}

.cookie-consent-wrap .js-cookie-consent .flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
}

.cookie-consent-wrap .cookie-consent__message {
    font-size: 14.5px;
    color: var(--pm-ink);
}

.cookie-consent-wrap .js-cookie-consent-agree {
    padding: 8px 20px !important;
    border-radius: 10px !important;
    background: var(--pm-lime) !important;
    color: var(--pm-ink) !important;
    font-weight: 600 !important;
}

.cookie-consent-wrap .js-cookie-consent-agree:hover {
    background: var(--pm-ink) !important;
    color: var(--pm-lime) !important;
}

#scrollUp {
    border-radius: 12px !important;
    background: var(--pm-ink) !important;
    color: var(--pm-lime) !important;
    box-shadow: var(--pm-shadow);
}
