/********** DAH CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #135AA8;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #FFFFFF;/* Keep text color white on hover */
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--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;
}

#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;
}

.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);
}

@media (max-width: 769px) {
    .top-shape::before {
        display: none;
        left: -40px;
    }
} */

/* topbar start  */
.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

@media (max-width: 991px) {
    .top-shape::before {
        display: none;
    }

    .top-shape {
        width: 100%;
        justify-content: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* end */

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* for carousel */
.carousel-caption {
    /* top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    /* background: rgba(9, 30, 62, .85); */
    /* background: #2d3b508a; */
    z-index: 1;
}

/* @media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
} */
/* end carousel */

/* new for carousel */

/* Base carousel image styling */
#header-carousel .carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Desktop (default) */
#header-carousel .carousel-item img {
    height: 775px;
}

/* Large tablets / small laptops (992px - 1199px) */
@media (max-width: 1199px) {
    #header-carousel .carousel-item img {
        height: 600px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    #header-carousel .carousel-item img {
        height: 500px;
    }
}

/* Large phones / small tablets (576px - 767px) */
@media (max-width: 767px) {
    #header-carousel .carousel-item img {
        height: 500px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Small phones (max 575px) */
@media (max-width: 575px) {
    #header-carousel .carousel-item img {
        height: 450px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* Very small phones (max 375px) */
@media (max-width: 375px) {
    #header-carousel .carousel-item img {
        height: 350px;
    }
}

/* end */

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(6, 163, 218, .7);
}
/* service */
.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}
/* team */
.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.bg-offer {
    background:url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(6, 163, 218, .85);
}
/* price */
.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-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: 2px;
    font-size: 22px;
    transition: .5s;
}

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

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(6, 163, 218, .85);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

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

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

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}



/* ================ Home css end ===================*/

/* =====Mega menu css start ==========*/
/* ══════════════════════════════════════════
     DEPARTMENTS MEGA MENU
  ══════════════════════════════════════════ */
  .dept-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-top: 3px solid #30ACE2;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
    width: 1100px;
    max-width: 98vw;
    height: 550px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  .dept-item:hover .dept-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }

  /*
   * Outer grid: 4 equal columns, 11 explicit rows.
   * grid-template-rows defines 11 equal fr rows so every
   * cell in the same row shares identical height regardless
   * of content — this is what aligns the borders.
   */
  .dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(11, 1fr); /* 11 rows = max items in any column */
    height: 100%;
    padding: 0 10px;
  }

  /*
   * Each column div:
   * - spans exactly 1 column
   * - uses "grid-row: 1 / -1" to fill all 11 rows
   * - its own display is "subgrid" on the row axis
   *   so its children (the <a> tags) are placed into
   *   the PARENT grid's row tracks → perfect alignment
   */
  .dept-col {
    display: grid;
    grid-row: 1 / -1;          /* fill all rows in parent */
    grid-template-rows: subgrid; /* inherit parent row tracks */
    position: relative;
  }

  /* Column separator — right border on cols 1, 2, 3 */
  .dept-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    right: 0;
    width: 1px;
    background: #e0e0e0;
  }

  /*
   * Each department link:
   * - short underline via ::after pseudo-element
   *   (inset from left & right — not full width)
   * - no direct border on the element
   */
  .dept-col a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #444;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.35;
    position: relative;
    border: none;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
  }

  /* Short underline — inset so it looks like reference screenshot */
  .dept-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #d8d8d8;
  }

  /* Last item in each column — no underline */
  .dept-col a:last-child::after {
    display: none;
  }

  .dept-col a:hover {
    background: #f0fdfb;
    color: #30ACE2;
    padding-left: 26px;
  }

  /* Empty placeholder cell */
  .dept-col a.empty {
    pointer-events: none;
    color: transparent;
  }
  .dept-col a.empty::after { display: none; }

  /*=========== Hamberger btn for mobile view ============= */

  @media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 170px;
    }

    .navbar-brand img {
        width: 100% !important;
        height: auto !important;
    }

    .navbar-toggler {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        max-width: 250px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .navbar-brand img {
        width: 100% !important;
        height: auto !important;
    }

    .navbar-toggler {
        margin-left: auto;
    }
}


/*=========== For box layuout ===========*/

.dah-box {
    border: 1px solid #d3d3d3;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
    padding: 30px 30px;
    /* margin-bottom: 20px; */
    transition: box-shadow 0.2s ease;
}

.dah-box:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}


/*----------- For Portfolio -----------------*/
.portfolio-section {
  /* --dah-white:       #f2f6fa;
  --dah-bg:          #fafdff;
  --dah-text:        #06A3DA;
  --dah-muted:       #6b7280; */
  --dah-border:      rgba(0, 0, 0, 0.08);
  --dah-radius:      18px;
  --dah-ease:        0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --dah-shadow:      0 2px 14px rgba(0, 0, 0, 0.08);
  --dah-shadow-up:   0 20px 44px rgba(0, 0, 0, 0.16);
}


/* ---------- Section ---------- */

.portfolio-section {
  padding: 60px 24px;
  box-sizing: border-box;
}

/* .portfolio-section__inner {
  max-width: 1200px;
  margin: 0 auto;
} */

