/********** Template CSS **********/
:root {
    --primary: #2563eb;
    --secondary: #f59e0b;
    --light: #f8fafc;
    --dark: #0f172a;
    --accent: #10b981;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** 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 {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.btn.btn-primary {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
}

.btn.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.2);
}

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

.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.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;
    border-radius: 50%;
}


/*** Navbar ***/
.fixed-top {
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.fixed-top.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    transition: all 0.3s ease;
}

.fixed-top.scrolled .top-bar {
    background: rgba(15, 23, 42, 0.98);
}

.navbar {
    background: transparent;
    transition: all 0.3s ease;
}

.fixed-top.scrolled .navbar {
    background: rgba(15, 23, 42, 0.95);
}

/* Add slight text shadow for better readability over video */
.fixed-top:not(.scrolled) .navbar-nav .nav-link,
.fixed-top:not(.scrolled) .navbar-brand h1,
.fixed-top:not(.scrolled) .top-bar {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo shadow for better visibility over video */
.fixed-top:not(.scrolled) .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Ensure donate button is visible over video */
.fixed-top:not(.scrolled) .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fixed-top:not(.scrolled) .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.9);
    border-color: var(--primary);
    color: #FFFFFF;
}

/* Hamburger menu visibility over video on mobile */
.fixed-top:not(.scrolled) .navbar-toggler {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.fixed-top:not(.scrolled) .navbar-toggler-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.navbar-brand img {
    transition: all 0.3s ease;
}

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

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.3);
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        width: 150px !important;
        height: 90px !important;
    }

    /* Keep navbar transparent on mobile before scroll */
    .fixed-top:not(.scrolled) {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent) !important;
    }

    /* Keep top-bar transparent on mobile before scroll */
    .fixed-top:not(.scrolled) .top-bar {
        background: transparent !important;
    }

    /* Add solid background when scrolled */
    .fixed-top.scrolled {
        background: rgba(15, 23, 42, 0.98) !important;
    }

    .fixed-top.scrolled .top-bar {
        background: rgba(15, 23, 42, 0.98) !important;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .1);
        background: rgba(15, 23, 42, 0.98);
        padding: 15px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        margin-right: 0;
    }

    .navbar .navbar-nav .nav-link::after {
        display: none;
    }

    /* Force background on mobile when navbar is expanded */
    .fixed-top:not(.scrolled) .navbar-collapse.show,
    .fixed-top:not(.scrolled) .navbar-collapse.collapsing {
        background: rgba(15, 23, 42, 0.98);
    }

    /* Add background behind hamburger when expanded */
    .fixed-top:not(.scrolled) .navbar.navbar-expand-lg {
        background: transparent;
    }

    .fixed-top:not(.scrolled) .navbar-collapse.show {
        background: rgba(15, 23, 42, 0.98);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 23, 42, .75);
    z-index: 2;
    padding: 20px;
}

.carousel-caption h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

/* Video Background Styles */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
}

.video-background-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Desktop Video */
@media (min-width: 992px) {
    .video-background-container {
        height: 100vh;
        min-height: 700px;
        margin-bottom: 5rem;
    }
}

/* Mobile Video - Portrait Mode */
@media (max-width: 991.98px) {
    .video-background-container {
        height: 100vh;
        min-height: 600px;
        margin-bottom: 3rem;
    }

    .carousel-caption {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .video-background-container {
        min-height: 500px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(15, 23, 42, .85), rgba(15, 23, 42, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.causes-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.causes-item img {
    transition: transform 0.5s ease;
}

.causes-item:hover img {
    transform: scale(1.05);
}

.causes-item .progress {
    height: 8px;
    border-radius: 10px;
    overflow: visible;
    background: #e5e7eb;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 10px;
    transition: 5s;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 50px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .9);
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}

@media (max-width: 768px) {
    .causes-item {
        margin-bottom: 1.5rem;
    }
}


/*** Featured Member ***/
.container-xxl.bg-light {
    position: relative;
}

.container-xxl.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.featured-member-img {
    position: relative;
}

.featured-member-img .img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-member-img .img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.featured-member-img:hover .img-wrapper img {
    transform: scale(1.05);
}

.featured-member-img .member-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: var(--dark);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 150px;
    z-index: 10;
    border: 2px solid var(--primary);
}

.featured-member-img .member-badge .badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-member-img .member-badge p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--dark);
    font-weight: 700;
}

