/* .navbar-area.style-2 .navbar-nav .nav-link {
  color: #ffffff;
} */

/* On scroll - black text */
.navbar-area.style-2.is-sticky .navbar-nav .nav-link {
  color: #000000 !important;
  /* background-color: turquoise; */
}


/* Hide white logo on scroll */
.navbar-area.style-2.is-sticky .navbar-brand img {
  content: url('../images/mgi/logo/mgi-red.png') !important;
}


/* .navbar-area.style-2.is-sticky .navbar-nav .nav-link:hover {
  color: var(--optionalColor) !important;
} */



.buttonV1 {
  border-radius: 30px;
  color: var(--whiteColor);
  background-color: transparent;
  transition: var(--transition);
  display: inline-block;
  font-family: var(--headingFontFamily);
  padding: 15.5px 60.55px 15.5px 32.55px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 600;
}

.buttonV1:hover {
  background-color: var(--optionalColor);
  border-color: var(--optionalColor);
  color: var(--whiteColor);
}


.banner-wrapper-area {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

/* Dark overlay for readability */
.banner-wrapper-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(128, 0, 0, 0.43);
}

.banner-wrapper-content {
  position: relative;
  z-index: 2;
}



.hero-video-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* dark overlay */
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content h1 span {
  color: #f39c12;
  /* optional highlight */
}


.page-title-content h1 {
  color: white;
  /* softer than pure black */
}

.page-title-content h6 {
  color: #fff;
  /* lighter gray */
}


.navbar-area.style-2.is-sticky .nofa-responsive-nav .logo img {
  content: url('../images/mgi/logo/mgi-red.png') !important;
}


/* Change hamburger icon color on scroll */
.navbar-area.style-2.is-sticky .meanmenu-reveal span {
  background: #000 !important;
}

.navbar-area.style-2.is-sticky .meanmenu-reveal {
  color: #000 !important;
}








/* carousal */
/* .carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  }

  .carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform; 
  }

  .placement-card {
    flex: 0 0 270px;
    width: 270px;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .placement-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 52px 52px 0 0;
    border-color: #D0021B transparent transparent transparent;
    z-index: 2;
  }

  .placement-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: #D0021B;
  }

  .placement-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 48px rgba(208,2,27,0.2);
  }

  .placement-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
  } */


.mgi-carousel {
  --items: 9;
  --duration: 40s;
  --item-width: 310px;
  --item-height: 420px;
  --gap: 2rem;
  --red: #D0021B;

  position: relative;
  width: 100%;
  height: var(--item-height);
  overflow: hidden;

  /* FIX: Commented out the mask. If your scrolling is smooth now, 
     you know this was the culprit. Re-enable only if absolutely necessary 
     and test on mobile. */
  /* mask-image: linear-gradient(to right, transparent, black 8% 92%, transparent); */
  /* -webkit-mask-image: linear-gradient(to right, transparent, black 8% 92%, transparent); */
}

.mgi-carousel:hover .mgi-card {
  animation-play-state: paused;
}

.mgi-card {
  position: absolute;
  top: 0;
  left: calc(100% + var(--gap));
  width: var(--item-width);
  height: var(--item-height);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  background: #fff;

  /* FIX: Removed will-change: transform; here. */

  animation-name: mgi-marquee;
  animation-duration: var(--duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Red bottom bar */
.mgi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  z-index: 2;
}

.mgi-card:nth-child(1) {
  animation-delay: calc(var(--duration) / var(--items) * 0 * -1);
}

.mgi-card:nth-child(2) {
  animation-delay: calc(var(--duration) / var(--items) * 1 * -1);
}

.mgi-card:nth-child(3) {
  animation-delay: calc(var(--duration) / var(--items) * 2 * -1);
}

.mgi-card:nth-child(4) {
  animation-delay: calc(var(--duration) / var(--items) * 3 * -1);
}

.mgi-card:nth-child(5) {
  animation-delay: calc(var(--duration) / var(--items) * 4 * -1);
}

.mgi-card:nth-child(6) {
  animation-delay: calc(var(--duration) / var(--items) * 5 * -1);
}

.mgi-card:nth-child(7) {
  animation-delay: calc(var(--duration) / var(--items) * 6 * -1);
}

.mgi-card:nth-child(8) {
  animation-delay: calc(var(--duration) / var(--items) * 7 * -1);
}

.mgi-card:nth-child(9) {
  animation-delay: calc(var(--duration) / var(--items) * 8 * -1);
}

/* .mgi-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.mgi-card:hover img {
  transform: scale(1.03);
} */

@keyframes mgi-marquee {
  100% {
    transform: translateX(calc((var(--items) * (var(--item-width) + var(--gap))) * -1));
  }
}



/* Whatsapp */

#fixedWhatsAppIcon {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 60px;
  height: 60px;
  background-color: #54b460;
  text-align: center;
  line-height: 50px;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  z-index: 9999;
}

