/* Common banner start  */
.common-banner__section {
  position: relative;
}
.common-banner__section::before {
  content: "";
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  position: absolute;
  inset: 0;
}
.common-banner__section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/8;
}
/* Common banner end  */

/* Contact banner start  */
.contact-banner__section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/7;
}
.contact-us__section .section-wrap.center {
  margin-bottom: 0;
  max-width: 580px;
}
.contact-us__section .subtitle {
  color: #4c6548;
}
.contact-form {
  max-width: 580px;
  margin: clamp(25px, 3vw, 45px) auto 0;
}
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.wpcf7-form p {
  margin: 0;
}
.wpcf7-form label {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px 44px 6px 18px;
  transition: border-color 0.2s ease;
}
.wpcf7-form label:focus-within {
  border-color: #4b6b45;
}
.wpcf7-form label:has(textarea) {
  padding-top: 26px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333333;
  background: transparent;
  padding: 0;
  font-family: var(--primary-font);
}
.wpcf7-form textarea {
  min-height: 120px;
  resize: none;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: transparent;
}
.floating-label {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 14px;
  color: #666666;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.18s ease;
  transform-origin: left top;
}
.wpcf7-form label:has(input.has-value) .floating-label,
.wpcf7-form label:has(textarea.has-value) .floating-label,
.wpcf7-form label:focus-within .floating-label {
  top: 8px;
}
.wpcf7-form label {
  display: flex;
  flex-direction: column-reverse;
}
.wpcf7-form label::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.wpcf7-form label:has(input[name="your-name"])::after {
  background-image: url("../img/label-1.svg");
}
.wpcf7-form label:has(input[name="your-email"])::after {
  background-image: url("../img/label-2.svg");
}
.wpcf7-form label:has(input[name="your-subject"])::after {
  background-image: url("../img/label-3.svg");
}
.wpcf7-form label:has(textarea)::after {
  top: 24px;
  background-image: url("../img/label-4.svg");
}
.wpcf7-form input[type="submit"] {
  background: #4b6b45;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  font-family: var(--primary-font);
}
.wpcf7-form input[type="submit"]:hover {
  background: #3d5738;
}
.wpcf7-form .wpcf7-spinner {
  display: none;
}
/* Contact banner end   */

/* Location section start   */
.location-wrapper {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  row-gap: 45px;
}
.location-item {
  max-width: 270px;
}
.location-item > div:not(:last-child) {
  margin-bottom: clamp(15px, 2vw, 20px);
}
.location-item h3 {
  margin: 0 0 clamp(15px, 3vw, 25px);
}
.location-item span,
.location-item p,
.location-item p a {
  font-size: 18px;
  color: #4c4c4c;
  line-height: 1.2;
  display: block;
}
.location-item span {
  font-weight: 500;
  color: var(--secondary);
  margin: 0 0 2px;
}
.location-item .social-media {
  justify-content: center;
  margin-top: clamp(20px, 3vw, 35px);
}
/* Location section end   */

/* Journey of Founder start   */
.founder-description__section .section-wrap.center {
  max-width: 640px;
}
.founder-description__section .section-wrap div {
  margin: 0;
  color: unset;
  font-weight: unset;
  font-size: unset;
  overflow: hidden;
  max-height: 6em;
  transition: max-height 0.4s ease;
}
.founder-description__section .entry-content.expanded {
  max-height: 1000px;
}
.founder-description__section h1 {
  margin: 0 auto 16px;
  max-width: 620px;
}
.timeline__section .wrapper-small {
  position: relative;
}
.timeline__section .timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
}
.timeline__section .timeline:not(:last-child) {
  padding-bottom: 60px;
}
.timeline__section .timeline::before,
.timeline__section .timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  border-left: 1px solid #000000;
  transform: translateX(-50%);
  z-index: 1;
}
.timeline__section .timeline::before {
  top: 0;
  height: calc(50% - 40px);
}
.timeline__section .timeline::after {
  bottom: 0;
  height: calc(50% - 40px);
}
.timeline__section .timeline:first-child::before {
  content: none;
}
.timeline__section .timeline:last-child::after {
  content: none;
}
.timeline__section .timeline .featured-image,
.timeline__section .timeline .entry-content {
  flex: 1;
  min-width: 0;
  max-width: 476px;
}
.timeline__section .timeline .featured-image img {
  width: 100%;
  height: 394px;
  display: block;
  object-fit: cover;
}
.timeline__section .timeline .entry-content {
  text-align: left;
}
.timeline__section .timeline h2 {
  margin: 0 0 18px;
}
.timeline__section .timeline .num {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid #000000;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  color: var(--primary);
  z-index: 2;
}
.timeline__section .timeline:nth-child(odd) .featured-image {
  order: 1;
}
.timeline__section .timeline:nth-child(odd) .entry-content {
  order: 2;
}
.timeline__section .timeline:nth-child(even) .featured-image {
  order: 2;
}
.timeline__section .timeline:nth-child(even) .entry-content {
  order: 1;
  text-align: right;
}

