@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

@keyframes about2CardPop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes about2FadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.about2 {
  position: relative;
  width: 100%;
  background: #EDF3FF;
  padding: clamp(28px, 6vw, 90px) clamp(16px, 6vw, 96px) clamp(24px, 5vw, 60px) clamp(16px, 6vw, 96px);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

.about2__ribbonBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.about2__ribbonBg svg {
  width: 100%;
  height: 100%;
}

.about2__inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- BADGE ---------- */
.about2__badge {
  position: relative;
  top: -15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(28px);
  flex-wrap: wrap;
}

.about2--visible .about2__badge {
  animation: about2FadeSlideUp 0.7s ease forwards;
  animation-delay: 0.1s;
}

.about2__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #1e3a5f;
  border-radius: 6px;
  flex-shrink: 0;
}

.about2__badge-text {
  color: #1e3a5f;
  font-size: clamp(10.5px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
}

/* ---------- BOX ---------- */
.about2__box {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  position: relative;
}

/* ---------- LEFT: image block ---------- */
.about2__imageWrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transform: translateY(28px);
}

.about2--visible .about2__imageWrap {
  animation: about2FadeSlideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.about2__imageFrame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3px;
  background: linear-gradient(160deg, #d4a24c, #f0c878 45%, #d4a24c 100%);
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  filter: drop-shadow(0 20px 36px rgba(30, 58, 95, 0.28)) drop-shadow(0 0 30px rgba(212, 162, 76, 0.18));
}

.about2__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s ease;
  border-radius: 22px;
  clip-path: polygon(0 0, 84% 0, 100% 14%, 100% 100%, 0 100%);
}

.about2__imageFrame:hover .about2__image {
  transform: scale(1.06);
}

.about2__statsBar {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  background: rgba(24, 55, 92, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 162, 76, 0.3);
  border-radius: 14px;
  padding: 14px 20px;
  gap: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.about2__statsItem {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 120px;
  min-width: 0;
}

.about2__statsIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d4a24c;
  color: #d4a24c;
  flex-shrink: 0;
}

.about2__statsText {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.about2__statsText strong {
  color: #ffffff;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.about2__statsText span {
  color: #cfd9e8;
  font-size: clamp(8.5px, 1vw, 10.5px);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

.about2__statsDivider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* ---------- RIGHT: content ---------- */
.about2__content {
  position: relative;
  padding-top: 8px;
  min-width: 0;
  opacity: 0;
  transform: translateY(28px);
}

.about2--visible .about2__content {
  animation: about2FadeSlideUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.about2__heading,
.about2__underline,
.about2__para,
.about2__cards {
  position: relative;
  z-index: 1;
}

.about2__heading {
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: #1e3a5f;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
  font-family: "Plus Jakarta Sans", sans-serif;
  word-break: break-word;
}

.about2__heading--accent {
  color: #d4a24c;
}

.about2__underline {
  display: block;
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: #d4a24c;
  margin-bottom: 18px;
}

.about2__para {
  font-size: clamp(13px, 1.3vw, 15.5px);
  line-height: 1.75;
  color: #4a5568;
  margin: 0 0 16px 0;
}

.about2__para strong {
  color: #1e3a5f;
  font-weight: 700;
}

/* ---------- 4 info cards ---------- */
.about2__cardsWrap {
  position: relative;
  margin-top: clamp(24px, 3vw, 36px);
}

.about2__cardsBg {
  position: absolute;
  inset: -30px -20px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 162, 76, 0.28), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(30, 58, 95, 0.22), transparent 55%);
  filter: blur(30px);
  border-radius: 32px;
}

.about2__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 14px;
}

.about2__card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(237, 243, 255, 0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 18px 16px 16px 16px;
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(212, 162, 76, 0.25);
  border-top: 3px solid #d4a24c;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  min-width: 0;
  align-self: stretch;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px) scale(0.94);
}

.about2--visible .about2__card {
  animation: about2CardPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about2--visible .about2__card:nth-child(1) { animation-delay: 0.45s; }
.about2--visible .about2__card:nth-child(2) { animation-delay: 0.55s; }
.about2--visible .about2__card:nth-child(3) { animation-delay: 0.65s; }
.about2--visible .about2__card:nth-child(4) { animation-delay: 0.75s; }

.about2__card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.22), transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.about2__card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 44px rgba(30, 58, 95, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 0 44px 6px rgba(212, 162, 76, 0.22);
  border-color: rgba(212, 162, 76, 0.65);
}

.about2__card:hover::after {
  opacity: 1;
  transform: translate(-15%, 20%);
}

.about2__cardIcon {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  align-self: flex-start;
  box-sizing: border-box;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  color: #d4a24c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px 0;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.3), 0 0 0 4px rgba(212, 162, 76, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about2__cardIcon svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.about2__card:hover .about2__cardIcon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(30, 58, 95, 0.35), 0 0 0 5px rgba(212, 162, 76, 0.22);
}

.about2__cardTitle {
  position: relative;
  z-index: 2;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 800;
  color: #1e3a5f;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
  font-family: "Plus Jakarta Sans", sans-serif;
  word-break: break-word;
}

.about2__cardDesc {
  position: relative;
  z-index: 2;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.55;
  color: #5b6472;
  margin: 0;
  flex-grow: 1;
  word-break: break-word;
}

