/********** Template CSS **********/
:root {
    --primary: #52b3f3;
    --secondary: #ffffff;
    --background: #a9c3da;
    --light: #a9dbfc;
    --dark: #152440;
    --nav: #52b3f3e1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    margin: 0;
    padding: 0;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    line-height: 1.6;
}

h1, h2, .font-weight-bold {
    font-weight: 700 !important;
    color: var(--primary);
    font-size: clamp(1.5rem, 2.5vw, 3rem);
}

h3, h4, .font-weight-semi-bold {
    font-weight: 600 !important;
    font-size: clamp(1.25rem, 2vw, 2.5rem);
}

h5, h6, .font-weight-medium {
    font-weight: 500 !important;
    font-size: clamp(1rem, 1.5vw, 2rem);
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: clamp(0.875rem, 1vw, 1rem);
    padding: 0.5em 1em;
    border-radius: 0.25em;
    transition: 0.5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
    text-align: center;
    padding: 0;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
    text-align: center;
    padding: 0;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
    text-align: center;
    padding: 0;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

/* Navbar Styles */
.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 20px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: 0.5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--nav);
}

.navbar-brand .navbar-logo {
    max-width: 40px;
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
}

.navbar-brand h1 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    white-space: normal;
    text-align: left;
}

.navbar-toggler {
    border: none;
}

.navbar-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    padding: 10px 15px;
    text-align: center;
}

.collapse {
    flex-grow: 0;
    justify-content: flex-end;
}

/* Responsive Adjustments for Navbar */
@media (max-width: 991.98px) {
    .navbar {
        padding: 8px 10px;
    }

    .navbar-brand h1 {
        font-size: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 5px 10px;
    }

    .navbar-brand h1 {
        font-size: 0.9rem;
    }

    .navbar-nav {
        gap: 5px;
    }
}

/* Carousel Section Styles */
#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fits correctly */
}

/* Ensure carousel captions are centered and responsive */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

.carousel-caption h5 {
    font-size: clamp(1.25rem, 2vw, 2rem);
    text-transform: uppercase;
}

.carousel-caption h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.carousel-caption a {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    padding: 0.5em 1em;
    margin: 10px 0;
}

.carousel-item .p-3 {
    max-width: 90%;
    padding: 10px;
}

.carousel-control-prev, 
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.3); /* Improve visibility of carousel controls */
    border-radius: 50%;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-color: #00c4f500; /* Ensure carousel control icons are visible */
}

/* Responsive Adjustments for Carousel */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .carousel-caption h5 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }

    .carousel-caption a {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        padding: 0.4em 1em;
    }

    /* Adjust padding in carousel for smaller screens */
    .carousel-item .p-3 {
        max-width: 85%;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
    }

    .carousel-caption h5 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .carousel-caption a {
        font-size: clamp(0.8rem, 1.2vw, 1rem);
        padding: 0.4em 0.8em;
    }

    /* Adjust the carousel controls size for mobile */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }

    .carousel-item .p-3 {
        max-width: 80%;
    }
}

/* Other Section Styles */
.service-item {
    position: relative;
    overflow: hidden;
    height: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #dfe6f1;
    transition: 0.5s;
}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: 0.3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

/* Other Adjustments */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/********** Team Section Styles **********/
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-item img {
    transition: transform 0.5s ease;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    transition: 0.5s ease;
    opacity: 0;
    transform: translateY(100%);
    text-align: center;
}

.team-item:hover .team-text {
    opacity: 1;
    transform: translateY(0);
}

.team-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-text p {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--light);
}

/* Responsive Adjustments for Team Section */
@media (max-width: 991.98px) {
    .team-item img {
        width: 100%;
    }

    .team-text h3 {
        font-size: 1.25rem;
    }

    .team-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .team-item {
        margin-bottom: 20px;
    }

    .team-text h3 {
        font-size: 1rem;
    }

    .team-text p {
        font-size: 0.8rem;
    }
}

/********** FAQ Section Styles **********/
.accordion-button {
    background-color: var(--dark);
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: var(--secondary);
    color: rgb(4, 5, 80);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
}

img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for FAQ Section */
@media (max-width: 991.98px) {
    .accordion {
        margin-top: 20px;
    }
}

.col-lg-6 {
    max-width: auto;
    max-height: auto;
}