@media (max-width: 1200px) {
  .timeline__section .timeline .num {
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 800px) {
  .timeline__section .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 75px;
  }
  .timeline__section .timeline::before {
    content: none;
  }
  .timeline__section .timeline::after {
    left: 24px;
    top: 0;
    bottom: 0;
    height: auto;
  }
  .timeline__section .timeline:last-child::after {
    content: none;
  }
  .timeline__section .timeline:nth-child(odd) .featured-image,
  .timeline__section .timeline:nth-child(odd) .entry-content,
  .timeline__section .timeline:nth-child(even) .featured-image,
  .timeline__section .timeline:nth-child(even) .entry-content {
    order: initial;
  }
  .timeline__section .timeline:nth-child(even) .entry-content {
    text-align: left;
  }
  .timeline__section .timeline .num {
    left: 24px;
    top: 0;
    transform: translate(-50%, 0);
  }
  .timeline__section .timeline .featured-image,
  .timeline__section .timeline .entry-content {
    max-width: 100%;
  }
  .timeline__section .timeline .num {
    width: 65px;
    height: 65px;
  }
}
@media (max-width: 567px) {
  .timeline__section .timeline {
    padding-left: 65px;
  }
  .timeline__section .timeline .num {
    width: 55px;
    height: 55px;
  }
}
/* Journey of Founder end   */

/* The content design starts  */
.our-history__section {
  overflow: visible !important;
}
.our-history__section .wrapper-small {
  overflow: visible !important;
}
.our-history-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}
.our-history-container {
  flex: 1;
  min-width: 0;
}
.content-sidebar {
  width: 100%;
  max-width: 373px;
  position: sticky;
  top: 60px;
  align-self: flex-start;
}
#ez-toc-container.ez-toc-container-direction {
  width: 100%;
  border: unset;
  padding: 0;
  margin: 0;
  box-shadow: unset;
  background: unset;
}
#ez-toc-container .ez-toc-title-container {
  display: none;
}
.content-sidebar div#ez-toc-container ul li:not(:last-child) {
  border-bottom: 1px solid #c8c8c8;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.content-sidebar div#ez-toc-container ul li a {
  color: #4c6548;
  font-size: 20px;
  font-weight: 500;
  text-decoration: unset !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.content-sidebar div#ez-toc-container ul li a:visited,
.content-sidebar div#ez-toc-container ul li a:hover {
  color: #000000;
}
.content-sidebar div#ez-toc-container ul li a:visited::after,
.content-sidebar div#ez-toc-container ul li a:hover::after {
  filter: brightness(0);
}
.content-sidebar div#ez-toc-container ul li a::after {
  content: url(../img/arrow.svg);
}
.content-sidebar .ez-toc-counter nav ul li a::before {
  content: unset;
}
.content__area {
  font-size: 16px;
  line-height: 1.7;
}
.content__area > *:first-child {
  margin-top: 0;
}
.content__area p {
  margin: 0 0 12px;
  color: #4b4b4b;
}
.content__area a {
  color: #4c6548;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content__area a:hover {
  color: #2f3d24;
}
.content__area strong,
.content__area b {
  font-weight: 600;
  color: #4a3626;
}
.content__area h2 {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 400;
  color: #4c6548;
  margin: 30px 0 12px;
}
.content__area h2:first-child {
  margin-top: 0;
}
.content__area h3 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 400;
  color: #4c6548;
  margin: 40px 0 16px;
}
.content__area h4,
.content__area h5,
.content__area h6 {
  font-weight: 600;
  color: #4c6548;
  margin: 28px 0 12px;
}
.content__area ul,
.content__area ol {
  margin: 0 0 24px;
  padding-left: 22px;
  color: #4b4b4b;
}
.content__area li {
  margin-bottom: 10px;
}
.content__area li::marker {
  color: #4c6548;
}
.content__area img {
  max-width: 100%;
  height: auto;
  display: block;
}
.content__area figure {
  margin: 32px 0;
}
.content__area figcaption {
  font-size: 13px;
  color: #8a7a6a;
  margin-top: 8px;
  font-style: italic;
}
.content__area figure.aligncenter,
.content__area img.aligncenter,
.content__area .wp-block-image:not(.alignleft):not(.alignright) {
  margin-top: 32px;
  margin-bottom: 32px;
}

