@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --background: #ffffff;
  --foreground: #000000;
  --primary-green: #49924f;
  --secondary-green: #a3c754;
  --black: #000000;
  --white: #ffffff;

  --header-height: 9rem;

  --font-montserrat: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
  font-family: var(--font-montserrat);
  color: var(--black);
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

body {
  font-size: 1.6rem;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
h1,
.h1 {
  font-size: 5rem;
}
h2,
.h2 {
  font-size: 4rem;
}
h3,
.h3 {
  font-size: 3.5rem;
}
h4,
.h4 {
  font-size: 3rem;
}
h5,
.h5 {
  font-size: 2.5rem;
}
h6,
.h6 {
  font-size: 2.2rem;
}
p {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
p.big {
  font-size: 1.8rem;
  line-height: 1.5;
}
p.small {
  font-size: 1.4rem;
  line-height: 1.5;
}
button {
  background: unset;
}
.primary-green {
  color: var(--primary-green);
}
.secondary-green {
  color: var(--secondary-green);
}
.black {
  color: var(--black);
}
.white {
  color: var(--white);
}
.bgPrimary {
  background-color: var(--primary-green);
}
.bgSecondary {
  background-color: var(--secondary-green);
}
.bgBlack {
  background-color: var(--black);
}
.bgWhite {
  background-color: var(--white);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-05 {
  margin-bottom: 0.5rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mb-8 {
  margin-bottom: 8rem;
}
.p-4 {
  padding: 4rem;
}
.p-6 {
  padding: 6rem;
}
.p-8 {
  padding: 8rem;
}
.pt-4 {
  padding-top: 4rem;
}
.pt-8 {
  padding-top: 8rem;
}
.pb-4 {
  padding-bottom: 4rem;
}
.pb-8 {
  padding-bottom: 8rem;
}
.ptb-2 {
  padding-block: 2rem;
}
.ptb-4 {
  padding-block: 4rem;
}
.ptb-8 {
  padding-block: 8rem;
}
.g {
  display: grid;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.g5 {
  grid-template-columns: repeat(5, 1fr);
}
.g6 {
  grid-template-columns: repeat(6, 1fr);
}
.gap1 {
  gap: 1rem;
}
.gap2 {
  gap: 2rem;
}
.gap3 {
  gap: 3rem;
}
.gap4 {
  gap: 4rem;
}
.gap5 {
  gap: 5rem;
}
.gap6 {
  gap: 6rem;
}
.gap7 {
  gap: 7rem;
}
.gap8 {
  gap: 8rem;
}
.justify-center {
  justify-content: center;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.align-between {
  align-items: space-between;
}
.flex {
  display: flex;
}
.relative {
  position: relative;
}

hr {
  border: none;
  box-shadow: none;
}
.d-1 {
  height: 1rem;
}
.d-2 {
  height: 2rem;
}
.d-3 {
  height: 3rem;
}
.d-4 {
  height: 4rem;
}
.d-5 {
  height: 5rem;
}
.d-6 {
  height: 6rem;
}
.d-7 {
  height: 7rem;
}
.d-8 {
  height: 8rem;
}
.bold {
  font-weight: 700;
}
.semi-bold {
  font-weight: 600;
}
.medium {
  font-weight: 500;
}
.regular {
  font-weight: 400;
}
.italic {
  font-style: italic;
}
.text-center {
  text-align: center;
}
.width-full {
  width: 100%;
}
.img-fluid {
  max-width: 100%;
  height: auto;
}
.img-square {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.img-43 {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.img-169 {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.img-21 {
  aspect-ratio: 2/1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.block {
  display: block;
}

.rounded {
  border-radius: 3rem;
}

.rounded-1 {
  border-radius: 1rem;
}

.rounded-15 {
  border-radius: 1.5rem;
}

.text-balance {
  text-wrap: balance;
}
.container {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  padding-inline: 2rem;
}
.mx-auto {
  margin: 0 auto;
}
.max-50 {
  max-width: 50%;
}
.max-60 {
  max-width: 60%;
}
.max-70 {
  max-width: 70%;
}
.max-80 {
  max-width: 80%;
}
.btn {
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 50vw;
  font-size: 1.6rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background-color: var(--primary-green);
  color: var(--white);
}
.btn-white {
  color: var(--white);
  border: 1px solid var(--white);
}
.btn-white:hover {
  background-color: var(--primary-green);
  border: 1px solid var(--primary-green);
}
.btn-black {
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-black:hover {
  background-color: var(--black);
  border: 1px solid var(--black);
}

.btn + .btn {
  margin-left: 2rem;
}

.link {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--primary-green);
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--primary-green);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

/* ----------------util end------------------------- */

/* ---------------------header-------------------------- */
.header {
  background-color: var(--primary-green);
  border-radius: 2rem;
  position: fixed;
  top: 3rem;
  width: 87.5%;
  z-index: 9999;
  margin: 0 auto;
}

.mega-menu {
  position: absolute;
  top: 6.2rem;
  min-width: 26rem;
  left: 0;
  display: none;
  background-color: var(--white);
  /* border-radius: 0 0 1rem 1rem; */
  z-index: 9999;
}

.mega-menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-content ul li {
  color: var(--primary-green);
  padding: 1.3rem 2rem;
  border-bottom: 1px solid var(--primary-green);
  transition: all 0.3s ease;
}

.mega-menu-content ul li:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* .mega-menu-content ul li:last-child {
  margin-bottom: 0;
} */

.container-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  background-color: var(--white);
  padding: 1rem 3rem;
  border-radius: 2rem 0 0 2rem;
}
.logo img {
  width: 10rem;
}

.left-side {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav > ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .sub-menu {
  position: relative;
}

.nav .menu-item {
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
  font-size: 1.4rem;
  padding-bottom: 1rem;
  position: relative;
}
.nav .menu-item.active::before,
.nav .menu-item:hover::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 0.4rem;
  background-color: var(--secondary-green);
  border-radius: 50vw;
}

.right-side {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.customImg {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 2rem 15rem;
}

.navButtons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.navButton {
  background-color: unset;
  border: 1px solid var(--primary-green);
  border-radius: 50vw;
  padding: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.navButton:hover {
  background-color: var(--primary-green);
}

.navButton svg {
  display: block;
}

.navButton:hover svg path {
  stroke: white;
}
.pageSpacer-30dvh {
  height: 30dvh;
}
.pageSpacer-40dvh {
  height: 40dvh;
}
.pageSpacer-50dvh {
  height: 50dvh;
}
.pageSpacer-60dvh {
  height: 60dvh;
}
.pageSpacer-70dvh {
  height: 70dvh;
}
.pageSpacer-80dvh {
  height: 80dvh;
}
.pageSpacer-90dvh {
  height: 90dvh;
}
.pageSpacer-100dvh {
  height: 100dvh;
}

.popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.popupContent {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1.5rem;
  border-radius: 2rem;
  text-align: center;
  background: var(--white);
}

.popupContent input {
  width: 30rem;
  max-width: 100%;
  padding: 1.4rem;
  margin-right: 0.5rem;
  border-radius: 50vw;
  border: 1px solid var(--primary-green);
}

.popupContent input:focus {
  outline: none;
}

.searchResultsList {
  max-height: 35rem;
  overflow-y: scroll;
}

.searchResultsList li {
  list-style: none;
  text-align: left;
  padding: 1.5rem;
  border-bottom: 1px solid var(--primary-green);
  cursor: pointer;
  transition: 0.3s;
}

.searchResultsList li:hover {
  color: var(--white);
  background-color: var(--primary-green);
}

/* ---------------------header end-------------------------- */

/* ---------------------Footer-------------------------- */

.footer {
  background: url("../assets/images/Footer.jpg");
  background-size: cover;
  padding: 4rem 0;
}

.footer-right {
  display: flex;
  gap: 6rem;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
}

.footer .copyright {
  display: flex;
  justify-content: flex-end;
}

.footer .footer-social {
  display: flex;
  gap: 2rem;
}

/* ---------------------Footer end-------------------------- */

/* Apply only scoped component styles here */
.carousel {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .list .item .content {
  position: absolute;
  top: 60%;
  width: 90%;
  left: 50%;
  padding-inline: 2rem;
  transform: translateX(-50%);
  color: white;
  /* text-shadow: 0 5px 10px #0004; */
}

/* .carousel .list .item .content a {
  z-index: 4;
} */

.carousel .list .item .title,
.carousel .list .item .des {
  font-size: 4rem;
  font-weight: semi-bold;
  line-height: 1.3;
  max-width: 50%;
}

.carousel .list .item .des {
  color: var(--primary-green);
  margin-bottom: 2rem;
}

/* Thumbnail */
.thumbnail {
  position: absolute;
  bottom: 18%;
  left: 65%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.thumbnail .item {
  width: 120px;
  height: 170px;
  flex-shrink: 0;
  position: relative;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.thumbnail .item .content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

/* Arrows */
.arrows {
  position: absolute;
  z-index: 100;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
  top: 85%;
  right: 29%;
}

.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: unset;
  border: 1px solid #fff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.5s;
}

.arrows button:hover {
  background-color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

/* Animations */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .btn {
  transform: translateY(10rem);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}

.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}

.carousel .list .item:nth-child(1) .content .btn {
  animation-delay: 2s !important;
}

/* Next click | match with thumbnail*/
.carousel.next .list .item:nth-child(1) img {
  width: 120px;
  height: 170px;
  position: absolute;
  bottom: 18%;
  left: 65%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.prev .list .item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}

.carousel.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* Time bar */
.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: var(--primary-green);
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time {
  animation: runningTime 500ms linear 1 forwards;
}

@keyframes runningTime {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

/* Prev click effects */
.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

/* match with thumbnail */
@keyframes outFrame {
  to {
    width: 120px;
    height: 170px;
    bottom: 18%;
    left: 65%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .btn {
  animation: contentOut 1.5s linear 1 forwards !important;
}

.slide-footer {
  position: absolute;
  bottom: 10.5%;
  width: 23%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  position: relative;
  top: 90%;
  width: 70%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  border-radius: 3px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-green);
  width: 0%;
  transition: width 0s;
}

.slide-count {
  font-size: 2.4rem;
  color: var(--white);
}

.current-slide {
  color: var(--primary-green);
  font-size: 3rem;
}
.total-slide {
  font-size: 1.6rem;
}

.gredient-green {
  position: absolute;
  bottom: -59%;
  left: 0;
  width: 100%;
  height: 70vh;
  background: linear-gradient(180deg,rgba(11, 43, 15, 0) 0%, rgba(11, 43, 15, 1) 15%, rgba(11, 43, 15, 1) 50%, rgba(11, 43, 15, 0) 100%);
  z-index: 1;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

.h-img-wrapper {
  position: relative;
}

.h-img-wrapper .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: 0.3s;
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 4rem;
}

.video-modal-content {
  position: relative;
  max-width: 800px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.video-modal-content video {
  width: 100%;
  height: auto;
}

.video-modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
}

/* @media screen and (max-width: 1024px) {
  .g2,
  .g3,
  .g4,
  .g5,
  .g6,
  .g7,
  .g8 {
    grid-template-columns: 1fr 1fr;
  }
} */

.displayNone {
  display: none;
}

/* Responsive  Tab*/
@media screen and (max-width: 1024px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--primary-green);
    border-radius: 3rem;
  }

  .nav.open {
    display: block;
  }

  .nav > ul {
    flex-direction: column;
    gap: 2rem;
    font-size: 2rem;
    padding: 1.5rem;
  }

  .nav .menu-item.active::before,
  .nav .menu-item:hover::before {
    left: 1rem;
  }

  .nav > ul > li .menu-item {
    font-size: 2.2rem;
    display: block;
  }

  .sub-menu > a.menu-item {
    position: relative;
    cursor: pointer;
  }

  .sub-menu > a.menu-item::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 33%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    user-select: none;
    width: 18px;
    text-align: center;
    line-height: 1;
    font-family: monospace;
  }

  .sub-menu.open > a.menu-item::after {
    content: "−";
    right: 1rem !important;
  }

  .mega-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    min-width: auto !important;
    width: 100%;
    display: none;
    background-color: var(--white);
    box-shadow: none;
    border-radius: 0;
    z-index: auto;
  }

  .mega-menu-content ul li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--primary-green);
  }

  .mega-menu-content ul li:hover {
    background-color: var(--primary-green);
    color: var(--white);
  }

  .sub-menu.open .mega-menu {
    margin-top: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .header {
    top: 1rem;
    width: 83%;
  }
  .popupContent input{
      margin-bottom: 2rem;
  }
  /*.right-side {*/
  /*  display: none;*/
  /*}*/
  .right-side{
      gap:1
  }
  .mpageSpacer-30dvh{
      height: 30dvh;
  }
  .left-side {
    justify-content: space-between;
    width: 100%;
    padding-right: 1rem;
  }
  .right-side a{
      display: none;
  }
  .max-50,
  .max-60,
  .max-70,
  .max-80 {
    max-width: unset;
  }
  .g2,
  .g3,
  .g4,
  .g5,
  .g6,
  .g7,
  .g8 {
    grid-template-columns: 1fr;
  }

  .gm2 {
    grid-template-columns: 1fr 1fr;
  }

  .gm3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-social {
    margin-bottom: 4rem;
  }

  .footer .copyright {
    justify-content: flex-start;
  }

  .customImg {
    border-radius: 4rem 20rem;
  }

  .carousel .list .item .content {
    padding-right: 0;
    top: unset;
    bottom: 20%;
  }

  .carousel .list .item .content .title {
    font-size: 3rem;
  }
  .slide-footer {
    bottom: 3%;
    width: 90%;
  }
  
  .thumbnail {
      display: none;
  }

  .arrows {
    right: 12%;
  }

  .carousel .list .item .title,
  .carousel .list .item .des {
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .displayNone {
    display: block;
  }
  .mDisplayNone {
    display: none !important;
  }
}
