/* ==============================
   OUR STORY PAGE STYLES
   ============================== */

/* ------------------------------
   HERO
   ------------------------------ */

.hero-section::before {
  background: transparent !important;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
}

.hero-title {
  /* font-size: 3rem;
  text-transform: uppercase; */
  letter-spacing: 2px;
}

.hero-subtitle {
  /* font-size: 1.2rem;
  font-weight: 300; */
  margin-top: 0.5rem;
}

.divider {
  width: 60px;
  height: 2px;
  background: #d4af37;
}

.origin-gems-chairman {
  background: linear-gradient(178deg, #a47051 15%, transparent 85%);
  position: relative;
}

/* ------------------------------
   KAPU ORIGIN
   ------------------------------ */
.kapu-origin {
  /* background: linear-gradient(178deg, #A47051 15%, transparent); */
  padding: 20% 10% 10% 7.5%;
  color: #ffffff;
}

.kapu-origin h2 {
  font-size: 2.8rem;
}

.kapu-origin .subline {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.kapu-origin img {
  position: absolute;
  display: block;
  height: auto !important;
  width: 100% !important;
  margin-top: -10%;
  object-fit: cover;
  z-index: 1;
}
/* .hand-image {
    position: absolute;
    display: block;
    height: auto !important;
    width: 100% !important;
    margin-top: -20%;
    object-fit: cover;
    z-index: 1;
} */

/* ------------------------------
   WHY KAPU GEMS
   ------------------------------ */
.why-kapu {
  /* background: linear-gradient(to bottom, #ffffff 0%, #f7f3f0 100%); */
  padding-top: 15em !important;
  padding-bottom: 10em !important;
}

.why-kapu h2 {
  font-size: 2.5rem;
  color: #8a3d2e;
}

.why-kapu .subtitle {
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-kapu .card {
  border: none;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  background: transparent;
}

/*Class Start added By KWS*/
.why-kapu .kwc-h3-main {
  color: #fff;
}
.why-kapu .mt-4 .card-top-l {
  border-radius: 25px 0px 0px 0px;
}
.why-kapu .mt-4 .card-top-r {
  border-radius: 0px 25px 0px 0px;
}
.why-kapu .mt-4 .card-btm-l {
  border-radius: 0px 0px 0px 25px;
}
.why-kapu .mt-4 .card-btm-r {
  border-radius: 0px 0px 25px 0px;
}
.why-kapu .card .kwc-h3-inn {
  position: relative;
  /* text-transform: uppercase; */
  /* font-size: 21px; */
  color: #fff;
  margin-top: -3.75em;
  /* padding: 15px 0; */
  font-family: "typhone";
}
/*Class End added By KWS*/

.why-kapu .card:hover {
  transform: translateY(-5px);
}

.why-kapu .card-body {
  background: #fff;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ------------------------------
   CHAIRMAN SECTION
   ------------------------------ */
.chairman {
  /* background: linear-gradient(to bottom, #f7f3f0 0%, #ffffff 100%); */
}

.chairman h1 {
  font-size: 3rem;
  color: #8a3d2e;
}

.chairman .author {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 1rem;
}

.chairman .hero-subtitle {
  font-family: "SourceSans3";
  font-weight: 800;
}

.values-timeline-excellence {
  background: linear-gradient(180deg, #ffffff 32%, #dbc2b4 64%, #b47e61 100%);
  margin-bottom: -10%;
}

/* ------------------------------
   VALUES SECTION
   ------------------------------ */
.values {
  background: url("../images/Ourstory/kapu14\ 1.png");
  background-position-y: bottom;
  background-size: contain;
  background-repeat: no-repeat;
}

.values h2 {
  font-size: 2.5rem;
  color: #8a3d2e;
}

.values .subtitle {
  font-size: 0.9rem;
  color: #777;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.values strong {
  color: #000;
  font-weight: bold;
}

/* Values Tabs */
.value-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.value-tab {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.value-tab::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #8a3d2e;
  transition: width 0.3s ease;
}

.value-tab.active::after {
  width: 120%;
}

.value-tab.active strong {
  color: #8a3d2e;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Tab Styles */
.value-tab {
  font-family: "Typhone";
  cursor: pointer;
  margin-right: 2rem;
  position: relative;
  transition: all 0.3s ease;
  color: #b7b6b8;
  font-size: 1.5rem;
}

.value-tab.active {
  color: #545454;
  font-weight: bold;
}

.value-tab::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #de4e2c;
  transition: width 0.3s ease;
}

.value-tab.active::after {
  width: 120%;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

.value-title {
  font-size: 1.5rem;
  font-family: "Typhone";
  margin-bottom: 1rem;
}

/* ------------------------------
   TIMELINE
   ------------------------------ */
.timeline {
  padding: 3% !important;
}

.timeline-line {
  font-size: 0.85rem;
}

.highlight-year {
  font-size: 1.5rem;
  font-weight: bold;
  color: #de4e2c;
  font-family: "Typhone";
}

.event-carousel-item {
  display: none;
  transition: opacity 0.6s ease;
}
.event-carousel-item.active {
  display: block;
  opacity: 1;
}
/* Custom indicators like in your screenshot */
.carousel-indicators {
  gap: 1rem;
}
.carousel-indicators .indicator {
  display: inline-block;
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: #e4cfc5; /* inactive color */
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-indicators .indicator.active {
  background: #d94b2b; /* active color */
}

/* ------------------------------
   EXCELLENCE
   ------------------------------ */
.excellence {
  /* background: #fff; */
  color: #ffffff !important;
  padding-bottom: 15% !important;
}

.excellence h2 {
  font-size: 3rem;
  color: #985333;
  font-family: "Typhone";
}

/* ------------------------------
   GLOBAL FOOTPRINT
   ------------------------------ */
/* .global-footprint {
  background: linear-gradient(to top, #faf1eb 0%, #fff 100%);
  width: 70%;
  position: absolute;  
  left: 50%;
  transform: translateX(-50%);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: -80px;
}

.global-footprint h4 {
  font-size: 1.4rem;
  color: #210d07;
}

.global-footprint .form-control {
  border-radius: 25px;
  padding: .5rem 1rem;
}

.global-footprint .btn {
  border-radius: 25px;
  padding: .5rem 1.5rem;
  background: #210d07;
  color: #fff;
}

.global-footprint .logos img.logo {
  max-height: 60px;
  transition: filter .3s;
}

.global-footprint .logos img.logo:hover {
  filter: grayscale(0%);
} */

/* ------------------------------
   FOOTER
   ------------------------------ */
.footer-section {
  padding-top: 350px !important;
}
.footer {
  background: linear-gradient(to top, #210d07 0%, #432a23 50%, #76594f 100%);
  color: #fff;
}

.footer p {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

.footer .social-icons a {
  color: #fff;
  transition: color 0.3s;
}

.footer .social-icons a:hover {
  color: #d4af37;
}

/* Container to control the hover effect */
.card-hover {
  position: relative;
  overflow: hidden; /* keep animations clipped to the card  */
  border: 0;
  border-radius: 1rem;
}

/* Image animation */
.card-hover .card-img-top {
  display: block;
  width: 100%;
  height: 220px; /* set a consistent height */
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  transform-origin: center;
  border-radius: 0% !important;
}

/* Content sits over image, initially hidden */
.card-hover .card-body {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: grid;
  place-items: center; /* center content */
  padding: 1.25rem;
  background: #b47e61; /* dark veil so text is readable */
  color: #fff;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  text-align: center;
}

/* Hover state: hide image, reveal content */
.card-hover:hover .card-img-top {
  transform: scale(1.07); /* subtle zoom for motion */
  opacity: 0; /* fade out */
  filter: blur(2px); /* optional: slight blur while fading */
}

.card-hover:hover .card-body {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: nice focus-visible for keyboard users */
.card-hover:focus-within .card-img-top {
  transform: scale(1.07);
  opacity: 0;
  filter: blur(2px);
}
.card-hover:focus-within .card-body {
  opacity: 1;
  transform: translateY(0);
}

/* Small helper styles */
.badge-soft {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

/* ------------------------------
   RESPONSIVE
   ------------------------------ */
@media (max-width: 992px) {
  .kapu-origin-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 4rem;
  }
  .kapu-origin img {
    position: absolute;
    display: block;
    height: auto !important;
    width: 100% !important;
    margin-top: 5%;
    object-fit: cover;
    z-index: 1;
  }
}

@media (max-width: 768px) {
  .timeline-line{
    display: none !important;
  }
  .events-section .event-content .event-title {
    font-size: 1rem;
  }

  .event-layout {
    flex-direction: column;
    gap: 20px;
  }

  .event-image {
    width: 100%;
    max-width: 400px;
  }

  .event-details {
    padding-left: 0;
  }

  p {
    font-size: 12px;
  }
  .text-sm-center {
    text-align: center !important;
  }
  .traceable .traceable-content-bottom {
  }
  .kapu-origin {
    padding: 20% 0% !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .kapu-origin p {
    font-size: 0.6rem;
    text-align: center;
  }
  .kapu-origin .hero-title {
    text-align: center;
  }
  .why-kapu {
    padding-top: 25em !important;
  }
  .why-kapu p {
    font-size: 0.6rem !important;
  }
  .why-kapu h2,
  .chairman h2,
  .values h2,
  .excellence h2 {
    font-size: 1.8rem;
  }
  .values {
    background-size: cover;
  }
  .card .kwc-h3-inn {
    font-size: 0.8em !important;
    top: -10px;
  }
  .card-hover .card-img-top {
    height: 150px;
    border-radius: 0px !important;
  }
  .card-top-mb-r {
    border-radius: 0px 25px 0px 0px !important;
  }
  .card-bottom-mb-l {
    border-radius: 0px 0px 0px 25px !important;
  }
  .card-top-r,
  .card-btm-l {
    border-radius: 0px !important;
  }
  .events-section .event-card {
    padding-left: 0% !important;
  }
  .chairman p {
    font-size: 0.7rem;
    text-align: center;
  }
  .chairman .hero-title,
  .chairman .hero-subtitle {
    text-align: center;
  }
  .chairman .row {
    margin: 0 !important;
  }

  .value-tabs {
    flex-direction: row;
    justify-content: space-between;
  }

  .value-tab {
    font-size: 1em;
    margin-right: 0;
  }
}
@media(max-width: 1025px)
{
  .timeline-image-container{
    margin-top: 3rem !important;
  }
}