/* Prevent horizontal overflow on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

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

#spinner.show {
    transition: opacity 0.8s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/

/*** Topbar Styles ***/
.topbar {
    font-size: 0.875rem;
}

.topbar .top-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.topbar .social-links {
    display: flex;
    gap: 0.25rem;
}

/* Adjust spacing and alignment for mobile */
@media (max-width: 991.98px) {
    .topbar {
        padding: 0.5rem 0;
    }

    .topbar .top-info {
        margin-bottom: 0.5rem;
    }

    .topbar .social-links {
        justify-content: center;
        padding-top: 0.25rem;
    }
}

/* Ensure text doesn't wrap in the topbar */
.topbar .text-nowrap {
    white-space: nowrap;
}

/* Ensure links are visible on hover */
.topbar a.text-white:hover {
    opacity: 0.8;
}

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

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

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

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

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

.wow,
.animated {
    animation-duration: 2s !important;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/*** Common CSS End ***/

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

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

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

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

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

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

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

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

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

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

.title-border-radius {
    border-radius: 10% 30%;
}

/*** Button End ***/

/*** Topbar Start ***/
.topbar .top-info {
    font-size: medium;
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

.topbar .top-link a:hover {
    background: var(--bs-secondary) !important;
}

.topbar .top-link a:hover i {
    color: var(--bs-primary) !important;
}

/*** Topbar End ***/

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

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

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

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

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

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

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

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.8);
}

/*** Navbar End ***/

/*** Hero Header ***/
.hero-header,
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)),
        url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 85vh;
    min-height: 600px;
}

.hero-carousel .carousel {
    position: relative;
    height: 85vh;
    min-height: 600px;
}

.hero-carousel .carousel-inner {
    height: 85vh;
    min-height: 600px;
}

.hero-carousel .carousel-item {
    height: 85vh;
    min-height: 600px;
}

.hero-carousel .carousel-indicators {
    bottom: 28px;
    z-index: 15;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: scale(1.2);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 15;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.hero-carousel {
    height: 85vh !important;
    min-height: 600px !important;
    overflow: hidden;
}

.hero-carousel .carousel {
    height: 85vh !important;
    min-height: 600px !important;
}

.hero-carousel .carousel-inner {
    height: 85vh !important;
    min-height: 600px !important;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 85vh !important;
    min-height: 600px !important;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

/* Desktop carousel images - ensure proper cover behavior */
.hero-carousel .carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for hero carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh !important;
        min-height: 400px !important;
        overflow: hidden;
    }

    .hero-carousel .carousel {
        height: 60vh !important;
        min-height: 400px !important;
    }

    .hero-carousel .carousel-inner {
        height: 60vh !important;
        min-height: 400px !important;
        overflow: hidden;
    }

    .hero-carousel .carousel-item {
        height: 60vh !important;
        min-height: 400px !important;
        position: relative;
        transition: transform 0.6s ease-in-out;
    }

    /* Mobile carousel images - fixed height with cover to fill container */
    .hero-carousel .carousel-item img {
        height: 60vh !important;
        min-height: 400px !important;
        width: 100%;
        object-fit: cover;
    }
}

/* Hero Header Original Theme Style */
.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 1.25rem;
    left: 9%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: left !important; /* Overriding to keep the left-align you requested */
    z-index: 10;
}

/* Hero content overlay with dark gradient for readability */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 10%;
    padding-top: 10%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-content-overlay .container-fluid {
    padding-left: 0 !important;
}

@media (min-width: 769px) {
    .hero-content-overlay {
        padding-top: 13%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    }

    /* Hero Text Size & Definition on Desktop */
    .hero-emboss.display-1 {
        font-size: 2.5rem !important;
        text-align: left !important;
        font-weight: 800 !important;
        color: #fff !important;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 1), 4px 4px 15px rgba(0, 0, 0, 0.8), 0px 0px 20px rgba(0, 0, 0, 0.6);
    }

    .hero-emboss:not(.display-1) {
        font-size: 1.6rem !important;
        text-align: left !important;
        font-weight: 800 !important;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 1), 4px 4px 15px rgba(0, 0, 0, 0.8), 0px 0px 20px rgba(0, 0, 0, 0.6);
    }
}

.hero-emboss {
    font-weight: 800;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1), 4px 4px 15px rgba(0, 0, 0, 0.8), 0px 0px 20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 769px) {
    .hero-content-overlay {
        padding-top: 13%;
    }

    .hero-content-overlay .container-fluid {
        margin-left: 1.5rem;
    }
}

/* Hero buttons - always in one row */
.hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}

.hero-buttons .btn,
.hero-buttons .hero-btn {
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 10px 8px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-buttons .btn:hover,
.hero-buttons .hero-btn:hover,
.hero-buttons .btn:active,
.hero-buttons .hero-btn:active {
    transform: translateY(3px);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

.hero-carousel,
.hero-owl-carousel,
.hero-owl-carousel .owl-stage-outer,
.hero-owl-carousel .owl-stage,
.hero-owl-carousel .owl-item,
.hero-slider-item {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Positioning Hero dots */
.hero-owl-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-owl-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-secondary);
}

.hero-slider-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100% !important;
}

