/* ==========================================================================
   CORE VALUES SECTION — UNIFORM SMALL ROUNDED STYLE (6px, NO SHADOWS)
   - Uniform 6px Small Rounded Corners Across All Cards & Icons
   - Flat Solid Surfaces & Crisp 1px Borders
   - Dual-Icon Smooth Hover Transition (Normal_*.svg & Hover_*.svg)
   ========================================================================== */

/* ── Section Shell ─────────────────────────────────────────────────────── */
.core-values-section {
  background: var(--primary-bg, #0E1420);
  color: var(--text-main, #D8CFC3);
  position: relative;
  min-height: calc(var(--vh, 1vh) * 100);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 100px 0 80px;
  box-sizing: border-box;
}

/* ── Background Waves Ornament ─────────────────────────────────────────── */
.cv-bg-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cv-waves-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  min-width: 1200px;
  height: auto;
  object-fit: cover;
  object-position: bottom center;
  opacity: 0.06;
  filter: invert(1);
  user-select: none;
  pointer-events: none;
}

/* ── Inner Container ───────────────────────────────────────────────────── */
.cv-inner {
  width: 100%;
  max-width: var(--container-max-width, 1320px);
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Centered Header ───────────────────────────────────────────────────── */
.core-values-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cv-label-center {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-gold, #C4932D);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cv-title-center {
  font-family: var(--font-sans), sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-main, #D8CFC3);
  margin: 0 0 8px 0;
}

.cv-subtitle-center {
  font-size: 0.95rem;
  color: var(--text-dim, rgba(216, 207, 195, 0.68));
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

/* ── Shared Uniform Card Surface ────────────────────────────────────────── */
.cv-featured-card,
.cv-small-card {
  background: var(--surface-color, #0A0F1A);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
  transition: transform 0.3s ease,
              border-color 0.3s ease,
              background-color 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px 24px;
}

.cv-featured-card:hover,
.cv-small-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold, #C4932D);
  background: var(--surface-mid, #1A2540);
  box-shadow: none !important;
}

/* ── Featured Horizontal Layout (Integrity & Quality) ────────────────────── */
.cv-featured-card {
  flex-direction: row;
  align-items: stretch;
  gap: 26px;
  padding: 26px 26px 28px 26px;
  min-height: 200px;
}

.cv-featured-card .cv-small-icon {
  width: auto !important;
  height: 100% !important;
  min-height: 100% !important;
  align-self: stretch !important;
  aspect-ratio: 1 / 1 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.cv-featured-card .cv-small-icon img {
  width: 48% !important;
  height: 48% !important;
  max-width: 54px !important;
  max-height: 54px !important;
}

.cv-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.cv-featured-card .cv-small-title {
  font-size: 1.25rem !important;
  margin: 0 0 8px 0 !important;
}

.cv-featured-card .cv-small-desc {
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ── Shared Tag (gold uppercase label) ──────────────────────────────────── */
.bento-tag {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent-gold, #C4932D);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ── Icon Box & Hover Swapping ─────────────────────────────────────────── */
.cv-small-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 147, 45, 0.08);
  border: 1px solid rgba(196, 147, 45, 0.25);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 18px;
  transition: background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.cv-small-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cv-small-icon img.icon-normal {
  opacity: 1;
}

.cv-small-icon img.icon-hover {
  opacity: 0;
}

/* Hover state for Icon Container & Dual SVGs */
.cv-featured-card:hover .cv-small-icon,
.cv-small-card:hover .cv-small-icon {
  background: var(--accent-gold, #C4932D);
  border-color: var(--accent-gold, #C4932D);
}

.cv-featured-card:hover .cv-small-icon img.icon-normal,
.cv-small-card:hover .cv-small-icon img.icon-normal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.cv-featured-card:hover .cv-small-icon img.icon-hover,
.cv-small-card:hover .cv-small-icon img.icon-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* ── Typography inside Cards ────────────────────────────────────────────── */
.cv-small-title {
  font-family: var(--font-sans), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main, #D8CFC3);
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.cv-featured-card:hover .cv-small-title,
.cv-small-card:hover .cv-small-title {
  color: var(--accent-gold, #C4932D);
}

.cv-small-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(216, 207, 195, 0.68);
  margin: 0;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID LAYOUTS (Row 1: 2 Cards, Row 2: 4 Cards)
   ═══════════════════════════════════════════════════════════════════════════ */
.cv-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cv-small-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE & HEIGHT-BASED ADAPTATION FOR LAPTOPS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Laptop Screens (e.g. 1366x768, 1440x900, 1920x1080 at 125%-150% scaling) */
@media (min-width: 992px) and (max-height: 880px) {
  .core-values-section {
    min-height: calc(var(--vh, 1vh) * 100);
    height: auto;
    padding: 85px 0 50px;
  }

  .cv-inner {
    gap: 16px;
  }

  .cv-title-center {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    margin-bottom: 4px;
  }

  .cv-subtitle-center {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .cv-featured-row,
  .cv-small-row {
    gap: 14px;
  }

  .cv-small-card {
    padding: 18px 20px 20px 20px;
  }

  .cv-featured-card {
    padding: 18px 20px 20px 20px;
    gap: 20px;
    min-height: 175px;
  }

  .cv-featured-card .cv-small-title {
    font-size: 1.12rem !important;
    margin-bottom: 6px !important;
  }

  .cv-featured-card .cv-small-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .cv-featured-card .cv-small-icon img {
    max-width: 48px !important;
    max-height: 48px !important;
  }

  .cv-small-card .cv-small-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }

  .cv-small-card .cv-small-icon img {
    width: 26px;
    height: 26px;
  }

  .cv-small-title {
    font-size: 1.02rem;
    margin-bottom: 4px;
  }

  .cv-small-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* Ultra-Compact Laptop Viewports (Height <= 720px) */
@media (min-width: 992px) and (max-height: 720px) {
  .core-values-section {
    padding: 75px 0 40px;
  }

  .cv-inner {
    gap: 12px;
  }

  .cv-title-center {
    font-size: 1.8rem;
  }

  .cv-small-card {
    padding: 14px 16px 16px 16px;
  }

  .cv-featured-card {
    padding: 14px 16px 16px 16px;
    gap: 16px;
    min-height: 145px;
  }

  .cv-featured-card .cv-small-title {
    font-size: 1.02rem !important;
    margin-bottom: 4px !important;
  }

  .cv-featured-card .cv-small-desc {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }

  .cv-featured-card .cv-small-icon img {
    max-width: 42px !important;
    max-height: 42px !important;
  }

  .cv-small-card .cv-small-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  .cv-small-card .cv-small-icon img {
    width: 22px;
    height: 22px;
  }

  .cv-small-title {
    font-size: 0.95rem;
  }

  .cv-small-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

@media (max-width: 1024px) {
  .core-values-section {
    min-height: auto;
    padding: 80px 0;
  }

  .cv-inner {
    gap: 20px;
  }

  .cv-featured-row {
    grid-template-columns: 1fr 1fr;
  }

  .cv-small-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .cv-inner {
    padding: 0 16px;
    gap: 14px;
  }

  .cv-featured-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cv-small-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cv-small-card {
    padding: 20px 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .cv-featured-card {
    padding: 20px 18px;
    gap: 18px;
    min-height: 140px;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .cv-featured-card:active,
  .cv-small-card:active {
    transform: scale(0.98);
    border-color: rgba(197, 168, 128, 0.4);
  }

  .cv-small-card .cv-small-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .cv-small-icon img {
    width: 26px;
    height: 26px;
  }

  .cv-small-title {
    font-size: 1rem;
  }

  .cv-small-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .cv-small-row {
    grid-template-columns: 1fr;
  }
}