#fixedWhatsAppIcon:hover {
  background-color: #339933;
}

#fixedWhatsAppIcon {
  display: flex;
  align-items: center;
  justify-content: center;
}


@media only screen and (max-width: 1200px) {
  #fixedWhatsAppIcon {
    right: 10px;
    bottom: 120px;
  }
}

@media only screen and (max-width: 600px) {
  .banner-wrapper-content h1 {
    line-height: 60px !important;
  }
}



/* ---------- STACKING CARDS COMPONENT - FULLY ISOLATED & RESPONSIVE ---------- */

.stacking-cards-container {
  /* Component-specific CSS variables - responsive defaults */
  --sc-card-height: 70vh;
  --sc-card-margin: 3vw;
  --sc-card-top-offset: 0.8em;
  --sc-numcards: 4;
  --sc-outline-width: 0px;

  display: block;
  background: oklch(97.1% 0.013 17.38);
  width: 100%;
}

/* Responsive card height for different screen sizes */
@media (min-width: 768px) {
  .stacking-cards-container {
    --sc-card-height: 50vh;
    /* --sc-card-margin: 4vw; */
    --sc-card-top-offset: 1em;
  }
}

@media (min-width: 1024px) {
  .stacking-cards-container {
    --sc-card-height: 40vw;
    /* --sc-card-margin: 4vw; */
  }
}

/* Header section - responsive */
.stacking-cards-container .sc-header {
  width: 90vw;
  margin: 0 auto;
  height: 10vh;
  /* min-height: 400px; */
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .stacking-cards-container .sc-header {
    width: 80vw;
    height: 80vh;
    /* min-height: 500px; */
  }
}

@media (min-width: 1024px) {
  .stacking-cards-container .sc-header {
    height: 20vh;
  }
}

.stacking-cards-container .sc-header h1 {
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 3.5em);
  color: black;
  margin: 0;
}

.stacking-cards-container .sc-header p {
  font-weight: 300;
  line-height: 1.42;
  color: #555555;
  font-size: clamp(0.9rem, 4vw, 1.2rem);
  margin-top: 0.5rem;
}

/* Main container - responsive */
.stacking-cards-container .sc-main {
  width: 90vw;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stacking-cards-container .sc-main {
    width: 80vw;
  }
}

/* Cards list - responsive grid */
.stacking-cards-container .sc-cards-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--sc-numcards), var(--sc-card-height));
  gap: var(--sc-card-margin);
  padding-bottom: calc(var(--sc-numcards) * var(--sc-card-top-offset));
  margin-bottom: var(--sc-card-margin);
  outline: calc(var(--sc-outline-width) * 10) solid blue;
}

/* Individual card - sticky positioning creates the stacking effect */
.stacking-cards-container .sc-card {
  position: sticky;
  top: 80px;
  padding-top: calc(var(--sc-index) * var(--sc-card-top-offset));
  outline: var(--sc-outline-width) solid hotpink;
}

/* Card content wrapper - responsive layout */
.stacking-cards-container .sc-card-content {
  box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.1), 0 1em 2em rgba(0, 0, 0, 0.1);
  background: rgb(255, 255, 255);
  color: rgb(10, 5, 7);
  border-radius: 1em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: var(--sc-outline-width) solid lime;
  transform-origin: 50% 0%;
  will-change: transform;
  height: 100%;
}

