/********** Template CSS **********/
:root {
    --primary: #8db835;
    --secondary: #213336;
    --light: #F8F8F9;
    --dark: #001D23;
    --accent: #009688;
    --accent-light: #b2dfdb;
    --text-muted: rgba(255,255,255,0.5);
}

.contact {
    padding: 50px 0;
}

.section-header h2 {
    font-weight: bold;
    margin-bottom: 5px;
}

.section-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    margin: 10px auto 30px;
    border: none;
}

.info-box {
    background: var(--accent);
    color: var(--light);
    padding: 20px;
    border-radius: 10px;
    align-items: center;
}

.info-box i {
    font-size: 28px;
    margin-right: 15px;
    color: var(--accent-light);
}

.info-box h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-box p {
    margin: 0;
    line-height: 1.4;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 105px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 105px;
    }
}

section {
    padding: 80px 0 60px 0;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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;
}

/*** Top Bar & Navbar ***/
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--light);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    z-index: 1100;
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.top-bar-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--light);
}

.top-bar-content small {
    margin-right: 15px;
    white-space: normal;
}

.top-bar-content a {
    color: var(--light);
    text-decoration: none;
}

.top-bar-content i {
    margin-right: 5px;
}

@media (max-width: 450px) {
    .top-bar,
    .top-bar .location,
    .top-bar .email,
    .top-bar .phone {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        color: var(--light) !important;
    }

    .top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 8px 12px !important;
        gap: 4px !important;
    }

    .top-bar .email,
    .top-bar .phone {
        margin-top: 2px;
    }

    header {
        margin-top: 70px;
    }

    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
}

.custom-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 700px;
        width: 100%;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Ensure caption stays within image */
        box-sizing: border-box;
    }

    .custom-caption h1 {
        font-size: 2.2rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
        margin-bottom: 20px;
        word-break: break-word;
        /* Prevent overflow */
        max-width: 100%;
    }

    .custom-caption p {
        font-size: 1.1rem;
        color: #f0f0f0;
        margin-bottom: 24px;
        word-break: break-word;
        max-width: 100%;
    }

    .custom-caption .btn {
        font-size: 1rem;
        font-weight: 600;
        border-radius: 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        padding: 10px 28px;
        white-space: normal;
    }

    /* Ensure caption does not overflow image on all screens */
    .carousel-item {
        position: relative;
        overflow: hidden;
    }
    .carousel-item img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .service-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.service-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.service-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.service-slide {
  flex: 0 0 calc(100% / 3); /* 3 per row on desktop */
  box-sizing: border-box;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.service-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none; /* Prevent drag interactions */
}


.service-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev-service { left: 10px; }
.next-service { right: 10px; }

/* Mobile view - single image */
@media (max-width: 768px) {
  .service-slide {
    flex: 0 0 100%; /* Show 1 per row */
  }
}

    /* Responsive for Tablets */
    @media (max-width: 991px) {
        .custom-caption h1 {
            font-size: 1.6rem;
        }
        .custom-caption p {
            font-size: 1rem;
        }
        .custom-caption .btn {
            font-size: 0.95rem;
            padding: 9px 22px;
        }
    }

    /* Responsive for Mobiles */
    @media (max-width: 576px) {
        .custom-caption {
            max-width: 100%;
            padding: 10px 5px;
        }
        .custom-caption h1 {
            font-size: 1.15rem;
            line-height: 1.3;
            margin-bottom: 12px;
        }
        .custom-caption p {
            font-size: 0.95rem;
            margin-bottom: 16px;
        }
        .custom-caption .btn {
            font-size: 0.9rem;
            padding: 7px 14px;
        }
    }
.services .member {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
}

.services .member img {
  border-radius: 10px;
  overflow: hidden;
}

.services .member .member-content {
  padding: 0 20px 30px 20px;
}

.services .member h4 {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 2px;
  font-size: 20px;
}

.services .member span {
  font-style: italic;
  display: block;
  font-size: 14px;
  color: #6c757d;
}

.services .member p {
  padding-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: #6c757d;
}

.services .member .social {
  margin-top: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.services .member .social a {
  color: #a2a2a2;
  transition: 0.3s;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbbbbb;
}

.services .member .social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.services .member .social i {
  font-size: 18px;
  margin: 0 2px;
}
/* Navbar fixed below top bar */
.navbar {
    position: fixed !important;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: var(--dark) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.navbar-light .navbar-toggler-icon,
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-toggler {
    border-color: var(--light) !important;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: var(--light);
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.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;
}

/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--light);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Remaining code stays same but with color variables applied where needed... */

