/*** HOPSA Theme — brown & gold (Holy Child attire) ***/
:root {
    --bs-primary: #5C3D2E;
    --bs-secondary: #E8B923;
    --bs-light: #FBF6E8;
    --bs-dark: #2E1F14;
    --bs-primary-rgb: 92, 61, 46;
    --bs-secondary-rgb: 232, 185, 35;
    --bs-link-color: #5C3D2E;
    --bs-link-hover-color: #4a3226;
}

/* Site-wide links — HOPSA brown (not BabyCare pink) */
.hopsa-site a:not(.btn):not(.nav-link):not(.dropdown-item):not(.gallery-tile):not(.past-activity-card-media):not(.gallery-link-pill):not(.footer-gallery-link):not(.hopsa-footer-social-btn):not(.breadcrumb-item a):not(.page-header-content a):not(.top-info a):not(.biz-spotlight-card):not(.service-item a) {
    color: var(--bs-primary);
}

.hopsa-site a:not(.btn):not(.nav-link):not(.dropdown-item):not(.gallery-tile):not(.past-activity-card-media):not(.gallery-link-pill):not(.footer-gallery-link):not(.hopsa-footer-social-btn):not(.breadcrumb-item a):not(.page-header-content a):not(.top-info a):not(.biz-spotlight-card):not(.service-item a):hover,
.hopsa-site a:not(.btn):not(.nav-link):not(.dropdown-item):not(.gallery-tile):not(.past-activity-card-media):not(.gallery-link-pill):not(.footer-gallery-link):not(.hopsa-footer-social-btn):not(.breadcrumb-item a):not(.page-header-content a):not(.top-info a):not(.biz-spotlight-card):not(.service-item a):focus {
    color: var(--bs-link-hover-color);
}

.hopsa-email-link,
.lab-payment-info a,
.hopsa-form a:not(.btn),
.hopsa-faq-accordion .accordion-body a {
    color: var(--bs-primary) !important;
    font-weight: 600;
    text-decoration: none;
}

.hopsa-email-link:hover,
.lab-payment-info a:hover,
.hopsa-form a:not(.btn):hover,
.hopsa-faq-accordion .accordion-body a:hover {
    color: var(--bs-secondary) !important;
    text-decoration: underline;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
}

/* Outline buttons — override BabyCare pink/blue left in bootstrap.min.css */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-check:focus + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #FBF6E8 !important;
}

.btn-outline-secondary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-secondary) !important;
    background-color: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-check:focus + .btn-outline-secondary,
.btn-check:checked + .btn-outline-secondary,
.btn-check:active + .btn-outline-secondary,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
}

.btn-outline-light {
    color: var(--bs-primary) !important;
    border-color: var(--bs-light) !important;
    background-color: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

.btn-outline-dark {
    color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    background-color: transparent;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    color: #FBF6E8 !important;
}

.spinner-grow.text-primary {
    color: var(--bs-primary) !important;
}

.dropdown-menu.bg-secondary .dropdown-item {
    color: var(--bs-dark);
}

.dropdown-menu.bg-secondary .dropdown-item:hover,
.dropdown-menu.bg-secondary .dropdown-item:focus,
.dropdown-menu.bg-secondary .dropdown-item.active {
    background-color: var(--bs-primary);
    color: #fff;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

.accordion-button:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb), 0.35);
}

/*** HOPSA forms — site-wide (desktop + mobile) ***/
.hopsa-form:not(.volunteer-form),
.hopsa-site form.hopsa-form:not(.volunteer-form) {
    background: linear-gradient(180deg, #ffffff 0%, #FBF6E8 100%) !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 14px;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 10px 32px rgba(46, 31, 20, 0.1);
}

.hopsa-form .form-label,
.hopsa-site .lab-donate-form .form-label,
.hopsa-site .volunteer-form .form-label {
    color: var(--bs-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.hopsa-form .form-control,
.hopsa-form .form-select,
.hopsa-form textarea.form-control,
.hopsa-site .lab-donate-form .form-control,
.hopsa-site .volunteer-form .form-control {
    background-color: #fff !important;
    border: 1px solid rgba(92, 61, 46, 0.28) !important;
    border-radius: 8px;
    color: var(--bs-dark) !important;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hopsa-form .form-control:focus,
.hopsa-form .form-select:focus,
.hopsa-site .lab-donate-form .form-control:focus,
.hopsa-site .volunteer-form .form-control:focus {
    background-color: #fff !important;
    border-color: var(--bs-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(232, 185, 35, 0.35) !important;
    color: var(--bs-dark) !important;
}

.hopsa-form .form-control::placeholder,
.hopsa-site .lab-donate-form .form-control::placeholder {
    color: rgba(46, 31, 20, 0.42);
}

.hopsa-form .text-muted,
.hopsa-form .form-text {
    color: rgba(92, 61, 46, 0.7) !important;
}

.hopsa-form .btn-primary,
.hopsa-site .lab-donate-form .btn-primary {
    font-weight: 700;
}

.hopsa-site .form-check-input {
    border-color: rgba(92, 61, 46, 0.45);
}

.hopsa-site .form-check-input:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.2rem rgba(232, 185, 35, 0.3);
}

.hopsa-site .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.hopsa-site .form-check-label {
    color: var(--bs-primary);
}

.hopsa-site .form-select {
    background-color: #fff;
    border: 1px solid rgba(92, 61, 46, 0.28);
    color: var(--bs-dark);
}

/* Legacy forms still using bg-light — match HOPSA theme */
.hopsa-site form.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, #FBF6E8 100%) !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 14px;
}

@media (max-width: 767.98px) {
    .hopsa-form:not(.volunteer-form),
    .hopsa-site form.hopsa-form:not(.volunteer-form) {
        padding: 1.35rem 1.1rem 1.5rem;
        border-radius: 12px;
    }

    .volunteer-form-panel {
        padding: 1.35rem 1rem 1.5rem;
    }

    .hopsa-form .form-label,
    .hopsa-site .lab-donate-form .form-label {
        font-size: 0.92rem;
    }

    .hopsa-form .form-control,
    .hopsa-form textarea.form-control,
    .hopsa-site .lab-donate-form .form-control {
        font-size: 16px;
        padding: 0.7rem 0.85rem;
    }

    .hopsa-form .btn,
    .hopsa-site .lab-donate-form .btn {
        width: 100%;
    }
}

/*** Home FAQ accordion ***/
.home-faq-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F5EFE0 100%);
}

.hopsa-faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    background: transparent;
}

.hopsa-faq-accordion .accordion-button {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    padding: 1rem 1.25rem;
}

.hopsa-faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.hopsa-faq-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.hopsa-faq-accordion .accordion-button:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb), 0.35);
}

.hopsa-faq-accordion .accordion-collapse {
    border: 2px solid var(--bs-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.hopsa-faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    color: var(--bs-dark);
}

.hopsa-faq-wrap {
    max-width: 900px;
    width: 100%;
}

.hopsa-faq-accordion .accordion-body p {
    margin-bottom: 0.75rem;
}

.hopsa-faq-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }
/*** Spinner End ***/


/*** Common CSS Start ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.display-4,
.display-5,
.display-6 {
    font-weight: 600;
}

.wow,
.animated {
    animation-duration: 2s !important;
}
/*** HOPSA Navbar ***/
.hopsa-brand-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
}

/* Mobile header + sidebar — logo and two-line name share one scale */
.hopsa-brand-lockup {
    --hopsa-brand-lockup-height: 48px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.hopsa-brand-lockup-logo {
    height: var(--hopsa-brand-lockup-height);
    width: auto;
    flex-shrink: 0;
}

.hopsa-brand-lockup-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: var(--hopsa-brand-lockup-height);
    min-width: 0;
    font-family: 'Fredoka', sans-serif;
    line-height: 1;
}

.hopsa-brand-lockup-name-line {
    display: block;
    white-space: nowrap;
}

.hopsa-brand-lockup-name-main {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.hopsa-brand-lockup-name-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-top: 2px;
    opacity: 0.92;
}

.hopsa-main-nav {
    flex-wrap: nowrap;
}

.hopsa-main-nav .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hopsa-nav-icon {
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
    color: var(--bs-secondary);
    font-size: 0.92rem;
    line-height: 1;
}

.hopsa-main-nav .nav-link:hover .hopsa-nav-icon,
.hopsa-main-nav .nav-link.active .hopsa-nav-icon,
.hopsa-nav-text {
    line-height: 1.2;
}

.hopsa-nav-more .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hopsa-main-nav .nav-item.dropdown .dropdown-toggle::after {
    margin-left: 0.25em;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .hopsa-main-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 1199.98px) {
    .hopsa-main-nav {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
        gap: 0;
    }

    .hopsa-main-nav .nav-item,
    .hopsa-main-nav > a.nav-item.nav-link {
        width: 100%;
    }

    .hopsa-main-nav > a.nav-item.nav-link {
        display: flex;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
    }

    .hopsa-main-nav .nav-link {
        white-space: normal;
        text-align: left;
        justify-content: flex-start;
        padding: 0.7rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        width: 100%;
        gap: 0.55rem;
    }

    .hopsa-main-nav .hopsa-nav-icon {
        width: 1.25rem;
        font-size: 1rem;
        color: #E8B923;
    }

    .hopsa-main-nav .nav-link.active .hopsa-nav-icon {
        color: var(--bs-primary);
    }

    .hopsa-main-nav .dropdown-toggle::after {
        margin-left: auto;
    }
}