.portfolio-section__heading {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 600;
  color: var(--dah-text);
  margin-bottom: 8px;
}

.portfolio-section__sub {
  font-size: 15px;
  color: var(--dah-muted);
  margin-bottom: 44px;
}


/* ---------- Grid ---------- */

.dah-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}


/* ---------- Card ---------- */

.dah-portfolio-card {
  background: var(--dah-white);
  border-radius: var(--dah-radius);
  border: 1px solid var(--dah-border);
  box-shadow: var(--dah-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dah-ease), box-shadow var(--dah-ease);
}

.dah-portfolio-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--dah-shadow-up);
}


/* ---------- Card Image ---------- */

.dah-portfolio-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--dah-ease);
}

.dah-portfolio-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.28) 100%);
  opacity: 0;
  transition: opacity var(--dah-ease);
}

.dah-portfolio-card:hover .dah-portfolio-card__img {
  transform: scale(1.06);
}

.dah-portfolio-card:hover .dah-portfolio-card__img::after {
  opacity: 1;
}


/* ---------- Card Body ---------- */

.dah-portfolio-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.dah-portfolio-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dah-text);
}


/* ---------- Button ---------- */

.dah-portfolio-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  /* border: 1.5px solid #0D5A98; */
  /* border-radius: 50px; */
  background: #06a3da;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color var(--dah-ease), gap var(--dah-ease);
}

.dah-portfolio-card__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: #3956a7; */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dah-ease);
  z-index: 0;
}

.dah-portfolio-card__btn span,
.dah-portfolio-card__btn svg {
  position: relative;
  z-index: 1;
}

.dah-portfolio-card__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dah-ease);
}

.dah-portfolio-card__btn:hover::before {
  transform: scaleX(1);
}

.dah-portfolio-card__btn:hover {
  color: var(--dah-white);
  gap: 12px;
}

.dah-portfolio-card__btn:hover svg {
  transform: translateX(3px);
}


/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .dah-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .portfolio-section {
    padding: 40px 16px;
  }

  .dah-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dah-portfolio-card__img {
    height: 200px;
  }
}


/* Card for appointment */
/*==============================
    Quick Action Section
===============================*/

.dah-quick-actions {
    position: relative;
    z-index: 10;
    /* margin-top: -10px; */
}

.dah-action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 25px;
    min-height: 200px;
    text-decoration: none;
    transition: 0.4s ease;
    color: #fff;
}

.dah-action-box:hover {
    transform: translateY(-5px);
    color: #fff;
}

.dah-action-icon {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.dah-action-icon i {
    font-size: 28px;
    color: #fff;
}

.dah-action-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.dah-action-box p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    max-width: 200px;
}

/* Background Colors */

.action-dark {
    background: #06A3DA;
}

.action-gold {
    background: #D9BC8C;
}

.action-red {
    background: #155AAA;
}

.action-pink {
    background: #06A3DA;
}

/*==============================
        Responsive
===============================*/

@media (max-width: 991px) {

    .dah-quick-actions {
        margin-top: 0;
    }

    .dah-action-box {
        min-height: 150px;
        padding: 35px 20px;
    }

    .dah-action-box h3 {
        font-size: 26px;
    }

    .dah-action-box p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {

    .dah-action-box {
        min-height: auto;
        padding: 20px 20px;
    }

    .dah-action-icon {
        width: 60px;
        height: 60px;
    }

    .dah-action-icon i {
        font-size: 24px;
    }

    .dah-action-box h3 {
        font-size: 24px;
    }

    .dah-action-box p {
        font-size: 15px;
        line-height: 1.6;
    }
}



/* for about section image at small devices  */
/* Fix about section image overlap on mobile */

@media (max-width: 991.98px) {
    .container-fluid .dah-box .row {
        padding-bottom: 20px !important;
    }

    .col-lg-6 .position-relative.h-100 {
        height: 300px !important; /* fixed height instead of 100% */
        min-height: 250px;
    }

    .col-lg-6 .position-absolute.w-100 {
        position: relative !important; /* remove absolute positioning */
        width: 100% !important;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .col-lg-6 .position-relative.h-100 {
        height: auto !important;
        min-height: unset;
    }
}

/*========== End ===========*/

/* for popup banner */
/* Popup Image Responsive */
/* Modal Width */
#welcomePopup .modal-dialog{
    max-width: 850px;
}

/* Transparent Background */
#welcomePopup .modal-content{
    background: #fff;
    border: none;
    position: relative;
}

/* Popup Image */
#welcomePopup img{
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: contain; /* Important */
}

/* White Close Button */
#welcomePopup .btn-close{
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999;
    /* filter: brightness(0) invert(1); */
    opacity: 1;
    font-size: 22px;
    font-weight: bold;
    background-size: 22px;

    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px){

    #welcomePopup .modal-dialog{
        max-width: 95%;
        margin: auto;
    }

    #welcomePopup img{
        width: 100%;
        height: auto;
        max-height: 85vh;
        object-fit: contain;
    }

    #welcomePopup .btn-close{
        top: 10px;
        right: 10px;
        transform: scale(0.9);
    }
}