.about2__cardList {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-left: 4px;
  list-style: none;
  color: #5b6472;
  flex-grow: 1;
}

.about2__cardList li {
  position: relative;
  padding-left: 14px;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.65;
  word-break: break-word;
}

.about2__cardList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a24c;
  box-shadow: 0 0 6px rgba(212, 162, 76, 0.5);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   Desktop large -> desktop small -> tablet landscape ->
   tablet portrait -> mobile large -> mobile -> mobile small
   ========================================================= */

/* ---- Desktop small / laptop ---- */
@media (max-width: 1300px) {
  .about2__box {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 32px;
  }

  .about2__image {
    min-height: 260px;
  }
}

/* ---- Tablet landscape (new mid-step so cards don't feel cramped) ---- */
@media (max-width: 1180px) and (min-width: 1101px) {
  .about2__cards {
    gap: 10px;
  }

  .about2__card {
    padding: 16px 12px 14px 12px;
  }
}

/* ---- Tablet: switch to stacked single-column layout ---- */
@media (max-width: 1100px) {
  .about2 {
    padding: clamp(28px, 5vw, 36px) clamp(18px, 4vw, 24px);
  }

  .about2__box {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
  }

  .about2__imageWrap {
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
  }

  .about2__imageFrame {
    height: auto;
  }

  .about2__image {
    height: clamp(240px, 42vw, 340px);
    min-height: 0;
  }

  .about2__content {
    height: auto;
  }

  .about2__cardsWrap {
    flex: none;
    margin-top: 32px;
    padding-top: 0;
  }

  .about2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    flex: none;
    gap: 14px;
  }

  .about2__card {
    min-width: 0;
    height: auto;
  }
}

/* ---- Tablet portrait ---- */
@media (max-width: 900px) {
  .about2 {
    padding: 30px 18px;
  }

  .about2__imageWrap {
    max-width: 480px;
  }

  .about2__image {
    height: clamp(240px, 44vw, 340px);
    object-position: center 25%;
  }

  .about2__content {
    padding-top: 4px;
  }
}

/* ---- Mobile large ---- */
@media (max-width: 768px) {
  .about2__imageFrame {
    border-radius: 18px;
  }

  .about2__image {
    height: clamp(220px, 48vw, 300px);
    border-radius: 16px;
  }

  .about2__statsBar {
    padding: 12px 14px;
    gap: 8px 10px;
    flex-wrap: wrap;
  }

  .about2__statsItem {
    flex: 1 1 45%;
    gap: 8px;
  }

  .about2__statsDivider {
    display: none;
  }

  .about2__statsText span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }

  .about2__cards {
    gap: 12px;
  }

  .about2__card {
    padding: 16px 14px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .about2 {
    padding: 26px 16px;
  }

  .about2__badge {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
  }

  .about2__imageWrap {
    margin-top: 4px;
    max-width: 100%;
  }

  .about2__imageFrame {
    border-radius: 16px;
  }

  .about2__image {
    height: clamp(190px, 55vw, 260px);
    border-radius: 14px;
    object-position: center 25%;
  }

  /* stats bar: if content still doesn't fit, wrap into two rows
     instead of overflowing/clipping text */
  .about2__statsBar {
    gap: 8px;
    padding: 10px 12px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    border-radius: 10px;
    flex-wrap: wrap;
  }

  .about2__statsItem {
    gap: 8px;
    flex: 1 1 45%;
  }

  .about2__statsDivider {
    display: none;
  }

  .about2__statsIcon {
    width: 26px;
    height: 26px;
  }

  .about2__statsIcon svg {
    width: 13px;
    height: 13px;
  }

  .about2__statsText strong {
    font-size: 12px;
  }

  .about2__statsText span {
    font-size: 7.5px;
    letter-spacing: 0.1px;
    white-space: normal;
    line-height: 1.2;
  }

  .about2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .about2__card {
    width: 100%;
    padding: 16px 12px;
  }
}

/* ---- Mobile small ---- */
@media (max-width: 480px) {
  .about2 {
    padding: 20px 12px;
  }

  .about2__imageFrame {
    border-radius: 14px;
  }

  .about2__image {
    height: clamp(170px, 60vw, 220px);
    border-radius: 12px;
    object-position: center 22%;
  }

  .about2__statsBar {
    padding: 8px 10px;
    gap: 6px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }

  .about2__statsItem {
    flex: 1 1 100%;
  }

  .about2__statsIcon {
    width: 22px;
    height: 22px;
  }

  .about2__statsIcon svg {
    width: 11px;
    height: 11px;
  }

  .about2__statsText strong {
    font-size: 11px;
  }

  .about2__statsText span {
    font-size: 7px;
    white-space: normal;
    line-height: 1.2;
  }

  .about2__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about2__card {
    width: 100%;
    height: auto;
    padding: 18px 14px;
  }
}

/* ---- Extra small ---- */
@media (max-width: 360px) {
  .about2__badge-text {
    font-size: 10px;
  }

  .about2__badge-icon {
    width: 18px;
    height: 18px;
  }

  .about2__image {
    height: clamp(150px, 55vw, 190px);
  }

  .about2__heading {
    font-size: 19px;
  }

  .about2__statsText span {
    display: none; /* label text too tight at this width; keep the number only */
  }
}