/* fonts */
@font-face {
  src: url(./fonts/MonumentGrotesk-Regular.otf);
  font-family: "MonumentGrotesk-Regular";
}
@font-face {
  src: url(./fonts/MonumentGrotesk-Medium.otf);
  font-family: "MonumentGrotesk-Medium";
}
@font-face {
  src: url(./fonts/ITC\ Caslon\ 224\ Std\ Book.ttf);
  font-family: "ITC-book";
}
@font-face {
  src: url(./fonts/ITC\ Caslon\ 224\ Std\ Medium.ttf);
  font-family: "ITC-medium";
}
@font-face {
  src: url(./fonts/ACaslonPro-Regular.otf);
  font-family: "ACaslonPro-Regular";
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: "MonumentGrotesk-Regular";
}

/* header */
.main-section {
  position: relative;
  z-index: 999;
  background-color: white;
  transition: 300ms ease-in-out;
}
.main-section.open_Navbar {
  transform: translateX(-50rem);
}
.header-section {
  display: flex;
  padding-block: 1rem;
  align-items: center;
  position: fixed;
  width: calc(100% - 12.5rem);
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  transition: 400ms ease-in-out;
  justify-content: space-between;
  height: 3.75rem;
}

.header-section:not(.active).scrolled {
  transform: translateY(-100%);
}

/* .header-section.darkNavbar{
  background: #fff;
} */

.header-section.darkNavbar .logo{
  fill: #000;
  color: #000;
}

.header-section.darkNavbar .primary-menu .menu-item.primary-item a{
  color: #000;
}

.header-section.darkNavbar .menu-button .bar{
  background-color: #000;
}

.header-section.darkNavbar.active .menu-button .bar{
  background-color: white;
}

.logo {
  flex: 1 1 392px;
  height: 22px;
  max-width: 392px;
  position: relative;
  z-index: 9999;
  fill: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-section.darkNavbar .logo_Img{
  filter: invert(0);
}

.logo_Img{
  filter: invert(1);
  max-width: 30px;
}

.header-section.darkNavbar .logo_Text{
  color: #000;
}

.logo_Text{
  color: #fff;
  font-family: "ITC-medium";
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 1.5rem;
}

.header-nav {
  align-items: center;
  flex: 1 1 calc(100% - 442px);
  justify-content: flex-end;
  max-width: calc(100% - 442px);
}

.header-nav.active .primary-item {
  opacity: 0;
}

.header-nav.active .mobile-primary-menu {
  transform: translateX(0);
  opacity: 1;
}

.primary-menu {
  line-height: 1;
  list-style: none;
  padding-right: 1rem;
  position: relative;
}

.mobile-primary-menu .menu-item a {
  font-size: 3.75rem;
  font-family: "ITC-book";
  transition: 300ms ease-in-out;
}

.header-nav,
.primary-menu {
  display: flex;
  flex-flow: row wrap;
  z-index: 999;
}

.primary-menu .menu-item a {
  color: #fff;
  display: block;
  /* font-family: MonumentGrotesk-Medium, helvetica, arial, sans-serif; */
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-family: "MonumentGrotesk-Medium";
}
/* ham */
/* Hide the menu items by default */
.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  transition: 300ms ease-in-out;
}

.primary-menu li {
  margin: 10px;
}

.menu-button {
  display: inline-block;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  position: relative;
  z-index: 999;
}

.menu-button .bar {
  display: block;
  width: 3rem;
  height: 1px;
  background-color: white;
  margin: 0.625rem auto;
  transition: 0.4s;
}
/* 
.primary-menu.active {
  display: block;
  flex-direction: column;   
} */

.mobile-primary-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  max-width: 50rem;
  width: 100%;
  background-color: #000;
  margin: 0;
  padding: 100px 0 100px 150px;
  transform: translateX(100%);
  transition: 300ms ease-in-out;
  opacity: 0;
}

.mobile-primary-menu .menu-item {
  padding-block: 5px;
  padding-inline: 25px;
  border-left: 1px solid #999;
}

.mobile-primary-menu .menu-item:hover a {
  color: #999;
}

