/********** Template CSS **********/
:root {
    --bs-primary: #4169E1;
    --bs-primary-dark: #2A4FC7;
    --bs-secondary: #00B3B3;
    --bs-orange: #FFD700;
    --bs-tertiary: #6C757D;
}

.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: 45px;
    padding: 0;
    background: #ffffff;
    color: #333333;
}

.top-bar-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
    background: var(--bs-primary);
    color: #ffffff;
}

.top-bar-text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333;
}

.top-bar-social {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 4px;
    background: var(--bs-primary);
    color: #ffffff;
}

/* Hide topbar on mobile devices */
@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
}

.top-bar h {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0;
    transition: .5s;
    background: #ffffff;
}
/*** Improved Mobile Dropdown Styles ***/
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        border: none;
        margin: 5px 0;
        padding: 10px;
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 15px;
        font-size: 15px;
        border-radius: 6px;
        margin: 3px 0;
        color: #333 !important;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item.active {
        background: var(--bs-primary) !important;
        color: white !important;
        transform: translateX(5px);
    }
    
    /* Services dropdown specific styling for mobile */
    .navbar-nav .dropdown-menu .container-fluid {
        padding: 0;
    }
    
    .navbar-nav .dropdown-menu .row {
        margin: 0 -5px;
    }
    
    .navbar-nav .dropdown-menu .col-6 {
        padding: 0 5px;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        white-space: normal;
        word-wrap: break-word;
        margin-bottom: 6px;
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item.fw-bold {
        font-size: 15px;
        padding: 10px 15px;
        background: rgba(65, 105, 225, 0.1);
    }
    
    /* Better dropdown toggle indication */
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

/* Fix dropdown positioning on mobile */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* Ensure dropdowns are properly spaced on mobile */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-menu {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Better hover effects for desktop */
@media (min-width: 992px) {
    .navbar .dropdown-menu .dropdown-item {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .navbar .dropdown-menu .dropdown-item:hover {
        transform: translateX(8px);
        padding-left: 20px;
    }
    
    .navbar .dropdown-menu .dropdown-item:hover::before {
        content: "→";
        position: absolute;
        left: 8px;
        color: var(--bs-primary);
    }
}
/* Hide company name on small screens */
@media (max-width: 991.98px) {
    .company_name {
        display: none !important;
    }
    
    .nav-bar {
        padding: 0;
    }
    
    .navbar-brand {
        font-size: 14px !important;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
}

/* Ensure navbar is full width on mobile and stays fixed */
@media (max-width: 991.98px) {
    .nav-bar {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative;
    }
    
    .navbar {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .navbar .container-fluid {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .navbar-collapse {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .navbar-nav {
        width: 100% !important;
    }
    
    .navbar-brand {
        padding-left: 15px !important;
    }
    
    .navbar-toggler {
        margin-right: 15px !important;
    }
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #333333 !important;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-orange) !important;
    background-color: rgba(65, 105, 225, 0.1);
}

.navbar .navbar-nav .dropdown-toggle::after {
    color: #333333;
}

.navbar .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar .navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.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 rgba(0, 0, 0, 0.1);
    }
}

@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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
}

.header-carousel .carousel-text h1,
.header-carousel .carousel-text p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-carousel .carousel-text .text-orange {
    color: var(--bs-orange) !important;
}

.header-carousel .carousel-img {
    position: relative;
}

/* Hide carousel images on mobile - show text only */
@media (max-width: 991px) {
    .header-carousel .carousel-img {
        display: none !important;
    }
    
    .header-carousel .carousel-text {
        text-align: center;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1,
.page-header .breadcrumb {
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: #ffffff !important;
}

.page-header .breadcrumb-item.active {
    color: var(--bs-orange) !important;
}

.page-header h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/*** 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;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
}

.service-title h1,
.service-title p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.service-title .text-orange {
    color: var(--bs-orange) !important;
}

.service-item {
    overflow: hidden;
    background: #ffffff;
}

.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;
    background: #ffffff;
}

.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: url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
}

.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;
    background: #ffffff;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80) 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;
    background: #ffffff;
}

.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.6), rgba(0, 0, 0, 0.6)), url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
}

.testimonial-title h1,
.testimonial-title p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.testimonial-title .text-orange {
    color: var(--bs-orange) !important;
}

.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;
    }
}



/*** CTA Section ***/
.cta-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80) center center no-repeat;
    background-size: cover;
}

.cta-section h1,
.cta-section p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section .text-orange {
    color: var(--bs-orange) !important;
}

/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url(https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&h=1080&fit=crop&q=80) 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);
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: #4169E1 !important;
}
.bg-primary-dark {
    background-color: #2A4FC7 !important;
}

.bg-secondary {
    background-color: #00B3B3 !important;
}

.text-primary {
    color: #4169E1 !important;
}

.text-secondary {
    color: #00B3B3 !important;
}

.btn-primary {
    background-color: #4169E1;
    border-color: #4169E1;
}

.btn-primary:hover {
    background-color: #2A4FC7;
    border-color: #2A4FC7;
}

.btn-secondary {
    background-color: #00B3B3;
    border-color: #00B3B3;
}

.btn-secondary:hover {
    background-color: #008080;
    border-color: #008080;
}
.bg-light{
    background-color: white !important;
    color: black !important;
}
.bg-unify {
  background-color: white !important; /* your dark blue */
  color: black !important;
}


/* Orange Accent Color */
.text-orange {
    color: var(--bs-orange) !important;
}

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

.btn-orange {
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
    color: #333;
}

.btn-orange:hover {
    background-color: #E6C300;
    border-color: #E6C300;
    color: #333;
}

/* Additional white background elements */
body {
    background-color: #ffffff;
}

.service-item,
.donation-item,
.event-item,
.team-item {
    background: #ffffff;
}

/* Ensure text is readable on white backgrounds */
.navbar .navbar-nav .nav-link {
    color: #333333 !important;
}

.navbar .navbar-nav .dropdown-toggle::after {
    color: #333333;
}