@media (min-width: 1200px) {
    .hopsa-navbar-wrap .navbar-nav.hopsa-main-nav {
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

/*** Common CSS End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: 0;
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.btn-border-radius {
    border-radius: 25% 10%;
}

.img-border-radius {
    border-radius: 50% 20% / 10% 40%;
}

.title-border-radius {
    border-radius: 10% 30%;
}
/*** Button End ***/


/*** Topbar Start — HOPSA brown / gold / cream only ***/
.hopsa-topbar {
    --hopsa-topbar-cream: #FBF6E8;
    --hopsa-topbar-gold: #E8B923;
    --hopsa-topbar-brown: #5C3D2E;
    --hopsa-topbar-dark: #2E1F14;
    --bs-link-color: #FBF6E8;
    --bs-link-hover-color: #E8B923;
    background: linear-gradient(105deg, #2E1F14 0%, #5C3D2E 45%, #6B4A38 100%) !important;
    border-radius: 0 40px !important;
    border-bottom: 2px solid #E8B923;
    box-shadow: 0 4px 14px rgba(46, 31, 20, 0.15);
    color: #FBF6E8;
}

.hopsa-topbar.bg-primary {
    background: linear-gradient(105deg, #2E1F14 0%, #5C3D2E 45%, #6B4A38 100%) !important;
}

.topbar .top-info {
    font-size: medium;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    color: #FBF6E8;
}

.topbar .top-info small {
    color: #FBF6E8 !important;
}

.topbar .top-info a,
.topbar .top-info a:link,
.topbar .top-info a:visited,
.topbar .top-info a:active {
    color: #FBF6E8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar .top-info a:hover,
.topbar .top-info a:focus {
    color: #E8B923 !important;
}

.topbar .top-info i,
.topbar .top-info a i,
.topbar .top-info i::before,
.topbar .top-info .fas::before {
    color: #E8B923 !important;
}

.topbar .top-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.hopsa-topbar-social,
.hopsa-topbar .top-link a.hopsa-topbar-social,
.hopsa-topbar .top-link a.hopsa-topbar-social:link,
.hopsa-topbar .top-link a.hopsa-topbar-social:visited,
.hopsa-topbar .top-link a.hopsa-topbar-social:active {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #FBF6E8 !important;
    background-image: none !important;
    border: 2px solid #E8B923 !important;
    color: #5C3D2E !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(46, 31, 20, 0.22);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hopsa-topbar-social i,
.hopsa-topbar-social .fab,
.hopsa-topbar-social .fas,
.hopsa-topbar .top-link a.hopsa-topbar-social i,
.hopsa-topbar-social i::before,
.hopsa-topbar-social .fab::before {
    color: #5C3D2E !important;
    font-size: 0.95rem;
    line-height: 1;
}

.hopsa-topbar-social:hover,
.hopsa-topbar-social:focus,
.hopsa-topbar .top-link a.hopsa-topbar-social:hover,
.hopsa-topbar .top-link a.hopsa-topbar-social:focus {
    background-color: #E8B923 !important;
    border-color: #FBF6E8 !important;
    color: #2E1F14 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 185, 35, 0.4);
}

.hopsa-topbar-social:hover i,
.hopsa-topbar-social:focus i,
.hopsa-topbar .top-link a.hopsa-topbar-social:hover i,
.hopsa-topbar .top-link a.hopsa-topbar-social:focus i,
.hopsa-topbar-social:hover i::before,
.hopsa-topbar-social:hover .fab::before,
.hopsa-topbar-social:focus i::before,
.hopsa-topbar-social:focus .fab::before {
    color: #2E1F14 !important;
}

.hopsa-topbar-social-last {
    margin-right: 0 !important;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        font-weight: 400;
        font-family: 'Fredoka', sans-serif;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        background: var(--bs-light) !important;
        border-radius: 10px !important;
        transition: .5s;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}
/*** Navbar End ***/


/*** Hero Header ***/
.hero-header,
.page-header {
    background: linear-gradient(rgba(46, 31, 20, 0.72), rgba(46, 31, 20, 0.45)), url(../img/Landing-Page-Background-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Page headers with photo background */
.page-header-about,
.page-header-lab,
.page-header-farm,
.page-header-past-projects,
.page-header-give,
.page-header-events,
.page-header-activities,
.page-header-contact,
.page-header-leadership,
.page-header-mentorship,
.page-header-shop,
.page-header-gallery,
.page-header-account,
.page-header-register,
.page-header-join-us,
.page-header-volunteer {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #2E1F14 !important;
}

.page-header-about .page-header-bg-img,
.page-header-lab .page-header-bg-img,
.page-header-farm .page-header-bg-img,
.page-header-past-projects .page-header-bg-img,
.page-header-give .page-header-bg-img,
.page-header-events .page-header-bg-img,
.page-header-activities .page-header-bg-img,
.page-header-contact .page-header-bg-img,
.page-header-leadership .page-header-bg-img,
.page-header-mentorship .page-header-bg-img,
.page-header-shop .page-header-bg-img,
.page-header-gallery .page-header-bg-img,
.page-header-account .page-header-bg-img,
.page-header-register .page-header-bg-img,
.page-header-join-us .page-header-bg-img,
.page-header-volunteer .page-header-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-about .page-header-bg-img {
    object-position: center 12%;
}

.page-header-lab .page-header-bg-img {
    object-position: center center;
}

.page-header-farm .page-header-bg-img {
    object-position: center center;
}

.page-header-past-projects .page-header-bg-img {
    object-position: center 20%;
    animation: pastProjectsHeaderZoom 18s ease-in-out infinite alternate;
}

.page-header-give .page-header-bg-img {
    object-position: center 12%;
}

.page-header-events .page-header-bg-img,
.page-header-activities .page-header-bg-img {
    object-position: center 22%;
}

.page-header-contact .page-header-bg-img {
    object-position: center 8%;
}

.page-header-contact .page-header-overlay {
    background: linear-gradient(
        rgba(46, 31, 20, 0.4) 0%,
        rgba(46, 31, 20, 0.55) 45%,
        rgba(46, 31, 20, 0.72) 100%
    ) !important;
}

.page-header-leadership .page-header-bg-img {
    object-position: center 25%;
}

.page-header-shop .page-header-bg-img {
    object-position: center center;
    object-fit: contain;
    background: #5C3D2E;
}

.page-header-gallery .page-header-bg-img {
    object-position: center 22%;
}

.page-header-account .page-header-bg-img {
    object-position: center 28%;
}

.page-header-register .page-header-bg-img,
.page-header-join-us .page-header-bg-img {
    object-position: center 32%;
}

.page-header-volunteer .page-header-bg-img {
    object-position: center 40%;
}

.page-header-register .page-header-overlay-register {
    background: linear-gradient(
        rgba(46, 31, 20, 0.35) 0%,
        rgba(46, 31, 20, 0.55) 50%,
        rgba(46, 31, 20, 0.78) 100%
    ) !important;
}

.page-header-mentorship .page-header-bg-img {
    object-position: center 42%;
}

.page-header-mentorship .page-header-overlay {
    background: linear-gradient(
        rgba(46, 31, 20, 0.45) 0%,
        rgba(46, 31, 20, 0.6) 50%,
        rgba(46, 31, 20, 0.75) 100%
    ) !important;
}

.page-header-give .give-page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(3.5rem, 11vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-secondary);
    text-shadow:
        0 3px 0 var(--bs-primary),
        0 6px 24px rgba(0, 0, 0, 0.45),
        0 0 48px rgba(232, 185, 35, 0.4);
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.page-header-give .give-page-title::after {
    content: '';
    display: block;
    width: 70%;
    height: 4px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, transparent, var(--bs-secondary), transparent);
    border-radius: 4px;
}

.page-header-give .give-page-breadcrumb .breadcrumb-item,
.page-header-give .give-page-breadcrumb .breadcrumb-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #FBF6E8 !important;
}

.page-header-give .give-page-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-secondary) !important;
}

/*** Calendar of Events page ***/
.page-header-events .events-page-title,
.page-header-activities .events-page-title,
.page-header-contact .events-page-title,
.page-header-leadership .events-page-title,
.page-header-mentorship .events-page-title,
.page-header-shop .events-page-title,
.page-header-gallery .events-page-title,
.page-header-account .events-page-title,
.page-header-register .events-page-title,
.page-header-join-us .events-page-title,
.page-header-volunteer .events-page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2.25rem, 7vw, 4.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow:
        0 3px 0 var(--bs-primary),
        0 6px 28px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.page-header-events .events-page-title::after,
.page-header-activities .events-page-title::after,
.page-header-contact .events-page-title::after,
.page-header-leadership .events-page-title::after,
.page-header-mentorship .events-page-title::after,
.page-header-shop .events-page-title::after,
.page-header-gallery .events-page-title::after,
.page-header-account .events-page-title::after,
.page-header-register .events-page-title::after,
.page-header-join-us .events-page-title::after,
.page-header-volunteer .events-page-title::after {
    content: '';
    display: block;
    width: 5rem;
    height: 4px;
    margin: 0.65rem auto 0;
    background: var(--bs-secondary);
    border-radius: 4px;
}

.page-header-events .events-page-breadcrumb .breadcrumb-item,
.page-header-events .events-page-breadcrumb .breadcrumb-item a,
.page-header-activities .events-page-breadcrumb .breadcrumb-item,
.page-header-activities .events-page-breadcrumb .breadcrumb-item a,
.page-header-contact .events-page-breadcrumb .breadcrumb-item,
.page-header-contact .events-page-breadcrumb .breadcrumb-item a,
.page-header-leadership .events-page-breadcrumb .breadcrumb-item,
.page-header-leadership .events-page-breadcrumb .breadcrumb-item a,
.page-header-mentorship .events-page-breadcrumb .breadcrumb-item,
.page-header-mentorship .events-page-breadcrumb .breadcrumb-item a,
.page-header-shop .events-page-breadcrumb .breadcrumb-item,
.page-header-shop .events-page-breadcrumb .breadcrumb-item a,
.page-header-gallery .events-page-breadcrumb .breadcrumb-item,
.page-header-gallery .events-page-breadcrumb .breadcrumb-item a,
.page-header-account .events-page-breadcrumb .breadcrumb-item,
.page-header-account .events-page-breadcrumb .breadcrumb-item a,
.page-header-register .events-page-breadcrumb .breadcrumb-item,
.page-header-register .events-page-breadcrumb .breadcrumb-item a,
.page-header-join-us .events-page-breadcrumb .breadcrumb-item,
.page-header-join-us .events-page-breadcrumb .breadcrumb-item a,
.page-header-volunteer .events-page-breadcrumb .breadcrumb-item,
.page-header-volunteer .events-page-breadcrumb .breadcrumb-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #FBF6E8 !important;
}

.page-header-events .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-activities .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-contact .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-leadership .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-mentorship .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-shop .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-gallery .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-account .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-register .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-join-us .events-page-breadcrumb .breadcrumb-item a:hover,
.page-header-volunteer .events-page-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-secondary) !important;
}

.events-programs-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.events-section-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.events-section-intro .title-border-radius {
    display: block;
}

.events-year-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--bs-secondary);
    margin-bottom: 1rem;
}

.events-programs-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.events-programs-subtitle {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.events-program-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.events-program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(46, 31, 20, 0.16);
}

.events-card-header {
    padding: 1.1rem 1rem;
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.events-card-header-icon {
    font-size: 1.5rem;
    color: var(--bs-secondary);
    opacity: 0.95;
}

.events-card-header-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.events-card-header-1 {
    background: linear-gradient(135deg, #8B6B4A 0%, #6F5438 100%);
}

.events-card-header-2 {
    background: linear-gradient(135deg, #3D2819 0%, #2E1F14 100%);
}

.events-card-header-3 {
    background: linear-gradient(135deg, #D4A96A 0%, #B8894F 100%);
}

.events-card-header-4 {
    background: linear-gradient(135deg, #5C4535 0%, #4A3628 100%);
}

.events-card-body {
    flex-grow: 1;
    padding: 1.25rem 1.15rem 1.35rem;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--bs-dark);
}

.events-card-body-1 {
    border: 3px solid #8B6B4A;
    border-top: none;
}

.events-card-body-2 {
    border: 3px solid #3D2819;
    border-top: none;
}

.events-card-body-3 {
    border: 3px solid #D4A96A;
    border-top: none;
}

.events-card-body-4 {
    border: 3px solid #5C4535;
    border-top: none;
}

.events-card-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.events-card-list li {
    margin-bottom: 0.5rem;
}

.events-card-list li:last-child {
    margin-bottom: 0;
}

.events-hoptober-section {
    background: var(--bs-primary);
    color: #FBF6E8;
}

.events-hoptober-frame {
    border: 4px solid var(--bs-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.events-hoptober-frame img {
    width: 100%;
    display: block;
}

.events-hoptober-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--bs-secondary) !important;
    margin-bottom: 1rem;
}

.events-hoptober-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.95;
}

/*** Past Activities (reference: hopsausa-canada.org/past-activities) ***/
.past-activities-section {
    background: #ececec;
}

.past-activities-intro {
    margin: 0 auto 2.75rem;
}

.past-activities-intro .title-border-radius {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
}

.past-activities-grid {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.past-activities-grid > [class*="col-"] {
    display: flex;
}

.past-activity-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.past-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.past-activity-card-media {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
    cursor: zoom-in;
}

.past-activity-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.past-activity-card-img-contain {
    background: #f8f8f8;
}

.past-activity-card-img .past-activity-img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease;
}

.past-activity-img-cover {
    object-fit: cover;
    object-position: center center;
}

.past-activity-img-contain {
    object-fit: contain;
    object-position: center center;
    padding: 1rem 1.25rem;
    background: #f8f8f8;
}

.past-activity-card:hover .past-activity-img-cover,
.past-activity-card:hover .past-activity-img-contain {
    transform: scale(1.02);
}

.past-activity-card-body {
    padding: 1rem 1.15rem 1.25rem;
    text-align: center;
    background: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    border-top: 1px solid #eee;
}

.past-activity-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.past-activity-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.past-activity-card-title-link:hover {
    color: var(--bs-primary);
}

.page-header-overlay-past-projects {
    background: linear-gradient(
        135deg,
        rgba(46, 31, 20, 0.82) 0%,
        rgba(92, 61, 46, 0.65) 50%,
        rgba(46, 31, 20, 0.78) 100%
    ) !important;
}

@keyframes pastProjectsHeaderZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

.page-header-about .page-header-overlay,
.page-header-lab .page-header-overlay,
.page-header-farm .page-header-overlay,
.page-header-past-projects .page-header-overlay,
.page-header-give .page-header-overlay,
.page-header-events .page-header-overlay,
.page-header-activities .page-header-overlay,
.page-header-contact .page-header-overlay,
.page-header-leadership .page-header-overlay,
.page-header-mentorship .page-header-overlay,
.page-header-shop .page-header-overlay,
.page-header-gallery .page-header-overlay,
.page-header-account .page-header-overlay,
.page-header-register .page-header-overlay,
.page-header-join-us .page-header-overlay,
.page-header-volunteer .page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(46, 31, 20, 0.7), rgba(46, 31, 20, 0.45));
}

.page-header-about .page-header-content,
.page-header-lab .page-header-content,
.page-header-farm .page-header-content,
.page-header-past-projects .page-header-content,
.page-header-give .page-header-content,
.page-header-events .page-header-content,
.page-header-activities .page-header-content,
.page-header-contact .page-header-content,
.page-header-leadership .page-header-content,
.page-header-mentorship .page-header-content,
.page-header-shop .page-header-content,
.page-header-gallery .page-header-content,
.page-header-account .page-header-content,
.page-header-register .page-header-content,
.page-header-join-us .page-header-content,
.page-header-volunteer .page-header-content {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .page-header-about,
    .page-header-lab,
    .page-header-farm,
    .page-header-past-projects,
    .page-header-give,
    .page-header-events,
    .page-header-activities,
    .page-header-contact,
    .page-header-leadership,
    .page-header-mentorship,
    .page-header-shop,
    .page-header-gallery,
    .page-header-account,
    .page-header-register,
    .page-header-join-us,
    .page-header-volunteer {
        min-height: 360px;
    }

    .page-header-contact {
        min-height: 380px;
    }

    .page-header-mentorship {
        min-height: 340px;
    }

    .page-header-mentorship .page-header-bg-img {
        object-position: center 38%;
    }

    .page-header-contact {
        min-height: 380px;
    }

    .page-header-contact .page-header-bg-img {
        object-position: center 6%;
    }

    .page-header-past-projects .page-header-bg-img {
        object-position: center 18%;
    }

    .page-header-about .page-header-bg-img {
        object-position: center 8%;
    }

    .page-header-give {
        min-height: 380px;
    }

    .page-header-give .page-header-bg-img {
        object-position: center 10%;
    }
}

@media (min-width: 1200px) {
    .page-header-about,
    .page-header-lab,
    .page-header-farm,
    .page-header-past-projects,
    .page-header-give,
    .page-header-events,
    .page-header-activities,
    .page-header-contact,
    .page-header-leadership,
    .page-header-mentorship,
    .page-header-shop,
    .page-header-gallery,
    .page-header-account,
    .page-header-register,
    .page-header-join-us,
    .page-header-volunteer {
        min-height: 400px;
    }

    .page-header-contact .page-header-bg-img {
        object-position: center 14%;
    }

    .page-header-mentorship {
        min-height: 380px;
    }

    .page-header-mentorship .page-header-bg-img {
        object-position: center 40%;
    }

    .page-header-about .page-header-bg-img {
        object-position: center 5%;
    }
}

.hero-header-home {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 0 !important;
    background: #2E1F14;
}

.hero-header-home .hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-header-home .hero-carousel .carousel-inner,
.hero-header-home .hero-carousel .carousel-item {
    height: 100%;
    min-height: 520px;
}

.hero-header-home .hero-slide-img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-header-home .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(46, 31, 20, 0.35) 0%,
        rgba(46, 31, 20, 0.5) 55%,
        rgba(46, 31, 20, 0.65) 100%
    ),
    linear-gradient(
        105deg,
        rgba(46, 31, 20, 0.45) 0%,
        rgba(46, 31, 20, 0.25) 50%,
        rgba(46, 31, 20, 0.15) 100%
    );
    pointer-events: none;
}