.featured-member-img .member-badge small {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.featured-member-img .member-badge i {
    color: var(--primary);
}

.featured-member-content h2 {
    color: var(--dark);
    font-weight: 700;
}

.featured-member-content .member-bio p {
    line-height: 1.8;
    color: #6b7280;
    text-align: justify;
}

.featured-member-content .testimonial-quote {
    background: var(--light);
    border-left: 5px solid var(--primary);
    margin-top: 1.5rem;
}

.featured-member-content .testimonial-quote p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
}

.member-bio-full {
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-bio-full.show {
    opacity: 1;
    transform: translateY(0);
}

.member-bio-excerpt {
    transition: opacity 0.3s ease;
}

.member-read-more-btn {
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-read-more-btn:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

.member-read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.member-read-more-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .featured-member-img {
        margin-bottom: 3rem;
    }

    .featured-member-img .img-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .featured-member-img .member-badge {
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
    }

    .featured-member-content .member-bio p {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .featured-member-img .member-badge {
        padding: 20px;
        min-width: 120px;
    }

    .featured-member-img .member-badge i {
        font-size: 1.5rem;
    }

    .featured-member-img .member-badge p {
        font-size: 0.8rem;
    }

    .featured-member-img .member-badge small {
        font-size: 0.7rem;
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.service-item img {
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .service-item {
        padding: 2rem 1.5rem !important;
    }
}


/*** Donate ***/
.donate {
    background: rgba(15, 23, 42, .9);
}

.btn-group .btn-light {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.donate input,
.donate .form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.donate input:focus,
.donate .form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .donate .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .donate .btn-group label {
        margin: 0 !important;
    }
}


/*** Team ***/
/* Hide entire team section on all pages - temporary */
/* Hide all team items */
.team-item,
.team-item * {
    display: none !important;
    visibility: hidden !important;
}

/* Hide parent container (works in all browsers) */
.container .row.g-4 > .col-lg-3.col-md-6 > .team-item {
    display: none !important;
}

/* Hide entire parent div containing team items */
.container > .row.g-4:has(.team-item) {
    display: none !important;
}

/* Hide section with "Team Members" badge */
div.d-inline-block.rounded-pill:contains("Team") {
    display: none !important;
}

/* Original team item styling (kept for when re-enabled) */
.team-item-original {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Team item hover and other styles - disabled while hidden */
.team-item-original:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.team-item-original img {
    position: relative;
    top: 0;
    transition: all 0.5s ease;
}

.team-item-original:hover img {
    top: -30px;
    transform: scale(1.05);
}

.team-item-original .team-text {
    position: relative;
    height: 100px;
    transition: all 0.5s ease;
    border-radius: 0 0 12px 12px;
}

.team-item-original:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item-original .team-text .team-social {
    opacity: 0;
    transition: all 0.5s ease;
}

.team-item-original:hover .team-text .team-social {
    opacity: 1;
}

.team-item-original .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 50%;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.team-item-original .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .team-item-original {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row .col-md-6[class*="col-lg-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
    padding: 20px 0;
}

.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

/* Testimonial Image Styling */
.testimonial-img-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-img-wrapper img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid var(--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-item:hover .testimonial-img-wrapper img {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

/* Active/Center testimonial gets emphasized */
.testimonial-carousel .owl-item.center .testimonial-img-wrapper img {
    width: 200px;
    height: 200px;
    border-width: 6px;
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Prevent distortion during transition */
.testimonial-carousel .owl-item {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.testimonial-carousel .owl-item img {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Testimonial Text Box */
.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.85);
    transition: all 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: all 0.5s ease;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text .text-primary {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Read More Button Styling */
.read-more-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(5px);
}

.read-more-btn[aria-expanded="true"] .read-more-text {
    display: none;
}

.read-more-btn[aria-expanded="true"] .read-less-text {
    display: inline !important;
}

.read-more-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

/* Testimonial Content */
.testimonial-excerpt {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-full {
    font-style: italic;
    line-height: 1.8;
    margin-top: 1rem;
}

.testimonial-full.show {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Arrows */
.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 2;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    border-color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .testimonial-img-wrapper {
        width: 170px;
        height: 170px;
        margin: 0 auto;
    }

    .testimonial-img-wrapper img {
        width: 140px;
        height: 140px;
    }

    .testimonial-carousel .owl-item.center .testimonial-img-wrapper img {
        width: 160px;
        height: 160px;
    }

    .testimonial-carousel .owl-item .testimonial-text {
        transform: scale(.95);
    }

    .testimonial-carousel .owl-nav {
        width: 90%;
        top: 90px;
        opacity: 1;
    }

    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        font-size: 30px;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.98);
    }
}

@media (max-width: 575.98px) {
    .testimonial-carousel .owl-nav {
        width: 95%;
        top: 80px;
    }

    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
}


/*** Footer ***/
.footer {
    background: var(--dark);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.6);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 5px;
}

.footer .btn.btn-link:hover::before {
    color: var(--primary);
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.footer .btn.btn-square:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: var(--primary);
    transition: all 0.3s ease;
}

.footer .copyright a:hover {
    color: var(--secondary);
}

.footer input.form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer input.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }

    .footer input.form-control {
        margin-bottom: 10px;
    }
}


/*** Additional Responsive Improvements ***/

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.display-4 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.display-6 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Form Improvements */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Better spacing for sections */
.container-xxl {
    padding-left: 15px;
    padding-right: 15px;
}

/* Image improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Rounded elements */
.rounded-pill {
    border-radius: 50px !important;
}

/* Back to top button enhancement */
.back-to-top {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* About Section Images - Universal Support for All Devices */
/* Target the about section image container specifically */
.position-relative.overflow-hidden.h-100[style*="min-height"] {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

/* Main background image - always maintain this layout */
.position-relative.overflow-hidden img.position-absolute.w-100.h-100 {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
}

/* Small overlay image - always maintain this layout */
.position-relative.overflow-hidden img.position-absolute.top-0.end-0 {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    object-fit: cover !important;
}

/* Responsive adjustments for all screen sizes */
@media (max-width: 991.98px) {
    .position-relative.overflow-hidden.h-100[style*="min-height"] {
        min-height: 400px !important;
    }
    
    .position-relative.overflow-hidden img.position-absolute.top-0.end-0 {
        width: 150px !important;
        height: 150px !important;
    }
}

@media (max-width: 767.98px) {
    .position-relative.overflow-hidden.h-100[style*="min-height"] {
        min-height: 350px !important;
    }
    
    .position-relative.overflow-hidden img.position-absolute.top-0.end-0 {
        width: 130px !important;
        height: 130px !important;
    }
}

@media (max-width: 575.98px) {
    .position-relative.overflow-hidden.h-100[style*="min-height"] {
        min-height: 300px !important;
    }
    
    .position-relative.overflow-hidden img.position-absolute.top-0.end-0 {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Mobile padding adjustments */
@media (max-width: 767.98px) {
    .container-xxl {
        padding-left: 12px;
        padding-right: 12px;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    /* About section button spacing on mobile */
    .about-buttons .btn.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
        width: 100%;
    }

    .about-buttons .btn:last-child {
        width: 100%;
    }
}

/* Touch target improvements for mobile */
@media (max-width: 767.98px) {
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}