/* Desktop: side-by-side layout */
@media (min-width: 640px) {
  .stacking-cards-container .sc-card-content {
    display: grid;
    grid-template-areas: "text img";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
  }
}

/* Text side - responsive spacing */
.stacking-cards-container .sc-card-content>div {
  grid-area: text;
  width: 85%;
  max-width: 650px;
  place-self: center;
  text-align: left;
  display: grid;
  gap: 1em;
  place-items: start;
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .stacking-cards-container .sc-card-content>div {
    width: 80%;
    padding: 0;
  }
}

.stacking-cards-container .sc-card-content h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.5em);
  margin: 0 0 35px 0;
  color: rgb(10, 5, 7);
}

.stacking-cards-container .sc-card-content p {
  /* font-family: sans-serif; */
  font-weight: 300;
  line-height: 1.42;
  margin: 0;
  color: rgb(10, 5, 7);
  font-size: clamp(0.85rem, 3.5vw, 1.2rem);
}

/* Button style - responsive touch target */
.stacking-cards-container .sc-btn {
  background: rgb(188, 87, 36);
  color: rgb(255, 255, 255);
  text-decoration: none;
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: 0.5em;
  /* font-family: sans-serif; */
  font-weight: 300;
  transition: background 0.2s;
  font-size: clamp(0.8rem, 3vw, 1rem);
  cursor: pointer;
}

/* Larger touch target for mobile */
@media (max-width: 640px) {
  .stacking-cards-container .sc-btn {
    padding: 0.75em 1.5em;
  }
}

.stacking-cards-container .sc-btn:hover {
  background: rgb(160, 70, 25);
}

/* Image side - responsive sizing */
.stacking-cards-container .sc-card-content>figure {
  grid-area: img;
  overflow: hidden;
  margin: 0;
  background: #f0f0f0;
  min-height: 200px;
}

@media (max-width: 640px) {
  .stacking-cards-container .sc-card-content>figure {
    min-height: 180px;
    order: -1;
    /* Image on top for mobile */
  }
}

.stacking-cards-container .sc-card-content>figure>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll-timeline animation for modern browsers - works on all screen sizes */
@supports (animation-timeline: scroll()) {
  @scroll-timeline sc-cards-scroll-timeline {
    source: selector(.stacking-cards-container);
    scroll-offsets: selector(.sc-cards-list) start 1, selector(.sc-cards-list) start 0;
    start: selector(.sc-cards-list) start 1;
    end: selector(.sc-cards-list) start 0;
    time-range: 4s;
  }

  .stacking-cards-container .sc-card {
    --sc-index0: calc(var(--sc-index) - 1);
    --sc-reverse-index: calc(var(--sc-numcards) - var(--sc-index0));
    /* --sc-reverse-index0: calc(var(--sc-reverse-index) - 1); */
  }

  .stacking-cards-container .sc-card-content {
    --sc-duration: calc(var(--sc-reverse-index0) * 1s);
    --sc-delay: calc(var(--sc-index0) * 1s);
    animation: var(--sc-duration) linear sc-scale-animation var(--sc-delay) forwards;
    animation-timeline: sc-cards-scroll-timeline;
  }

  @keyframes sc-scale-animation {
    to {
      transform: scale(calc(1.1 - calc(0.1 * var(--sc-reverse-index))));
    }
  }
}

/* Fallback for browsers without scroll-timeline */
@supports not (animation-timeline: scroll()) {
  .stacking-cards-container .sc-card-content {
    transition: transform 0.3s ease;
  }
}

/* Ensure smooth scrolling on mobile */
.stacking-cards-container {
  scroll-behavior: smooth;
}

/* Fix for sticky positioning on mobile browsers */
@supports (position: sticky) {
  .stacking-cards-container .sc-card {
    position: sticky;
  }
}



/* ---------- STACKING CARDS COMPONENT - FULLY ISOLATED & RESPONSIVE  ends---------- */


.dotted-border {
  border: 2px dotted #ccc;
  border-radius: 14px;
  padding: 16px;
}