/********** Template CSS **********/
:root {
    --bs-tertiary: #797E88;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar ***/
.top-bar {
    height: 90px;
    padding: 0 90px;
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background-color: #ffffff;
    background-image: none !important;
}

.header-carousel {
    position: relative;
    background: linear-gradient(rgba(15, 52, 24, 0.82), rgba(15, 52, 24, 0.82)), 
                url("../img/aqaimg/img%2018.jpeg") center center / cover no-repeat;
    background-color: #0f3418; /* Lush fallback */
    min-height: 550px;
}

.header-carousel .container {
    padding: 100px 0;
    text-align: center;
}

.header-carousel .carousel-item {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: transparent !important;
}

.header-carousel .carousel-item h1 {
    color: #ffffff !important;
    text-shadow: none !important; /* Remove the blurry glow */
    font-weight: 800;
}

.header-carousel .carousel-item p {
    color: #e2e8f0 !important;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.25rem;
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .owl-nav {
    display: none !important;
}

.header-carousel .carousel-text h1,
.page-header h1 {
    color: var(--brand-primary);
    text-shadow: none;
    font-weight: 700;
}

.header-carousel .carousel-text p {
    color: var(--brand-text);
    text-shadow: none;
    opacity: 0.85;
}

.carousel-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(33, 96, 85, 0.15);
    background: #fff;
}

.carousel-img img {
    transition: transform 0.8s ease;
}

.carousel-img:hover img {
    transform: scale(1.05);
}

.page-header {
    background: linear-gradient(to right, #0f3418, var(--brand-primary)), #0f3418;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-dark);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px 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(2);
        opacity: 0;
    }
}

#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: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before {
    top: 0px;
    left: 0px;
}

.about-img::after {
    right: 0px;
    bottom: 0px;
}


/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/aqaimg/img 15.jpeg") center center no-repeat;
    background-size: cover;
    color: #ffffff;
}

.service-title h1, .service-title p {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.service-item {
    overflow: hidden;
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../img/aqaimg/img 14.jpeg") center center no-repeat;
    background-size: cover;
    border-radius: 12px;
    overflow: hidden;
}

.banner .banner-inner h1, 
.banner .banner-inner p {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}


/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url("../img/aqaimg/img 17.jpeg") center center no-repeat;
    background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/aqaimg/img 10.jpeg") center center no-repeat;
    background-size: cover;
    color: #ffffff;
}

.testimonial-title h1, 
.testimonial-title p {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
}



/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(5, 19, 17, .95), rgba(5, 19, 17, .95)), url("../img/aqaimg/img 11.jpeg") center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-tertiary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
}


/*** AQA Brand Overrides ***/
:root {
    --brand-primary: #216055;
    --brand-primary-dark: #1a4d44;
    --brand-primary-light: #2a7a6b;
    --brand-primary-soft: rgba(33, 96, 85, 0.1);
    --brand-surface: #f4f9f8;
    --brand-surface-strong: #e6f2f0;
    --brand-text: #0f172a;
    --brand-muted: #64748b;
    --bs-primary: var(--brand-primary);
    --bs-secondary: var(--brand-primary-light);
    --bs-light: #ffffff;
    --bs-dark: var(--brand-primary-dark);
    --bs-tertiary: var(--brand-muted);
}

body {
    color: var(--brand-muted);
    overflow-x: hidden; /* Prevent animation overflow */
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-primary-dark);
}

.text-primary {
    color: var(--brand-primary) !important;
}

.text-dark {
    color: var(--brand-text) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.bg-secondary {
    background-color: var(--brand-primary-light) !important;
}

.btn-primary {
    color: var(--bs-white) !important;
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--bs-white) !important;
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
}

.btn-secondary {
    color: var(--brand-primary) !important;
    background-color: var(--bs-white) !important;
    border-color: rgba(33, 96, 85, 0.16) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--brand-primary-dark) !important;
    background-color: var(--brand-surface-strong) !important;
    border-color: rgba(33, 96, 85, 0.22) !important;
}

.btn-dark {
    color: var(--bs-white) !important;
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
}

.btn-dark:hover,
.btn-dark:focus {
    color: var(--bs-white) !important;
    background-color: #143a34 !important;
    border-color: #143a34 !important;
}

.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-secondary,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6 {
    color: var(--bs-white);
}

.bg-primary .text-dark,
.bg-secondary .text-dark {
    color: rgba(255, 255, 255, 0.86) !important;
}

.bg-primary .btn-secondary {
    color: var(--brand-primary) !important;
    background-color: var(--bs-white) !important;
    border-color: var(--bs-white) !important;
}

.bg-primary .btn-secondary:hover,
.bg-primary .btn-secondary:focus {
    color: var(--brand-primary-dark) !important;
    background-color: var(--brand-surface-strong) !important;
    border-color: var(--brand-surface-strong) !important;
}

.bg-primary .btn-dark {
    color: var(--bs-white) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
}

.bg-primary .btn-dark:hover,
.bg-primary .btn-dark:focus {
    background-color: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

.top-bar {
    height: auto;
    min-height: 90px;
    padding: 18px 90px;
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-surface) 100%) !important;
    border-bottom: 1px solid rgba(33, 96, 85, 0.08);
}

.top-bar .col-lg-4 > a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.top-bar .display-5 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--brand-primary) !important;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    letter-spacing: -0.03em;
}

.top-bar .display-5::before {
    content: "";
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex-shrink: 0;
    background: #ffffff url("../../assets/images/logo/qt=q_95.jpg") center center / contain no-repeat;
    border: 1px solid rgba(33, 96, 85, 0.12);
    box-shadow: 0 10px 22px rgba(33, 96, 85, 0.14);
}

