:root {
    --bs-tertiary: #887979;
}

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

@media (max-width: 1199.98px) {
    .nav-bar {
        padding: 0 30px;
    }
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }
}

.navbar .navbar-nav .nav-link {
    margin-right: 15px;
    margin-left: 15px;
    padding: 25px 0;
    color: var(--bs-dark);
    font-size: 17px;
    font-weight: 500;
    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: 120%;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .3s;
        opacity: 1;
    }
}

/* Dropdown Item Styling */
.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    padding-left: 25px;
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

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

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
@media (max-width: 767px) {
    .header-carousel .owl-nav {
    top: 75%;
}
}

.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: url(../img/bg.png) center center no-repeat;
    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: var(--bs-primary);
}

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


/*** 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-primary);
}

.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-primary);
    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-primary);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--text-primary);
    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: var(--bs-white);
    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 Section ***/
.about-img {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image Style */
.about-img img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

/* Hover Effect */
.about-img img:hover {
    transform: scale(1.03);
}

/* Decorative Shapes */
/* .about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 35%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.about-img::before {
    top: 0;
    left: 0;
}

.about-img::after {
    bottom: 0;
    right: 0;
}
 */
/* Responsive */
@media (max-width: 991px) {
    .about-img img {
        min-height: 320px;
    }
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: url(../img/bg.png) 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;
}

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


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(../img/bg.png) 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);
}

/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}
.service-inner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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


/*** Service Cards ***/
.service-card {
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    box-shadow: 0 8px 24px var(--card-shadow);
    transform: translateY(-5px);
}


.service-card .service-inner {
    position: relative;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

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

.service-card .service-info {
    padding: 20px;
    text-align: center;
}

.service-card .service-info h5 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}


.service-card .service-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-service {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 20px;
    /* border-radius: 6px; */
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

/* Service Details Box */
.service-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
}



/* Title */
.service-title {
    color: var(--text-header);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Main Image */
.service-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px solid var(--accent-color);
    margin-bottom: 25px;
    box-shadow: 0 8px 20px var(--shadow-color);
}


/* Paragraphs */
.service-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Related title */
.related-title {
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--text-header);
    font-weight: 600;
}

/* Highlights Section */
.service-highlights .highlight-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 25px;
    height: 100%;
    transition: 0.3s;
}

.service-highlights .highlight-box:hover {
    box-shadow: 0 10px 25px var(--shadow-color);
    transform: translateY(-4px);
}

/* Title */
.highlight-box h5 {
    color: var(--text-header);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Text */
.highlight-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/*** Services Carousel Nav - Right Side ***/
.services-carousel {
    position: relative;
}

.services-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: -1.7rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.services-carousel .owl-prev,
.services-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-color);
    background: var(--bg-primary);
    /* border-radius: 4px;             */
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.services-carousel .owl-prev:hover,
.services-carousel .owl-next:hover {
    color: var(--bg-primary);
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 12px var(--shadow-color);
}




/*** RoadMap ***/
.timeline {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
}

.roadmap {
    padding: 0 15px;
    position: relative;
    background: inherit;
    width: 50%;
    margin-top: -5px;
}

.roadmap.left {
    left: 0;
}

.roadmap.right {
    left: 50%;
}

/*** Lines ***/
.roadmap::before,
.roadmap::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 5px;
    background: var(--accent-color);
    z-index: 1;
}

.roadmap.left::before {
    top: 0;
    right: 0;
}

.roadmap.right::before {
    bottom: 0;
    left: 0;
}

.roadmap.left::after {
    bottom: 0;
    right: 0;
}

.roadmap.right::after {
    top: 0;
    left: 0;
}

.roadmap:first-child::before,
.roadmap:last-child::before {
    display: none;
}

/*** Card Content ***/
.roadmap .content {
    padding: 25px;
    background: var(--card-bg);
    position: relative;
    border-right: 5px solid var(--accent-color);
    border-left: 5px solid var(--border-color);
    border-radius: 15px 0 0 15px;
    box-shadow: 0 10px 40px var(--card-shadow);
}

.roadmap.right .content {
    border-right: 5px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 15px 15px 0;
}

/***  Heading ***/
.roadmap .content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary);
}

/***  Year Badge ** */
.roadmap .content h2 span {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 12px;
    color: #fff;
    background: var(--accent-color);
    border-radius: 6px;
    font-size: 14px;
}

/***  Paragraph ** */
.roadmap .content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}


/***  Responsive – Mobile ***/

@media (max-width: 768px) {

    .timeline {
        padding: 20px 0;
    }

    .roadmap {
        width: 100%;
        left: 0 !important;
        padding: 0 15px 25px;
        margin-top: 0;
    }

    /*** Remove side lines ***/
    .roadmap::before,
    .roadmap::after {
        display: none;
    }

    .roadmap .content {
        border-left: 5px solid var(--accent-color);
        border-right: none;
        border-radius: 12px;
    }

    .roadmap.right .content {
        border-left: 5px solid var(--accent-color);
        border-right: none;
        border-radius: 12px;
    }

    .roadmap .content h2 {
        font-size: 16px;
    }

    .roadmap .content p {
        font-size: 14px;
    }
}

/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(19, 5, 5, 0.648), rgba(19, 5, 5, 0.95)), url(../img/bg-footer.jpg) 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); */
    border-top: 1px solid var(--text-secondary);
}



/*** Custom ***/
 .custom-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}
.custom-item {
    overflow: hidden;
}

.custom-item .btn-square {
    width: 65px;
    height: 65px;
}

.custom-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.custom-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Custom Cards ***/
.custom-card {
    background-color: var(--card-bg);
    /* border-radius: 6px;                          */
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.custom-card:hover {
    box-shadow: 0 8px 24px var(--card-shadow);
    transform: translateY(-5px);
}

.custom-card .custom-inner {
    position: relative;
    overflow: hidden;
}

.custom-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.custom-card:hover img {
    transform: scale(1.1);
}

.custom-card .custom-info {
    padding: 20px;
    text-align: center;
}

.custom-card .custom-info h5 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-card .custom-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-custom {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}


/* Custom Details Box */
.custom-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
}


/* Title */
.custom-title-text {
    color: var(--text-header);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Main Image */
.custom-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px var(--shadow-color);
}


/*** Custom Carousel Nav - Right Side ***/
.custom-carousel {
    position: relative;
}

.custom-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: -1.8rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.custom-carousel .owl-prev,
.custom-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-color);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.custom-carousel .owl-prev:hover,
.custom-carousel .owl-next:hover {
    color: var(--bg-primary);
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* Custom Responsive Logo */
.navbar-brand img {
    max-height: 50px;
    transition: max-height 0.3s ease;
}

@media (max-width: 991.98px) {
.navbar-brand img {
    max-height: 50px;
}
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 25px;
    }
}

/* Navbar Background based on Mode */
body:not(.dark-mode) .nav-bar {
    background-color: #f5f4f4 !important;
}

body.dark-mode .nav-bar {
    background-color: #1a1a1a !important;
}

/* Dropdown Fixes */
.navbar .dropdown-menu {
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode .navbar .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

body.dark-mode .navbar .dropdown-item {
    color: #f5f4f4 !important;
}

body.dark-mode .navbar .dropdown-item:hover {
    background-color: var(--accent-color) !important;
    color: #000000 !important;
}
