/********** Template CSS **********/
:root {
    --primary: #008000;
    --light: #FFF5F3;
    --dark: #103741;
}

.text-green {
    color: #008000 !important;
}

.breadcrumb-item.text-green a {
    color: #008000 !important;
}

.breadcrumb-item.text-green a:hover {
    color: #006400 !important;
}

.green-title {
    color: #008000;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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: 500;
    transition: .5s;
}

.btn-primary {
    background-color: white;
    border-color: #008000;
}

.btn-primary:hover {
    background-color: #90EE90;
    border-color: #006400;
}

.text-primary {
    color: white;
}

.btn.btn-primary {
    color: #008000;
}

.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: 50px;
}

.bg-light-green {
    background-color: #e8f7e8;
    border-radius: .25rem;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

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

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

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

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

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

/*** Header - Fixed Version ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    z-index: 2;
}

.header-carousel::before,
.page-header::before {
    top: 0;
    height: 10px;
    background: url(../images/bg-header-top.png) center top repeat-x;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    bottom: 0;
    background: url(../images/bg-header-bottom.png) center top repeat-x;
}

.header-carousel .position-absolute {
    height: 100%;
    background: rgba(0, 0, 0, .2);
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../images/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/*** Header Carousel - Mobile Fix ***/
.header-carousel {
    position: relative;
    height: 900px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    height: 100%;
    margin: 0;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .header-carousel {
        height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: relative; /* Changed from absolute to relative */
        min-height: 500px; /* Ensure minimum height */
    }
    
    .header-carousel .owl-nav {
        display: none; /* Optional: hide nav arrows on mobile */
    }
    
    .header-carousel .position-absolute {
        padding: 20px; /* Add padding for mobile content */
    }
    
    .header-carousel h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .header-carousel p {
        font-size: 16px !important;
    }
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}

/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}

/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/*** Forms ***/
.form-check {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-check-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

.form-check-input:checked {
    background-color: #008000;
}

.form-check-input:checked::before {
    font-size: 16px;
    color: white;
    position: absolute;
    top: 0;
    left: 4px;
}

.form-check-label {
    color: #008000;
    margin-right: 10px;
}

.form-check a {
    color: #008000;
    text-decoration: none;
    margin-left: auto;
}

.form-check a:hover {
    text-decoration: underline;
}

.is-invalid {
    border-color: red !important;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    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(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

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

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** User Registration ***/
.user-registration {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.user-registration:hover {
    color: #008000;
}

/*** Custom Colors ***/
.text-purple {
    color: #6f42c1 !important;
}

.text-teal {
    color: #20c997 !important;
}

.text-orange {
    color: #fd7e14 !important;
}

.text-pink {
    color: #e83e8c !important;
}

.text-red {
    color: #f00e0e !important;
}

.text-gray {
    color: #6c757d !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: #fff;
}

.bg-teal {
    background-color: #20c997 !important;
    color: #fff;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: #fff;
}

.bg-pink {
    background-color: #e83e8c !important;
    color: #fff;
}

.bg-gray {
    background-color: #f8f9fa !important;
    color: #212529;
}

/* Image Container Styles */
.image-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Increased container width */
    height: 400px; /* Adjusted height for 4 images */
    margin: 30px auto;
    padding-bottom: 40px; /* Footer spacing */
}

/* Base Image Styles */
.overlapping-image {
    position: absolute;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Individual Image Positioning */
.image1 {
    top: 0;
    left: 0;
    z-index: 4;
    transform: rotate(-5deg);
}

.image2 {
    top: 30px;
    left: 180px;
    z-index: 3;
    transform: rotate(17deg);
}

.image3 {
    top: 120px;
    left: 30px;
    z-index: 2;
    transform: rotate(-15deg);
}

.image4 {
    top: 150px;
    left: 200px;
    z-index: 1;
    transform: rotate(9deg);
}

/* Hover Effects */
.overlapping-image:hover {
    z-index: 10;
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Tablet and Mobile Responsiveness */
@media (max-width: 768px) {
    .image-container {
        height: 700px; /* Taller container for 4 images */
        margin-bottom: 80px;
    }
    
    /* Adjusted positioning for tablet */
    .image1 {
        top: 40px;
        left: 10px;
    }
    
    .image2 {
        top: 40px;
        left: calc(50% - 100px);
    }
    
    .image3 {
        top: 280px;
        left: 20px;
    }
    
    .image4 {
        top: 280px;
        left: calc(50% - 90px);
    }
    
    .overlapping-image {
        width: 200px;
        height: 200px;
    }
}

/* Mobile Responsiveness (smaller devices) */
@media (max-width: 500px) {
    .image-container {
        height: 800px; /* Even taller for small screens */
    }
    
    .overlapping-image {
        width: 150px;
        height: 150px;
    }
    
    .image1 {
        top: 30px;
        left: 15px;
    }
    
    .image2 {
        top: 30px;
        left: calc(50% - 75px);
    }
    
    .image3 {
        top: 200px;
        left: 15px;
    }
    
    .image4 {
        top: 200px;
        left: calc(50% - 75px);
    }
}

/* Very small mobile devices */
@media (max-width: 400px) {
    .image-container {
        height: 650px;
    }
    
    .overlapping-image {
        width: 130px;
        height: 130px;
    }
    
    .image2, .image4 {
        left: calc(50% - 65px);
    }
}