/* Responsive adjustments for hero carousel */
@media (max-width: 768px) {

    .hero-carousel,
    .hero-owl-carousel,
    .hero-slider-item {
        height: 60vh !important;
        min-height: 400px !important;
        touch-action: pan-y pinch-zoom; /* Allow vertical scroll but enable horizontal swipe */
    }
}

/* Mobile carousel images - fixed height with cover to fill container */
.hero-carousel .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center;
    filter: brightness(0.8);
    -webkit-user-drag: none;
    user-select: none;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
}

.hero-carousel .carousel-control-prev {
    left: 15px;
}

.hero-carousel .carousel-control-next {
    right: 15px;
}

.hero-carousel .carousel-indicators {
    bottom: 4px;
    z-index: 20;
    pointer-events: auto;
}

.hero-carousel .carousel-indicators button {
    pointer-events: auto;
    cursor: pointer;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 40px;
    z-index: 10;
    pointer-events: none;
}

.hero-content-overlay * {
    pointer-events: auto;
}

.hero-content-overlay .container-fluid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-content-overlay .row {
    justify-content: center;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-content-overlay .col-lg-7,
.hero-content-overlay .col-md-12 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-content-overlay h1 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.hero-content-overlay .display-1 {
    font-size: 0.75rem !important;
    margin-bottom: 0.8rem !important;
    text-align: center !important;
}

.hero-content-overlay .hero-buttons {
    justify-content: center;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    margin-top: auto;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.hero-content-overlay .btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
    white-space: nowrap;
    flex-shrink: 0;
}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-carousel {
        height: 50vh !important;
        min-height: 350px !important;
    }

    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 50vh !important;
        min-height: 350px !important;
    }

    .hero-content-overlay {
        padding: 15px !important;
        padding-top: 25px !important;
        padding-bottom: 35px !important;
        align-items: flex-start !important;
        pointer-events: none !important;
    }

    .hero-content-overlay * {
        pointer-events: auto !important;
    }

    .hero-content-overlay .container-fluid {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .hero-content-overlay .row {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .hero-content-overlay .col-lg-7,
    .hero-content-overlay .col-md-12 {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .hero-content-overlay h1 {
        font-size: 0.8rem !important;
        text-align: center !important;
    }

    .hero-content-overlay .display-1 {
        font-size: 0.65rem !important;
        text-align: center !important;
    }

    .hero-content-overlay .btn {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        margin-bottom: 0 !important;
    }

    .hero-content-overlay .hero-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: auto !important;
        margin-bottom: 45px !important;
        position: relative;
        z-index: 10;
    }

    .hero-content-overlay .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }

    .hero-carousel .carousel-indicators {
        bottom: 2px;
        z-index: 20;
        pointer-events: auto;
    }

    .hero-carousel .carousel-indicators button {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Force mobile carousel to have fixed height */
@media (max-width: 768px) {
    .hero-carousel .carousel-item img {
        height: 100% !important;
        object-fit: cover !important;
    }
}

/*** Hero Header ***/

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

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 0;
}

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

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

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

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

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

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

#videoModal {
    z-index: 99999;
}

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

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

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

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

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

/*** About End ***/

/*** service Start ***/
.service {
    background: linear-gradient(rgba(255, 72, 128, 0.05),
            rgba(255, 72, 128, 0.2));
}

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

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

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

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

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

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

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

.service-item:hover .service-content-inner a.h4 {
    color: var(--bs-primary);
}

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

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

/* Global Owl Dots Styling for all sections */
.service-carousel .owl-dots,
.program-carousel .owl-dots,
.events-carousel .owl-dots,
.blog-carousel .owl-dots,
.team-carousel .owl-dots,
.testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-carousel .owl-dot.active,
.program-carousel .owl-dot.active,
.events-carousel .owl-dot.active,
.blog-carousel .owl-dot.active,
.team-carousel .owl-dot.active,
.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-secondary);
}

/*** Service End ***/

/*** Programs Start ***/
.program {
    background: linear-gradient(rgba(255, 72, 128, 0.1),
            rgba(255, 72, 128, 0.1));
}

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

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

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

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

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

/*** Programs End ***/

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

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

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

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

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

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

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

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

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

/*** Events End ***/

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

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

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

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

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

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

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

/*** Blog End ***/

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

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

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

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

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

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

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

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

.team .team-carousel {
    position: relative;
}

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

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

.team .team-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-secondary);
}

/*** Team end ***/

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

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

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

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

/*** testimonial End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 1)),
        url(../img/background.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer .footer-galary-img img {
    width: 100%;
    border-style: dotted;
    border-color: var(--bs-primary);
    transition: 0.5s;
}

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

.footer-item a.text-body:hover {
    color: var(--bs-secondary) !important;
}

/*** Footer End ***/
