@layer layouts {

  .zig-zag-line {
    --a: 130deg;
    --s: 20px;
    --b: 2px;

    width: 50%;
    height: calc(var(--b) + var(--s) / (2 * tan(var(--a) / 2)));
    margin: 1rem auto;
    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: HERO
    ====================== */
  .hero {
    position: relative;
  }

  .hero .carousel-item {
    /* min-height: 75svh; */
    display: grid;

    /* &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(var(--dark-color-rgb), .2);
    } */

    & img {
      height: 100%;
      object-fit: cover;
    }

    & .carousel-caption {
      bottom: 50%;
      transform: translateY(50%);

      & .text-banner {
        line-height: 1.15;

        & span {
          color: var(--secondary-color);
        }
      }

      & .lead {
        font-family: var(--heading-font);
        font-weight: 700;
        line-height: 1.2;
        margin-top: 0.7rem;
      }
    }
  }

  .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
    ====================== */

  .about__section {
    position: relative;
    z-index: 1;
    background-color: #f8f8f9;
    overflow: hidden;
    padding: 120px 0 120px;
  }

  .leaf {
    position: absolute;
    right: -2%;
    bottom: 0;
    z-index: -1;
    opacity: 0.2;
    transform: rotate(-54deg);
  }

  .about__t {
    animation: fall 5s linear infinite;
  }

  @keyframes fall {
    0% {
      transform: scale(3, 3);
      opacity: 0;
    }

    50% {
      transform: scale(.5, .5);
    }
  }

  /* @keyframes sway {

    0%,
    100% {
      transform: rotate(-54deg);
    }

    50% {
      transform: rotate(-34deg);
    }
  } */

  .about__bg {
    position: absolute;
    top: -120px;
    bottom: -200px;
    right: 70%;
    /* left: -375px; */
    left: 0;
    background: url(../images/bg/footer_bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
  }

  .about__bg::before {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    content: "";
    background-color: rgba(var(--primary-color-rgb), .95);
  }

  .about__img_2 {
    position: relative;
  }

  .about__img-1 {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .about__img-1 img {
    padding: 10px;
    background: #fff;

  }

  .list {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
  }

  .list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    row-gap: 10px;
    color: var(--bs-dark);
    font-weight: bold;
  }

  .list li .icon i {
    font-size: var(--fs-lead);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    transition: all 500ms linear;
    transition-delay: 0.1s;
  }

  /* =====================
    SECTION: MISSION
    ====================== */

  .mission__section {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .mission__section:before {
    content: '';
    position: absolute;
    background-color: #f8b864;
    height: 800px;
    width: 800px;
    top: -400px;
    left: -350px;
    border-radius: 100%;
    opacity: 0.2;
    z-index: -1;
  }

  .mission__section:after {
    content: '';
    position: absolute;
    background-color: #f8b864;
    width: 50%;
    height: 680px;
    position: absolute;
    top: 400px;
    right: -150px;
    border-radius: 100%;
    -webkit-transform: skew(3deg, 30deg);
    -ms-transform: skew(3deg, 30deg);
    transform: skew(5deg, 10deg);
    opacity: 0.3;
    z-index: -1;
  }

  .mission__content {
    padding: 1.5rem;
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    min-height: 180px;
  }

  .mission__head {
    font-family: var(--heading-font);
    font-size: var(--fs-sub-title);
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .mission__info:hover {
    transition: 0.5s linear;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  }

  /* =====================
    SECTION: Join Us
    ====================== */

  .join__us {
    position: relative;
    z-index: 1;
    background: url(../images/bg/footer_bg.webp);
  }

  .join__us::before {
    position: absolute;
    content: '';
    inset: 0;
    z-index: -1;
    background: var(--secondary-color);
    opacity: 0.6;
  }

  .join__us__shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 106px;
    background: url(../images/bg/shape.webp);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    z-index: -1;
  }

  .join__us__head {
    font-family: var(--alt-font);
    font-size: var(--fs-small-banner);
    font-weight: 900;
  }

  .join__us__text {
    font-family: var(--heading-font);
    font-size: var(--fs-title);
    font-weight: 900;
    line-height: 1.2;
  }


  /* =====================
    SECTION: Objectives
    ====================== */

  /* .objective__info {
    text-align: center;
  } */

  .objective__info {
    text-align: center;
    display: flex;
    gap: 20px;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), .1);
    border-radius: 1rem;
    border: 1px solid var(--primary-color);
    align-items: center;
    justify-content: center;
  }

  .objective__info img {
    width: 60px;
    margin-bottom: 0.5rem;
    /* filter: invert(66%) sepia(61%) saturate(1906%) hue-rotate(71deg) brightness(98%) contrast(80%); */
    filter: invert(32%) sepia(100%) saturate(699%) hue-rotate(353deg) brightness(106%) contrast(93%);
  }


  /* =====================
    SECTION: Patient
    ====================== */

  .chhabra__section {
    background: rgba(var(--primary-color-rgb), .1);
  }

  .patient__info {
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 0.7rem;
    overflow: hidden;
    display: block;
  }

  .patient__info::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(184deg,
        rgba(255, 255, 255, 0) 33%,
        rgba(var(--primary-color-rgb), 1) 83%);
    z-index: 1;
  }

  .patient__text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    color: var(--bs-light);
    z-index: 1;
  }

  .patient__text .patient_head {
    font-family: var(--heading-font);
    font-size: var(--fs-caption);
    font-weight: 900;
    line-height: 1;
  }

  .patient__text p {
    margin-bottom: 0;
  }

  .patient__info img {
    transition: all 0.3s linear;
  }

  .patient__info:hover .patient__thumb img {
    transform: scale(1.1);
    transition: all 0.3s linear;
  }


  /* =====================
    SECTION: Profile
    ====================== */

  .profile {
    text-align: center;
  }

  .profile_img {
    margin-bottom: 0.7rem;
  }

  .profile_img img {
    border-radius: 50px 50px 0 0;
  }

  .profile .profile_name {
    font-family: var(--heading-font);
    font-weight: 900;
    line-height: 1;
  }

  .profile .profile_desg {
    font-size: var(--fs-small);
  }

  .profile_info {
    padding: 1rem 0.5rem;
    background: var(--bs-light);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;

  }


  /* =====================
    SECTION: CAMP
    ====================== */

    .camp__section{
      position: relative;
      z-index: 1;
    }

    .camp__section::before{
      content: '';
      position: absolute;
      inset: 0;
      background: url(../images/bg/footer_bg.webp);
      opacity: 0.1;
      z-index: -1;
    }

  .camp__info {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    /* background: rgba(var(--primary-color-rgb), 0.1); */
    background: hsl(from var(--primary-color-hsl) h s calc(1-10));
    background: #fff;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    height: 100%;
  }

  .camp__info .camp__title {
    font-family: var(--heading-font);
    line-height: 1.2;
    font-weight: 700;
  }

  .camp__info .camp__num {
    font-size: var(--fs-small-banner);
    font-family: var(--heading-font);
    line-height: 1.2;
    font-weight: 900;
  }

  .camp__info .camp__text {
    font-size: var(--fs-lead);
    font-family: var(--heading-font);
    line-height: 1.2;
    font-weight: 700;
  }

  .upconing__camp {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
    margin-block: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
  }

  .upconing__camp:nth-child(odd) {
    background: rgba(var(--primary-color-rgb), 1);
    color: var(--bs-light);
  }

  /* Even items: 2nd, 4th, 6th... */
  .upconing__camp:nth-child(even) {
    background: rgba(var(--primary-color-rgb), 0.1);
    background: #fff;
    color: #000;
  }

  .upconing__camp .upconing__number {
    font-size: var(--fs-small-banner);
    font-family: var(--heading-font);
    line-height: 1;
    font-weight: 900;
  }

  /* =====================
    SECTION: INNER
    ====================== */

  .inner__bg {
    background: url(../images/bg/inner.png);
    background-repeat: repeat;
  }

  .beneficiary thead th {
    background: var(--primary-color);
    padding: 1.5rem;
    color: var(--bs-light);
    font-size: var(--fs-caption);
  }

  /* VIDEO */

  .video__modal .vm__container {
    cursor: pointer;
  }

  .video__img {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
  }

  .video__img::before {
    content: '';
    position: absolute;
    --vi-border: 2rem;
    border: var(--vi-border) solid transparent;
    border-inline-start: calc(var(--vi-border)*(16/9)) solid #fff;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--vi-border) * (16 / 9) / 2), -50%);
    opacity: 0.75;
  }

  .video__img:hover::before {
    animation: video-border 1s linear infinite;
  }

  @keyframes video-border {
    0% {
      scale: 1;
      opacity: 0.75;
    }

    50% {
      scale: 0.95;
      opacity: 0.5;
    }

    100% {
      scale: 1;
      opacity: 0.75;
    }
  }


  /* GALLERY */


  .gallery-thumbnail {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    grid-gap: 20px;
  }

  .gallery-thumbnail :is(img, video) {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    object-position: center 35%;
    transition: all 0.5s ease;
    border-radius: 0.5rem;
  }


  /*  */

  .table-responsive table tr th,
  .table-responsive table tr td {
    vertical-align: middle;
  }

  .table-responsive table tr p {
    margin-bottom: 0;
  }

}