.top-bar h6.text-primary {
    color: var(--brand-primary) !important;
}

.top-bar .text-white {
    color: var(--brand-muted) !important;
}

.top-bar .btn-square.bg-primary {
    background: #ffffff !important;
    border: 1px solid rgba(33, 96, 85, 0.12);
    box-shadow: 0 10px 18px rgba(33, 96, 85, 0.08);
}

.top-bar .btn-square.bg-primary .text-dark {
    color: var(--brand-primary) !important;
}

.navbar.navbar-dark {
    background: linear-gradient(135deg, #216055 0%, #2a7a6b 100%) !important;
    box-shadow: 0 14px 30px rgba(33, 96, 85, 0.16);
}

.navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.84);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-menu {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.bg-primary .btn-play,
.bg-primary .btn-play:before,
.bg-primary .btn-play:after {
    background: var(--bs-white);
}

.bg-primary .btn-play span {
    border-left-color: var(--brand-primary);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    color: var(--bs-white);
}

.footer {
    color: rgba(226, 232, 240, 0.78);
    background: linear-gradient(rgba(21, 60, 53, 0.96), rgba(21, 60, 53, 0.96)), url("../img/aqaimg/img 11.jpeg") center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-link {
    color: rgba(226, 232, 240, 0.78);
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
}

.footer .copyright a {
    color: #dff4ef;
}

.footer .copyright a:hover {
    color: var(--bs-white);
}


/*** Floating Chatbot ***/
#aqa-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: "Open Sans", sans-serif;
}

#aqa-chatbot-toggle {
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(33, 96, 85, 0.25);
    cursor: pointer;
}

#aqa-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: min(360px, 90vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

#aqa-chatbot-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.aqa-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--brand-primary);
    color: #ffffff;
}

.aqa-chatbot-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

#aqa-chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

#aqa-chatbot-messages {
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 16px;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aqa-chatbot-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
}

.aqa-chatbot-bot {
    background: #ffffff;
    color: #1f2937;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.aqa-chatbot-user {
    background: var(--brand-primary);
    color: #ffffff;
    align-self: flex-end;
}

#aqa-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

#aqa-chatbot-input {
    flex: 1;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}

#aqa-chatbot-form button {
    border: none;
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .top-bar {
        padding: 18px 20px;
    }

    .nav-bar {
        padding: 0 20px;
    }

    .top-bar .display-5 {
        justify-content: center;
        font-size: 1.5rem;
    }

    .top-bar .display-5::before {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

@media (max-width: 575.98px) {
    .top-bar .display-5 {
        font-size: 1.3rem;
        gap: 10px;
    }

    .top-bar .display-5::before {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
}

/*** Governance Card (Sample Image Style) ***/
.governance-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 200px; /* Fixed height to keep grid uniform */
    border: 1px solid rgba(0,0,0,0.02);
}

.governance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.governance-card .card-img-wrapper {
    flex: 0 0 160px; /* Controlled width for portraits */
    height: 100%;
    background-color: #f0f0f0;
}

.governance-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces landscapes to crop correctly */
    object-position: top center;
}

.governance-card .card-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.governance-card .card-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--brand-primary);
}

.governance-card .card-content span {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.governance-card .card-content h4 {
    margin-bottom: 5px;
    color: var(--brand-primary);
}

.governance-card .card-content span {
    font-size: 14px;
    color: var(--brand-muted);
    display: block;
    margin-bottom: 15px;
}

/* Ketepa-style Leadership Grid */
.leadership-item {
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.leadership-item:hover {
    transform: translateY(-5px);
}

.leader-portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 5px;
    margin: 0 auto 20px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.leadership-item:hover .leader-portrait {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(33, 96, 85, 0.15);
}

.leader-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Focus higher up to avoid cutting foreheads */
    border-radius: 50%;
}

.leader-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary) !important;
    margin-bottom: 5px;
    line-height: 1.2;
}

.leader-role {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .leader-portrait {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .leader-portrait {
        width: 130px;
        height: 130px;
        padding: 3px;
        margin-bottom: 12px;
    }
    .leader-name {
        font-size: 0.9rem;
    }
    .leader-role {
        font-size: 0.7rem;
    }
    .leadership-item {
        margin-bottom: 30px;
    }
}

.governance-card .card-content a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-primary);
}

@media (max-width: 991px) {
    .governance-card {
        flex-direction: column;
        height: auto;
    }
    .governance-card .card-img-wrapper {
        flex: 0 0 250px;
        width: 100%;
    }
}

/*** Hero Text Accessibility ***/
.header-carousel .owl-item.active .carousel-text h1 {
    animation: fadeInUp 1s both;
}

.header-carousel .owl-item.active .carousel-text p {
    animation: fadeInUp 1s both 0.3s;
}

.header-carousel .owl-item.active .carousel-text .btn {
    animation: fadeInUp 1s both 0.6s;
}

/*** Event Highlights (Sample Image Style) ***/
.event-highlight {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    height: 100%; /* Keep columns equal */
}

.event-highlight img {
    width: 100%;
    height: 250px; /* Unified height for highlights */
    object-fit: cover;
}

.event-highlight .event-details {
    padding: 20px;
}

.event-highlight h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand-text);
}

.event-highlight p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--brand-muted);
}

.event-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #00aeef; /* Sample image button color */
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.event-btn:hover {
    background: #008cc0;
}

.event-grid-mini img {
    height: 150px;
}

.event-grid-mini h4 {
    font-size: 16px;
    margin-top: 10px;
}
