/********** Template CSS **********/
:root {
  --primary: #4aacb5;         /* BYF Main Brand Color */
  --secondary: #007A87;       /* Deep teal for contrast */
  --accent-color: #FFA600;    /* Yellow/orange CTA (optional) */
  --light-bg: #F2FCFC;        /* Light background with a teal tint */
  --text-dark: #1F1F1F;       /* Standard body text */
  --text-muted: #6C757D;      /* Subtle secondary text */
}

.btn {
    font-weight: 700;
    transition: .5s;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #4AACB5;
  letter-spacing: 1px;
  font-size: 72px; /* adjust as needed */
}


.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

@media (max-width: 768px) {
  .hero-text-wrapper {
    margin-bottom: 80px; /* pushes the text up */
  }

  .hero-header {
    padding-bottom: 0 !important; /* avoids extra space */
  }
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

/* Nav Link Styling */
.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 24px; /* reduced from 30px */
    padding: 22px 12px; /* reduced vertical padding to lower height */
    font-size: 17px; /* slightly reduced */
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: 0.4s;
}

/* Active & Hover Styles */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Underline Animation for Desktop */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 4px;
        bottom: 6px;
        left: 50%;
        background: var(--primary);
        transition: 0.4s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

/* Mobile Padding Adjustments */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 15px;
    }
}

/* Logo and Brand Text */
.brand-text {
    padding-top: 0px; /* Move text down */
}

.navbar-brand .brand-text h5 {
    margin-bottom: 2px !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4aacb5;
    line-height: 1.2;
}

.navbar-brand .brand-text small {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.1;
}



/* Logo Resize */
.navbar-brand img {
    height: 65px;
}

/* Adjust Navbar Padding for Smaller Height */
.navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.1rem !important;
}

/* Remove Extra Space Between Navbar and Banner */
.sticky-top + * {
    margin-top: 0 !important;
}

/* Optional: Slight left alignment for entire navbar content */
.navbar .container {
    padding-left: 0 !important;
}

/* Hero Section Base */
.hero-header {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 85, 110, 0.6), rgba(0, 85, 110, 0.6)),
              url(../img/hero.png) center right no-repeat;
  background-size: cover;
  color: white;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 0; /* Ensure no padding at bottom */

  
}

/* Doctor Image Overlay */
.overlay-image {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  max-width: 600px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Image inside the overlay */
.overlay-image img {
  width: 100%;
  height: auto;
}

/* Adjust for Mobile */
@media (max-width: 768px) {
  .hero-header {
    min-height: 750px; /* Adjust if needed */
    padding-bottom: 0; /* Remove extra padding */
    position: relative;
  }

  .mobile-hero-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding-bottom: 0;
  }

  .mobile-hero-image img {
    max-width: 320px;
    height: auto;
    margin-bottom: 0;
  }

  .hero-text-wrapper {
    padding-bottom: 320px; /* Push up text so image fits */
  }
}


/* Responsive Title */
.hero-title {
  font-size: 3.5rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Prevent double margin issues */
.mb-8 {
  margin-bottom: 7.5rem !important;
}
/* Reduce spacing between each service item */
.col-12.position-relative {
  margin-bottom: 1.5rem; /* Reduce vertical gap */
}

/* Optional: tighten padding inside card */
.d-flex.bg-light {
  padding: 0 !important; /* Remove outer padding */
}

/* Optional: adjust image styling */
.d-flex.bg-light img {
  margin: 0;
  padding: 0;
}


.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-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: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/* WhatsApp Sticky Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 15px;
    font-size: 24px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #1ebe57;
    color: white;
    text-decoration: none;
}
.whatsapp-icon {
    font-size: 30px;
}
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.blog-card .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card .p-4 {
    flex-grow: 1;
}
.step-box {
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.step-number-outside {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
   background-color: #009498;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.vision-mission-section {
 background: linear-gradient(rgba(0, 85, 110, 0.6), rgba(0, 85, 110, 0.6)),
                url(../img/hero.png) center right no-repeat;
  position: relative;
}
.vision-mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* overlay shade */
  z-index: 1;
}
.vision-mission-section .container {
  position: relative;
  z-index: 2;
}
.bg-overlay {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-box {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d1b2a;
}
.bg-white {
    background-color: #ffffff !important;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1b2a4e;
}

.choose-box {
    border-left: 5px solid #009498;
    transition: all 0.3s ease;
}

.choose-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.bg-white {
    background-color: #ffffff;
}

.text-primary {
    color: #009498;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.text-primary {
    color: #009498;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bg-light {
    background-color: #f9f9f9;
}

h4 {
    font-weight: 600;
    color: #333;
}
.our-history-section {
    background: url('/path-to-image/your-history-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
}

.our-history-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 36, 61, 0.6); /* Dark overlay */
    z-index: 1;
}

.history-box {
    background-color: #ffffffee; /* slightly transparent */
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-img-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* you can also try 'contain' */
    border-radius: 8px; /* optional rounded corners */
}
.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(29, 42, 77, 0.5); /* Adjusted opacity */
  color: white;
  transition: background 0.3s ease;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.event-overlay:hover {
  background: rgba(29, 42, 77, 0.7);
}

.card-img-top {
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}
.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  z-index: 10;
  text-align: right;
}

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(29, 42, 77, 0.45);
  color: white;
  transition: background 0.3s ease;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.event-overlay:hover {
  background: rgba(29, 42, 77, 0.65);
}

.card-img-top {
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}
/* Service Item Responsiveness */
@media (max-width: 768px) {
  .d-flex.bg-light.rounded.overflow-hidden.shadow-sm {
    flex-direction: column !important;
    text-align: center;
  }

  .d-flex.bg-light img {
    max-width: 100% !important;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .d-flex.bg-light .p-4 {
    padding: 1.5rem 1rem !important;
  }

  .step-number-outside {
    left: -10px;
    top: 10px;
    transform: none;
    font-size: 14px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .step-number-outside {
    left: 10px; /* Push it into the container */
    top: 10px;  /* Align to the top-left corner */
    transform: none; /* Remove center alignment */
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .position-relative {
    position: relative;
    padding-left: 50px; /* Add space so text doesn't overlap number */
  }
}

/* Optional: Reduce heading and text size slightly on mobile */
@media (max-width: 576px) {
  .display-5 {
    font-size: 1.8rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
