@layer layouts {
  /* =====================
      SECTION: 
      ====================== */

  .section-title span {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 2px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    padding: 10px 0 10px 20px;
  }

  .section-title span::before {
    content: "";
    width: 50%;
    height: 100%;
    background: #b1abab;
    position: absolute;
    background: var(--secondary-color) 0% 0% no-repeat padding-box;
    opacity: 0.2;
    left: 0;
    top: 0;
  }

  /* =====================
      SECTION: 
      ====================== */

  .zig-zag-line {
    --a: 130deg;
    --s: 20px;
    --b: 2px;

    width: 70%;
    height: calc(var(--b) + var(--s) / (2 * tan(var(--a) / 2)));
    margin: 1rem;
    background: var(--secondary-color);

    --_g: var(--s) repeat-x
      conic-gradient(
        from calc(var(--a) / -2) at bottom,
        #0000,
        #000 1deg calc(var(--a) - 1deg),
        #0000 var(--a)
      );
    mask: 50% calc(-1 * var(--b)) / var(--_g) exclude, 50% / var(--_g);
    -webkit-mask: 50% calc(-1 * var(--b)) / var(--_g) exclude, 50% / var(--_g);

    animation: zigzag-move 1s linear infinite;
  }

  @keyframes zigzag-move {
    from {
      -webkit-mask-position-x: 0;
    }

    to {
      -webkit-mask-position-x: var(--s);
    }
  }

  /* =====================
    SECTION: EMERGENCY
    ====================== */

  .emergency {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 11111;
  }

  .emergency a {
    padding: 1rem 1rem 1rem 2.5rem;
    color: var(--bs-light);
    background: red;
    border-radius: 50px 0 0 50px;
  }

  /* =====================
    SECTION: HERO
    ====================== */
  .hero {
    position: relative;
    z-index: 1;
  }

  .carousel-inner {
    position: relative;
    z-index: 1;
  }

  /* .carousel-inner::before {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 1) 50%, transparent 100%);
    z-index: 2;
  } */

  .hero .carousel-item {
    /* min-height: 75svh;
    display: grid; */

    /* &::before {
      content: "";
      position: absolute;
      inset: 0;
      --background-ol: linear-gradient(
        to bottom,
        #031313,
        rgb(40 11 114 / 50%)
      );
      background: var(--background-ol);
    } */

    & img {
      height: 100%;
      object-fit: cover;
    }

    & .carousel-caption {
      bottom: 50%;
      transform: translateY(50%);

      & .text-banner {
        line-height: 1.15;

        & span {
          color: var(--accent-color);
        }
      }
    }

    .carousel-caption {
      width: 60%;
      left: 10%;
      text-align: start;
    }
  }

  .hero .carousel-inner .blurry-light {
    position: absolute;
    width: 240px;
    aspect-ratio: 1;
    z-index: 1;
    border-radius: 50%;
    filter: blur(150px);

    &.topStart {
      background: var(--primary-color);
      top: 0;
      left: 0;
      mix-blend-mode: luminosity;
    }

    /* &.bottomEnd {
      background: var(--secondary-color);
      bottom: 15%;
      right: -10%;
      width: 480px;
      opacity: 0.65;
      mix-blend-mode: hard-light;
    } */
  }

  .hero .scroll-down {
    position: absolute;
    color: var(--bs-light);
    bottom: 1rem;
    left: 50%;
    z-index: 1;
    font-size: 2rem;
    animation: scrollDown 2s infinite;
  }

  @keyframes scrollDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  /* =====================
    SECTION: ABOUT
    ====================== */

  .cs_about_thumb {
    margin-right: 36px;
    position: relative;
    padding-bottom: 200px;
  }

  .cs_about_thumb_1 {
    padding-right: 26%;
  }

  .cs_about_thumb_1::before {
    content: "";
    height: 160px;
    width: 160px;
    position: absolute;
    border-radius: 50%;
    border: 25px solid var(--primary-color);
    left: -75px;
    top: 40px;
  }

  .cs_about_thumb_1 img {
    position: relative;
    z-index: 2;
  }

  .cs_about_player_btn {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    position: absolute;
    bottom: 25%;
    writing-mode: vertical-lr;
    transform: rotate(180deg) translateY(85%);
    right: 8%;
    text-decoration: none;
  }

  .cs_player_btn {
    position: relative;
    z-index: 10;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    padding: 0 0 0 3px;
    color: #fff;
  }

  .cs_player_btn::before {
    z-index: 0;
    animation: pulse 1.5s ease-out infinite;
  }

  @keyframes pulse {
    0% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
      opacity: 1;
    }

    100% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
      opacity: 0;
    }
  }

  .cs_player_btn::after,
  .cs_player_btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 50%;
  }

  .cs_player_btn span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 15px solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .cs_about_thumb .cs_player_btn span {
    transform: rotate(90deg);
    bottom: -3px;
    left: -1px;
  }

  .cs_about_play_btn_text {
    position: relative;
  }

  .cs_about_play_btn_text::before {
    content: "";
    width: 1px;
    height: 0;
    background-color: var(--secondary-color);
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
  }

  .cs_about_player_btn:hover .cs_about_play_btn_text::before {
    height: 100%;
  }

  .cs_about_thumb_2 {
    padding-left: 38%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
  }

  .cs_about_thumb_shape_2 {
    position: absolute;
    left: 7%;
    bottom: 32px;
  }

  .cs_experience_box {
    height: 170px;
    width: 170px;
    border: 10px solid #fff;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    bottom: 18%;
    left: 24%;
    z-index: 5;
    text-align: center;
    flex-direction: column;
    padding-bottom: 10px;
  }

  .cs_center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cs_experience_box_number {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2em;
  }

  .cs_experience_box_title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
  }

  .cs_iconbox.cs_style_1 .cs_iconbox_head {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .cs_iconbox.cs_style_1 .cs_iconbox_icon {
    /* box-shadow: 0 0 49px rgba(18, 30, 59, .14); */
    background: rgba(var(--primary-color-rgb), 0.1);
    height: 58px;
    width: 58px;
    border-radius: 50%;
    flex: none;
    padding: 15px;
    transition: all 0.4s ease;
  }

  .cs_iconbox.cs_style_1 .cs_iconbox_icon img {
    /* White */
    /* filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(98deg) brightness(106%) contrast(103%); */
    /* Primary */
    filter: invert(17%) sepia(79%) saturate(1335%) hue-rotate(202deg)
      brightness(95%) contrast(99%);
  }

  .cs_iconbox.cs_style_1 .cs_iconbox_title {
    font-size: var(--fs-lead);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0;
  }

  /* =====================
    SECTION: CTA
    ====================== */
  .cta {
    background: url(../images/bg/cta.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* =====================
    SECTION: SPECIALITIES
    ====================== */
  .specialities {
    background: url(../images/bg/patten.webp);
    background: url(../images/bg/bg-04.webp);
    background: url(../images/bg/bg-4.webp);
    background-repeat: no-repeat;
    /* background-position: bottom right; */
    /* background-color: #fff; */
  }

  .specialities__tabs {
    display: flex;
    min-height: 500px;
    gap: 20px;
    overflow: hidden;
  }

  .specialities__tabs .specialities__tab {
    flex: 1;
    width: 100%;
    transition: flex 500ms ease-in-out;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: end;
    padding: 2rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
    justify-content: center;
  }

  .specialities__tabs .specialities__tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.75);
    background: rgba(var(--primary-color-rgb), 0.8);
    z-index: -1;
  }

  .specialities__tabs .specialities__tab.active {
    flex: 7;
    cursor: initial;
  }

  .specialities__tabs .specialities__tab.active::before {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, #111111 100%);
    background: linear-gradient(
      184deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(var(--primary-color-rgb), 1) 68%
    );
  }

  .specialities__tabs .specialities__tab .service__content {
    transition: none;
  }

  .specialities__tabs .specialities__tab .specialities__heading {
    font-size: var(--fs-title);
    font-family: var(--heading-font);
    font-variation-settings: "wght" 500;
    color: var(--bs-white);
    line-height: 1;
    margin-bottom: 1rem;
  }

  .specialities__tabs .specialities__tab .specialities__heading.display {
    text-orientation: mixed;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: var(--fs-small-banner);
  }

  .specialities__tabs .specialities__tab .specialities__text,
  .specialities__tabs .specialities__tab .btn {
    color: var(--bs-white);
  }

  /* =====================
    SECTION: COUNTER
    ====================== */

  .counter {
    background: var(--primary-color);
    border-radius: 1rem;
    padding: 3rem 0;
  }

  .counter__info {
    text-align: center;
    color: var(--bs-white);
  }

  .counter .counter__icon {
    width: 74px;
    height: 74px;
    background-color: var(--bs-light);
    border-radius: 50%;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
    display: flex;
  }

  .counter .counter__icon img {
    display: inline-block;
    margin: auto;
    width: 37px;
    /* White */
    /* filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(98deg) brightness(106%) contrast(103%); */
    /* Secondary */
    /* filter: invert(32%) sepia(52%) saturate(2775%) hue-rotate(143deg) brightness(95%) contrast(101%); */
    /* Primary */
    filter: invert(17%) sepia(79%) saturate(1335%) hue-rotate(202deg)
      brightness(95%) contrast(99%);
  }

  .counter_nmber {
    font-size: var(--fs-small-banner);
    font-family: var(--heading-font);
    font-weight: 700;
  }

  .counter_title {
    font-size: var(--fs-caption);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 22px;
  }

  /* =====================
    SECTION: 
    ====================== */

  .patient__testimonials {
    background-color: transparent;
    background-image: linear-gradient(
      180deg,
      var(--primary-color) 65%,
      transparent 65%
    );
  }

  .patient__info {
    padding: 2rem;
    background: #e8edf0;
    position: relative;
  }

  .patient__image img {
    width: 70px;
    margin: auto;
    border-radius: 50%;
  }

  .quatation {
    position: absolute;
    right: 20px;
    bottom: 15px;
    width: 30px;
    filter: invert(17%) sepia(79%) saturate(1335%) hue-rotate(202deg)
      brightness(95%) contrast(99%);
  }

  /* =====================
    SECTION: TEAM
    ====================== */

  .profile__info {
    padding: 1.5rem;
    /* border: 1px solid rgba(46, 39, 157, 0.1); */
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    text-align: center;
    height: 100% !important;
  }

  .profile__image {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    /* background: aliceblue; */
    background: rgba(var(--primary-color-rgb), 0.1);
  }

  .profile__image::before {
    position: absolute;
    content: "";
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, #ffffff, 10%, transparent 19%);
  }

  .profile__name {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .profile__desg {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--fs-small);
    font-style: italic;
  }

  /* =====================
    SECTION: FACILITIES
    ====================== */

  .facilities_odd {
    padding: 1rem;
    margin-bottom: 4rem;
    box-shadow: 5px 5px 3px rgba(var(--primary-color-rgb), 0.1),
      -5px -5px 10px #ffffff;
  }

  .facilities_even {
    padding: 1rem;
    margin-bottom: 4rem;
    box-shadow: -5px 5px 3px rgba(var(--primary-color-rgb), 0.1),
      -5px -5px 10px #ffffff;
  }

  /* =====================
    SECTION: CONTACT
    ====================== */

  .contact__info {
    padding: 1rem;
    text-align: center;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 10px;
    height: 100%;
    place-content: center;
  }

  .contact__info .contact__icon img {
    /* White */
    /* filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(98deg) brightness(106%) contrast(103%); */
    /* Secondary */
    /* filter: invert(32%) sepia(52%) saturate(2775%) hue-rotate(143deg) brightness(95%) contrast(101%); */
    /* Primary */
    filter: invert(17%) sepia(79%) saturate(1335%) hue-rotate(202deg)
      brightness(95%) contrast(99%);
  }

  .contact__info .contact__text {
    color: #000;
    font-weight: 600;
  }

  /* =====================
    SECTION: APPOINTMENT
    ====================== */

  .appointment__info {
    background: var(--primary-color);
  }

  /* =====================
    SECTION: insurance
    ====================== */

  .grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
  }

  .insurance__name {
    background: rgba(var(--secondary-color-rgb), 0.05);
    padding: 15px;
    border-radius: 8px;
    color: #000;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    transition: transform 0.2s ease;
  }

  .insurance__name:hover {
    transform: translateY(-3px);
  }

  /* =====================
    SECTION: 
    ====================== */
}