.menu-button.active .bar:nth-child(1) {
  transform: rotate(-45deg);
  position: absolute;
  top: 0px;
  left: 10px;
}

.menu-button.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-button.active .bar:nth-child(3) {
  transform: rotate(45deg);
  position: absolute;
  top: 12px;
  left: 10px;
}

.menu-button.active .bar:nth-child(1) {
  transform: rotate(-45deg);
  position: absolute;
  top: 12px;
  left: 10px;
}

.menu-button.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-button.active .bar:nth-child(3) {
  transform: rotate(45deg);
  position: absolute;
  top: 12px;
  left: 10px;
}

/* hero section */

.hero .wrapper {
  height: 100%;
  position: relative;
  max-height: 57rem;
}

.hero {
  position: relative;  
  overflow: hidden;
}

.hero:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70vh; /* Set height to 50vh as per the example */
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.9)
  ); /* Gradient effect from transparent to black */
  z-index: 400; /* Set a higher z-index to make sure the gradient is on top of the section content */
  pointer-events: none; /* Prevents interaction with the pseudo-element */
}

.hero video {
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero_anchor {
  bottom: 100px;
  color: #fff;
  left: 100px;
  font-size: 2.5rem;
  position: absolute;
  text-decoration: none;
  width: 40%;
  z-index: 500;
}

.hero_anchor h2 {
  font-size: 4.375rem;
  font-weight: 300;
  margin-bottom: 1.4rem;
  font-family: "ITC-book";
}

.button {
  color: #fff;
  text-decoration: none;
  border: 1px solid;
  display: block;
  max-width: 250px;
  text-align: center;
  padding-block: 1rem;
  font-size: 1rem;
  border-color: #d8d8d8;
  font-family: "MonumentGrotesk-Regular";
  letter-spacing: 1px;
}

/* News */

.news {
  padding-inline: 6.25rem;
  padding-top: 4rem;
}

.news-title {
  text-align: center;
  font-size: 4rem;
  font-family: "ITC-medium";
  font-weight: 300;
}

/* vidhi css changes */
.news-link {
  margin-bottom: 0;
  margin-inline: auto;
  margin-top: 4rem;
}

.posts {
  /* width: 100%;
  display: flex;
  gap: 30px;
  margin-top: 5rem; */
  gap: min(50px, 7vw);
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  margin: 70px auto 0;
}

.post {
  position: relative;
}

.post:not(:last-child):before {
  background-color: #d8d8d8;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  right: calc(min(50px, 7vw)* -.5);
  top: 0;
  width: 1px;
}

.post a {
  color: #000;
  display: block;
  text-decoration: none;
  transition: opacity .3s ease;
}

.post a:hover {
  opacity: .5;
}

.post h2 {
  margin-top: 40px;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: .5px;
  line-height: 1.1428571429;
  font-family: "ITC-medium";
  font-weight: 300;
}

.post img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.post-terms-list {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  padding: 0;
}

.post-terms-list li {
  line-height: 1.125;
  margin: 0 0.667em 0.5em 0;
}

.post-terms-list li a {
  border-bottom: 1px solid #999;
  color: #999;
  display: inline;
  font-family: MonumentGrotesk-Regular, helvetica, arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.75px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border 0.3s ease, opacity 0.3s ease;
}

.post-terms-list li a:hover {
  opacity: 1;
  border-bottom: 0;
}

.section-heading {
  margin: 0;
  font-size: 60px;
  font-weight: 300;
  line-height: 4.5rem;
  font-family: "ITC-medium";
}

.preamble-large {
  margin-top: 70px;
  font-size: 1.5rem;
  line-height: 2.125rem;
  font-family: "ACaslonPro-Regular";
  font-weight: 400;
}

/* .postentry time,
.searchentry time {
  display: block;
  font-size: 1.3rem;
  margin-top: 0.334em;
} */
.post time {
  display: block;
  font-size: 13px;
}

time {
  color: #999;
  font-family: MonumentGrotesk-Regular, helvetica, arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.btn {
  color: #000;
  text-decoration: none;
  border: 1px solid;
  width: 18%;
  text-align: center;
  display: block;
  padding-block: 0.75rem;
  font-size: 1rem;
  letter-spacing: 1px;
  margin: 5rem auto;
}

.btn:hover {
  background-color: #000;
  color: #fff;
}

.hr-rule {
  color: #d8d8d8;
}

/* content */

.content-module {
  padding: 7.6rem 1.5rem;
  border-top: 1px solid #d8d8d8;
}

/* vidhi css change */
.para-content {
  width: 60%;
  margin: 0 auto;
  line-height: 1.5rem;
  font-size: 1rem;
}

/* added css */
.content-module-image-wrapper {
  /* display: flex;
  width: 100%; */
  gap: min(50px, 7vw);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding-inline: 6.25rem;
  padding-block: 7.625rem;
  border-top: 1px solid #d8d8d8;
}

.content-module_thumbnail {
  grid-column: 1 / span 6;
  height: auto;
  max-width: 100%;
  margin-inline: 0;
}

.content-module_thumbnail img {
  width: 95%;
}

.content-module-wrapper {
  /* display: flex;
  flex-direction: column;
  gap: 1rem; */
  justify-content: center;
  align-items: flex-start;
  grid-column: 7 / span 5;
  margin: auto;
}

/* css added */
.content-title {
  font-size: 3.75rem;
  margin-block: 0;
  line-height: 4.68rem;
  font-weight: 300;
  font-family: 'ITS-medium';
}

/* css changed */
.content-para {
  font-size: 1.5rem;
  line-height: 2.5rem;
  /* width: 68%; */
  font-family: "ACaslonPro-Regular";
}

.content-btn {
  color: #000;
  text-decoration: none;
  border: 1px solid;
  /* width: 100%; */
  text-align: center;
  display: inline-block;
  padding-block: 1rem;
  padding-inline: 1rem;
  font-size: 1rem;
  letter-spacing: 1px;
  max-width: 246px;
  width: 100%;
  /* margin: 5rem auto; */
}

.content-btn:hover {
  background-color: #000;
  color: #fff;
}

/* footer */

.last-section {
  padding: 20px;
  position: relative;
}

.section-2 {
  background-color: #e0e0e0;
  z-index: 999;
  margin-bottom: 950px;
  position: relative;
  max-height: 100vh;
  font-family: 'ITS-medium';
}

.section-2 .content {
  bottom: 100px;
  color: #fff;
  left: 6.25rem;
  position: absolute;
  text-decoration: none;
  width: 40%; 
  z-index: 500;
}

.content h2 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  line-height: 77px;
  font-weight: 300;
}

.content p {
  margin: 2rem 0;
  font-size: 1.375rem;
  line-height: 3rem;
}
.last-section p{
  margin: 1rem 0;
  font-family: 'MonumentGrotesk-Regular';
  font-weight: 400;
  line-height: 2rem;
}
.last-section h2{
  margin: 0;
}
.content a {
  display: block;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  max-width: 230px;
  padding: 1rem;
  text-align: center;
}

.content a:hover {
  color: black;
  background-color: white;
  transition: background-color 0.3s ease-in-out;
}

.section-2:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50vh;
  /* Set height to 50vh as per the example */
  background: linear-gradient(transparent,
      rgba(0, 0, 0, 0.9));
  /* Gradient effect from transparent to black */
  z-index: 400;
  /* Set a higher z-index to make sure the gradient is on top of the section content */
  pointer-events: none;
  /* Prevents interaction with the pseudo-element */
}

