/* Home Page Styles */

/* Single document scroll — avoid #wrapwrap / .t-dark-mode inner scrollbars
   (overflow-x: hidden alone forces overflow-y: auto and duplicates the scrollbar) */
html:has(.t-dark-mode) {
  height: auto !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
}

body:has(.t-dark-mode),
#wrapwrap:has(.t-dark-mode),
#wrap:has(.t-dark-mode) {
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Root container — document flow (no fixed 5882px canvas / inner scroll) */
.t-dark-mode {
  min-height: 100vh;
  height: auto;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

/* Hero Image Styles */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 1728px;
  height: 972px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

/* Hero Content Overlay */
.hero-content {
  position: absolute;
  width: 90%;
  max-width: 1200px;
  height: 272px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 1;
  text-align: center;
}

.hero-text {
  width: 100%;
  height: 184px;
  opacity: 1;
}

.hero-text h1 {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 72px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: #ffffff !important;
  margin: 0;
  padding: 0;
}

.hero-button {
  width: 180px;
  height: 56px;
  opacity: 1;
  transform: rotate(0deg);
  border-radius: 4px;
  padding: 17px 30px;
  background: #BA9C44;
  border: none;
  color: var(--text-primary, #000000);
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-button:hover {
  background: #A68B3A;
  transform: translateY(-2px);
}

/* Carousel Navigation Dots */
.carousel-dots {
  position: absolute;
  width: 114px;
  height: 20px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 27px;
  opacity: 1;
  justify-content: center;
  align-items: center;
}

/* Carousel dots - removed to avoid conflict with timeline dots */

/* All slides use the same centered positioning */

/* KPM Portfolio Container */
.kpm-portfolio-container {
  position: relative;
  width: 100%;
  max-width: 1728px;
  height: 844px;
  margin: 0 auto;
  padding: 40px 20px;
  padding-left: 10%;
  box-sizing: border-box;
  display: block;
  background: transparent;
  min-height: 700px;
}

.portfolio-text {
  position: relative;
  width: 213px;
  height: 41px;
  margin-bottom: 40px;
  opacity: 1;
  transform: rotate(0deg);
  display: block;
  z-index: 5;
}

.portfolio-text h2 {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  color: var(--accent-color, #B1974D);
  margin: 0;
  padding: 0;
  position: relative;
}

/* .portfolio-text h2::after {
  content: '↔';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-color, #B1974D);
  opacity: 0.7;
  animation: scrollIndicator 2s ease-in-out infinite;
} */
.portfolio-wrapper {
  position: relative;
}

.portfolio-arrows {
  position: absolute;
  top: calc(90% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: auto;
}

.portfolio-arrows .arrow {
  background: rgba(177, 151, 77, 0.8);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 50%;
  pointer-events: auto;
  transition: all 0.3s;
  z-index: 11;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-arrows .arrow:hover {
  background: rgba(177, 151, 77, 1);
  transform: scale(1.1);
}

@keyframes scrollIndicator {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(5px);
  }
}

.portfolio-images-container {
  position: relative;
  width: 100%;
  height: 568px;
  display: flex;
  gap: 10px;
  opacity: 1;
  justify-content: flex-start;
  overflow: hidden;
  cursor: pointer;
  max-width: 100%;
}

.portfolio-image,
a.portfolio-image-link {
  width: 426px;
  height: 568px;
  opacity: 1;
  box-shadow: 0px 4px 10px 0px #00000040;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  transition: transform 0.5s ease-in-out, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.portfolio-image:hover,
a.portfolio-image-link:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.35);
}

/* Portfolio Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 11px 0 0 0;
  box-sizing: border-box;
}

/* Portfolio SVG */
.portfolio-svg {
  width: 284px;
  height: 60px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 374px;
  left: 20%;
  transform: translateX(-50%);
}

.portfolio-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* BTC, Travel Boutique & Gemeva — subtle scale on desktop only */
@media screen and (min-width: 1201px) {
  .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg,
  .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg,
  .portfolio-image-link[aria-label="Gemeva brand"] .portfolio-svg {
    overflow: visible;
  }

  .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg img {
    transform: scale(1.18);
    transform-origin: center center;
  }

  .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg img {
    transform: scale(1.12);
    transform-origin: center center;
  }

  .portfolio-image-link[aria-label="Gemeva brand"] .portfolio-svg img {
    transform: scale(1.12);
    transform-origin: center center;
  }
}

/* Portfolio Text Overlay */
.portfolio-text-overlay {
  width: 355px;
  height: 60px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 478px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0%;
  color: #ffffff !important;
}


.portfolio-image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Nexa', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Nexa', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #00d4ff;
  color: var(--text-primary, #000000);
}

.btn-primary:hover {
  background-color: #00b8e6;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary, #000000);
  border-color: var(--text-primary, #000000);
}

.btn-secondary:hover {
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #000000);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-family: 'Nexa', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--accent-color, #B1974D);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: #2d2d2d;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-primary, #000000);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Nexa', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-color, #B1974D);
}

.feature-card p {
  color: var(--text-secondary, #333333);
  line-height: 1.6;
}

/* Responsive Design */
/* Hero Image Responsive Styles */
@media screen and (max-width: 1728px) {
  .hero-image-container {
    height: calc(100vw * 0.5625);
    /* Maintain 16:9 aspect ratio */
    max-height: 972px;
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .hero-image-container {
    height: calc(100vw * 0.5625);
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }

  .hero-content {
    width: 90%;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero-text {
    width: 100%;
    padding-top:30px ;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .carousel-dots {
    width: 90px;
    left: 50%;
    transform: translateX(-50%);
    top: 85%;
    gap: 20px;
  }

  .kpm-portfolio-container {
    width: 100%;
    max-width: 1728px;
    height: auto;
    padding: 40px 20px;
  }

  .portfolio-text {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 768px) {
  .hero-image-container {
    height: calc(100vw * 0.6);
    /* Slightly taller on mobile for better visibility */
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }

  .hero-content {
    width: 90%;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    gap: 20px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .carousel-dots {
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: 85%;
    gap: 18px;
  }

  .kpm-portfolio-container {
    padding: 30px 15px;
  }

  .portfolio-text h2 {
    font-size: 28px;
  }

  .svg-container {
    max-width: 100%;
    height: auto;
    top: 0;
    padding: 15px;
  }

  .svg-image-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    padding: 0 15px;
  }

  .main-svg {
    width: 100%;
    height: auto;
    max-width: 924px;
  }

  .main-image {
    width: 100%;
    height: auto;
    max-width: 802px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
  }

  .features {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-card {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 480px) {
  .hero-image-container {
    height: calc(100vw * 0.65);
    /* Even taller on very small screens */
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }

  .hero-content {
    width: 95%;
    left: 2.5%;
    top: 50%;
    transform: translateY(-50%);
    gap: 16px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-button {
    width: 140px;
    height: 48px;
    padding: 14px 24px;
    font-size: 16px;
  }

  .carousel-dots {
    width: 70px;
    left: 50%;
    transform: translateX(-50%);
    top: 85%;
    gap: 15px;
  }

  .kpm-portfolio-container {
    padding: 20px 10px;
  }

  .portfolio-text h2 {
    font-size: 24px;
  }

  .svg-container {
    max-width: 100%;
    height: auto;
    top: 0;
    padding: 20px;
  }

  .svg-image-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 0 10px;
  }

  .main-svg {
    width: 100%;
    height: auto;
    max-width: 924px;
  }

  .main-image {
    width: 100%;
    height: auto;
    max-width: 802px;
  }
}


/* Container for SVG and Image */
.svg-image-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1728px;
  margin: 71px auto;
  padding: 0 20px clamp(40px, 5vw, 80px);
  box-sizing: border-box;
  overflow: visible;
}

.main-svg {
  padding-top: 30px;
  width: 924px;
  height: 747px;
  opacity: 1;
  transform: rotate(0deg);
  object-fit: cover;
  flex-shrink: 0;
}

.main-image {
  width: 802px;
  height: 802px;
  opacity: 1;
  transform: rotate(0deg);
  object-fit:contain;
  flex-shrink: 0;
}

/* About Text Container — overlays pattern + photo inside .svg-image-container */
.about-text-container {
  width: 704px;
  max-width: 41%;
  min-height: 0;
  height: auto;
  opacity: 1;
  transform: none;
  position: absolute;
  top: 22%;
  left: 14%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 40px);
  padding-top: clamp(24px, 3vw, 48px);
  background: var(--bg-secondary, #f8f9fa);
  box-sizing: border-box;
  overflow: visible;
}

.about-text-container span:nth-child(1) {
  width: 100%;
  height: auto;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0%;
  color: var(--accent-color, #B1974D);
  display: block;
}

.about-text-container span:nth-child(2) {
  width: 100%;
  height: auto;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  color: var(--text-primary, #000000);
  display: block;
}

.about-text-container span:nth-child(3) {
  width: 100%;
  height: auto;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  color: var(--text-primary, #000000);
  display: block;
}

/* Responsive styles for about-text-container */
@media screen and (max-width: 1200px) {
  /* 1025–1200px gap: use document flow (not fixed 5882px canvas + absolute footer) */
  .t-dark-mode {
    height: auto !important;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .KPM_WEBSITE_FOOTER,
  .kpm-careers-detial-svg-footer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 50px;
  }

  .kpm-portfolio-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .kpm-timeline-number {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 208px;
    margin: auto;
  }

  .kpm-timeline-number span {
    font-size: 28px;
  }

  .timeline-number-sections {
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    padding: 0 15px;
  }

  .timeline-number-section {
    flex: 0 0 auto;
    align-self: center;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: clamp(30px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px);
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: min(282px, 92vw);
    align-items: center !important;
    justify-content: center !important;
  }

  .timeline-number-section .timeline-text-primary {
    font-size: clamp(26px, 4vw, 34px);
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    line-height: 1;
    text-align: center !important;
  }

  .timeline-number-section .timeline-text-secondary {
    font-size: clamp(12px, 2.5vw, 14px);
    text-align: center !important;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    line-height: 1.2;
  }

  .timeline-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1558px;
    height: auto;
    min-height: 400px;
    margin: 40px auto;
    padding: 20px;
  }

  .timeline-text {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 208px;
    height: auto;
    margin: 20px auto;
  }

  .timeline-text span {
    font-size: 28px;
  }

  /* Timeline: grid — title full-width row 1, dots left + content right row 2 */
  .timeline-container {
    display: grid !important;
    grid-template-columns: minmax(96px, 110px) minmax(0, 1fr) !important;
    grid-template-areas:
      "title title"
      "dots  content" !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .timeline-text {
    grid-area: title !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 16px 0 8px !important;
    margin: 0 0 12px !important;
  }

  .dots-container {
    grid-area: dots !important;
    position: relative;
    top: 0;
    left: 0;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0 4px 0 0 !important;
    display: grid !important;
    grid-template-rows: repeat(11, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: center !important;
    gap: 0 !important;
    align-self: stretch !important;
    min-height: 100% !important;
    overflow: visible !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  .dot-year-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
  }

  .dot-year-item .dot {
    flex-shrink: 0 !important;
  }

  .dot {
    width: 4px;
    height: 4px;
  }

  .dot.active {
    width: 8px;
    height: 8px;
    transform: none;
  }

  .year-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: clamp(9px, 1vw, 11px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: right !important;
    overflow: visible !important;
  }

  .year-text.active {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(11px, 1.15vw, 13px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .timeline-line {
    display: none !important;
  }

  .timeline-content-sections {
    grid-area: content !important;
    flex: none !important;
    min-width: 0;
    overflow-x: hidden !important;
    height: auto !important;
    align-self: stretch !important;
    margin: 0 12px !important;
    padding: 0;
    display: flex !important;
    flex-direction: column !important;
    border-left: 2px dashed #BA9C44 !important;
  }

  .timeline-content-item {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .timeline-image-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-height: clamp(220px, 28vw, 360px) !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    box-sizing: border-box !important;
  }

  .timeline-image {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(220px, 28vw, 360px) !important;
    min-height: unset !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .timeline-text-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(18px, 3vw, 32px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .timeline-text-section .timeline-text-primary {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    font-size: 36px;
    margin-bottom: 12px;
  }

  .timeline-text-section .timeline-text-secondary {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 1.75;
  }

  .svg-ceo-container {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    max-width: 1728px;
    height: auto;
    margin: 40px auto;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .main-svg {
    width: 100%;
    max-width: 924px;
    height: auto;
    margin: 0 auto;
  }

  .ceo-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 567px;
    height: auto;
    margin: 20px auto 0;
  }

  .about-ceo-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 20px auto 0;
    padding: 30px;
  }

  .about-ceo-container span:first-child {
    font-size: 20px;
    line-height: 26px;
  }

  .about-ceo-container span:last-child {
    font-size: 14px;
    line-height: 20px;
  }

  .ceo-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 567px;
    height: auto;
    margin: 20px auto;
  }

  .news-events-text {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1162px;
    height: auto;
    margin: 40px auto;
  }

  .news-events-text span {
    font-size: 28px;
  }

  .news-events-section {
    margin: 50px auto 50px;
    padding: 0 15px;
  }

  .news-events-content {
    flex-direction: column;
    gap: 30px;
  }

  .news-events-svg-left,
  .news-events-svg-right {
    width: 18px;
    height: 18px;
    padding: 6px;
  }

  .news-events-svg-left {
    order: 1;
  }

  .news-events-svg-right {
    order: 3;
    transform: rotate(0deg);
  }

  .news-events-image-container {
    order: 2;
    width: 100%;
    max-width: 1022px;
    height: auto;
    flex-direction: column;
    gap: 20px;
  }

  .news-events-image-item {
    width: 90%;
    max-width: 314px;
    height: 350px;
    position: absolute;
    display: none !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 0;
    box-sizing: border-box;
    top: 0;
  }

  .news-events-image-item:first-child {
    display: flex !important;
  }

  .news-events-image-item.active {
    display: flex !important;
  }

  .news-events-image-text {
    width: 100%;
    max-width: 280px;
    height: 50px;
  }

  .news-events-image-text span {
    font-size: 20px;
    line-height: 26px;
  }

  /* Few cards: show all items, no side arrows (tablet / mid-width) */
  .news-events-section.news-events--few-cards .news-events-content > .news-events-svg-left,
  .news-events-section.news-events--few-cards .news-events-content > .news-events-svg-right {
    display: none !important;
  }

  .news-events-section.news-events--few-cards .news-events-content {
    justify-content: center;
  }

  .news-events-section.news-events--few-cards .news-events-image-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    min-height: 0;
    gap: 24px;
  }

  .news-events-section.news-events--few-cards .news-events-image-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    margin: 0 !important;
  }
}

/* KPM Timeline Text */
.kpm-timeline-number {
  position: relative;
  top: 0;
  left: 0;
  width: 257px;
  height: auto;
  min-height: 41px;
  opacity: 1;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media screen and (min-width: 1201px) {
  .kpm-timeline-number {
    top: 67px;
    height: 41px;
  }
}

.kpm-timeline-number span {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--accent-color, #B1974D);
}

/* Timeline Sections */
.timeline-number-sections {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin: 60px 0;
  padding: 0 20px;
  padding-top: 5%;
  max-width: 1478px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: flex-start;
}

.timeline-number-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  transition: all 0.3s ease;
  flex: 0 1 240px;
  text-align: center;
  min-width: 0;
}


.timeline-svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-svg img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.timeline-text-primary {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 700;
  font-size: 64px;
  color: var(--accent-color, #B1974D);
  text-align: center;
  margin-bottom: 5px;
  width: auto;
  max-width: 218px;
  height: auto;
  min-height: 0;
  line-height: 1.1;
}

@media screen and (min-width: 1201px) {
  .timeline-number-section .timeline-text-primary {
    width: 218px;
    height: 97px;
  }
}

.timeline-text-secondary {
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-primary, #000000);
  line-height: 1.4;
  text-align: center;
  word-wrap: break-word;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
  width: 100%;
  max-width: 1558px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  margin: 100px auto 0;
  padding: 0 20px;
  /* background: var(--bg-secondary, #f8f9fa); */
  box-sizing: border-box;
}

/* Timeline Text */
.timeline-text {
  width: 208px;
  height: 41px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  margin: 67px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-text span {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--accent-color, #B1974D);
}

/* Dots Container */
.dots-container {
  width: 100%;
  max-width: 1244px;
  height: 56px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  margin: 40px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  z-index: 10;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Dot Year Item */
.dot-year-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 11;
  position: relative;
  padding: 10px;
  min-width: 60px;
  flex-shrink: 0;
}

.dot-year-item:hover {
  transform: translateY(-2px);
  background: rgba(186, 156, 68, 0.1);
  border-radius: 8px;
}

.dot-year-item:hover .dot {
  transform: scale(1.1);
}

.dot-year-item:hover .year-text {
  color: var(--accent-color, #B1974D);
}

/* Dots */
.dot {
  width: 5px;
  height: 5px;
  opacity: 1;
  transform: rotate(0deg);
  background: #BA9C44;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot.active {
  width: 12px;
  height: 12px;
  opacity: 1;
  transform: scale(1.2);
  background: #BA9C44;
  border-radius: 50%;
}

.dot-header {
  width: 20px;
  height: 20px;
  opacity: .5;
  transform: rotate(0deg);
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot-header.active {
  width: 20px;
  height: 20px;
  opacity: 1;
  transform: rotate(0deg);
  background: #BA9C44;
  border-radius: 50%;
}

/* Year Text — match About Us timeline nav (single-line labels, same sizing) */
.year-text {
  width: auto;
  min-width: 48px;
  height: auto;
  min-height: 22px;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  text-align: center;
  color: var(--text-primary, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.year-text.active {
  width: auto;
  min-width: 79px;
  height: auto;
  min-height: 41px;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--text-primary, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Timeline Line */
.timeline-line {
  width: 100%;
  max-width: 1555px;
  height: 0px;
  opacity: 1;
  transform: rotate(-0deg);
  position: relative;
  margin: 40px auto 0;
  border: 1px dashed #BA9C44;
  border-style: dashed;
  border-width: 1px;
}

/* Timeline Content Sections */
.timeline-content-sections {
  position: relative;
  width: 100%;
  height: auto;
  margin: 40px auto 0;
  max-width: 1558px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

/* Timeline Content Item */
.timeline-content-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.timeline-image {
  transition: opacity 0.5s ease-in-out;
}

.timeline-text-section span {
  transition: opacity 0.5s ease-in-out;
}

/* Timeline Image Section */
.timeline-image-section {
  width: 100%;
  max-width: 880px;
  height: 495px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  margin: 0 auto;
}

.timeline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline Text Section */
.timeline-text-section {
  width: 100%;
  max-width: 673px;
  height: 495px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  background: var(--bg-secondary, #f8f9fa);
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.timeline-text-section .timeline-text-primary {
  width: 100%;
  min-height: 79px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 64px;
  line-height: 125%;
  letter-spacing: 0%;
  color: var(--text-primary, #000000);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 12px;
}

.timeline-text-section .timeline-text-title {
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #B1974D;
  display: block;
  text-align: left;
}

.timeline-text-section .timeline-text-secondary {
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: auto;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0%;
  color: var(--text-primary, #000000);
  display: block;
  text-align: left;
}

/* SVG CEO Container */
.svg-ceo-container {
  width: 100%;
  max-width: 1728px;
  height: 806px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  margin: 100px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-sizing: border-box;
}

/* Main SVG */
.main-svg {
  width: 924px;
  height: 747px;
  opacity: 1;
  transform: rotate(0deg);
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}

/* CEO Image */
.ceo-image {
  width: 567px;
  height: 567px;
  opacity: 1;
  transform: rotate(0deg);
  position: absolute;
  top: 77px;
  left: 259px;
  object-fit: cover;
  z-index: 2;
}

/* About CEO Container */
.about-ceo-container {
  width: 450px;
  height: 343px;
  opacity: 1;
  transform: rotate(0deg);
  position: absolute;
  top: 180px;
  left: 1011px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 50px;
  border-radius: 12px;
  box-sizing: border-box;
  z-index: 3;
}

.about-ceo-container span:first-child {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 30px;
  letter-spacing: 0%;
  color: var(--accent-color, #B1974D);
  display: block;
}

.about-ceo-container span:last-child {
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  color: var(--text-primary, #000000);
  display: block;
}

/* News & Events Section */
.news-events-section {
  width: 100%;
  max-width: 1728px;
  margin: 100px auto 100px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hide mobile-specific news-events-arrows container on desktop, but keep portfolio-arrows */
.news-events-arrows {
  display: none !important;
}

/* Desktop portfolio arrows - shown below portfolio */
.portfolio-arrows {
  position: absolute;
  top: calc(90% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  display: flex !important;
  justify-content: space-between;
  z-index: 10;
  pointer-events: auto;
}

.portfolio-arrows .news-events-svg-left,
.portfolio-arrows .news-events-svg-right {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-arrows .news-events-svg-left {
  transform: rotate(-180deg);
}

.portfolio-arrows .news-events-svg-left:hover {
  /* background: rgba(177, 151, 77, 1); */
  transform: rotate(-180deg) scale(1.1);
}

.portfolio-arrows .news-events-svg-right:hover {
  /* background: rgba(177, 151, 77, 1); */
  transform: scale(1.1);
}

.portfolio-arrows .news-events-svg-left svg,
.portfolio-arrows .news-events-svg-right svg {
  width: 20px;
  height: 20px;
}

/* Show inline desktop arrows for news-events section on desktop */
.news-events-content .news-events-svg-left,
.news-events-content .news-events-svg-right {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* News & Events Text */
.news-events-text {
  width: 100%;
  height: 41px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.news-events-text span {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--accent-color, #B1974D);
}

/* News & Events Content Container */
.news-events-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Fewer than four cards: hide carousel arrows and center the row (class set in initializeNewsEvents) */
.news-events-section.news-events--few-cards .news-events-content {
  justify-content: center;
}

.news-events-section.news-events--few-cards .news-events-content > .news-events-svg-left,
.news-events-section.news-events--few-cards .news-events-content > .news-events-svg-right {
  display: none !important;
}

/* News & Events SVG Icons */
.news-events-svg-left {
  width: 24px;
  height: 24px;
  transform: rotate(-180deg);
  opacity: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hover-bg, rgba(0, 0, 0, 1));
  transition: all 0.3s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.news-events-svg-left:hover {
  background: rgba(186, 156, 68, 0.2);
  transform: rotate(-180deg) scale(1.1);
}

.news-events-svg-right {
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  opacity: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hover-bg, rgba(0, 0, 0, 1));
  transition: all 0.3s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.news-events-svg-right:hover {
  background: rgba(186, 156, 68, 0.2);
  transform: rotate(0deg) scale(1.1);
}

/* News & Events Image Container */
.news-events-image-container {
  width: 100%;
  max-width: 1022px;
  height: 314px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the cards horizontally */
  gap: 40px;
  box-sizing: border-box;
  flex: 1;
}

/* News & Events Image Item */
.news-events-image-item {
  width: 314px;
  height: 314px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  border-radius: 8px;
  padding: 50px 12px 50px 12px;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.news-events-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 1;
  filter: brightness(.5);
}

.news-events-image-text {
  width: 280px;
  height: 60px;
  opacity: 1;
  transform: rotate(0deg);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0%;
  color: #ffffff !important;
}


.hero-title {
  font-size: 2rem;
}

.hero-subtitle {
  font-size: 1rem;
}

.container {
  padding: 0 15px;
}

.hero-container {
  padding: 0 15px;
}

/* ===================================
   COMPREHENSIVE RESPONSIVE DESIGN
   =================================== */

/* Navbar Responsive Styles */
.kpm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
}

.kpm-nav__logo {
  flex-shrink: 0;
}

.kpm-nav__logo img {
  height: 40px;
  width: auto;
}

.kpm-nav__tabs {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.kpm-nav__tab {
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.kpm-nav__tab:hover {
  color: var(--accent-color, #B1974D) !important;
}

.kpm-nav__icons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.kpm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpm-icon img {
  width: 20px;
  height: 20px;
}

.kpm-nav__divider {
  width: 100%;
  height: 1px;
  background: rgba(177, 151, 77, 0.3);
  margin: 0 auto;
  max-width: 100%;
}

/* Mobile Menu Toggle (Hidden by default, shown on mobile) */
.kpm-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

/* Mobile and Tablet Responsive - Desktop-like Layout */
@media screen and (max-width: 1024px) {

  /* Mobile Navbar - Keep desktop layout but smaller */
  .kpm-nav {
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .kpm-nav__logo {
    margin: 0;
    order: 1;
  }

  .kpm-nav__mobile-toggle {
    display: flex;
    order: 3;
    margin: 0;
  }

  .kpm-nav__tabs {
    display: none;
  }

  .kpm-nav__icons {
    display: none;
  }

  /* Mobile / tablet hero — 16:9 aspect ratio (avoid 50vh cropping on short viewports) */
  .hero-image-container {
    width: 100%;
    height: auto;
    min-height: clamp(360px, 56.25vw, 620px);
    max-height: none;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 640px);
    height: auto;
    min-height: 0;
    text-align: center;
    z-index: 2;
    padding: 0 12px;
    gap: 16px;
  }

  .hero-text {
    height: auto;
  }

  .hero-text h1 {
    font-size: clamp(18px, 4.8vw, 32px);
    line-height: 1.3;
    margin: 0;
    color: white;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .carousel-dots {
    position: absolute;
    bottom: clamp(16px, 3vw, 28px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
  }

  .dot-header {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .dot-header.active {
    background: #B1974D;
  }

  /* Mobile Portfolio - Show one brand at a time with navigation arrows */
  .kpm-portfolio-container {
    padding: 20px;
    position: relative;
    margin-top: 0;
    height: auto;
    min-height: 0;
  }

  .portfolio-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }

  .portfolio-images-container {
    overflow: hidden;
    padding: 0 0 32px;
    margin: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    min-height: calc(min(92vw, 350px) * 1.5429 + 32px);
    box-sizing: border-box;
  }

  .portfolio-image,
  a.portfolio-image-link {
    width: min(92vw, 350px);
    height: auto;
    aspect-ratio: 350 / 540;
    min-height: clamp(500px, 142vw, 580px);
    max-height: none;
    flex-shrink: 0;
    position: absolute;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateX(28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    top: 0;
    transition:
      opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
  }

  /* Before JS init: show first card only */
  .portfolio-images-container:not(.portfolio-carousel-ready) .portfolio-image:first-child {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(-50%) translateX(0);
  }

  .portfolio-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(-50%) translateX(0);
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.45);
  }

  .portfolio-image.portfolio-exit-left {
    opacity: 0;
    transform: translateX(-50%) translateX(-28px);
    z-index: 1;
  }

  .portfolio-image.portfolio-exit-right {
    opacity: 0;
    transform: translateX(-50%) translateX(28px);
    z-index: 1;
  }

  .portfolio-image.portfolio-enter-right {
    visibility: visible;
    z-index: 3;
    transform: translateX(-50%) translateX(28px);
    opacity: 0;
  }

  .portfolio-image.portfolio-enter-right.active {
    transform: translateX(-50%) translateX(0);
    opacity: 1;
  }

  .portfolio-image.portfolio-enter-left {
    visibility: visible;
    z-index: 3;
    transform: translateX(-50%) translateX(-28px);
    opacity: 0;
  }

  .portfolio-image.portfolio-enter-left.active {
    transform: translateX(-50%) translateX(0);
    opacity: 1;
  }

  .portfolio-image.active .portfolio-svg,
  .portfolio-image.active .portfolio-text-overlay {
    animation: kpm-portfolio-overlay-rise 0.52s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
  }

  @keyframes kpm-portfolio-overlay-rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .portfolio-image,
    .portfolio-image.active {
      transition: opacity 0.2s ease;
      transform: translateX(-50%);
      animation: none;
    }

    .portfolio-image.portfolio-exit-left,
    .portfolio-image.portfolio-exit-right,
    .portfolio-image.portfolio-enter-right,
    .portfolio-image.portfolio-enter-left {
      transform: translateX(-50%);
    }

    .portfolio-image.active .portfolio-svg,
    .portfolio-image.active .portfolio-text-overlay {
      animation: none;
    }
  }

  .portfolio-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1;
  }

  .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 14px clamp(28px, 7vw, 44px);
    gap: 8px;
    box-sizing: border-box;
    opacity: 1;
    border-radius: 8px;
    z-index: 2;
  }

  .portfolio-svg {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(62%, 200px);
    min-height: 32px;
    height: auto;
    max-height: 48px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto 10px;
  }

  .portfolio-svg img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    transform: none;
    transform-origin: center center;
  }

  .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg {
    width: min(82%, 280px);
    min-height: 48px;
    max-height: 72px;
  }

  .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg img {
    max-height: 72px;
  }

  .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg {
    width: min(78%, 250px);
    min-height: 40px;
    max-height: 58px;
  }

  .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg img {
    max-height: 58px;
  }

  .portfolio-text-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 92%;
    height: auto;
    min-height: 0;
    max-height: none;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0 4px;
    margin: 0 auto;
    flex-shrink: 0;
    overflow: visible;
  }

  .portfolio-text-overlay span {
    font-family: 'Nexa-Bold', 'Nexa', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(13px, 3.5vw, 18px);
    line-height: 1.45;
    letter-spacing: 0%;
    color: #ffffff !important;
    display: block;
    width: 100%;
    overflow: visible;
  }

  .portfolio-arrows {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 10;
  }

  /* Hide inline desktop arrows in mobile portfolio container */
  .portfolio-images-container .news-events-svg-left,
  .portfolio-images-container .news-events-svg-right {
    display: none !important;
  }

  /* Hide inline desktop arrows in news container */
  .news-events-content .news-events-svg-left,
  .news-events-content .news-events-svg-right {
    display: none !important;
  }

  /* Style arrows inside the arrow containers */
  .portfolio-arrows .news-events-svg-left,
  .portfolio-arrows .news-events-svg-right {
    display: flex !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .portfolio-arrows .news-events-svg-left {
    transform: rotate(-180deg);
  }

  .portfolio-arrows .news-events-svg-left:hover {
    /* background: rgba(177, 151, 77, 1); */
    transform: rotate(-180deg) scale(1.1);
  }

  .portfolio-arrows .news-events-svg-right:hover {
    /* background: rgba(177, 151, 77, 1); */
    transform: scale(1.1);
  }

  .portfolio-arrows .news-events-svg-left svg,
  .portfolio-arrows .news-events-svg-right svg {
    width: 20px;
    height: 20px;
  }

  /* Mobile About - Same layout as desktop */
  .svg-image-container {
    height: auto;
    min-height: 400px;
    padding: 40px 20px;
    position: relative;
  }

  .main-svg {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
    z-index: 2;
  }

  .about-text-container {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: min(92%, 560px);
    max-width: 560px;
    margin: -36px auto 0;
    background: rgba(22, 22, 22, 0.9);
    padding: 24px 20px;
    z-index: 3;
    box-sizing: border-box;
  }

  .about-text-container span:first-child {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
  }

  .about-text-container span:nth-child(2) {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
  }

  .about-text-container span:last-child {
    font-size: 12px;
    line-height: 1.5;
    display: block;
  }

  /* Mobile Timeline Numbers - Column layout with each section in a row */
  .kpm-timeline-number {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: clamp(24px, 5vw, 36px) auto clamp(14px, 3vw, 20px) !important;
    padding: 0 clamp(12px, 4vw, 20px) !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
  }

  .kpm-timeline-number span {
    font-size: clamp(22px, 4.5vw, 28px) !important;
    line-height: 1.25 !important;
  }

  .timeline-number-sections {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .timeline-number-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
    align-self: center;
    padding: clamp(30px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px);
    background: rgba(177, 151, 77, 0.1);
    border-radius: 8px;
    gap: 2px;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: min(282px, 92vw);
  }

  .timeline-svg {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .timeline-number-section .timeline-text-primary {
    font-size: clamp(28px, 7vw, 36px);
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    line-height: 1;
    text-align: center;
  }

  .timeline-number-section .timeline-text-secondary {
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  /* Mobile Timeline - Same as desktop */
  .timeline-container {
    padding: 40px 20px;
    /* background: #000000; */
  }

  .timeline-text {
    text-align: center;
    margin-bottom: 30px;
  }

  .timeline-text span {
    font-size: 20px;
  }

  .dots-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin: 30px 0;
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .dot-year-item {
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    flex-shrink: 0;
  }

  .year-text {
    font-size: 10px;
    white-space: nowrap;
  }

  .year-text.active {
    white-space: nowrap;
  }

  .dot {
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
  }

  .timeline-line {
    position: absolute;
    top: 35%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(177, 151, 77, 0.3);
    transform: translateY(-50%);
    z-index: 1;
  }

  .timeline-content-sections {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .timeline-image-section {
    width: 100%;
  }

  .timeline-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .timeline-text-section {
    padding: 15px;
    /* background: #161616; */
  }

  .timeline-text-section .timeline-text-primary {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center !important;
  }

  .timeline-text-section .timeline-text-secondary {
    font-size: 12px;
    line-height: 1.75;
  }

  /* Mobile CEO - Same as desktop */
  .svg-ceo-container {
    height: auto;
    min-height: 400px;
    padding: 40px 20px;
    position: relative;
  }

  .ceo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
    z-index: 2;
  }

  .about-ceo-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    /* background: rgba(0, 0, 0, 0.9); */
    padding: 20px;
    z-index: 3;
  }

  .about-ceo-container span:first-child {
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
  }

  .about-ceo-container span:last-child {
    font-size: 12px;
    line-height: 1.5;
    display: block;
  }

  /* Mobile News & Events - Show one event at a time with navigation arrows */
  .news-events-section {
    padding: 20px;
    /* background: #000000; */
    position: relative;
    margin-top: 0;
  }

  .news-events-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .news-events-text span {
    font-size: 24px;
  }

  .news-events-content {
    position: relative;
    display: block;
    width: 100%;
  }

  .news-events-image-container {
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    width: 100%;
  }

  .news-events-image-item {
    width: 90%;
    max-width: 350px;
    height: 450px;
    position: absolute;
    display: none !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 0;
    box-sizing: border-box;
    top: 0;
  }

  .news-events-image-item:first-child {
    display: flex !important;
  }

  .news-events-image-item.active {
    display: flex !important;
  }

  .news-events-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }

  .news-events-image-text {
    width: 90%;
    max-width: 280px;
    height: 60px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: transparent;
    padding: 0;
  }

  .news-events-image-text span {
    font-family: 'Nexa-Bold', 'Nexa', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #ffffff !important;
    text-align: center;
  }

  .news-events-arrows {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  /* Style arrows inside the news-events-arrows container */
  .news-events-arrows .news-events-svg-left,
  .news-events-arrows .news-events-svg-right {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .news-events-arrows .news-events-svg-left {
    transform: rotate(-180deg);
  }

  .news-events-arrows .news-events-svg-left:hover {
    /* background: rgba(177, 151, 77, 1); */
    transform: rotate(-180deg) scale(1.1);
  }

  .news-events-arrows .news-events-svg-right:hover {
    /* background: rgba(177, 151, 77, 1); */
    transform: scale(1.1);
  }

  .news-events-arrows .news-events-svg-left svg,
  .news-events-arrows .news-events-svg-right svg {
    width: 20px;
    height: 20px;
  }

  .news-events-section.news-events--few-cards .news-events-arrows {
    display: none !important;
  }

  .news-events-section.news-events--few-cards .news-events-image-container {
    height: auto !important;
    min-height: 0 !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
  }

  .news-events-section.news-events--few-cards .news-events-image-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    margin: 0 !important;
    max-width: 350px !important;
  }

  /* Mobile Footer - Reorganized Layout */
  .kpm-careers-detial-svg-footer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 50px;
  }

  .KPM_WEBSITE_FOOTER {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 30px 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* Flags - 2x2 Grid Layout */
  .kpm-flags-div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    order: 1;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .kpm-first-flag-block,
  .kpm-second-flag-block,
  .kpm-third-flag-block,
  .kpm-fourth-flag-block {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 15px;
    background: rgba(177, 151, 77, 0.1);
    border-radius: 8px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .kpm-first-flag-svg,
  .kpm-second-flag-svg,
  .kpm-third-flag-svg,
  .kpm-fourth-flag-svg {
    flex-shrink: 0;
    width: 30px !important;
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kpm-first-flag-svg img,
  .kpm-second-flag-svg img,
  .kpm-third-flag-svg img,
  .kpm-fourth-flag-svg img {
    width: 24px !important;
    height: 18px !important;
    object-fit: contain;
  }

  .kpm-first-flag-number,
  .kpm-second-flag-number,
  .kpm-third-flag-number,
  .kpm-fourth-flag-number {
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  /* Gold Line Separator */
  .kpm-footer-line {
    width: 90%;
    max-width: 400px;
    order: 2;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(177, 151, 77, 0.4);
    height: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  /* Social Media Icons - Single Row Centered */
  .kpm-social-media-icons {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    padding: 0;
    order: 3;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .kpm-linkedin-icon,
  .kpm-twitter-icon,
  .kpm-facebook-icon,
  .kpm-instagram-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(177, 151, 77, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  .kpm-linkedin-icon:hover,
  .kpm-twitter-icon:hover,
  .kpm-facebook-icon:hover,
  .kpm-instagram-icon:hover {
    background: rgba(177, 151, 77, 0.3);
    transform: scale(1.1);
  }

  .kpm-social-media-icons img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Email */
  .kpm-footer-desc2 {
    font-size: 14px !important;
    padding: 0;
    order: 4;
    text-align: center;
    font-weight: 600;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  /* Copyright/Rights */
  .kpm-footer-desc {
    font-size: 9px !important;
    padding: 0 5px;
    order: 5;
    text-align: center;
    line-height: 1.4;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    white-space: nowrap !important;
    overflow: visible;
  }

  .kpm-footer-desc span {
    display: inline;
    white-space: nowrap;
  }
}

.kpm-nav__mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #B1974D !important;
  background-color: #B1974D !important;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  margin: 2px 0;
}

.kpm-nav__mobile-toggle.active span:nth-child(1) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  transform: rotate(-45deg) translate(-5px, 6px);
}

.kpm-nav__mobile-toggle.active span:nth-child(2) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  opacity: 0;
}

.kpm-nav__mobile-toggle.active span:nth-child(3) {
  background: #B1974D !important;
  background-color: #B1974D !important;
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.kpm-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.kpm-nav__mobile-menu.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

/* Ensure mobile menu is visible on mobile devices */
@media screen and (max-width: 1024px) {
  .kpm-nav__mobile-menu {
    z-index: 9999 !important;
  }
  
  .kpm-nav__mobile-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Mobile Menu Header */
.kpm-nav__mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  /* background-color: rgba(0, 0, 0, 0.8); */
  border-bottom: 1px solid rgba(177, 151, 77, 0.3);
}

.kpm-nav__mobile-logo img {
  height: 40px;
  width: auto;
}

.kpm-nav__mobile-close {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.kpm-nav__mobile-close span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.kpm-nav__mobile-close span:first-child {
  transform: rotate(45deg) translate(0px, 0px);
}

.kpm-nav__mobile-close span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Content */
.kpm-nav__mobile-content {
  padding: 40px 20px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Mobile Navigation Tabs */
.kpm-nav__mobile-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kpm-nav__mobile-tab {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: left;
  border-left: 4px solid transparent;
  background-color: rgba(255, 255, 255, 0.05);
}

.kpm-nav__mobile-tab:hover {
  background-color: rgba(177, 151, 77, 0.2);
  border-left-color: #B1974D;
  transform: translateX(10px);
}

/* Mobile Toggle Section */
.kpm-nav__mobile-toggle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(177, 151, 77, 0.3);
  border-bottom: 1px solid rgba(177, 151, 77, 0.3);
}

.kpm-nav__mobile-toggle-section .ui-switch {
  transform: scale(1.5);
}

/* Mobile Social Icons */
.kpm-nav__mobile-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kpm-nav__mobile-social .kpm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(177, 151, 77, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.kpm-nav__mobile-social .kpm-icon:hover {
  background-color: rgba(177, 151, 77, 0.3);
  transform: scale(1.1);
  border-color: #B1974D;
}

.kpm-nav__mobile-social .kpm-icon img {
  width: 24px;
  height: 24px;
}

/* Keep TikTok icon slightly larger in navbar/mobile navbar */
.kpm-nav__icons .kpm-icon img[src*="twitter.svg"],
.kpm-nav__icons .kpm-icon img[src*="twitter-white.svg"],
.kpm-nav__mobile-social .kpm-icon img[src*="twitter.svg"],
.kpm-nav__mobile-social .kpm-icon img[src*="twitter-white.svg"] {
  width: 34px;
  height: 34px;
}

/* Light Mode Mobile Menu Styles */
.kpm-nav__mobile-menu .kpm-nav__mobile-tab[style*="color: black"] {
  color: black !important;
}

.kpm-nav__mobile-menu .kpm-nav__mobile-tab[style*="color: black"]:hover {
  background-color: rgba(177, 151, 77, 0.2);
  color: #B1974D !important;
}

/* Dark Mode Mobile Toggle Styles */
.t-dark-mode .kpm-nav__mobile-toggle span {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(1) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(2) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

.t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(3) {
  background: #B1974D !important;
  background-color: #B1974D !important;
}

/* Footer — in document flow at all widths */
.KPM_WEBSITE_FOOTER {
  position: relative;
  width: 100%;
  max-width: 1728px;
  height: auto;
  min-height: 0;
  top: auto;
  left: 0;
  right: 0;
  margin: 50px auto 0;
  transform: none;
  box-sizing: border-box;
  overflow: visible;
}

.kpm-careers-detial-svg-footer {
  position: relative;
  width: 100%;
  max-width: 1728px;
  height: auto;
  top: auto;
  left: 0;
  transform: none;
  margin: 50px auto 0;
  overflow: visible;
}

.kpm-careers-detial-svg-footer img {
  width: 100%;
  height: auto;
  display: block;
}

.kpm-flags-div {
  position: absolute;
  width: 400px;
  height: 35px;
  top: 100px;
  left: 20%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 0px;
  flex-wrap: nowrap;
  padding: 0;
}

.kpm-first-flag-block,
.kpm-second-flag-block,
.kpm-third-flag-block,
.kpm-fourth-flag-block {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-direction: row;
}

.kpm-first-flag-number,
.kpm-second-flag-number,
.kpm-third-flag-number,
.kpm-fourth-flag-number {
  font-family: 'Nexa-Bold', 'Nexa', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.kpm-first-flag-svg,
.kpm-second-flag-svg,
.kpm-fourth-flag-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpm-first-flag-svg img,
.kpm-second-flag-svg img,
.kpm-fourth-flag-svg img {
  width: 20px;
  height: auto;
}

.kpm-social-media-icons {
  position: absolute;
  width: 120px;
  height: 24px;
  top: 100px;
  left: calc(70%);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.kpm-footer-desc2 {
  position: absolute;
  width: auto;
  min-width: max-content;
  height: auto;
  top: 107px;
  left: calc(90%);
  transform: translateX(-50%);
  text-align: center;
  padding: 0;
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.kpm-footer-line {
  position: absolute;
  width: 95vw;
  height: 0px;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(177, 151, 77, 0.3);
  margin: 0;
}

.kpm-footer-desc {
  position: absolute;
  width: 528px;
  height: 20px;
  top: 190px;
  left: 25%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0;
  font-family: 'NexaRegular', 'Nexa', sans-serif;
  color: #666666;
  font-size: 14px;
  margin: 0;
}

.kpm-linkedin-icon,
.kpm-twitter-icon,
.kpm-facebook-icon,
.kpm-instagram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: rgba(177, 151, 77, 1);
}

.kpm-linkedin-icon:hover,
.kpm-twitter-icon:hover,
.kpm-facebook-icon:hover,
.kpm-instagram-icon:hover {
  transform: scale(1.1);
}

.kpm-social-media-icons img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Small desktop / medium widths: keep navbar single-row + CEO responsive */
@media screen and (max-width: 1200px) and (min-width: 1025px) {
  /* Navbar: fit all links on one line, stay centered */
  .kpm-nav {
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .kpm-nav__logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }

  .kpm-nav__logo img {
    height: 30px !important;
    width: auto !important;
    max-height: 30px !important;
  }

  .kpm-nav__tabs {
    gap: clamp(6px, 0.75vw, 10px) !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  .kpm-nav__tab,
  .kpm-nav__tabs a {
    font-size: clamp(10.5px, 0.95vw, 12.5px) !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
  }

  .kpm-nav__icons {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: clamp(6px, 0.65vw, 9px) !important;
  }

  .kpm-nav__icons .kpm-icon img {
    width: 14px !important;
    height: 14px !important;
  }

  .kpm-nav__icons .ui-switch {
    transform: scale(0.8);
    transform-origin: center;
    margin-left: 0 !important;
  }

  /* CEO section: stack so message never clips */
  .svg-ceo-container {
    height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 40px 20px !important;
    position: relative !important;
  }

  .svg-ceo-container .main-svg {
    width: 100% !important;
    max-width: 924px !important;
    height: auto !important;
    order: 1 !important;
    z-index: 1 !important;
  }

  .svg-ceo-container .ceo-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    /* Image over the SVG, but text stays below */
    /* Pull image towards top of the SVG (like screenshot 1) */
    margin: calc(-1 * clamp(280px, 22vw, 360px)) auto 0 !important;
    order: 2 !important;
    z-index: 2 !important;
  }

  .svg-ceo-container .about-ceo-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 700px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 30px 24px !important;
    order: 3 !important;
    box-sizing: border-box;
  }
}

/* ===================================
   LARGE SCREEN ADJUSTMENTS (max-width: 1728px)
   Covers 1201px–1728px (e.g. 1453px) — flow layout, no horizontal overflow
   =================================== */
@media screen and (max-width: 1728px) {
  .t-dark-mode {
    height: auto !important;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .KPM_WEBSITE_FOOTER,
  .kpm-careers-detial-svg-footer {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 50px;
  }

  .kpm-portfolio-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
}

@media screen and (min-width: 1729px) {
  .t-dark-mode {
    min-height: 100vh;
    height: auto !important;
  }

  .hero-image-container {
    max-width: none;
    height: min(calc(100vw * 0.5625), 972px);
  }

  .kpm-portfolio-container,
  .svg-ceo-container,
  .news-events-section {
    max-width: none;
  }

  .KPM_WEBSITE_FOOTER {
    width: 100%;
    max-width: none;
    position: relative !important;
    top: auto !important;
    left: 0;
    transform: none;
    margin-top: 50px;
  }

  .kpm-careers-detial-svg-footer {
    width: 100%;
    max-width: none;
    position: relative !important;
    top: auto !important;
    left: 0;
    transform: none;
    margin-top: 50px;
  }

  .svg-ceo-container {
    width: 100%;
    max-width: none;
    height: calc(100vw * 806 / 1728);
    margin: calc(100vw * 100 / 1728) auto 0;
    padding: 0;
  }

  .svg-ceo-container .main-svg {
    width: calc(100vw * 924 / 1728);
    height: calc(100vw * 747 / 1728);
    max-width: none;
  }

  .svg-ceo-container .ceo-image {
    width: calc(100vw * 567 / 1728);
    height: calc(100vw * 567 / 1728);
    max-width: none;
    top: calc(100vw * 77 / 1728);
    left: calc(100vw * 259 / 1728);
  }

  .svg-ceo-container .about-ceo-container {
    width: calc(100vw * 450 / 1728);
    min-height: calc(100vw * 343 / 1728);
    height: auto;
    top: calc(100vw * 180 / 1728);
    left: calc(100vw * 1011 / 1728);
    padding: calc(100vw * 50 / 1728);
    gap: calc(100vw * 16 / 1728);
  }

  .svg-ceo-container .about-ceo-container span:first-child {
    font-size: calc(100vw * 32 / 1728);
    line-height: calc(100vw * 30 / 1728);
  }

  .svg-ceo-container .about-ceo-container span:last-child {
    font-size: calc(100vw * 16 / 1728);
    line-height: calc(100vw * 22 / 1728);
  }

  .svg-image-container {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 0;
    margin: calc(100vw * 71 / 1728) 0;
  }

  .svg-image-container .main-svg {
    width: calc(100vw * 924 / 1728);
    height: calc(100vw * 747 / 1728);
    max-width: none;
    padding-top: calc(100vw * 30 / 1728);
  }

  .svg-image-container .main-image {
    width: calc(100vw * 802 / 1728);
    height: calc(100vw * 802 / 1728);
    max-width: none;
  }

  .about-text-container {
    position: absolute !important;
    top: 22% !important;
    width: calc(100vw * 704 / 1728);
    min-height: calc(100vw * 466 / 1728);
    height: auto;
    left: calc(100vw * 240 / 1728);
    margin: 0 !important;
    padding: calc(100vw * 50 / 1728);
    padding-top: calc(100vw * 80 / 1728);
    gap: calc(100vw * 24 / 1728);
    z-index: 3 !important;
  }

  .about-text-container span:nth-child(1) {
    width: 100%;
    height: auto;
    font-size: calc(100vw * 24 / 1728);
    line-height: calc(100vw * 30 / 1728);
  }

  .about-text-container span:nth-child(2) {
    width: 100%;
    height: auto;
    font-size: calc(100vw * 32 / 1728);
    line-height: calc(100vw * 40 / 1728);
  }

  .about-text-container span:nth-child(3) {
    width: 100%;
    height: auto;
    font-size: calc(100vw * 16 / 1728);
    line-height: calc(100vw * 22 / 1728);
  }

  .timeline-container {
    width: calc(100vw * 1558 / 1728);
    max-width: none;
    height: auto;
    min-height: calc(100vw * 688 / 1728);
    margin: calc(100vw * 100 / 1728) auto 0;
    padding: 0 calc(100vw * 20 / 1728);
  }

  .timeline-text {
    width: calc(100vw * 208 / 1728);
    height: auto;
    margin: calc(100vw * 67 / 1728) auto 0;
  }

  .timeline-text span {
    font-size: calc(100vw * 32 / 1728);
  }

  .dots-container {
    width: calc(100vw * 1244 / 1728);
    max-width: none;
    height: auto;
    margin: calc(100vw * 40 / 1728) auto 0;
    gap: calc(100vw * 20 / 1728);
    padding: 0 calc(100vw * 20 / 1728);
  }

  .dot-year-item {
    gap: calc(100vw * 8 / 1728);
    padding: calc(100vw * 10 / 1728);
    min-width: calc(100vw * 60 / 1728);
  }

  .dot {
    width: calc(100vw * 5 / 1728);
    height: calc(100vw * 5 / 1728);
  }

  .dot.active {
    width: calc(100vw * 12 / 1728);
    height: calc(100vw * 12 / 1728);
  }

  .year-text {
    min-width: calc(100vw * 48 / 1728);
    min-height: calc(100vw * 22 / 1728);
    font-size: calc(100vw * 16 / 1728);
    line-height: calc(100vw * 22 / 1728);
  }

  .year-text.active {
    min-width: calc(100vw * 79 / 1728);
    min-height: calc(100vw * 41 / 1728);
    font-size: calc(100vw * 32 / 1728);
  }

  .timeline-line {
    width: calc(100vw * 1555 / 1728);
    max-width: none;
    margin: calc(100vw * 40 / 1728) auto 0;
  }

  .timeline-content-sections {
    width: calc(100vw * 1558 / 1728);
    max-width: none;
    margin: calc(100vw * 40 / 1728) auto 0;
    padding: 0 calc(100vw * 20 / 1728);
    gap: calc(100vw * 5 / 1728);
  }

  .timeline-content-item {
    gap: calc(100vw * 5 / 1728);
  }

  .timeline-image-section {
    width: calc(100vw * 880 / 1728);
    max-width: none;
    height: calc(100vw * 495 / 1728);
  }

  .timeline-text-section {
    width: calc(100vw * 673 / 1728);
    max-width: none;
    min-height: calc(100vw * 495 / 1728);
    height: auto;
    padding: calc(100vw * 50 / 1728);
  }

  .timeline-text-section .timeline-text-primary {
    min-height: calc(100vw * 79 / 1728);
    font-size: calc(100vw * 64 / 1728);
    margin-bottom: calc(100vw * 12 / 1728);
  }

  .timeline-text-section .timeline-text-title {
    margin: 0 0 calc(100vw * 18 / 1728);
    font-size: calc(100vw * 22 / 1728);
  }

  .timeline-text-section .timeline-text-secondary {
    font-size: calc(100vw * 16 / 1728);
  }
}

/* ===================================
   TABLET RESPONSIVE (max-width: 1024px)
   =================================== */
@media screen and (max-width: 1024px) {

  /* Adjust container height for tablet */
  .t-dark-mode {
    height: auto !important;
    min-height: 100vh;
  }

  /* Reset footer positioning for tablet/mobile */
  .KPM_WEBSITE_FOOTER {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    height: auto;
    margin-top: 50px;
    padding: 30px 20px;
  }

  .kpm-careers-detial-svg-footer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    margin-top: 50px;
  }

  /* Reset all footer child elements - SAME LINE LAYOUT */
  .kpm-flags-div {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 20px !important;
    justify-content: center !important;
    order: 1;
  }

  .kpm-social-media-icons {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    gap: 15px !important;
    padding: 0 20px 20px 20px !important;
    justify-content: center !important;
    order: 2;
  }

  .kpm-footer-desc2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 20px 20px 20px !important;
    order: 3;
  }

  .kpm-footer-line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 80% !important;
    margin: 20px auto !important;
    order: 4;
  }

  .kpm-footer-desc {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 20px !important;
    order: 5;
  }

  .kpm-nav {
    padding: 20px 30px;
  }

  .kpm-nav__tabs {
    gap: 20px;
  }

  .kpm-nav__tab {
    font-size: 14px;
  }

  .kpm-nav__logo img {
    height: 35px;
  }

  .kpm-nav__icons {
    gap: 10px;
  }

  .kpm-icon img {
    width: 18px;
    height: 18px;
  }

  /* Portfolio adjustments */
  .kpm-portfolio-container {
    padding: 40px 30px;
    padding-left: 30px;
    height: auto;
  }

  .portfolio-arrows {
    width: 15%;
    top: 95%;
  }

  /* Timeline adjustments */
  .timeline-number-sections {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .timeline-number-section {
    min-width: 0;
    max-width: 250px;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .timeline-number-section .timeline-text-primary {
    font-size: 48px;
    height: auto;
    min-height: 0;
    width: auto;
    text-align: center !important;
  }

  .timeline-number-section .timeline-text-secondary {
    font-size: 18px;
    width: auto;
    height: auto;
    min-height: 0;
    text-align: center !important;
  }

  /* CEO Section adjustments */
  .svg-ceo-container {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .ceo-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .about-ceo-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 30px;
  }

  /* About Section — stacked below 1025px only */
  .svg-image-container {
    flex-direction: column !important;
    align-items: center !important;
    margin: 50px auto !important;
    overflow: visible !important;
  }

  .about-text-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 90% !important;
    max-width: 600px !important;
    height: auto !important;
    margin: -50px auto 0 !important;
  }
}

/* ===================================
   MOBILE RESPONSIVE (max-width: 768px)
   =================================== */
@media screen and (max-width: 768px) {

  /* Navbar Mobile */
  .kpm-nav {
    flex-wrap: nowrap;
    padding: 15px 20px;
    justify-content: space-between;
  }

  .kpm-nav__logo {
    order: 1;
  }

  .kpm-nav__logo img {
    height: 30px;
  }

  .kpm-nav__mobile-toggle {
    display: flex !important;
    order: 2;
    margin-left: auto;
    margin-right: 5%;
    border-radius: 5px;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
  }

  .kpm-nav__mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #B1974D !important;
    background-color: #B1974D !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    margin: 2px 0;
  }

  .kpm-nav__mobile-toggle.active span:nth-child(1) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .kpm-nav__mobile-toggle.active span:nth-child(2) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .kpm-nav__mobile-toggle.active span:nth-child(3) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  /* Dark Mode Mobile Toggle Styles for Mobile Responsive */
  .t-dark-mode .kpm-nav__mobile-toggle span {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(1) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(2) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .t-dark-mode .kpm-nav__mobile-toggle.active span:nth-child(3) {
    background: #B1974D !important;
    background-color: #B1974D !important;
  }

  .kpm-nav__icons {
    display: none;
  }

  .kpm-nav__tabs {
    display: none;
  }

  .kpm-nav__tab {
    font-size: 16px;
    text-align: center;
    width: 100%;
  }

  /* Hero Section */
  .hero-content {
    gap: 20px;
    width: 90%;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-button {
    width: 160px;
    height: 50px;
    font-size: 14px;
    padding: 15px 25px;
  }

  /* Portfolio Section */
  .portfolio-text {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .portfolio-text h2 {
    font-size: 28px;
  }

  .portfolio-arrows {
    width: 25%;
    top: 100%;
    margin-top: 20px;
  }

  .timeline-content-item {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .timeline-line {
    position: absolute;
    top: 27%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(177, 151, 77, 0.3);
    transform: translateY(-50%);
    z-index: 1;
  }

  /* About Section */
  .svg-image-container {
    margin: 40px 0;
    padding: 0 15px;
  }

  .main-svg,
  .main-image {
    width: 100%;
    height: auto;
  }

  .about-text-container {
    width: 90%;
    padding: 30px 20px;
    margin: -30px auto 0;
  }

  .about-text-container span:nth-child(1) {
    font-size: 20px;
    width: 100%;
  }

  .about-text-container span:nth-child(2) {
    font-size: 26px;
    width: 100%;
    height: auto;
  }

  .about-text-container span:nth-child(3) {
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    height: auto;
  }

  /* KPM in Numbers */
  .kpm-timeline-number {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 40px auto 20px;
  }

  .kpm-timeline-number span {
    font-size: 28px;
  }

  .timeline-number-sections {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
    margin: 30px 0;
  }

  .timeline-number-section {
    width: 100%;
    max-width: min(282px, 92vw);
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    padding: clamp(30px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px) !important;
    gap: 2px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .timeline-number-section .timeline-text-primary {
    font-size: clamp(28px, 7vw, 40px);
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    line-height: 1;
    text-align: center !important;
  }

  .timeline-number-section .timeline-text-secondary {
    font-size: clamp(13px, 3.2vw, 15px);
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto;
    line-height: 1.2;
    text-align: center !important;
  }

  /* Timeline Section */
  .timeline-container {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 12px 24px 16px !important;
    margin: 40px auto 24px !important;
  }

  .timeline-text {
    margin: 24px auto 16px !important;
  }

  .timeline-text span {
    font-size: 28px;
  }

  /* Timeline: grid — title full-width, dots left, content right */
  .timeline-container {
    display: grid !important;
    grid-template-columns: minmax(104px, 30vw) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "title title"
      "dots  content" !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 12px 24px 16px !important;
    overflow: visible !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .timeline-text {
    grid-area: title !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 16px 0 12px !important;
    margin: 0 !important;
  }

  .dots-container {
    grid-area: dots !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(11, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: 100% !important;
    align-self: stretch !important;
    padding: 0 6px 0 0 !important;
    overflow: visible !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  .dot-year-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
  }

  .year-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: clamp(9px, 2.8vw, 11px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: right !important;
    overflow: visible !important;
  }

  .year-text.active {
    font-size: clamp(11px, 3.4vw, 14px) !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .dot-year-item .dot {
    flex-shrink: 0 !important;
  }

  .timeline-line {
    display: none !important;
  }

  .timeline-content-sections {
    grid-area: content !important;
    min-width: 0;
    align-self: stretch !important;
    overflow: hidden !important;
    flex-direction: column;
    gap: 0;
    margin: 0 0 0 8px !important;
    padding: 0;
    border-left: 2px dashed #BA9C44 !important;
    display: flex !important;
    height: auto !important;
  }

  .timeline-content-item {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0 !important;
  }

  .timeline-image-section {
    width: 100%;
    flex: 0 0 250px !important;
    height: 250px !important;
    min-height: unset !important;
    overflow: hidden;
  }

  .timeline-image {
    width: 100% !important;
    height: 250px !important;
    min-height: unset !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .timeline-text-section {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: unset !important;
    padding: 20px 16px;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .timeline-text-section .timeline-text-primary {
    font-size: 40px;
    height: auto;
    margin-bottom: 15px;
  }

  .timeline-text-section .timeline-text-secondary {
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
  }

  /* CEO Section */
  .svg-ceo-container {
    flex-direction: column;
    height: auto;
    margin: 50px auto;
    padding: 30px 15px;
  }

  .main-svg {
    width: 100%;
    height: auto;
    padding-top: 0;
  }

  .ceo-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    top: 0;
    left: 0;
    margin: 20px auto;
  }

  .about-ceo-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: auto;
    top: 0;
    left: 0;
    margin: 20px auto;
    padding: 30px 20px;
  }

  .about-ceo-container span:first-child {
    font-size: 24px;
    line-height: 30px;
  }

  .about-ceo-container span:last-child {
    font-size: 14px;
    line-height: 20px;
  }

  /* News & Events */
  .news-events-section {
    margin: 50px auto;
    padding: 0 15px;
  }

  .news-events-text {
    margin-bottom: 30px;
  }

  .news-events-text span {
    font-size: 28px;
  }

  .news-events-content {
    flex-direction: column;
    gap: 20px;
  }

  .news-events-svg-left,
  .news-events-svg-right {
    display: none !important;
  }

  .news-events-svg-left:hover,
  .news-events-svg-right:hover {
    background: rgba(177, 151, 77, 0.4);
    transform: scale(1.1);
  }

  .news-events-svg-left svg,
  .news-events-svg-right svg {
    width: 16px;
    height: 16px;
  }

  .news-events-image-container {
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    width: 100%;
  }

  .news-events-image-item {
    width: 90%;
    max-width: 350px;
    height: 450px;
    position: absolute;
    display: none !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 0;
    box-sizing: border-box;
    top: 0;
  }

  .news-events-image-item:first-child {
    display: flex !important;
  }

  .news-events-image-item.active {
    display: flex !important;
  }

  .news-events-image-text {
    width: 90%;
    max-width: 300px;
    height: auto;
    padding: 10px;
  }

  .news-events-image-text span {
    font-size: 20px;
    line-height: 26px;
  }

  .news-events-arrows {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 10;
  }

  .news-events-arrows .news-events-svg-left,
  .news-events-arrows .news-events-svg-right {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
  }

  .news-events-arrows .news-events-svg-left:hover,
  .news-events-arrows .news-events-svg-right:hover {
    /* background: rgba(177, 151, 77, 1); */
    transform: scale(1.1);
  }

  .news-events-arrows .news-events-svg-left svg,
  .news-events-arrows .news-events-svg-right svg {
    width: 20px;
    height: 20px;
  }

  .news-events-section.news-events--few-cards .news-events-arrows {
    display: none !important;
  }

  .news-events-section.news-events--few-cards .news-events-image-container {
    height: auto !important;
    min-height: 0 !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
  }

  .news-events-section.news-events--few-cards .news-events-image-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    margin: 0 !important;
    max-width: 350px !important;
  }

  /* Footer - Mobile Order */
  .kpm-careers-detial-svg-footer {
    margin-top: 30px;
  }

  .KPM_WEBSITE_FOOTER {
    margin-top: 30px;
    padding: 30px 15px !important;
    display: flex;
    flex-direction: column;
  }

  .kpm-flags-div {
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding: 20px 15px;
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .kpm-social-media-icons {
    gap: 15px;
    padding: 0 15px 15px 15px;
    order: 2;
  }

  .kpm-footer-desc2 {
    font-size: 14px;
    padding: 0 15px 15px 15px;
    order: 3;
  }

  .kpm-footer-line {
    width: 80%;
    order: 4;
  }

  .kpm-footer-desc {
    font-size: 12px;
    padding: 8px 15px;
    order: 5;
    font-size: 12px !important;

  }

  .kpm-first-flag-block,
  .kpm-second-flag-block,
  .kpm-third-flag-block,
  .kpm-fourth-flag-block {
    justify-content: center;
    width: 100%;
    max-width: 250px;
  }

  .kpm-first-flag-number,
  .kpm-second-flag-number,
  .kpm-third-flag-number,
  .kpm-fourth-flag-number {
    font-size: 16px;
  }

  .kpm-social-media-icons img {
    width: 22px;
    height: 22px;
  }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */
@media screen and (max-width: 480px) {

  /* Hero Section */
  .hero-text h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-button {
    width: 140px;
    height: 45px;
    font-size: 13px;
    padding: 12px 20px;
  }

  .carousel-dots {
    gap: 12px;
  }

  /* Portfolio */
  .portfolio-text h2 {
    font-size: 24px;
  }

  /* Timeline */
  .kpm-timeline-number span,
  .timeline-text span,
  .news-events-text span {
    font-size: 24px;
  }

  .timeline-number-section .timeline-text-primary {
    font-size: clamp(26px, 8vw, 36px);
    height: auto !important;
    min-height: 0 !important;
    text-align: center !important;
  }

  .timeline-number-section .timeline-text-secondary {
    font-size: 13px;
    height: auto !important;
    min-height: 0 !important;
    text-align: center !important;
  }

  .timeline-text-section .timeline-text-primary {
    font-size: 32px;
  }

  .year-text.active {
    font-size: clamp(11px, 3.4vw, 14px) !important;
    min-width: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  /* CEO Section */
  .about-ceo-container span:first-child {
    font-size: 20px;
  }

  .about-ceo-container span:last-child {
    font-size: 13px;
    line-height: 18px;
  }

  /* News & Events */
  .news-events-image-item {
    width: 90%;
    max-width: 300px;
    height: 400px;
    position: absolute;
    display: none !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    padding: 0;
    box-sizing: border-box;
    top: 0;
  }

  .news-events-image-item:first-child {
    display: flex !important;
  }

  .news-events-image-item.active {
    display: flex !important;
  }

  .news-events-image-text span {
    font-size: 18px;
    line-height: 24px;
  }

  /* About Text */
  .about-text-container {
    padding: 25px 15px;
  }

  .about-text-container span:nth-child(1) {
    font-size: 18px;
  }

  .about-text-container span:nth-child(2) {
    font-size: 22px;
  }

  .about-text-container span:nth-child(3) {
    font-size: 13px;
    line-height: 18px;
  }

  /* Footer Small Mobile */
  .kpm-first-flag-number,
  .kpm-second-flag-number,
  .kpm-third-flag-number,
  .kpm-fourth-flag-number {
    font-size: 14px;
  }

  .kpm-first-flag-svg img,
  .kpm-second-flag-svg img,
  .kpm-fourth-flag-svg img {
    width: 25px;
  }

  .kpm-footer-desc2 {
    font-size: 13px;
  }

  .kpm-footer-desc {
    font-size: 11px;
  }

  .kpm-social-media-icons img {
    width: 20px;
    height: 20px;
  }
}

/* Medium screens (<= 1406px): stack CEO text under image */
@media screen and (max-width: 1406px) and (min-width: 1201px) {
  .svg-ceo-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    padding: 40px 20px !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .svg-ceo-container .main-svg {
    width: 100% !important;
    max-width: 924px !important;
    height: auto !important;
    position: relative !important;
    order: 1 !important;
    z-index: 1 !important;
  }

  .svg-ceo-container .ceo-image {
    /* Like the 2nd screenshot: image over SVG, text starts below image */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(42vw, 520px) !important;
    height: min(42vw, 520px) !important;
    object-fit: cover !important;
    /* Pull image towards top of the SVG (like screenshot 1) */
    margin: calc(-1 * clamp(280px, 22vw, 360px)) auto 0 !important;
    z-index: 2 !important;
    order: 2 !important;
  }

  .svg-ceo-container .about-ceo-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 700px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: clamp(26px, 3vw, 50px) !important;
    order: 3 !important;
    box-sizing: border-box !important;
  }

  .svg-ceo-container .about-ceo-container span:last-child {
    overflow-wrap: anywhere;
  }
}

/* Desktop About KPM — pattern + photo row with overlapping text card (≥1025px) */
@media screen and (min-width: 1025px) {
  .svg-image-container {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: min(1728px, 100%) !important;
    margin: clamp(40px, 4.1vw, 71px) auto !important;
    padding: 0 clamp(12px, 1.2vw, 20px) clamp(48px, 6vw, 100px) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .svg-image-container .main-svg {
    width: 53.5% !important;
    max-width: 924px !important;
    height: auto !important;
    aspect-ratio: 924 / 747 !important;
    flex: 0 1 53.5% !important;
    padding-top: clamp(16px, 1.7vw, 30px) !important;
    object-fit: cover !important;
  }

  .svg-image-container .main-image {
    width: 46.5% !important;
    max-width: 802px !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    flex: 0 1 46.5% !important;
    object-fit: contain !important;
  }

  .about-text-container {
    position: absolute !important;
    top: clamp(6%, 10vw, 14%) !important;
    left: clamp(16px, 13.9vw, 240px) !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(704px, 44vw) !important;
    max-width: 704px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: clamp(20px, 2.5vw, 40px) !important;
    padding-top: clamp(24px, 3vw, 48px) !important;
    overflow: visible !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
  }

  .about-text-container span:nth-child(1),
  .about-text-container span:nth-child(2),
  .about-text-container span:nth-child(3) {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .about-text-container span:nth-child(3) {
    line-height: 1.55 !important;
  }
}

/* Ultra-wide desktop alignment for About section */
@media screen and (min-width: 1920px) {
  .svg-image-container {
    justify-content: center;
  }

  .about-text-container {
    left: calc(50% - 760px) !important;
  }
}

/* Tablet: KPM Timeline title above the vertical timeline (769px–1200px) */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .timeline-container {
    display: grid !important;
    grid-template-columns: minmax(96px, 110px) minmax(0, 1fr) !important;
    grid-template-areas:
      "title title"
      "dots  content" !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .timeline-text {
    grid-area: title !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 0 20px !important;
    padding: 16px 0 8px !important;
  }

  .timeline-line {
    display: none !important;
  }

  .dots-container {
    grid-area: dots !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-rows: repeat(11, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: center !important;
    align-self: stretch !important;
    gap: 0 !important;
    min-height: 100% !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 4px 0 0 !important;
    box-sizing: border-box !important;
  }

  .dot-year-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    padding-right: 2px !important;
  }

  .dot-year-item .dot {
    flex-shrink: 0 !important;
  }

  .year-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: clamp(9px, 1vw, 11px) !important;
    line-height: 1.2 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .year-text.active {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(11px, 1.15vw, 13px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .timeline-content-sections {
    grid-area: content !important;
    flex: none !important;
    min-width: 0 !important;
    height: auto !important;
    align-self: stretch !important;
    margin: 0 12px !important;
    padding: 0 !important;
    border-left: 2px dashed #BA9C44 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
}

/* Below 1200px: equal-width timeline image + text (beats 1728px calc widths) */
@media screen and (max-width: 1200px) {
  .timeline-content-item {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
  }

  .timeline-image-section,
  .timeline-text-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .timeline-image-section {
    height: auto !important;
    min-height: clamp(220px, 28vw, 360px) !important;
    flex: none !important;
    overflow: hidden !important;
  }

  .timeline-image {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(220px, 28vw, 360px) !important;
    min-height: unset !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .timeline-text-section {
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    padding: clamp(18px, 3vw, 32px) !important;
  }

  /* Timeline years — stretch to match dashed line height */
  .timeline-container {
    display: grid !important;
    grid-template-columns: minmax(96px, 110px) minmax(0, 1fr) !important;
    grid-template-areas:
      "title title"
      "dots  content" !important;
    padding: 0 16px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }

  .timeline-text {
    grid-area: title !important;
  }

  .timeline-line {
    display: none !important;
  }

  .timeline-content-sections {
    grid-area: content !important;
    align-self: stretch !important;
  }

  .dots-container {
    grid-area: dots !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(11, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: center !important;
    align-self: stretch !important;
    gap: 0 !important;
    min-height: 100% !important;
    padding: 0 4px 0 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .dot-year-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    padding: 0 2px 0 0 !important;
    box-sizing: border-box !important;
  }

  .dot-year-item .dot {
    flex-shrink: 0 !important;
  }

  .year-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    font-size: clamp(9px, 1vw, 11px) !important;
    line-height: 1.2 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .year-text.active {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(11px, 1.15vw, 13px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* Mobile: ensure years column matches content/dashed-line height */
@media screen and (max-width: 768px) {
  .timeline-container {
    display: grid !important;
    grid-template-columns: minmax(104px, 30vw) minmax(0, 1fr) !important;
    grid-template-areas:
      "title title"
      "dots  content" !important;
    align-items: stretch !important;
  }

  .dots-container {
    grid-area: dots !important;
    align-self: stretch !important;
    min-height: 100% !important;
  }

  .timeline-content-sections {
    grid-area: content !important;
    align-self: stretch !important;
  }
}

/* Timeline content box — left-align text on tablet & mobile */
@media screen and (max-width: 1200px) {
  .timeline-text-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .timeline-text-section .timeline-text-primary,
  .timeline-text-section .timeline-text-title,
  .timeline-text-section .timeline-text-secondary {
    text-align: left !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .timeline-text-section .timeline-text-primary {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .timeline-text-section .timeline-text-secondary {
    margin: 0 !important;
  }
}

/* Portfolio carousel — layout + visibility up to 1200px (fixes blank gap at 1025–1200px) */
@media screen and (max-width: 1200px) {
  .kpm-portfolio-container {
    height: auto !important;
    min-height: 0 !important;
  }

  .kpm-portfolio-container .portfolio-images-container {
    min-height: calc(min(92vw, 350px) * 1.5429 + 32px) !important;
    height: auto !important;
    padding-bottom: 32px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .kpm-portfolio-container .portfolio-image,
  .kpm-portfolio-container a.portfolio-image-link {
    width: min(92vw, 350px) !important;
    height: auto !important;
    aspect-ratio: 350 / 540 !important;
    min-height: clamp(500px, 142vw, 580px) !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    display: flex !important;
    left: 50% !important;
    top: 0 !important;
    margin: 0 auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: translateX(-50%) translateX(28px) !important;
    transition:
      opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.48s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.48s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .kpm-portfolio-container .portfolio-images-container:not(.portfolio-carousel-ready) .portfolio-image:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
    transform: translateX(-50%) translateX(0) !important;
  }

  .kpm-portfolio-container .portfolio-image.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
    transform: translateX(-50%) translateX(0) !important;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.45) !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-exit-left {
    opacity: 0 !important;
    transform: translateX(-50%) translateX(-28px) !important;
    z-index: 1 !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-exit-right {
    opacity: 0 !important;
    transform: translateX(-50%) translateX(28px) !important;
    z-index: 1 !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-enter-right {
    visibility: visible !important;
    z-index: 3 !important;
    transform: translateX(-50%) translateX(28px) !important;
    opacity: 0 !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-enter-right.active {
    transform: translateX(-50%) translateX(0) !important;
    opacity: 1 !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-enter-left {
    visibility: visible !important;
    z-index: 3 !important;
    transform: translateX(-50%) translateX(-28px) !important;
    opacity: 0 !important;
  }

  .kpm-portfolio-container .portfolio-image.portfolio-enter-left.active {
    transform: translateX(-50%) translateX(0) !important;
    opacity: 1 !important;
  }

  .kpm-portfolio-container .portfolio-image > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    z-index: 1 !important;
  }

  .kpm-portfolio-container .portfolio-overlay {
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 14px clamp(28px, 7vw, 44px) !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%) !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
  }

  .kpm-portfolio-container .portfolio-svg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(62%, 200px) !important;
    min-height: 36px !important;
    height: auto !important;
    max-height: 52px !important;
    margin: 0 auto 10px !important;
  }

  .kpm-portfolio-container .portfolio-svg img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 52px !important;
    object-fit: contain !important;
    transform: none !important;
    transform-origin: center center !important;
    z-index: auto !important;
    border-radius: 0 !important;
  }

  .kpm-portfolio-container .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg {
    width: min(82%, 280px) !important;
    min-height: 48px !important;
    max-height: 72px !important;
  }

  .kpm-portfolio-container .portfolio-image-link[aria-label="BTC brand"] .portfolio-svg img {
    max-height: 72px !important;
  }

  .kpm-portfolio-container .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg {
    width: min(80%, 265px) !important;
    min-height: 44px !important;
    max-height: 66px !important;
  }

  .kpm-portfolio-container .portfolio-image-link[aria-label="Travel Boutique brand"] .portfolio-svg img {
    max-height: 66px !important;
  }

  .kpm-portfolio-container .portfolio-text-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 92% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 0 4px !important;
    overflow: visible !important;
  }

  .kpm-portfolio-container .portfolio-text-overlay span {
    font-size: clamp(13px, 3.5vw, 18px) !important;
    line-height: 1.45 !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .kpm-portfolio-container .portfolio-image.active .portfolio-svg,
  .kpm-portfolio-container .portfolio-image.active .portfolio-text-overlay {
    animation: kpm-portfolio-overlay-rise 0.52s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
  }
}

/* Portfolio cards — mobile: taller cards so caption text is never clipped (≤1024px) */
@media screen and (max-width: 1024px) {
  .t-dark-mode .kpm-portfolio-container .portfolio-images-container {
    min-height: calc(min(92vw, 350px) * 1.5429 + 32px) !important;
    padding-bottom: 32px !important;
  }

  .t-dark-mode .kpm-portfolio-container .portfolio-image,
  .t-dark-mode .kpm-portfolio-container a.portfolio-image-link {
    aspect-ratio: 350 / 540 !important;
    min-height: clamp(500px, 142vw, 580px) !important;
    max-height: none !important;
  }

  .t-dark-mode .kpm-portfolio-container .portfolio-overlay {
    gap: 8px !important;
    padding: 0 14px clamp(28px, 7vw, 44px) !important;
  }

  .t-dark-mode .kpm-portfolio-container .portfolio-text-overlay {
    max-width: 92% !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 4px !important;
  }

  .t-dark-mode .kpm-portfolio-container .portfolio-text-overlay span {
    font-size: clamp(13px, 3.5vw, 18px) !important;
    line-height: 1.45 !important;
    overflow: visible !important;
  }
}

/* About KPM — tablet/mobile: centered card, full text visible (≤1024px) */
@media screen and (max-width: 1024px) {
  .t-dark-mode .svg-image-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 16px 28px !important;
    margin: 40px auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .t-dark-mode .svg-image-container .main-svg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: 1 !important;
  }

  .t-dark-mode .svg-image-container .main-image {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: clamp(200px, 42vw, 320px) !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 2 !important;
    margin-top: -8px !important;
  }

  .t-dark-mode .about-text-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(92%, 560px) !important;
    max-width: 560px !important;
    height: auto !important;
    max-height: none !important;
    margin: -40px auto 0 !important;
    padding: 24px 20px !important;
    overflow: visible !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
  }

  .t-dark-mode .about-text-container span:nth-child(1),
  .t-dark-mode .about-text-container span:nth-child(2),
  .t-dark-mode .about-text-container span:nth-child(3) {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .t-dark-mode .about-text-container span:nth-child(3) {
    line-height: 1.55 !important;
  }
}

/* Hero slider — full visible area below 1024px (wins over 50vh / conflicting breakpoints) */
@media screen and (max-width: 1024px) {
  .t-dark-mode .hero-image-container {
    width: 100% !important;
    height: auto !important;
    min-height: clamp(360px, 56.25vw, 620px) !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .t-dark-mode .hero-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .t-dark-mode .hero-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(92%, 640px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    gap: 16px !important;
    z-index: 2 !important;
  }

  .t-dark-mode .hero-text {
    height: auto !important;
    padding-top: 0 !important;
  }

  .t-dark-mode .hero-text h1 {
    font-size: clamp(18px, 4.8vw, 32px) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .t-dark-mode .carousel-dots {
    position: absolute !important;
    bottom: clamp(16px, 3vw, 28px) !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 3 !important;
  }
}

/* Homepage scroll — single scrollbar on html only (no nested #wrapwrap / .t-dark-mode scroll) */
html:has(.t-dark-mode) {
  height: auto !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
}

body:has(.t-dark-mode),
#wrapwrap:has(.t-dark-mode),
#wrap:has(.t-dark-mode),
main:has(.t-dark-mode) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.t-dark-mode {
  height: auto !important;
  overflow: visible !important;
}

/* KPM in Numbers — compact cards, vertically centered copy (mobile & tablet) */
@media screen and (max-width: 1024px) {
  /* Base .kpm-timeline-number { top: 67px } is defined later in this file — must override on tablet */
  .t-dark-mode > .kpm-timeline-number {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: clamp(24px, 5vw, 36px) auto clamp(14px, 3vw, 20px) !important;
    padding: 0 clamp(12px, 4vw, 20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: transparent !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
  }

  .t-dark-mode > .kpm-timeline-number span {
    font-size: clamp(22px, 4.5vw, 28px) !important;
    line-height: 1.25 !important;
  }

  .timeline-number-sections {
    gap: clamp(10px, 2.5vw, 14px) !important;
    margin: 0 0 clamp(20px, 4vw, 32px) !important;
    padding: 0 clamp(12px, 4vw, 20px) !important;
  }

  .timeline-number-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    gap: 4px !important;
    padding: clamp(30px, 3.5vw, 18px) clamp(14px, 3.5vw, 18px) !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: min(282px, 92vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .timeline-number-section .timeline-text-primary {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(28px, 7vw, 40px) !important;
    line-height: 1 !important;
  }

  .timeline-number-section .timeline-text-secondary {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    font-size: clamp(13px, 3.2vw, 15px) !important;
    line-height: 1.2 !important;
  }
}