.hero-header-home .hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-header-home .hero-content .row > [class*="col-"] {
    text-align: center;
}

.hero-header-home .hero-cta-buttons {
    width: 100%;
}

.hero-header-home .hero-carousel-indicators {
    z-index: 3;
    margin-bottom: 1.25rem;
}

.hero-header-home .hero-carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: 2px solid var(--bs-secondary);
}

.hero-header-home .hero-carousel-indicators .active {
    background-color: var(--bs-secondary);
}

.hero-header-home .carousel-control-prev,
.hero-header-home .carousel-control-next {
    z-index: 3;
    width: 8%;
}

.hero-header-home .carousel-control-prev-icon,
.hero-header-home .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(92, 61, 46, 0.75);
    border-radius: 50%;
    background-size: 55%;
}

.hero-header-home .hero-eyebrow {
    color: var(--bs-secondary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-header-home .hero-title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-header-home .hero-subtitle {
    color: #FBF6E8;
    font-size: 1.15rem;
    font-weight: 500;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-header-home .btn-outline-hero {
    color: #fff;
    border: 2px solid var(--bs-secondary);
    background: transparent;
    font-weight: 600;
}

.hero-header-home .btn-outline-hero:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border-color: var(--bs-secondary);
}

/*** Brown section backgrounds (home) ***/
.bg-hopsa-brown-section {
    background: linear-gradient(180deg, #E8DFD0 0%, #DDD2C0 100%);
    color: var(--bs-dark);
}

.bg-hopsa-anthem-section {
    background: linear-gradient(180deg, #DDD2C0 0%, #D4C4AE 100%);
}

.bg-hopsa-brown-section p,
.bg-hopsa-anthem-section .mb-4 {
    color: var(--bs-dark);
}

.bg-hopsa-anthem-section strong {
    color: var(--bs-primary);
}

/*** About Us page ***/
.about-jump {
    background: #FBF6E8;
}

.about-jump-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--bs-dark);
    transition: 0.3s ease;
    height: 100%;
}

.about-jump-card:hover,
.about-jump-card:focus {
    background: var(--bs-secondary);
    border-color: var(--bs-primary);
    color: var(--bs-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 61, 46, 0.15);
}

.about-jump-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border-radius: 50%;
    font-size: 1.15rem;
}

.about-jump-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.about-jump-text strong {
    font-size: 1.1rem;
    color: var(--bs-primary);
}

.about-jump-text small {
    color: var(--bs-dark);
    opacity: 0.85;
}

.about-anchor {
    scroll-margin-top: 140px;
}

/*** About — Who We Are ***/
.about-who-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F5EFE0 55%, #EDE6D8 100%);
}

.about-who-lead {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--bs-primary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.about-who-text p {
    color: #4a3d36;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.about-who-text strong {
    color: var(--bs-primary);
}

.about-stat-card {
    background: #fff;
    border: 1px solid rgba(92, 61, 46, 0.14);
    border-radius: 12px;
    padding: 1rem 0.85rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 14px rgba(46, 31, 20, 0.06);
}

.about-stat-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.2;
}

.about-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c5c54;
    margin-top: 0.35rem;
}

.about-photo-caption {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    text-align: center;
    color: #5a4a42;
    background: rgba(251, 246, 232, 0.95);
    border-top: 2px solid var(--bs-secondary);
}

.about-vm-card {
    background: #fff;
    border: 1px solid rgba(92, 61, 46, 0.12);
    border-left: 4px solid var(--bs-secondary);
    border-radius: 14px;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 6px 22px rgba(46, 31, 20, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-vm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(46, 31, 20, 0.1);
}

.about-vm-card p {
    color: #4a3d36;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

/*** About — Our Story ***/
.about-story-section {
    background: linear-gradient(180deg, #EDE6D8 0%, #FBF6E8 40%, #FBF6E8 100%);
    position: relative;
    scroll-margin-top: 120px;
}

.about-story-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 50%, var(--bs-primary) 100%);
}

.about-story-header {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.about-story-hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.about-story-hero-lead {
    font-size: 1.05rem;
    color: #6c5c54;
    margin-bottom: 0;
    line-height: 1.6;
}

.about-story-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(46, 31, 20, 0.1);
    border: 1px solid rgba(92, 61, 46, 0.1);
}

.about-story-visual {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, #5C3D2E 0%, #6B4A38 100%);
    padding: 1.35rem 1.25rem 1.5rem;
}

.about-story-feature {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 340px;
    margin-bottom: 1rem;
    border: 2px solid rgba(232, 185, 35, 0.65);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.about-story-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
}

.about-story-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(0deg, rgba(46, 31, 20, 0.92) 0%, rgba(46, 31, 20, 0.4) 55%, transparent 100%);
    text-align: left;
}

.about-story-feature-overlay .about-story-author-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FBF6E8;
}

.about-story-feature-overlay .about-story-author-meta {
    font-size: 0.82rem;
    color: var(--bs-secondary);
    font-weight: 600;
}

.about-story-visual-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(251, 246, 232, 0.85);
    margin-bottom: 0.65rem;
}

.about-story-mosaic {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(72px, 1fr));
    gap: 0.5rem;
    min-height: 220px;
}

.about-story-mosaic-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(232, 185, 35, 0.35);
    min-height: 0;
}

.about-story-mosaic-item--tall {
    grid-row: span 2;
}

.about-story-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-story-mosaic-item:hover img {
    transform: scale(1.06);
}

.about-story-content {
    padding: 2rem 1.75rem 2.25rem;
}

.about-story-opener {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--bs-primary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(92, 61, 46, 0.12);
}