.section-2 img {
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  top: 0;
  width: 100%;
}

.footer {
  background-color: #000;
  color: #fff;
  display: flex;
  flex-flow: column nowrap;
  height: 100vh;
  justify-content: flex-end;
  left: 0;
  overflow: hidden;
  padding: 0;
  position: fixed;
  top: 0;
  transition: transform 0.4s ease;
  width: 100%;
  /* padding-inline: 50px; */
  text-align: center;
}

/* When the page is scrolled and section 2 is going behind the footer */
.section-2 {
  padding-bottom: 100vh;
}

.footer-wrapper {
  width: 100%;
  height: 100%;
  /* padding: min(50px, 7vw); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.footer-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 200;
}

.footer-hero h2 {
  font-size: 4rem;
  padding: 1rem 0;
  font-family: "ITC-book";
  font-weight: 300;
  margin-bottom: 0;
}

.footer-hero p {
  padding: 0.5rem 0;
  font-family: "ITC-book";
  font-size: 1.5rem;
}

.footer-hero a {
  margin: 2rem 0;
  border: 1px solid white;
  color: #fff;
  border-radius: 3em;
  max-width: 370px;
  min-width: 280px;
  padding: 1.5em 1.5em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  font-family: "MonumentGrotesk-Regular";
}

.footer-hero a:hover {
  background-color: #fff;
  border-color: #fff;
  color: #000;
  transition: background-color 0.3s ease-in-out;
}

.countries {
  align-self: self-start;
  display: flex;
  --company-offices-gap: min(50px, 7vw);
  gap: min(50px, 7vw);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  text-align: left;
  padding-inline: 6.25rem;
}

.country-list {
  padding-right: 3rem;
  border-right: 1px solid white;
}

.menu-item {
  list-style-type: none;
  margin-right: 1.5rem;
  transition: 300ms ease-in-out;
}

.menu-item.menu-item-secondary a {
  color: #999;
}

.menu-item a {
  text-decoration: none;
  color: white;
  font-family: "MonumentGrotesk-Regular";
  font-size: 1rem;
  transition: 300ms ease-in-out;
}

.menu-item a:hover {
  color: #999;
}

.menu-item a.menu-item-heading {
  font-size: 3rem;
  font-family: "ITC-book";
}

.sub-menu {
  margin: 1rem 0;
  font-size: 14px;
  padding-left: 0;
}

.sub-menu li {
  padding: 0.313rem 0;
}

.footer-section {
  font-size: 0.8rem;
  text-align: center;
  width: 100%;
}

.copyright {
  padding: 0.2rem 0;
  font-family: "MonumentGrotesk-Regular";
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.footer-section ul {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  list-style-type: none;
  margin: 1rem auto 2rem;
  padding-left: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.sub-links {
  margin-left: 7rem;
}
.sub-links li a {
  border-bottom: 1px solid;
  color: rgb(219, 219, 219);
  border-bottom: 1px solid;
  font-family: "MonumentGrotesk-Regular";
  font-size: 0.875rem;
  letter-spacing: 0.75px;
  opacity: 0.7;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-section ul li a:hover {
  color: white;
}

.social-links {
  align-self: flex-end;
  position: absolute;
  right: 150px;
}

.links {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.company-social-item a {
  width: 20px;
  color: white;
}

.social-links ul li a {
  text-decoration: none;
}

.icon {
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  display: inline-block;
  height: 2rem;
  width: 2rem;
}

/* vidhi's css */
.content-module_footer {
  text-align: center;
}

.content-module_footer .btn {
  min-width: 246px;
  display: inline-block;
  margin-bottom: 0;
}

.our-people {
  text-align: left;
  margin-top: 3.125rem;
}
.last-section a{
  font-size: 16px;
  min-width: 246px;
}

/* media queries */

@media (max-width: 1600px) {
  .hero_anchor {
    width: calc(66.667% - 100px);
  }

  .hero_anchor h2 {
    font-size: 4rem;
  }

  .posts {
    margin-top: 47px;
  }

  .post h2 {
    margin-top: 32px;
    font-size: 26px;
  }

  .para-content {
    width: 75%;
  }

  .content-title, .news-title {
    font-size: 3rem;
    line-height: 60px;
  }
  .last-section h2{
    font-size: 56px;
    line-height: 60px;
  }
  .last-section p{
    font-size: 20px;
    line-height: 30px;
  }
  .section-2 .content{
    bottom: 50px;
    left: 50px;
    width: calc(66.667% - 100px);
  }

  .hero_anchor {
    left: 50px;
  }
  .header-section {
    width: calc(100% - 6.5rem);
  }
  .news, .content-module-image-wrapper, .countries{
    padding-inline: 3.125rem;
  }
}

@media (max-width: 1200px) {
  .primary-menu .menu-item {
    display: none;
  }
  
  .mobile-primary-menu {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
  .mobile-primary-menu .menu-item {
    border-left: 0;
    padding-inline: 50px;
  }
  .mobile-primary-menu .menu-item a {
    font-size: 2.5rem;
  }
  /* .header-section.active .menu-item-secondary{
    display: block;
  } */
  .social-links{
    position: relative;
    right: 0;
    align-self: center;
  }
  .links{
    flex-direction: column;
  }
  /* .countries{
    gap: calc(min(50px, 7vw)* .5) min(50px, 7vw);
    grid-template-columns: repeat(3, 1fr);
    margin-top: min(50px, 7vw);
  } */
  .menu-item a.menu-item-heading{
    font-size: 2rem;
  }
  .countries{
    gap: min(20px, 7vw);
    grid-template-columns: repeat(4, 1fr);
  }
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .para-content {
    width: 85%;
  }
  .section-2 .content{
    bottom: calc(min(50px, 7vw)* 2);
    left: min(50px, 7vw);
    width: calc(100% - min(50px, 7vw)* 2);
  }

  .post:nth-child(2):before{
    content: none;
  }
}

@media (max-width: 991px) {
  .hero .wrapper{
    max-height: 50rem;
  }
  .hero_anchor {
    width: calc(100% - 100px);
  }
  .countries{
    gap: calc(min(50px, 7vw)* .5) min(50px, 7vw);
    grid-template-columns: repeat(3, 1fr);
    margin-top: min(50px, 7vw);
  }
  .country-list{
    padding-right: 1rem;
  }
  .footer-hero h2{
    font-size: 3rem;
  }
  .footer-hero p{
    margin-block: 0;
  }
  .para-content{
    width: 100%;
  }
}
@media(max-width: 767px){
  .hero .wrapper{
    max-height: 40rem;
  }
  .logo{
    max-width: 270px;
    height: auto;
  }
  .header-section {
    width: calc(100% - 2rem);
  }
  .hero_anchor {
    left: 16px;
    width: calc(100% - 32px);
  }
  .hero_anchor h2 {
    font-size: 2.5rem;
  }
  .countries{
    display: block;
    margin-top: 0;
    width: 100%;
  }
  .menu-item{
    width: 100%;
    display: inline-block;
    vertical-align: top;
    padding: 0;
    margin: 0;
  }
  .country-list{
    border: 0;
  }
  .sub-menu li{
    display: block;
  }
  .footer-hero h2 {
    font-size: 2.5rem;
  }
  .posts {
    margin-top: min(50px, 7vw);
  }
  .news-title{
    font-size: 2.625rem;
    line-height: 3.3rem;
    font-weight: 300;    
  }
  .preamble-large{
    font-size: 18px;
    line-height: 26px;
  }
  .post::before {
    display: none !important;
  }

  .content-module_thumbnail, .content-module-wrapper {
    grid-column: 1 / span 12;
  }

  .content-module_thumbnail img {
    width: 100%;
  }
  .content-title {
    font-size: 2.5rem;
  }
  .content-para{
    font-size: 1.125rem;
    line-height: 1.6rem;
  }
  .last-section h2{
    font-size: 42px;
    line-height: 44px;
  }
  .last-section p{
    font-size: 18px;
    line-height: 27px;
  }
  .mobile-primary-menu .menu-item {
    padding-inline: 20px;
  }
  .news{
    margin-top: 3rem;
  }
  .news, .content-module-image-wrapper, .countries, .content-module{
    padding-inline: 1rem;
  }
  .content-module, .content-module-image-wrapper{
    padding-block: 4rem;
  }
  .section-2 {
    padding-bottom: 70vh;
  }
}

@media screen and (max-width: 575px) {
  .posts {
    grid-template-columns: 1fr;
  }
  .last-section h2{
    font-size: 34px;
    line-height: 36px;
  }
}