@layer layouts {
  /*button*/
  .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;
  }
  /*button*/

  a.hendrio-button {
    padding: 7px 0px 7px 30px;
    background: #ef7f1a;
    color: #fff;
    font-weight: 500;
    display: inline-block;
    border-radius: 2px 25px 2px 2px;
    position: relative;
    z-index: 1;
    transition: 0.5s;
    margin-top: 0;
    text-decoration: none;
  }

  a.hendrio-button:before {
    position: absolute;
    content: "";
    z-index: -1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 2px 25px 2px 2px;
    background: #fff;
    transform: scale(0);
    transition: 0.5s;
  }

  a.hendrio-button i {
    font-size: 18px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    background: #fff;
    color: #ef7f1a;
    border-radius: 30px;
    border: 2px solid #ef7f1a;
    display: inline-block;
    position: relative;
    top: 3px;
    left: 8px;
    transition: 0.5s;
  }

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

  /* .hero .carousel-item img {
    min-height: 50svh;
    object-fit: cover;
  }

  .carousel-caption h5 {
    font-size: 3rem;
    color: #ffffff;
  }

  .carousel-dark .carousel-caption {
    color: #ffffff;
  }

  .carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #ffffff;
  }

  .carousel-caption {
    position: absolute;
    width: 100%;
    right: 15%;
    top: 25%;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
  } */

  .hero .carousel-item {
    /* max-height: calc(100svh - var(--top-bar-height));
    overflow: hidden;
    min-height: 50svh; */
  }

  .hero .carousel-item img {
    /* min-height: 50svh;
    object-fit: cover; */
  }

  .hero .carousel-caption {
    position: absolute;
    width: 100%;
    right: 15%;
    top: 25%;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
  }

  .hero .carousel-title {
    color: var(--bs-light);
    font-size: var(--fs-large-banner);
    line-height: 1.2em;
    opacity: 0;
    transform: translateY(80px);
    transform-origin: bottom;
    margin-bottom: 1rem;
  }

  .hero .carousel-item.active .carousel-title {
    animation: captionSlideIn 1000ms 500ms ease forwards;
    font-family: var(--heading-font);
    font-weight: 700;
  }

  .hero .carousel-caption .btn-main {
    transform: translateY(80px);
  }

  .hero .carousel-item.active .btn-main {
    animation: captionSlideIn 1500ms 1500ms ease forwards;
  }

  .hero .carousel-caption .carousel-text {
    color: var(--bs-light);
    opacity: 0;
    transform: translateY(80px);
    transform-origin: bottom;
    margin-bottom: 1rem;
  }

  .hero .carousel-item.active .carousel-text {
    animation: captionSlideIn 1000ms 1000ms ease forwards;
  }

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

  .about__section {
    background: url(../images/bg/about.jpg);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .about-counter {
    text-align: center;
    padding: 30px;
    border-radius: 2px 25px 2px 2px;
  }

  .about-counter.bg2 {
    background-color: #727271;
  }

  h2.counter {
    font-size: 34px;
    font-weight: 700;
    display: inline-block;
    color: #ffffff;
  }

  h2.counter1 {
    display: inline-block;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
  }

  span.counter-text {
    font-size: 15px;
    font-weight: 400;
    display: block;
    line-height: 25px;
    color: #ffffff;
  }

  /* =====================
    SECTION: UPCOMING EVENTS
    ====================== */
  .upcoming_events_top {
    background: url(../images/bg/event-bg.webp);
    padding: 88px 0 0px;
    height: 420px;
  }

  .service-thumb {
    position: relative;
    z-index: 1;
  }

  .service-thumb:before {
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-image: linear-gradient(10deg, #ef7f1a 0%, #ef7f1a 100%);
    opacity: 0;
    transition: 0.5s;
    border-radius: 5px 5px 0 0;
  }

  .service-thumb img {
    width: 100%;
    border-radius: 5px 5px 0 0;
  }

  .service-icon {
    position: absolute;
    z-index: 55;
    top: -13px;
    left: 12px;
    background: #da242b;
    padding: 3px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
  }

  .service-icon img {
    transition: 0.5s;
  }

  .service-content {
    padding: 24px 10px;
    background: #fff;
    margin-right: 15px;
    border-radius: 0 0 5px 5px;
    position: relative;
    z-index: 1;
    transition: 0.5s;
  }

  .service-content:before {
    position: absolute;
    content: "";
    top: 0;
    right: -15px;
    width: 15px;
    height: 90%;
    background: #da242b;
    border-radius: 0 0 5px 0px;
    transition: 0.5s;
    z-index: -1;
  }

  h3.service-title {
    font-size: 18px;
    color: #062461;
    transition: 0.5s;
    margin-bottom: 15px;
  }

  p.service-desc {
    padding: 12px 0 10px;
    transition: 0.5s;
  }

  /* =====================
    SECTION: NATIONAL EXECUTIVE COMMITTEE
    ====================== */

  .executive_committee_section {
    background: url(../images/bg/bg1.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
  }

  .profile__content {
    margin-bottom: 30px;
    text-align: center;
  }

  .profile__image {
    position: relative;
    z-index: 1;
  }

  .profile__image:before {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background-image: linear-gradient(10deg, #ef7f1a 0%, #ef7f1a 100%);
    visibility: hidden;
    transition: 0.5s;
    opacity: 0.45;
    border-radius: 5px 5px 0 0;
  }

  .profile__image img {
    width: 100%;
  }

  .profile__info {
    padding: 15px 0 5px;
    background: #ef7f1a;
    border-radius: 0 0 5px 5px;
  }

  .profile__content:hover .profile__image:before {
    visibility: visible;
    height: 100%;
    top: 0;
  }

  /* =====================
    SECTION: QUICK LINKS
    ====================== */

  .process-section {
    padding: 60px 0;
    background-color: #727271;
  }

  .quick__links {
    padding: 0 0 0;
    text-align: center;
    margin-bottom: 30px;
  }

  .quick__image {
    position: relative;
    z-index: 1;
    display: inline-block;
  }

  .quick__image:before {
    position: absolute;
    content: "";
    left: -8px;
    top: -8px;
    width: 160px;
    height: 160px;
    line-height: 160px;
    border-radius: 50%;
    border: 2px dashed #da242b;
    opacity: 0;
    transition: 0.5s;
  }

  .quick__number {
    position: absolute;
    right: -14px;
    top: 53px;
    transition: 0.5s;
  }

  .quick__number span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #da242b;
    border-radius: 30px;
    font-family: "Inter";
    height: 36px;
    width: 36px;
    line-height: 36px;
    text-align: center;
    display: inline-block;
  }

  h4.process-title {
    font-size: 22px;
    color: #fff;
    padding: 10px;
  }

  p.process-desc {
    color: #fff;
    opacity: 0.6;
    font-weight: 300;
  }

  .quick__links:hover .quick__image:before {
    opacity: 1;
    -webkit-animation-name: rotateme;
    -webkit-animation-duration: 20s;
    -webkit-animation-iteration-count: infinite;
  }

  .quick__links:hover .quick__number {
    right: 0;
    top: 5px;
  }

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

  .service-top-section {
    background: url(../images/bg/event-bg.webp);
    padding: 88px 0 0px;
    height: 420px;
  }
  .events__slide {
    margin-top: -250px;
  }
  .events {
    /* --event-bg: var(--secondary-color);
      background: var(--event-bg); */
    position: relative;
    isolation: isolate;
  }

  .events__heading {
    font-size: var(--fs-caption);
    font-weight: 700;
    color: var(--primary-color);
    position: absolute;
    background: var(--bs-body-bg);
    top: 1rem;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.75rem;
    box-shadow: 0 -2px 6px rgba(var(--primary-color-rgb), 15%);
    z-index: -1;
    border-radius: 0 0 0.25rem 0.25rem;
  }

  .events__heading::before,
  .events__heading::after {
    content: "";
    position: absolute;
    border: 0.75rem solid transparent;
    top: 0;
    border-bottom-color: var(--event-bg);
    z-index: -11;
  }

  .events__heading::before {
    border-right-color: var(--event-bg);
    left: calc(-0.75rem * 2);
  }

  .events__heading::after {
    border-left-color: var(--event-bg);
    right: calc(-0.75rem * 2);
  }
  .event__item {
    background-color: #fff;
    padding: 10px;
    /* border-radius: 10px; */
  }
  /* .event__item .event__image img{
    border-radius: 10px 10px 0 0 ;
  } */

  .event__info {
    padding: 10px;
    margin-top: -20px;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
  }

  /* .events .events__slide {
      margin-top: 2rem;
      max-height: 196px;
      overflow: hidden;
    }
  */
  /* 
    .events .event__item {
      color: var(--bs-light);
      display: flex;
      flex-direction: row-reverse;
      column-gap: 0.5rem;
    }
  
   .events .event__image {
      width: 65%;
    } */

  .events .event__date {
    font-size: var(--fs-small);
    background: var(--secondary-color);
    padding: 0.25rem;
    display: inline-block;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
  }

  .events .event__title {
    font-size: var(--fs-sub-title);
    line-height: 1.2;
    color: #333333;
  }

  /* =====================
    SECTION: SIAMG Fellowship
    ====================== */

  .event-list ul li a {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .event-list ul li .icon {
    padding: 1rem;
    border-radius: 50%;
    background: #eee;
  }

  .event-list ul li .event_content {
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(var(--primary-color-rgb), 15%);
    border-radius: 0 50px 0 0;
  }

  /* =====================
    SECTION: VISION AND MISSION
    ====================== */

  .vision__mission {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
      rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    margin-bottom: 1.5rem;
    z-index: -1;
    overflow: hidden;
  }

  .vision {
    background: linear-gradient(
        rgba(var(--primary-color-rgb), 0.7),
        rgba(var(--primary-color-rgb), 0.7)
      ),
      url(../images/bg/vision.webp) no-repeat center / cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .mission {
    background: linear-gradient(
        rgba(var(--primary-color-rgb), 0.7),
        rgba(var(--primary-color-rgb), 0.7)
      ),
      url(../images/bg/mission.webp) no-repeat center / cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .path {
    background: linear-gradient(
        rgba(var(--primary-color-rgb), 0.7),
        rgba(var(--primary-color-rgb), 0.7)
      ),
      url(../images/bg/path.webp) no-repeat center / cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* =====================
    SECTION: NATIONAL EXECUTIVE COMMITTEE
    ====================== */

  .editorial__head {
    padding: 8px 3rem;
    border-radius: 30px;
    background: var(--primary-color);
    outline: 2px solid #fff;
    outline-offset: -5px;
    display: inline-block;
    line-height: 1;
  }

  .editorial__info {
    padding: 10px;
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  }

  /* =====================
    SECTION: NATIONAL EXECUTIVE COMMITTEE
    ====================== */

  .committee {
    padding: 1.25rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
      rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border-radius: 30px 0px;
    height: 100%;
  }

  .committee .committee_desg {
    padding: 3px 5px;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--bs-white);
  }

  .committee .committee__info a {
    font-size: 13px;
    text-decoration: none;
  }

  .committee__img img {
    width: 150px;
    margin: 15px auto;
    border-radius: 100%;
    outline: 1px solid var(--primary-color);
    outline-offset: 5px;
  }

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

  .contact__us i::before {
    padding: 0.75rem;
    font-size: 2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 0.5rem;
  }

  /* =====================
    SECTION: Vertical Tab
    ====================== */
  [data-bs-theme="dark"] .vertical__tab .toc {
    background: rgba(var(--secondary-color-rgb), 0.25);
  }

  .vertical__tab {
    & .toc {
      background: rgba(var(--secondary-color-rgb), 0.05);
      padding: 1rem;
      top: var(--menu-height);
    }

    & .nav .nav-link {
      text-align: start;
      color: var(--bs-body-color);
      background: rgba(var(--secondary-color-rgb), 0.025);

      & .bi {
        display: inline-block;
      }

      &.active {
        color: var(--bs-light);
        background: var(--primary-color);
      }

      &:not(.active):hover {
        background: rgba(var(--primary-color-rgb), 0.05);

        & .bi {
          transform: translateX(3px);
        }
      }

      &:not(:last-of-type) {
        border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.15);
      }
    }

    .services__cta {
      display: grid;
      grid-template-areas: "stacked";
      place-items: center;
      text-align: center;
      color: var(--bs-light);
      position: relative;
      z-index: 1;

      & > * {
        grid-area: stacked;
      }

      & .scta__bg {
        position: relative;
        z-index: -1;
      }

      & .scta__bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(var(--secondary-color-rgb), 0.5);
      }

      & .bi {
        font-size: var(--fs-large-banner);
      }

      & .bi::before {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 50%;
        box-shadow: 0 0 0 1rem rgba(var(--primary-color-rgb), 0.25);
      }
    }

    & .heading,
    & .subheading {
      font-family: var(--heading-font);
      font-weight: 900;
      color: var(--bs-dark-text-emphasis);
      margin-bottom: 0.25rem;
    }

    & .heading {
      font-size: var(--fs-sub-title);
    }

    & .subheading {
      font-size: var(--fs-lead);
    }

    & .accordion-button {
      background: var(--primary-color);
      color: var(--bs-light);
      box-shadow: inset 0 8px 16px rgb(0 0 0 / 15%);
    }

    & .accordion-button::after {
      --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
      --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }
  }

  .up_events {
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
      rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  }

  /* =====================
    SECTION: Vertical Tab
    ====================== */

  #gallery {
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
    border: 0;
  }

  #gallery .nav-link {
    background: var(--primary-color);
    color: #ffff;
    border-radius: 7px;
    padding: 10px 30px;
    font-weight: bold;
  }

  #gallery .nav-link.active {
    background: var(--secondary-color);
    color: #ffff;
    border-radius: 7px;
    padding: 10px 30px;
    font-weight: bold;
  }
}