.about-story-content p {
    color: #4a3d36;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.about-story-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

.about-story-milestone {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #FBF6E8 0%, #F3EBD8 100%);
    border: 1px solid rgba(232, 185, 35, 0.45);
    border-radius: 12px;
}

.about-story-milestone-year {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.2;
}

.about-story-milestone-text {
    font-size: 0.88rem;
    color: #6c5c54;
    line-height: 1.45;
}

.about-story-callout {
    background: var(--bs-primary);
    color: #FBF6E8;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 6px 20px rgba(92, 61, 46, 0.2);
}

.about-story-callout p {
    color: #FBF6E8;
    line-height: 1.65;
    margin-bottom: 0;
}

.about-story-callout strong {
    color: var(--bs-secondary);
}

.about-story-subhead {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.about-story-vision-card {
    height: 100%;
    padding: 1rem 0.9rem;
    background: #FBF6E8;
    border: 1px solid rgba(92, 61, 46, 0.1);
    border-top: 3px solid var(--bs-secondary);
    border-radius: 12px;
    text-align: center;
}

.about-story-vision-card i {
    font-size: 1.35rem;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.about-story-vision-card p {
    font-size: 0.88rem;
    color: #4a3d36;
    line-height: 1.5;
    margin-bottom: 0;
}

.about-story-vision-row {
    margin-bottom: 1.5rem;
}

.about-story-cta {
    font-weight: 600;
    color: var(--bs-primary) !important;
    font-size: 1.05rem;
    margin-bottom: 1.75rem !important;
}

.about-story-quote {
    position: relative;
    margin: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    background: linear-gradient(145deg, #F5EFE0 0%, #FBF6E8 100%);
    border: none;
    border-radius: 16px;
    border-left: 5px solid var(--bs-secondary);
}

.about-story-quote-mark {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(232, 185, 35, 0.45);
}

.about-story-quote-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
}

.about-story-quote-body {
    font-style: italic;
    color: #5a4a42;
    line-height: 1.85;
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.about-story-signature {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 0.92rem;
    font-style: normal;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(92, 61, 46, 0.15);
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .about-story-row {
        align-items: stretch !important;
    }

    .about-story-row > [class*="col-"] {
        display: flex;
        min-height: 0;
    }

    .about-story-content {
        padding: 2.5rem 2.75rem 2.75rem;
    }

    .about-story-visual {
        padding: 1.75rem 1.5rem 2rem;
    }
}

@media (max-width: 991.98px) {
    .about-story-visual {
        border-radius: 20px 20px 0 0;
    }

    .about-story-content {
        padding: 1.75rem 1.25rem 2rem;
    }

    .about-story-feature {
        max-height: 300px;
    }

    .about-story-mosaic {
        min-height: 200px;
    }

    .about-who-stats .col-12 {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

/*** President's Message — photo matches text column height ***/
.president-message-row > [class*="col-"] {
    min-height: 0;
}

.president-message-photo {
    min-height: 100%;
    height: 100%;
    width: 100%;
    border: 3px solid var(--bs-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.15);
    background: #FBF6E8;
}

.president-message-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (min-width: 992px) {
    .president-message-row {
        align-items: stretch;
    }

    .president-message-photo {
        display: flex;
        flex-direction: column;
    }

    .president-message-img {
        flex: 1 1 auto;
        min-height: 100%;
    }
}

@media (max-width: 991.98px) {
    .president-message-photo {
        min-height: 340px;
    }

    .president-message-img {
        min-height: 340px;
    }
}

/*** Who We Are — photo matches text column height ***/
.who-we-are-photo {
    min-height: 100%;
    border: 3px solid var(--bs-primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(46, 31, 20, 0.18);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.who-we-are-img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

@media (min-width: 992px) {
    .who-we-are-img {
        min-height: 100%;
    }
}

@media (max-width: 991.98px) {
    .who-we-are-photo {
        min-height: 360px;
    }

    .who-we-are-img {
        min-height: 360px;
    }
}

/*** School Anthem — picture gallery matches lyrics height ***/
.school-anthem-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    height: 100%;
}

.school-anthem-gallery-item {
    flex: 1 1 0;
    min-height: 140px;
    border: 3px solid var(--bs-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(46, 31, 20, 0.15);
}

.school-anthem-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 991.98px) {
    .school-anthem-gallery {
        min-height: auto;
    }

    .school-anthem-gallery-item {
        min-height: 200px;
    }

    .school-anthem-gallery-item img {
        min-height: 200px;
    }
}
/*** Hero Header ***/


/*** About Start ***/
.video {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url(../img/about.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.video.border {
    border-radius: 50% 20% / 10% 40%;
}

.about {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(../img/background.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
/*** About End ***/


/*** service Start ***/
.service {
    background: linear-gradient(rgba(92, 61, 46, 0.05), rgba(92, 61, 46, 0.15));
}

.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    width: 100%;
    height: 100%;
    border-radius: 50% 20% / 10% 40%;
    transition: 0.5s;
    position: relative;
}

.service-content::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    right: auto;
    background: transparent;
    border-radius: 50% 20% / 10% 40%;
    transition: .5s;
}

.service-item:hover {
    border: 1px solid var(--bs-secondary) !important;
}

.service-item:hover .service-content::after {
    background: var(--bs-secondary);
    width: 100%;
    opacity: 1;
    z-index: 1;
}

.service-item .service-content .service-content-inner {
    position: relative;
    z-index: 2;
}

.service-item .service-content-inner i,
.service-item .service-content-inner p,
.service-item .service-content-inner a.h4 {
    transition: 0.5s;
}

.service-item:hover .service-content-inner i,
.service-item:hover .service-content-inner p {
    color: var(--bs-white) !important;
}
.service-item:hover .service-content-inner a.h4 {
    color: var(--bs-primary);
}

.service-item:hover .service-content-inner a.btn-primary {
    background: var(--bs-white) !important;
    color: var(--bs-primary) !important;
}

.service-item .service-content-inner a.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}
/*** Service End ***/


/*** Programs Start ***/
.program {
    background: linear-gradient(rgba(92, 61, 46, 0.08), rgba(232, 185, 35, 0.12));
}

.program .program-item .program-img .program-rate {
    position: absolute;
    width: 100px; 
    top: -20px; 
    left: 50%; 
    margin-left: -50px; 
    border-radius: 10% / 50%;
}

.program .program-item .program-text {
    padding-top: 150px; 
    margin-top: -125px;
}

.program .program-item .program-img img,
.program .program-item .program-teacher img,
.program .program-item:hover .program-text-inner a.h4 {
    transition: 0.5s;
}

.program .program-item:hover .program-img img,
.program .program-item:hover .program-teacher img {
    transform: scale(1.2);
}

.program .program-item:hover .program-text-inner a.h4 {
    color: var(--bs-primary) !important;
}
/*** Programs End ***/


/*** Events Start ***/
.events .events-item {
    width: 100%;
    height: 100%;
    border-radius: 30%;
    position: relative;
}

.events .events-item .events-inner .events-rate {
    position: absolute;
    width: 120px; 
    top: -20px; 
    left: 50%; 
    margin-left: -60px; 
    border-radius: 10% / 50%;
}

.events .events-item .events-inner .events-img .event-overlay {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    z-index: 1;
    opacity: 0;
}

.events .events-item .events-inner .events-img:hover .event-overlay {
    opacity: 1;
}

.events .events-item .events-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: rgba(92, 61, 46, .75);
    border-radius: 10px;
    transition: 0.5s;
}

.events .events-item:hover .events-img::after {
    height: 100%;
    opacity: 1;
}

.events .events-item .events-text a.h4,
.events .events-item .events-img img {
    transition: 0.5s;
}

.events .events-item:hover .events-text a.h4 {
    color: var(--bs-primary) !important;
}

.events .events-item:hover .events-img img {
    transform: scale(1.3);
}
/*** Events End ***/


/*** Blog Start ***/
.blog .blog-item .blog-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: rgba(92, 61, 46, .75);
    border-radius: 10px 10px 0 0;
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
    opacity: 1;
}

.blog .blog-item .blog-date-comments {
    padding-top: 150px !important; 
    margin-top: -125px;
}

.blog .blog-item .blog-img img,
.blog .blog-item .blog-content img,
.blog .blog-item .blog-text-inner a.h4 {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-content img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-text-inner a.h4 {
    color: var(--bs-primary);
}
/*** Blog End ***/



/*** Team Start ***/
.team .team-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.team .team-item .team-icon {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
}

.team .team-item .team-icon a.share-link {
    opacity: 0;
    transition: 0.5s;
}

.team .team-item:hover .team-icon a.share-link {
    opacity: 1;
}

.team .team-item .team-content,
.team .team-item .team-content h4,
.team .team-item .team-content p {
    transition: 0.5s;
}

.team .team-item:hover .team-content {
    background: var(--bs-primary) !important;
    border-radius: 0 0 10px 10px;
}

.team .team-item:hover .team-content h4 {
    color: var(--bs-white) !important;
}

.team .team-item:hover .team-content p {
    color: var(--bs-dark) !important;
}
/*** Team end ***/


/*** testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
    
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-secondary);
}
/*** testimonial End ***/


/*** Footer Start ***/
.footer.footer-hopsa {
    background: linear-gradient(180deg, #5C3D2E 0%, #4A3226 100%);
    color: #FBF6E8;
}

.footer.footer-hopsa .footer-item h2,
.footer.footer-hopsa .footer-item h4 {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.footer.footer-hopsa .footer-item p {
    color: #EDE6D8;
}

.footer.footer-hopsa a {
    color: #FBF6E8 !important;
}

.footer.footer-hopsa .footer-contact-link,
.footer.footer-hopsa .footer-quick-link {
    color: #FBF6E8 !important;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer.footer-hopsa .footer-contact-link:hover,
.footer.footer-hopsa .footer-quick-link:hover {
    color: var(--bs-secondary) !important;
}

.footer.footer-hopsa .footer-icon,
.footer.footer-hopsa .hopsa-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.hopsa-footer-social-btn,
.hopsa-footer-social-btn:link,
.hopsa-footer-social-btn:visited {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hopsa-footer-social-btn:hover,
.hopsa-footer-social-btn:focus {
    background-color: #FBF6E8 !important;
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

.hopsa-footer-social-btn i {
    font-size: 1rem;
    line-height: 1;
}

.copyright-hopsa {
    background: #2E1F14 !important;
}

.copyright-hopsa .text-light {
    color: #EDE6D8 !important;
}

/*** Navbar — sticky header on all pages ***/
.hopsa-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #FBF6E8 !important;
    box-shadow: 0 2px 14px rgba(46, 31, 20, 0.1);
}

.hopsa-navbar-wrap .navbar-collapse {
    background-color: #FBF6E8;
}

.hopsa-navbar-wrap .navbar-toggler {
    display: none;
}

.hopsa-sidebar-backdrop {
    display: none;
}

.hopsa-mobile-topbar,
.hopsa-show-mobile.hopsa-sidebar-social {
    display: none;
}

.hopsa-mobile-contact-bar {
    display: none !important;
}

/* Font Awesome — all browsers (iOS Safari, Android Chrome, Samsung, Firefox) */
.hopsa-topbar-social .fab,
.hopsa-sidebar-social-btn .fab,
.hopsa-sidebar-social-btn .fas,
.hopsa-mobile-topbar-social .fab {
    font-family: "Font Awesome 5 Brands", "FontAwesome", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hopsa-topbar-social .fab::before,
.hopsa-sidebar-social-btn .fab::before,
.hopsa-sidebar-social-btn .fas::before,
.hopsa-mobile-topbar-social .fab::before {
    display: inline-block;
}

.hopsa-mobile-contact-link .fas,
.hopsa-nav-icon.fas,
.hopsa-topbar .fas {
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.hopsa-sidebar-header {
    display: none;
}

.hopsa-sidebar-open-btn,
.hopsa-sidebar-close-btn {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 2px solid var(--bs-primary);
    border-radius: 8px;
    background: #FBF6E8;
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hopsa-sidebar-open-btn:hover,
.hopsa-sidebar-close-btn:hover,
.hopsa-sidebar-open-btn:focus,
.hopsa-sidebar-close-btn:focus {
    background: var(--bs-secondary);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(232, 185, 35, 0.45);
}

.footer .footer-galary-img {
    overflow: hidden;
    border-color: var(--bs-secondary) !important;
}

.footer .footer-galary-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-style: dotted;
    border-color: var(--bs-secondary);
    transition: 0.5s;
}

.footer .footer-galary-img img:hover {
    transform: scale(1.15);
}

.footer.footer-hopsa .footer-galary-img {
    background: rgba(46, 31, 20, 0.35);
}

.footer-gallery-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-gallery-link:hover {
    transform: scale(1.05);
}

.footer.footer-hopsa a.footer-gallery-heading {
    color: var(--bs-secondary) !important;
    text-decoration: none;
    font-weight: inherit;
}

.footer.footer-hopsa a.footer-gallery-heading:hover {
    color: #FBF6E8 !important;
}

/*** Business Spotlight ***/
.business-spotlight-section {
    scroll-margin-top: 120px;
    margin-top: 2rem;
    padding: 3rem 1.5rem 3.5rem;
    background: linear-gradient(180deg, #F5EFE0 0%, #FBF6E8 45%, #FBF6E8 100%);
    border-radius: 20px;
    border: 1px solid rgba(92, 61, 46, 0.1);
    box-shadow: 0 8px 32px rgba(46, 31, 20, 0.06);
}

.spotlight-intro {
    max-width: 720px;
}

.spotlight-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
}

.spotlight-lead {
    font-size: 1.05rem;
    color: #5a4a42;
    line-height: 1.65;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.spotlight-disclaimer {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.65);
    border-left: 4px solid var(--bs-secondary);
    border-radius: 0 10px 10px 0;
    color: #5a4a42;
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: left;
}

.spotlight-faq {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.spotlight-faq > h4 {
    display: block !important;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.spotlight-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(92, 61, 46, 0.12);
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 185, 35, 0.55);
    box-shadow: 0 14px 36px rgba(46, 31, 20, 0.12);
}

.spotlight-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #FBF6E8 0%, #EDE6D8 100%);
    border-bottom: 2px solid rgba(232, 185, 35, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.spotlight-card-img img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.spotlight-card-body {
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.spotlight-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.spotlight-card-tagline {
    color: #6c5c54;
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
    line-height: 1.55;
    flex-grow: 1;
}

.spotlight-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-btn:hover,
.spotlight-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 61, 46, 0.2);
}

.spotlight-btn i {
    font-size: 0.8rem;
}

.hopsa-biz-faq-list {
    padding-left: 1.25rem;
    margin-top: 0.75rem;
}

.hopsa-biz-faq-list li {
    margin-bottom: 0.65rem;
}

.hopsa-biz-faq-list li:last-child {
    margin-bottom: 0;
}

.hopsa-biz-faq-list a {
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .spotlight-grid > .col-lg-4:nth-child(4),
    .spotlight-grid > .col-lg-4:nth-child(5) {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

@media (max-width: 575.98px) {
    .business-spotlight-section {
        padding: 2rem 1rem 2.5rem;
        border-radius: 14px;
    }

    .spotlight-disclaimer {
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
    }
}

/*** Computer Lab page — intro section ***/
.lab-intro-section {
    background: linear-gradient(135deg, #DDD2C0 0%, #D4C4AE 50%, #EDE6D8 100%);
}

.lab-intro-panel {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 16px 48px rgba(46, 31, 20, 0.12);
}

.lab-intro-content {
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-intro-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.lab-intro-title {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lab-intro-lead {
    color: var(--bs-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.lab-intro-tag {
    display: inline-block;
    background: #FBF6E8;
    color: var(--bs-primary);
    border: 2px solid var(--bs-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.lab-intro-media {
    position: relative;
    min-height: 320px;
    background: var(--bs-primary);
}

.lab-intro-photo {
    position: absolute;
    overflow: hidden;
    border: 3px solid var(--bs-secondary);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.lab-intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lab-intro-photo-main {
    top: 1.5rem;
    left: 1.5rem;
    right: 2rem;
    bottom: 3.5rem;
    border-radius: 14px 14px 14px 4px;
    z-index: 1;
}

.lab-intro-photo-secondary {
    width: 55%;
    height: 42%;
    bottom: 1.25rem;
    right: 1.25rem;
    border-radius: 12px;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .lab-intro-content {
        padding: 2rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .lab-intro-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .lab-intro-tags {
        justify-content: center;
    }

    .lab-intro-media {
        min-height: 280px;
    }

    .lab-intro-photo-main {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
    }

    .lab-intro-photo-secondary {
        width: 50%;
        height: 38%;
    }
}

.lab-content-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(92, 61, 46, 0.15);
}

.lab-content-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.lab-content-heading {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.lab-content-block p {
    line-height: 1.75;
    margin-bottom: 0;
}

.lab-gallery-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--bs-primary);
    aspect-ratio: 4 / 3;
}

.lab-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lab-gallery-thumb:hover img {
    transform: scale(1.05);
}

#donation {
    scroll-margin-top: 120px;
}

.lab-donate-panel {
    background: #fff;
    border: 2px solid var(--bs-primary);
    border-radius: 14px;
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(46, 31, 20, 0.08);
}

.lab-donate-title {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-weight: 700;
}

.lab-donate-subtitle {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-primary);
    font-weight: 600;
}

.lab-amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.lab-amount-item {
    min-width: 0;
}

.lab-amount-btn {
    border: 2px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
    font-weight: 600;
    padding: 0.65rem 0.5rem;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .lab-amount-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .lab-amount-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }
}

.btn-check:checked + .lab-amount-btn {
    background: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
}

.lab-amount-btn:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    border-color: var(--bs-primary) !important;
}

.lab-donate-summary {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.lab-donate-summary h5 {
    font-weight: 700;
    color: var(--bs-dark);
}

.lab-payment-info {
    background: #FBF6E8;
    border-radius: 10px;
}

.lab-payment-info p {
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.lab-donate-submit {
    font-weight: 700;
    font-size: 1.05rem;
}

.lab-stats-row {
    max-width: 100%;
}

.lab-stat-card {
    background: #fff;
    border: 1px solid rgba(92, 61, 46, 0.12);
    border-top: 4px solid var(--bs-secondary);
    border-radius: 14px;
    padding: 1.15rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 20px rgba(46, 31, 20, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(46, 31, 20, 0.1);
}

.lab-stat-icon {
    display: block;
    font-size: 1.35rem;
    color: var(--bs-secondary);
    margin-bottom: 0.4rem;
}

.lab-stat-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.2;
}

.lab-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c5c54;
    margin-top: 0.35rem;
    line-height: 1.35;
}

.lab-content-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F5EFE0 100%);
}

.lab-section-header {
    max-width: 640px;
}

.lab-section-lead {
    color: #6c5c54;
    font-size: 1.05rem;
    line-height: 1.65;
}

.lab-content-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.65rem;
    border: 1px solid rgba(92, 61, 46, 0.1);
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(46, 31, 20, 0.1);
}

.lab-content-card--accent {
    border-left: 4px solid var(--bs-secondary);
    background: linear-gradient(135deg, #fff 0%, #FBF6E8 100%);
}

.lab-content-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(92, 61, 46, 0.1);
}

.lab-content-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border-radius: 10px;
    font-size: 1.1rem;
}

.lab-content-card .lab-content-heading {
    margin-bottom: 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
}

.lab-content-card p {
    color: #4a3d36;
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.lab-content-card p:last-child,
.lab-content-card ul:last-child {
    margin-bottom: 0;
}

.lab-milestone-list {
    padding-left: 1.2rem;
    margin-bottom: 0.9rem;
}

.lab-milestone-list li {
    color: #4a3d36;
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.lab-thanks-note {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6B4A38 100%);
    color: #FBF6E8;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(46, 31, 20, 0.15);
}

.lab-thanks-note p {
    color: #FBF6E8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.lab-thanks-note strong {
    color: var(--bs-secondary);
}

.lab-gallery-section {
    background: linear-gradient(180deg, #EDE6D8 0%, #E8DFD0 100%);
}

.lab-donate-section {
    background: linear-gradient(180deg, #F5EFE0 0%, #FBF6E8 100%);
    scroll-margin-top: 120px;
}

.lab-summary-total {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    color: var(--bs-primary);
}

.lab-summary-total strong {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .lab-intro-panel .row {
        flex-direction: column-reverse;
    }

    .lab-content-card-head {
        flex-wrap: wrap;
    }
}

/*** Contact page ***/
.contact-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.contact-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.contact-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-page-lead {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.08);
    border-left: 4px solid var(--bs-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.12);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.contact-info-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.35rem;
}

.contact-info-detail {
    color: var(--bs-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info-detail a,
.contact-info-link {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-info-detail a:hover,
.contact-info-link:hover {
    color: var(--bs-dark);
    text-decoration: underline;
}

.contact-social-panel {
    background: var(--bs-primary);
    color: #FBF6E8;
    border-radius: 12px;
    padding: 1.5rem 1.35rem;
    margin-bottom: 1.5rem;
}

.contact-social-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}

.contact-social-text {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
    opacity: 0.95;
}

.contact-social-icons {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.contact-social-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(251, 246, 232, 0.15);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-social-btn:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    transform: translateY(-3px);
}

.contact-photo-frame {
    border: 4px solid var(--bs-secondary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(46, 31, 20, 0.12);
}

.contact-photo-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center 22%;
}

.contact-form-panel.hopsa-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-note strong {
    color: var(--bs-primary);
}

.contact-quick-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(92, 61, 46, 0.15);
}

.contact-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
    border-radius: 50px;
    border: 2px solid var(--bs-primary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.contact-quick-item i {
    color: var(--bs-secondary);
    font-size: 1rem;
}

.contact-quick-item:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-quick-item:hover i {
    color: var(--bs-secondary);
}

@media (max-width: 991.98px) {
    .contact-photo-frame {
        display: none;
    }
}

/*** E-Mentorship page ***/
.mentorship-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.mentorship-intro {
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.mentorship-year-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--bs-secondary);
    margin-bottom: 1rem;
}

.mentorship-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.mentorship-page-lead {
    color: var(--bs-primary);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.mentorship-highlights-row {
    margin-bottom: 3rem;
}

.mentorship-highlight-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.35rem;
    height: 100%;
    text-align: center;
    border: 2px solid rgba(92, 61, 46, 0.12);
    box-shadow: 0 6px 24px rgba(46, 31, 20, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentorship-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46, 31, 20, 0.12);
    border-color: var(--bs-secondary);
}

.mentorship-highlight-icon {
    font-size: 2rem;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
    display: block;
}

.mentorship-highlight-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.65rem;
}

.mentorship-highlight-card p {
    color: var(--bs-primary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.mentorship-intro-panel > [class*="col-"] {
    display: flex;
}

.mentorship-photo-frame {
    flex: 1;
    width: 100%;
    min-height: 100%;
    display: flex;
    border: 4px solid var(--bs-secondary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(46, 31, 20, 0.12);
}

.mentorship-photo-frame img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
}

.mentorship-text-panel {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    border-left: 4px solid var(--bs-secondary);
    box-shadow: 0 6px 24px rgba(46, 31, 20, 0.08);
}

@media (max-width: 991.98px) {
    .mentorship-photo-frame {
        min-height: 280px;
    }

    .mentorship-photo-frame img {
        min-height: 280px;
    }
}

.mentorship-text-panel p {
    color: var(--bs-dark);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.mentorship-program-section {
    background: #ececec;
}

.mentorship-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.mentorship-program-panel {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 2.25rem 2rem;
    border: 2px solid var(--bs-primary);
    box-shadow: 0 8px 32px rgba(46, 31, 20, 0.1);
}

.mentorship-program-panel p {
    line-height: 1.75;
    color: var(--bs-dark);
    margin-bottom: 1.15rem;
}

.mentorship-launch-section {
    background: var(--bs-primary);
    color: #FBF6E8;
}

.mentorship-launch-row > [class*="col-"] {
    display: flex;
}

.mentorship-launch-card {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(251, 246, 232, 0.08);
    border: 2px solid var(--bs-secondary);
    border-radius: 12px;
    padding: 2rem 1.75rem;
}

.mentorship-launch-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.mentorship-launch-card p {
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.mentorship-support-panel {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    color: var(--bs-dark);
}

.mentorship-support-panel .mentorship-cta-buttons {
    margin-top: auto;
    padding-top: 0.5rem;
}

.mentorship-support-img {
    border-radius: 10px;
    border: 3px solid var(--bs-secondary);
    margin-bottom: 1.25rem;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
}

.mentorship-support-panel p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mentorship-motto {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-primary);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}

.btn-outline-mentorship {
    border: 2px solid #FBF6E8;
    color: #FBF6E8;
    font-weight: 600;
    background: transparent;
    border-radius: 40px;
}

.btn-outline-mentorship:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border-color: var(--bs-secondary);
}

/*** Shop page ***/
.shop-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.shop-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.shop-intro .title-border-radius {
    display: block;
}

.shop-product-img-link {
    display: block;
    text-decoration: none;
    cursor: zoom-in;
}

.shop-product-img-link:hover .shop-product-img-wrap img {
    transform: scale(1.03);
}

.shop-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.shop-page-lead {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.shop-products-row {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.shop-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.1);
    border: 2px solid rgba(92, 61, 46, 0.12);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}


.shop-product-card:hover {
    box-shadow: 0 12px 36px rgba(46, 31, 20, 0.14);
    transform: translateY(-4px);
    z-index: 1;
}

.shop-product-img-wrap {
    background: #5C3D2E;
    padding: 1.5rem 1.25rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-img-wrap img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.shop-product-body {
    padding: 1.5rem 1.25rem 1.75rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-product-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.shop-product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.35rem;
}

.shop-product-stock {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.shop-product-stock.shop-product-out {
    color: #c62828;
}

.shop-product-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.shop-product-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.35rem !important;
    margin-top: auto;
}

.shop-order-note {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(92, 61, 46, 0.15);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.shop-order-note p {
    color: var(--bs-primary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .shop-product-card {
        border-right: none;
        border-radius: 12px;
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .shop-product-img-wrap {
        min-height: 240px;
    }
}

/*** Leadership page ***/
.leadership-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.leadership-advisory-section {
    border-top: 1px solid rgba(92, 61, 46, 0.12);
}

.leadership-past-section {
    background: var(--bs-primary);
    color: #FBF6E8;
}

.leadership-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.leadership-page-lead {
    color: var(--bs-primary);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.leadership-group-banner {
    border: 4px solid var(--bs-secondary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(46, 31, 20, 0.12);
    margin-bottom: 3rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.leadership-group-banner img {
    width: 100%;
    display: block;
}

.leadership-section-header {
    margin-bottom: 2rem;
}

.leadership-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.leadership-past-section .leadership-section-title {
    color: inherit;
}

.leadership-past-section .leadership-section-title {
    color: var(--bs-secondary);
}

.leadership-section-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--bs-primary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    opacity: 0.9;
}

/* Advisory Board: 3 pictures per row, 2 rows (6 members) */
.leadership-advisory-section .leadership-advisory-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.5rem;
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.leadership-advisory-grid > .leadership-card {
    width: 100%;
    margin: 0;
}

.leadership-advisory-grid .leadership-card-photo {
    aspect-ratio: 1;
}

@media (max-width: 767.98px) {
    .leadership-advisory-section .leadership-advisory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 560px;
        gap: 1.25rem;
    }
}

@media (max-width: 399.98px) {
    .leadership-advisory-section .leadership-advisory-grid {
        grid-template-columns: 1fr !important;
        max-width: 300px;
    }
}

.leadership-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
}

.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46, 31, 20, 0.14);
}

.leadership-card-featured {
    border: 3px solid var(--bs-secondary);
}

.leadership-card-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f0e8 0%, #e8e0d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.leadership-photo-placeholder {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    opacity: 0.35;
}

.leadership-card-body {
    padding: 1.15rem 1rem 1.35rem;
}

.leadership-card-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.leadership-card-role {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.leadership-card-year {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

.leadership-past-panel {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(251, 246, 232, 0.08);
    border: 2px solid var(--bs-secondary);
    border-radius: 14px;
    padding: 2rem 2.25rem;
}

.leadership-past-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.leadership-past-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leadership-past-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(251, 246, 232, 0.2);
    line-height: 1.55;
    font-size: 0.98rem;
}

.leadership-past-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leadership-past-list strong {
    color: var(--bs-secondary);
}

/*** Farm page ***/
.farm-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F5EFE0 45%, #EDE6D8 100%);
    scroll-margin-top: 100px;
}

.farm-page-intro {
    max-width: 720px;
    margin-bottom: 2rem;
}

.farm-coming-soon {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6B4A38 100%);
    color: var(--bs-secondary);
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 3px solid var(--bs-secondary);
    box-shadow: 0 10px 36px rgba(46, 31, 20, 0.18);
}

.farm-subtitle {
    color: var(--bs-primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.farm-lead {
    color: #5a4a42;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
}

.farm-image-hero {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding: 0.65rem;
    background: #fff;
    border: 3px solid var(--bs-primary);
    border-radius: 20px;
    box-shadow: 0 18px 52px rgba(46, 31, 20, 0.14);
    overflow: hidden;
}

.farm-image-hero img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: min(72vh, 640px);
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 16px;
}

.farm-caption {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: #5a4a42;
    line-height: 1.7;
    font-size: 1.02rem;
    font-weight: 500;
}

.farm-highlight-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.25rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(92, 61, 46, 0.1);
    border-top: 4px solid var(--bs-secondary);
    box-shadow: 0 8px 24px rgba(46, 31, 20, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.farm-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(46, 31, 20, 0.11);
}

.farm-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border-radius: 50%;
    font-size: 1.15rem;
}

.farm-highlight-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.farm-highlight-card p {
    color: #5a4a42;
    font-size: 0.92rem;
    line-height: 1.6;
}

.farm-notice {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(92, 61, 46, 0.12);
    box-shadow: 0 10px 32px rgba(46, 31, 20, 0.08);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.farm-notice-text {
    color: #4a3d36;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .farm-image-hero img {
        min-height: 420px;
    }
}

@media (min-width: 1200px) {
    .farm-image-hero img {
        min-height: 500px;
    }
}

@media (max-width: 575.98px) {
    .farm-coming-soon {
        letter-spacing: 0.1em;
        padding: 0.85rem 1.25rem;
        width: 100%;
    }

    .farm-image-hero {
        padding: 0.5rem;
    }

    .farm-image-hero img {
        min-height: 240px;
        max-height: 50vh;
    }
}

/*** Past Projects page ***/
.past-projects-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #EDE6D8 100%);
}

.past-projects-content {
    position: relative;
    z-index: 1;
}

.past-projects-section .text-primary {
    font-family: 'Fredoka', sans-serif;
}

.past-projects-intro {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--bs-primary);
    border-radius: 16px;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 8px 32px rgba(46, 31, 20, 0.08);
    max-width: 900px;
}

.past-projects-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--bs-dark);
    font-weight: 500;
}

.past-projects-timeline {
    max-width: 920px;
    margin: 0 auto;
}

.past-project-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.past-project-year {
    flex-shrink: 0;
    width: 5.5rem;
    text-align: center;
}

.past-project-year-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--bs-secondary);
    min-width: 4.5rem;
    animation: pastProjectsBadgeGlow 2.5s ease-in-out infinite;
}

@keyframes pastProjectsBadgeGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 185, 35, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(232, 185, 35, 0);
    }
}

.past-project-card {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.past-project-item:hover .past-project-card {
    transform: translateX(8px);
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.12);
    border-color: var(--bs-secondary);
}

.past-project-item:hover .past-project-icon {
    transform: scale(1.15);
}

.past-project-icon {
    transition: transform 0.35s ease;
}

.past-project-icon {
    position: absolute;
    left: 1.15rem;
    top: 1.35rem;
    color: var(--bs-secondary);
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.past-project-card p {
    line-height: 1.7;
    color: var(--bs-dark);
}

@media (max-width: 575.98px) {
    .past-project-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .past-project-year {
        width: auto;
        text-align: left;
    }

    .past-projects-intro {
        padding: 1.5rem;
    }
}

/*** Gallery page ***/
.gallery-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.gallery-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.gallery-intro .title-border-radius {
    display: block;
}

.gallery-stats-row {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    padding: 1.15rem 0.75rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(46, 31, 20, 0.08);
}

.gallery-stat-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.1;
}

.gallery-stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
    opacity: 0.85;
}

.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.gallery-filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--bs-primary);
    background: #fff;
    color: var(--bs-primary);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--bs-primary);
    color: #FBF6E8;
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    box-shadow: 0 4px 16px rgba(46, 31, 20, 0.2);
}

.gallery-page-grid .gallery-grid-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-page-grid .gallery-grid-item.gallery-filter-hidden {
    display: none !important;
}

.gallery-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.gallery-page-lead {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.gallery-tile {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 6px 24px rgba(46, 31, 20, 0.1);
    text-decoration: none;
    height: 100%;
    min-height: 200px;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-tile-tall {
    min-height: 420px;
}

.gallery-tile-featured-sm {
    min-height: 200px;
}

.gallery-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(46, 31, 20, 0.85) 0%,
        rgba(46, 31, 20, 0.25) 45%,
        rgba(46, 31, 20, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-tile-icon {
    font-size: 2rem;
    color: var(--bs-secondary);
    margin-bottom: auto;
    margin-top: auto;
    transform: scale(0.8);
    transition: transform 0.35s ease;
}

.gallery-tile-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FBF6E8;
    text-align: center;
    line-height: 1.35;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile:hover .gallery-tile-overlay {
    opacity: 1;
}

.gallery-tile:hover .gallery-tile-icon {
    transform: scale(1);
}

.gallery-page-grid .gallery-tile {
    min-height: 220px;
}

.gallery-links-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(92, 61, 46, 0.15);
}

.gallery-link-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 2px solid var(--bs-primary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.gallery-link-pill:hover {
    background: var(--bs-primary);
    color: #FBF6E8;
    transform: translateY(-3px);
}

.gallery-link-pill:hover i {
    color: var(--bs-secondary);
}

@media (max-width: 991.98px) {
    .gallery-tile-tall {
        min-height: 320px;
    }

    .gallery-tile-featured-sm {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .gallery-page-grid .gallery-tile {
        min-height: 180px;
    }

    .gallery-tile-tall {
        min-height: 260px;
    }
}

/*** Account page ***/
.account-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.account-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.account-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.account-page-lead {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.9;
}

.account-portal-hero {
    background: var(--bs-primary);
    color: #FBF6E8;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 12px 40px rgba(46, 31, 20, 0.18);
    border: 3px solid var(--bs-secondary);
}

@media (min-width: 992px) {
    .account-portal-hero {
        padding: 3rem 2.75rem;
    }
}

.account-portal-crest {
    height: 72px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.account-portal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.account-portal-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.account-portal-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.account-portal-perks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

.account-portal-perks i {
    color: var(--bs-secondary);
    font-size: 1rem;
}

.account-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-portal-photo {
    border: 4px solid var(--bs-secondary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

.account-portal-photo img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.account-features-row {
    margin-bottom: 3rem;
}

.account-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.35rem;
    height: 100%;
    box-shadow: 0 4px 22px rgba(46, 31, 20, 0.08);
    border-top: 4px solid var(--bs-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.account-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(46, 31, 20, 0.14);
}

.account-feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.account-feature-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.65rem;
}

.account-feature-text {
    color: var(--bs-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.account-feature-link {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.account-feature-link:hover {
    color: var(--bs-dark);
}

.account-bottom-row {
    margin-bottom: 2.5rem;
}

.account-steps-panel,
.account-help-panel {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: 0 4px 22px rgba(46, 31, 20, 0.08);
    border-left: 4px solid var(--bs-primary);
}

.account-help-panel {
    border-left-color: var(--bs-secondary);
}

.account-panel-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 1.25rem;
}

.account-panel-title i {
    color: var(--bs-secondary);
}

.account-steps-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
    color: var(--bs-dark);
    line-height: 1.75;
}

.account-steps-list li {
    margin-bottom: 0.85rem;
}

.account-steps-list a {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.account-steps-list a:hover {
    text-decoration: underline;
}

.account-help-text {
    color: var(--bs-primary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.account-help-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.account-help-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #FBF6E8;
    border-radius: 8px;
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.account-help-item:hover {
    background: var(--bs-primary);
    color: #FBF6E8;
    transform: translateX(4px);
}

.account-help-item:hover i {
    color: var(--bs-secondary);
}

.account-help-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--bs-secondary);
}

.account-help-note {
    color: var(--bs-primary);
    opacity: 0.85;
    line-height: 1.5;
}

.account-quick-strip {
    margin-top: 0;
}

/*** Register page ***/
.register-page-section,
.join-us-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.join-us-hub-card {
    text-align: center;
}

.join-us-cards-row {
    margin-top: 0.5rem;
}

.register-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.register-intro-crest {
    height: 88px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(46, 31, 20, 0.12));
}

.register-eyebrow {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}

.register-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.register-page-lead {
    color: var(--bs-primary);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.92;
}

.register-benefits-row {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.register-benefit-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    background: #fff;
    border: 2px solid rgba(92, 61, 46, 0.12);
    border-radius: 12px;
    padding: 1.15rem 0.85rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(46, 31, 20, 0.06);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.register-benefit-pill:hover {
    border-color: var(--bs-secondary);
    transform: translateY(-4px);
}

.register-benefit-pill i {
    font-size: 1.35rem;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-benefit-pill span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-primary);
    line-height: 1.35;
}

.register-pride-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(46, 31, 20, 0.1);
    border: 2px solid rgba(92, 61, 46, 0.08);
}

.register-pride-card-header {
    background: var(--bs-primary);
    padding: 1.35rem 2rem;
    text-align: center;
}

.register-pride-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--bs-secondary);
    letter-spacing: 0.06em;
}

.register-pride-card-body {
    padding: 2.25rem 2rem 2.5rem;
}

.register-definition {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--bs-dark);
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: #FBF6E8;
    border-left: 4px solid var(--bs-secondary);
    border-radius: 0 10px 10px 0;
}

.register-subheading {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.register-pride-card-body p {
    color: var(--bs-primary);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.register-motto {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bs-secondary);
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 1.75rem !important;
    margin-bottom: 0 !important;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(232, 185, 35, 0.45);
}

.register-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-photo-card {
    border: 4px solid var(--bs-secondary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.12);
}

.register-photo-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.register-photo-card-main img {
    min-height: 200px;
}

.register-photo-card-accent img {
    min-height: 140px;
    object-position: center 20%;
}

.register-give-panel {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4a3226 100%);
    color: #FBF6E8;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 36px rgba(46, 31, 20, 0.18);
}

.register-give-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(232, 185, 35, 0.2);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.register-give-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1.15rem;
}

.register-give-panel p {
    line-height: 1.75;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-size: 1.02rem;
}

.register-actions-banner {
    margin-bottom: 2rem;
}

.register-actions-label {
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.register-cta-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 10px 36px rgba(46, 31, 20, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.register-cta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 48px rgba(46, 31, 20, 0.16);
}

.register-cta-card-primary {
    border: 3px solid var(--bs-primary);
}

.register-cta-card-give {
    border: 3px solid var(--bs-secondary);
}

.register-cta-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    background: #FBF6E8;
    color: var(--bs-primary);
}

.register-cta-card-give .register-cta-badge {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.register-cta-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.register-cta-card-give .register-cta-icon {
    background: var(--bs-secondary);
    color: var(--bs-dark);
}

.register-cta-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.35rem;
}

.register-cta-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0.85rem;
    text-shadow: 0 1px 0 rgba(46, 31, 20, 0.08);
}

.register-cta-card-give .register-cta-price {
    color: var(--bs-primary);
}

.register-cta-text {
    color: var(--bs-primary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.98rem;
    max-width: 320px;
}

.register-cta-btn {
    font-weight: 700;
    font-size: 0.92rem;
    padding: 1rem 1.35rem !important;
    white-space: normal;
    line-height: 1.35;
}

.register-login-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    background: #fff;
    border: 2px solid var(--bs-primary);
    border-radius: 50px;
    padding: 1rem 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 18px rgba(46, 31, 20, 0.08);
}

.register-login-strip i {
    color: var(--bs-secondary);
    font-size: 1.1rem;
}

.register-login-strip span {
    color: var(--bs-primary);
    font-weight: 600;
}

.register-login-strip a {
    color: var(--bs-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bs-secondary);
}

.register-login-strip a:hover {
    color: var(--bs-dark);
}

.register-quick-strip {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .register-photo-stack {
        flex-direction: row;
    }

    .register-photo-card {
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .register-pride-card-body {
        padding: 1.5rem 1.25rem;
    }

    .register-give-panel {
        padding: 1.75rem 1.35rem;
    }

    .register-cta-card {
        padding: 1.75rem 1.35rem 1.5rem;
    }

    .register-cta-btn {
        font-size: 0.85rem;
    }

    .register-photo-stack {
        flex-direction: column;
    }

    .register-login-strip {
        border-radius: 14px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .account-portal-hero {
        padding: 1.75rem 1.25rem;
    }

    .account-portal-actions .btn {
        width: 100%;
    }

    .account-steps-panel,
    .account-help-panel {
        padding: 1.5rem 1.25rem;
    }
}

/*** Volunteer page ***/
.volunteer-page-section {
    background: linear-gradient(180deg, #FBF6E8 0%, #F0E8DC 100%);
}

.volunteer-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.volunteer-page-heading {
    font-family: 'Fredoka', sans-serif;
    color: var(--bs-dark);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.volunteer-page-lead {
    color: var(--bs-primary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.volunteer-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.volunteer-side-card {
    background: var(--bs-primary);
    color: #FBF6E8;
    border-radius: 12px;
    padding: 1.5rem 1.35rem;
    border-left: 4px solid var(--bs-secondary);
}

.volunteer-side-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(232, 185, 35, 0.25);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.volunteer-side-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}

.volunteer-side-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.95;
}

.volunteer-info-row {
    margin-bottom: 2rem;
    padding-bottom: 0.25rem;
    align-items: stretch;
}

.volunteer-info-row > [class*="col"] {
    display: flex;
    flex-direction: column;
}

.volunteer-info-section {
    background: #FBF6E8;
    border-radius: 12px;
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid rgba(92, 61, 46, 0.1);
    flex: 1 1 auto;
    width: 100%;
}

.volunteer-lower-row {
    align-items: flex-start;
}

.volunteer-side-photo {
    position: relative;
    border: 4px solid var(--bs-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(46, 31, 20, 0.12);
    background: var(--bs-primary);
}

.volunteer-info-row .volunteer-side-photo-tall {
    aspect-ratio: unset;
    max-height: none;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
}

.volunteer-side-photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.volunteer-side-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(46, 31, 20, 0.9));
    color: #FBF6E8;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.volunteer-side-photo-caption img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.volunteer-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #FBF6E8 100%);
    border: 2px solid var(--bs-primary);
    border-radius: 16px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 10px 40px rgba(46, 31, 20, 0.1);
    scroll-margin-top: 7rem;
}

.volunteer-form-panel > .hopsa-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.volunteer-form-section {
    border: none;
    padding: 0;
    margin: 0 0 2rem;
}

.volunteer-form-legend {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-primary);
    width: 100%;
    padding-bottom: 0.65rem;
    margin-bottom: 1.15rem;
    border-bottom: 2px solid rgba(232, 185, 35, 0.55);
}

.volunteer-form-legend i {
    color: var(--bs-secondary);
}

.volunteer-optional {
    font-weight: 400;
    font-size: 0.9em;
    color: var(--bs-primary);
    opacity: 0.75;
}

.volunteer-field-question {
    color: var(--bs-dark);
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.volunteer-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.volunteer-radio-group .form-check-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.volunteer-check-grid {
    margin-top: 0.25rem;
}

.volunteer-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #FBF6E8;
    border-radius: 8px;
    border: 1px solid rgba(92, 61, 46, 0.1);
    height: 100%;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.volunteer-check-item:has(.form-check-input:checked) {
    border-color: var(--bs-secondary);
    background: #fff;
}

.volunteer-check-item .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.volunteer-check-item .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.volunteer-check-item .form-check-label {
    color: var(--bs-primary);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.volunteer-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.volunteer-form-note {
    line-height: 1.55;
}

.volunteer-quick-strip {
    margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
    .volunteer-info-row > [class*="col"] {
        display: block;
    }

    .volunteer-info-row .volunteer-side-photo-tall {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 300px;
        margin-bottom: 0.5rem;
    }

    .volunteer-info-row .volunteer-side-photo-tall img {
        min-height: 0;
        height: 100%;
    }

    .volunteer-info-section {
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .volunteer-form-panel {
        padding: 1.5rem 1.2rem;
    }

    .volunteer-form-actions .btn {
        width: 100%;
    }
}

/*** Mobile responsive — phones (iOS & Android) ***/
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
body.hopsa-site {
    overflow-x: clip;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 1199.98px) {
    :root {
        --hopsa-sidebar-width: clamp(220px, 78vw, 300px);
    }

    .hopsa-show-mobile.hopsa-mobile-topbar {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body {
        padding-left: 0;
        transition: padding-left 0.3s ease;
    }

    body.hopsa-sidebar-open {
        padding-left: 0;
        overflow-x: hidden;
    }

    body.hopsa-sidebar-open.hopsa-sidebar-lock {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .hopsa-main-nav {
        touch-action: pan-y;
    }

    .hopsa-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(46, 31, 20, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.hopsa-sidebar-open .hopsa-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hopsa-mobile-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 1035;
        background-color: #FBF6E8;
        border-bottom: 1px solid rgba(92, 61, 46, 0.12);
        box-shadow: 0 2px 10px rgba(46, 31, 20, 0.08);
        padding: 0.65rem max(0.75rem, env(safe-area-inset-left)) 0.65rem max(0.75rem, env(safe-area-inset-right));
        padding-top: max(0.65rem, env(safe-area-inset-top));
    }

    body.hopsa-sidebar-open .hopsa-mobile-topbar {
        display: none;
    }

    .hopsa-mobile-topbar-social {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.3rem;
        flex-shrink: 0;
        margin-right: 0.15rem;
    }

    .hopsa-mobile-topbar-social .hopsa-topbar-social {
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        display: -webkit-inline-flex !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hopsa-mobile-topbar-social .hopsa-topbar-social i,
    .hopsa-mobile-topbar-social .hopsa-topbar-social .fab {
        font-size: 0.78rem !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hopsa-mobile-topbar-brand,
    .hopsa-sidebar-header-brand {
        flex: 1;
        margin-right: 0.5rem;
    }

    .hopsa-sidebar-header .hopsa-sidebar-header-brand {
        min-width: 0;
        max-width: calc(100% - 3.25rem);
    }

    .hopsa-mobile-topbar-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .hopsa-mobile-social {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .hopsa-mobile-topbar {
        background: linear-gradient(180deg, #FBF6E8 0%, #F3EBD8 100%);
        border-bottom: 2px solid rgba(232, 185, 35, 0.45);
    }

    .hopsa-mobile-social-btn,
    .hopsa-mobile-social-btn:link,
    .hopsa-mobile-social-btn:visited {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #FBF6E8 !important;
        border: 2px solid #E8B923 !important;
        color: #5C3D2E !important;
        text-decoration: none !important;
        font-size: 0.85rem;
        box-shadow: 0 2px 6px rgba(46, 31, 20, 0.15);
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .hopsa-mobile-social-btn i,
    .hopsa-mobile-social-btn .fab,
    .hopsa-mobile-social-btn i::before,
    .hopsa-mobile-social-btn .fab::before {
        color: #5C3D2E !important;
    }

    .hopsa-mobile-social-btn:hover,
    .hopsa-mobile-social-btn:focus {
        background-color: #E8B923 !important;
        border-color: #5C3D2E !important;
        color: #2E1F14 !important;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(46, 31, 20, 0.22);
    }

    .hopsa-mobile-social-btn:hover i,
    .hopsa-mobile-social-btn:focus i,
    .hopsa-mobile-social-btn:hover i::before,
    .hopsa-mobile-social-btn:hover .fab::before,
    .hopsa-mobile-social-btn:focus i::before,
    .hopsa-mobile-social-btn:focus .fab::before {
        color: #2E1F14 !important;
    }

    .hopsa-sidebar-open-btn {
        background: var(--bs-primary);
        border-color: var(--bs-secondary);
        color: var(--bs-secondary);
    }

    .hopsa-sidebar-open-btn .fa-bars {
        color: var(--bs-secondary) !important;
    }

    .hopsa-sidebar-open-btn:hover,
    .hopsa-sidebar-open-btn:focus {
        background: var(--bs-secondary);
        border-color: var(--bs-primary);
        color: var(--bs-primary);
    }

    .hopsa-sidebar-open-btn:hover .fa-bars,
    .hopsa-sidebar-open-btn:focus .fa-bars {
        color: var(--bs-primary) !important;
    }

    .hopsa-navbar-wrap {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--hopsa-sidebar-width);
        height: 100vh;
        height: 100dvh;
        max-height: -webkit-fill-available;
        z-index: 1045;
        overflow: hidden;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        border-bottom: none;
        border-right: 2px solid rgba(92, 61, 46, 0.14);
        box-shadow: 4px 0 18px rgba(46, 31, 20, 0.1);
        transform: translate3d(-100%, 0, 0);
        -webkit-transform: translate3d(-100%, 0, 0);
        transition: transform 0.3s ease, visibility 0.3s ease;
        visibility: hidden;
        pointer-events: none;
    }

    body.hopsa-sidebar-open .hopsa-navbar-wrap {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    body.hopsa-sidebar-closed .hopsa-navbar-wrap {
        transform: translate3d(-100%, 0, 0);
        -webkit-transform: translate3d(-100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
    }

    body.hopsa-sidebar-open .hopsa-navbar-wrap,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-sidebar-shell,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-sidebar-nav,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-nav-sidebar,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-sidebar-menu,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-main-nav,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-main-nav .nav-link,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-main-nav .hopsa-nav-text,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-main-nav .hopsa-nav-icon,
    body.hopsa-sidebar-open .hopsa-navbar-wrap .hopsa-sidebar-social {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .hopsa-navbar-wrap .hopsa-sidebar-menu,
    .hopsa-navbar-wrap .hopsa-main-nav,
    .hopsa-navbar-wrap .hopsa-main-nav .nav-item,
    .hopsa-navbar-wrap .hopsa-main-nav .nav-link {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hopsa-navbar-wrap .hopsa-main-nav {
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .hopsa-navbar-wrap .hopsa-main-nav > .nav-item {
        display: block;
        width: 100%;
    }

    .hopsa-navbar-wrap .hopsa-main-nav .nav-link {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
    }

    .hopsa-navbar-wrap .hopsa-sidebar-social,
    .hopsa-navbar-wrap .hopsa-sidebar-social-icons,
    .hopsa-navbar-wrap .hopsa-sidebar-social-btn,
    .hopsa-navbar-wrap .hopsa-sidebar-social-btn i,
    .hopsa-navbar-wrap .hopsa-sidebar-social-btn .fab {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hopsa-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        flex-shrink: 0;
        padding: 0.75rem 0.85rem 0.75rem 1rem;
        border-bottom: 1px solid rgba(92, 61, 46, 0.12);
    }

    .hopsa-sidebar-header .hopsa-sidebar-header-brand {
        margin: 0;
        padding: 0;
        border-bottom: none;
    }

    .hopsa-navbar-wrap .navbar-toggler {
        display: none !important;
    }

    .hopsa-navbar-wrap .container.px-0,
    .hopsa-navbar-wrap .hopsa-sidebar-shell {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        flex: 1 1 auto;
        min-height: 0;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
        overflow: hidden;
    }

    .hopsa-navbar-wrap .hopsa-sidebar-nav {
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        align-items: stretch;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 !important;
        width: 100%;
        overflow: hidden;
    }

    .hopsa-navbar-wrap .navbar-collapse,
    .hopsa-navbar-wrap .hopsa-nav-sidebar {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
        flex: 1 1 auto;
        -webkit-box-flex: 1;
        min-height: 0;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: none;
        margin-top: 0;
        padding-bottom: 0;
        border-top: none;
    }

    .hopsa-navbar-wrap .navbar-collapse.collapse:not(.show) {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
    }

    .hopsa-sidebar-menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        width: 100%;
    }

    .hopsa-main-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
        flex-wrap: nowrap !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hopsa-navbar-wrap .hopsa-main-nav .nav-link,
    .hopsa-navbar-wrap .hopsa-main-nav .hopsa-nav-text {
        color: #5C3D2E !important;
    }

    .hopsa-navbar-wrap .hopsa-main-nav .nav-link.active,
    .hopsa-navbar-wrap .hopsa-main-nav .nav-link.active .hopsa-nav-text {
        color: var(--bs-primary) !important;
        font-weight: 700;
    }

    .hopsa-navbar-wrap .hopsa-main-nav .hopsa-nav-icon {
        color: #E8B923 !important;
    }

    .hopsa-navbar-wrap .hopsa-main-nav .nav-link.active .hopsa-nav-icon {
        color: var(--bs-primary) !important;
    }

    .hopsa-main-nav > .nav-item,
    .hopsa-main-nav > a.nav-item.nav-link {
        width: 100%;
    }

    .hopsa-main-nav > a.nav-item.nav-link {
        display: flex;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
    }

    .hopsa-show-mobile.hopsa-sidebar-social,
    .hopsa-sidebar-social {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        width: 100%;
        margin-top: auto;
        padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
        border-top: 2px solid rgba(232, 185, 35, 0.45);
        background: linear-gradient(180deg, #F3EBD8 0%, #FBF6E8 100%);
        position: relative;
        z-index: 5;
    }

    .hopsa-sidebar-social-label {
        margin: 0 0 0.65rem;
        text-align: center;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--bs-primary);
    }

    /* Flex layout works on all mobile browsers (grid fallback) */
    .hopsa-sidebar-social-icons {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.35rem;
        width: 100%;
        margin: 0 auto;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hopsa-sidebar-social-btn,
    .hopsa-sidebar-social-btn:link,
    .hopsa-sidebar-social-btn:visited {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px;
        min-width: 36px !important;
        min-height: 36px !important;
        justify-self: center;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #FBF6E8 !important;
        border: 2px solid #E8B923 !important;
        color: #5C3D2E !important;
        text-decoration: none !important;
        font-size: 0.95rem;
        box-shadow: 0 2px 8px rgba(46, 31, 20, 0.15);
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .hopsa-sidebar-social-btn i,
    .hopsa-sidebar-social-btn .fab,
    .hopsa-sidebar-social-btn i::before,
    .hopsa-sidebar-social-btn .fab::before {
        color: #5C3D2E !important;
    }

    .hopsa-sidebar-social-btn:hover,
    .hopsa-sidebar-social-btn:focus {
        background-color: #E8B923 !important;
        border-color: #5C3D2E !important;
        color: #2E1F14 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(46, 31, 20, 0.2);
    }

    .hopsa-sidebar-social-btn:hover i,
    .hopsa-sidebar-social-btn:focus i,
    .hopsa-sidebar-social-btn:hover i::before,
    .hopsa-sidebar-social-btn:hover .fab::before,
    .hopsa-sidebar-social-btn:focus i::before,
    .hopsa-sidebar-social-btn:focus .fab::before {
        color: #2E1F14 !important;
    }

    .hopsa-navbar-wrap .navbar .dropdown-menu.dropdown-menu-end {
        right: auto;
        left: auto;
    }

    .hopsa-main-nav .nav-link {
        white-space: normal;
        text-align: left;
        justify-content: flex-start;
        width: 100%;
    }

    .hopsa-navbar-wrap .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        inset: auto !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0.25rem 0;
        border: none;
        border-radius: 0 !important;
        box-shadow: none;
        background: rgba(92, 61, 46, 0.07) !important;
    }

    .hopsa-navbar-wrap .navbar .dropdown-menu:not(.show) {
        display: none !important;
    }

    .hopsa-navbar-wrap .navbar .dropdown-menu.show {
        display: block !important;
        max-height: none;
        height: auto;
        position: static !important;
        transform: none !important;
        inset: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    .hopsa-sidebar-dropdown-toggle {
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: rgba(232, 185, 35, 0.35);
    }

    .hopsa-sidebar-dropdown-toggle .hopsa-nav-icon,
    .hopsa-sidebar-dropdown-toggle .hopsa-nav-text {
        pointer-events: none;
    }

    .hopsa-main-nav .nav-item.dropdown {
        overflow: visible;
        flex-shrink: 0;
    }

    .hopsa-sidebar-dropdown-toggle::after {
        transition: transform 0.25s ease;
    }

    .hopsa-sidebar-dropdown-toggle.show::after {
        transform: rotate(180deg);
    }

    .hopsa-navbar-wrap .dropdown-menu .dropdown-item {
        white-space: normal;
        text-align: left;
        padding: 0.65rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
        width: 100%;
        font-size: 0.95rem;
        -webkit-tap-highlight-color: rgba(232, 185, 35, 0.35);
    }

    .hopsa-navbar-wrap .dropdown-menu .dropdown-item .hopsa-nav-icon {
        width: 1.25rem;
        font-size: 1rem;
        color: #E8B923;
    }

    .hopsa-navbar-wrap .dropdown-menu .dropdown-item.active .hopsa-nav-icon {
        color: var(--bs-primary);
    }

    .page-header,
    .page-header-about,
    .page-header-lab,
    .page-header-farm,
    .page-header-past-projects,
    .page-header-give,
    .page-header-events,
    .page-header-activities,
    .page-header-contact,
    .page-header-leadership,
    .page-header-mentorship,
    .page-header-shop,
    .page-header-gallery,
    .page-header-register,
    .page-header-join-us,
    .page-header-volunteer {
        min-height: 220px !important;
    }

    .page-header .display-2,
    .give-page-title,
    .events-page-title {
        font-size: clamp(1.65rem, 7vw, 2.5rem) !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .container,
    .container-fluid {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .contact-quick-strip,
    .gallery-links-strip,
    .register-quick-strip,
    .volunteer-quick-strip,
    .account-quick-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .contact-quick-item,
    .gallery-link-pill {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .shop-products-row > [class*="col-"] .shop-product-card {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .register-portal-actions .btn,
    .register-cta-btn,
    .volunteer-form-actions .btn,
    .lab-donate-submit,
    .contact-form .btn,
    .shop-order-note .btn {
        width: 100%;
    }

    .register-portal-actions {
        flex-direction: column;
    }

    .mentorship-launch-row .btn,
    .mentorship-support-panel .btn {
        width: 100%;
    }

    .past-activity-card,
    .events-program-card {
        margin-bottom: 0.5rem;
    }

    .leadership-advisory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .home-faq-section .hopsa-faq-wrap,
    .container .hopsa-faq-wrap {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hopsa-faq-accordion .accordion-item {
        margin-bottom: 0.75rem;
    }

    .hopsa-faq-accordion .accordion-button {
        font-size: 0.92rem;
        padding: 0.85rem 2.5rem 0.85rem 1rem;
        white-space: normal;
        text-align: left;
        line-height: 1.35;
    }

    .hopsa-faq-accordion .accordion-body {
        font-size: 0.9rem;
        padding: 1rem 1.1rem;
        line-height: 1.65;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hopsa-faq-accordion .accordion-collapse.collapsing,
    .hopsa-faq-accordion .accordion-collapse.show {
        visibility: visible;
    }

    .footer.footer-hopsa .row.g-4,
    .footer.footer-hopsa .row.g-lg-5 {
        text-align: center;
    }

    .footer.footer-hopsa .hopsa-footer-social {
        flex-wrap: nowrap;
        justify-content: center;
        gap: clamp(0.4rem, 2vw, 0.55rem);
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
    }

    .footer.footer-hopsa .hopsa-footer-social::-webkit-scrollbar {
        display: none;
    }

    .footer.footer-hopsa .hopsa-footer-social-btn,
    .footer.footer-hopsa .hopsa-footer-social-btn:link,
    .footer.footer-hopsa .hopsa-footer-social-btn:visited {
        width: clamp(36px, 9vw, 42px);
        height: clamp(36px, 9vw, 42px);
        min-width: clamp(36px, 9vw, 42px);
        min-height: clamp(36px, 9vw, 42px);
        max-width: clamp(36px, 9vw, 42px);
    }

    .footer.footer-hopsa .hopsa-footer-social-btn i {
        font-size: clamp(0.85rem, 3.2vw, 1rem);
    }

    .back-to-top {
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .about-anchor {
        scroll-margin-top: 1.5rem;
    }
}

@media screen and (min-width: 1200px) {
    body {
        padding-left: 0;
    }

    body.hopsa-sidebar-open,
    body.hopsa-sidebar-closed,
    body.hopsa-sidebar-lock {
        overflow: visible;
        touch-action: auto;
    }

    .hopsa-show-mobile,
    .hopsa-sidebar-backdrop,
    .hopsa-mobile-topbar,
    .hopsa-mobile-contact-bar,
    .hopsa-sidebar-header,
    .hopsa-show-mobile.hopsa-sidebar-social {
        display: none !important;
    }

    .hopsa-navbar-wrap {
        position: sticky;
        width: auto;
        height: auto;
        overflow: visible;
        flex-direction: row;
        border-right: none;
        box-shadow: 0 2px 14px rgba(46, 31, 20, 0.1);
        transform: none;
        visibility: visible;
    }

    .hopsa-navbar-wrap .navbar-toggler {
        display: none;
    }

    .hopsa-nav-more .hopsa-more-submenu {
        display: none !important;
    }

    .hopsa-nav-more:hover .hopsa-more-submenu,
    .hopsa-nav-more .hopsa-more-submenu.show {
        display: block !important;
    }

    .hopsa-nav-more .dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 1rem !important;
        min-height: auto;
    }

    .hopsa-nav-more .dropdown-menu .dropdown-item .hopsa-nav-icon {
        width: 1rem;
        font-size: 0.9rem;
        color: var(--bs-secondary);
    }

    .hopsa-sidebar-social {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .hopsa-brand-text {
        font-size: 1.15rem;
    }

    .hero-header,
    .page-header-content {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-header-home,
    .hero-header-home .hero-carousel .carousel-inner,
    .hero-header-home .hero-carousel .carousel-item,
    .hero-header-home .hero-slide-img,
    .hero-header-home .hero-content {
        min-height: 400px;
    }

    .hero-header-home .hero-subtitle {
        font-size: 1rem;
    }

    .hero-header-home .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-header-home .hero-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .gallery-featured .gallery-tile-tall {
        min-height: 280px;
    }

    .gallery-featured .col-lg-4.d-flex {
        min-height: 0;
    }

    .leadership-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .school-anthem-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .spotlight-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gallery-page-grid .gallery-tile {
        min-height: 160px;
    }

    .gallery-tile-tall {
        min-height: 200px !important;
    }

    .leadership-advisory-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-info-icon {
        margin-bottom: 0.25rem;
    }

    .volunteer-check-grid > .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .register-benefits-row > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-jump-card {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .hopsa-brand-text {
        font-size: 1.05rem;
    }

    .navbar-brand img {
        height: 36px !important;
    }

    .hero-header-home,
    .hero-header-home .hero-carousel .carousel-inner,
    .hero-header-home .hero-carousel .carousel-item,
    .hero-header-home .hero-slide-img,
    .hero-header-home .hero-content {
        min-height: 340px;
    }

    .hero-header-home .hero-eyebrow {
        font-size: 0.95rem;
    }

    .hero-header-home .carousel-control-prev,
    .hero-header-home .carousel-control-next {
        width: 12%;
        min-width: 44px;
    }

    .lab-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .lab-amount-btn {
        font-size: 0.78rem;
        padding: 0.55rem 0.35rem;
    }

    .gallery-page-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .past-activities-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .events-cards-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .register-photo-stack {
        flex-direction: column;
    }

    .school-anthem-gallery {
        grid-template-columns: 1fr;
    }

    .page-header .breadcrumb,
    .events-page-breadcrumb .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .volunteer-form-panel,
    .contact-form-panel,
    .register-pride-card-body,
    .register-give-panel {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .container .row.g-4 > [class*="col-md-"] .btn:not(.hopsa-footer-social-btn),
    .container .row.g-4.mb-5 > [class*="col-md-"] .btn:not(.hopsa-footer-social-btn) {
        width: 100%;
    }

    .about-anchor {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 399.98px) {
    .topbar small {
        font-size: 0.7rem;
    }

    .contact-quick-item,
    .gallery-link-pill {
        font-size: 0.88rem;
        padding: 0.65rem 1rem;
    }
}

/*** Responsive hosting polish — desktop + mobile ***/
*,
*::before,
*::after {
    box-sizing: border-box;
}

iframe,
embed,
object,
video {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hopsa-main-nav .nav-link {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.82rem;
        gap: 0.3rem;
    }

    .hopsa-main-nav .hopsa-nav-icon {
        width: 1rem;
        font-size: 0.85rem;
    }

    .hopsa-topbar .top-info small {
        font-size: 0.78rem;
    }

    .hopsa-topbar-social {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

@media (max-width: 1199.98px) {
    .hero-header,
    .page-header,
    .container-fluid.footer,
    .container-fluid.copyright {
        width: 100%;
        max-width: 100%;
    }

    .hopsa-nav-more.d-none {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hopsa-navbar-wrap {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: #FBF6E8;
    }

    .hopsa-main-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.2rem;
    }

    .dropdown-menu {
        max-width: min(100vw, 320px);
    }
}

@media (min-width: 1400px) {
    .hopsa-main-nav {
        flex-wrap: nowrap;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hopsa-main-nav .nav-link,
    .hopsa-navbar-wrap .dropdown-menu .dropdown-item,
    .hopsa-sidebar-social-btn,
    .hopsa-sidebar-open-btn,
    .hopsa-sidebar-close-btn,
    .btn:not(.hopsa-footer-social-btn),
    .hopsa-topbar-social {
        min-height: 44px;
    }

    .hopsa-footer-social-btn {
        min-height: unset;
    }
}

/*** Footer End ***/

/*** Code of Conduct + Events spotlight button ***/
.events-hoptober-section .events-hoptober-spotlight-btn {
    color: var(--bs-primary) !important;
    font-weight: 700;
    border: 2px solid #FBF6E8 !important;
    background: #FBF6E8 !important;
}

.events-hoptober-section .events-hoptober-spotlight-btn:hover,
.events-hoptober-section .events-hoptober-spotlight-btn:focus {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
}

.code-of-conduct-section {
    background: #FBF6E8;
}

.code-of-conduct-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.code-of-conduct-panel h2,
.code-of-conduct-panel h3 {
    color: var(--bs-primary);
    font-weight: 700;
}

.code-of-conduct-panel ul {
    padding-left: 1.25rem;
}

.code-of-conduct-panel li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #2e1f14;
}


.copyright-hopsa a.text-light:hover,
.copyright-hopsa a.text-light:focus {
    color: #E8B923 !important;
}