.content__area figure.aligncenter img,
.content__area img.aligncenter {
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
}
.content__area img.alignright,
.content__area .wp-block-image.alignright,
.content__area figure.alignright {
  float: right;
  margin: 6px 0 16px 32px;
  max-width: 45%;
  border-radius: 4px;
}
.content__area img.alignleft,
.content__area .wp-block-image.alignleft,
.content__area figure.alignleft {
  float: left;
  margin: 6px 32px 16px 0;
  max-width: 45%;
  border-radius: 4px;
}
.content__area h2,
.content__area h3 {
  clear: both;
}
.content__area .wp-block-gallery,
.content__area .content__image-row {
  display: flex;
  gap: 20px;
  margin: 32px 0;
  clear: both;
}
.content__area .wp-block-gallery figure,
.content__area .content__image-row figure,
.content__area .content__image-row img {
  flex: 1 1 0;
  margin: 0;
  width: 100%;
}
.content__area .wp-block-gallery img,
.content__area .content__image-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}
.content__area blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid #4c6548;
  color: #4a3626;
  font-style: italic;
}
/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 989px) {
  .our-history-wrapper {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .content-sidebar {
    position: unset;
  }
}
@media (max-width: 768px) {
  .content__area h2 {
    font-size: 26px;
    margin-top: 40px;
  }
  .content__area h3 {
    font-size: 20px;
  }
  .content__area img.alignright,
  .content__area img.alignleft,
  .content__area .wp-block-image.alignright,
  .content__area .wp-block-image.alignleft {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }
  .content__area .wp-block-gallery,
  .content__area .content__image-row {
    flex-direction: column;
  }
  .content__area .wp-block-gallery img,
  .content__area .content__image-row img {
    height: auto;
  }
}
/* The content design end  */

/* About us start  */
.our-team-wrapper > div:not(:last-child) {
  margin-bottom: clamp(25px, 3vw, 30px);
}
.our-team-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.team-item .featured-image {
  position: relative;
}
.team-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.team-item .featured-image > div {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #00000080;
  padding: 25px;
  text-align: right;
}
.team-item h3 {
  font-size: 22px;
  color: var(--light);
}
.team-item span {
  display: block;
  color: var(--light);
  font-weight: 500;
  margin: 4px 0 0;
}
.team-item .entry-content {
  margin: 20px 0 0;
}
.team-item .entry-content strong {
  font-weight: 500;
}
html {
  scroll-behavior: smooth;
}
#who-are-we,
#our-team {
  scroll-margin-top: 100px; /* adjust to your sticky header height */
}
.content-sidebar {
  align-self: start; /* needed if the parent is grid/flex */
}
.toc {
  position: sticky;
  top: 100px; /* same as scroll-margin-top */
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li:not(:last-child) {
  border-bottom: 1px solid #c8c8c8;
}
.toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}
.toc a.active svg path {
  fill: #674c1e;
}
.toc a.active {
  color: #4c6548;
}
@media (max-width: 989px) {
  .content-sidebar {
    max-width: 100%;
  }
  .about-us-wrapper {
    gap: 30px;
  }
  .toc li:last-child {
    border-bottom: 1px solid #c8c8c8;
  }
}
@media (max-width: 681px) {
  .our-team-container {
    grid-template-columns: 1fr;
  }
}
/* About us end  */
