/* ==========================================================================
   Diako Academy — International Exams Section
   ========================================================================== */

/* ── Section ─────────────────────────────────────────────────────────────── */
.intexams {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #0B1B33 0%, #0D2045 60%, #122050 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.intexams__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color, #0B1B33);
  opacity: var(--overlay-opacity, 0.45);
}

/* ── Container ───────────────────────────────────────────────────────────── */
.intexams__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: var(--iex-text-align, center);
}

/* ── Eyebrow badge ───────────────────────────────────────────────────────── */
.intexams__eyebrow {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.40);
  border-radius: 20px;
  padding: 3px 14px;
  margin-bottom: 14px;
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.intexams__title {
  font-size: var(--iex-title-size, 56px);
  font-weight: var(--iex-title-weight, 700);
  color: var(--iex-title-color, #ffffff);
  margin: 0 0 10px;
  line-height: 1.2;
}

/* ── Subtitle ────────────────────────────────────────────────────────────── */
.intexams__subtitle {
  font-size: var(--iex-sub-size, 18px);
  font-weight: var(--iex-sub-weight, 400);
  color: var(--iex-sub-color, rgba(255, 255, 255, 0.85));
  margin: 0 0 32px;
  line-height: 1.5;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.intexams__grid {
  display: grid;
  grid-template-columns: repeat(3, 130px);
  gap: 16px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

/* ── Thumbnail card ──────────────────────────────────────────────────────── */
.exam-thumb {
  width: 130px;
  height: 130px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;

  /* Glass base fallback (for browsers without color-mix) */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);

  /* Colorful gradient using accent color (modern browsers) */
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent, #F59E0B) 22%, transparent) 0%,
    rgba(255, 255, 255, 0.07) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent, #F59E0B) 28%, rgba(255, 255, 255, 0.18));
}

/* Subtle backdrop blur */
@supports (backdrop-filter: blur(1px)) {
  .exam-thumb {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Accent dot — top-left corner */
.exam-thumb::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, #F59E0B);
  opacity: 0.9;
}

/* Exam name text */
.exam-thumb__name {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.3;
  padding: 0 8px;
}

/* Hover state */
.exam-thumb:not(.exam-thumb--no-link):hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--accent, #F59E0B) 30%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

/* No-link state */
.exam-thumb--no-link {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

/* ── Decorative images ───────────────────────────────────────────────────── */
.exam-decor {
  position: absolute;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.exam-decor--left  { left: 5%;   top: 20%; width: 160px; }
.exam-decor--right { right: 5%;  top: 15%; width: 180px; }
.exam-decor--bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
}

@media (max-width: 768px) {
  .exam-decor--left,
  .exam-decor--right { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .intexams__grid {
    grid-template-columns: repeat(2, 110px);
    gap: 14px;
  }
  .exam-thumb {
    width: 110px;
    height: 110px;
  }
  .exam-thumb__name { font-size: 14px; }
}

/* Mobile: 1 column stacked */
@media (max-width: 520px) {
  .intexams { padding: 52px 0; min-height: auto; }
  .intexams__grid {
    grid-template-columns: repeat(2, 92px);
    gap: 12px;
  }
  .exam-thumb {
    width: 92px;
    height: 92px;
    border-radius: 16px;
  }
  .exam-thumb__name { font-size: 12px; }
  .exam-thumb::before { width: 7px; height: 7px; top: 8px; left: 8px; }
}
