/* ============================================================
   ACCOMPLISHMENTS PAGE STYLES
   css/accomplishments.css
   ============================================================ */

/* ════════════════════════════════════════════════════════
   PASSWORD GATE
════════════════════════════════════════════════════════ */

/* Hide page content until unlocked */
body:not(.ac-unlocked) .nav,
body:not(.ac-unlocked) .ac-hero,
body:not(.ac-unlocked) .ac-stats-bar,
body:not(.ac-unlocked) .ac-main,
body:not(.ac-unlocked) .ac-cta,
body:not(.ac-unlocked) .footer {
  visibility: hidden;
  pointer-events: none;
}

/* Full-screen overlay */
.ac-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 60%, #0f1923 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.5s ease;
}
.ac-gate--unlocking {
  opacity: 0;
  pointer-events: none;
}

/* Card */
.ac-gate__box {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.75rem 2.5rem 2.25rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  animation: gateSlideUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes gateSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Logo */
.ac-gate__logo {
  margin-bottom: 1.5rem;
}
.ac-gate__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Lock icon */
.ac-gate__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #E8641A;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Title & subtitle */
.ac-gate__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.ac-gate__subtitle {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Input row */
.ac-gate__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #e2e6ed;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-gate__input-wrap:focus-within {
  border-color: #E8641A;
  box-shadow: 0 0 0 4px rgba(232,100,26,0.1);
}
.ac-gate__input-wrap--error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.1) !important;
  animation: gateShake 0.4s ease;
}
@keyframes gateShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.ac-gate__input-icon {
  padding: 0 0.85rem;
  color: #bbb;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ac-gate__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  padding: 0.85rem 0;
  background: transparent;
  letter-spacing: 0.08em;
}
.ac-gate__input::placeholder { color: #bbb; letter-spacing: 0; }

.ac-gate__eye {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.9rem;
  color: #bbb;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.ac-gate__eye:hover { color: #E8641A; }

/* Error message */
.ac-gate__error {
  display: none;
  font-size: 0.8rem;
  color: #e53935;
  font-weight: 600;
  margin-bottom: 0.85rem;
  text-align: left;
  padding-left: 0.25rem;
}

/* Submit button */
.ac-gate__btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #E8641A, #c94f10);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(232,100,26,0.35);
}
.ac-gate__btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,100,26,0.4);
}
.ac-gate__btn:active:not(:disabled) { transform: translateY(0); }
.ac-gate__btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Footer note */
.ac-gate__footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.ac-gate__footer i { color: #E8641A; }

/* ── Force white navbar ─────────────────────────────────── */
.nav,
.nav.scrolled {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--gray-border) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* ════════════════════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════════════════════ */
.ac-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 60%, #0f1923 100%);
}
.ac-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(232,100,26,0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(45,90,160,0.12) 0%, transparent 50%);
}
.ac-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ac-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,100,26,0.15);
  border: 1px solid rgba(232,100,26,0.35);
  color: #E8641A;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.ac-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.ac-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #E8641A;
  margin-bottom: 0.4rem;
}
.ac-hero__name {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}
.ac-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.ac-tag {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}
.ac-tag--orange {
  background: rgba(232,100,26,0.18);
  border-color: rgba(232,100,26,0.4);
  color: #f0906a;
}

/* ════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════ */
.ac-stats-bar {
  background: #E8641A;
  padding: 1.6rem 0;
}
.ac-stats-bar__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  text-align: center;
}
.ac-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ac-stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.ac-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   MAIN CONTENT AREA
════════════════════════════════════════════════════════ */
.ac-main {
  padding: 4rem 0 5rem;
  background: #f7f8fa;
}

/* ════════════════════════════════════════════════════════
   PROGRAM CARDS
════════════════════════════════════════════════════════ */
.ac-program {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eaedf2;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}
.ac-program.visible {
  opacity: 1;
  transform: translateY(0);
}
.ac-program:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Header */
.ac-program__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f2f5;
}
.ac-program__icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.ac-program__meta {
  flex: 1;
}
.ac-program__org {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8641A;
  margin-bottom: 0.25rem;
}
.ac-program__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.ac-program__years {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ac-program__years i { color: #E8641A; }

/* Body text */
.ac-program__body {
  margin-bottom: 2rem;
}
.ac-program__body p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.85rem;
}
.ac-program__body p:last-child { margin-bottom: 0; }
.ac-program__body strong { color: #1a1a2e; }

/* Highlights grid */
.ac-program__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.ac-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f7f8fa;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.ac-highlight > i {
  font-size: 1.1rem;
  color: #E8641A;
  margin-top: 0.15rem;
  min-width: 20px;
}
.ac-highlight > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ac-highlight strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
}
.ac-highlight span {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

/* Skills pills */
.ac-program__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ac-skill {
  display: inline-block;
  background: rgba(232,100,26,0.08);
  border: 1px solid rgba(232,100,26,0.2);
  color: #c94f10;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ════════════════════════════════════════════════════════
   SUMMARY TABLE SECTION
════════════════════════════════════════════════════════ */
.ac-table-section {
  margin-top: 3rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eaedf2;
}
.ac-table-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ac-table-section__title i { color: #E8641A; }
.ac-table-wrapper {
  overflow-x: auto;
}
.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 700px;
}
.ac-table thead tr {
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
}
.ac-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: none;
}
.ac-table tbody td {
  padding: 0.85rem 1rem;
  color: #444;
  vertical-align: top;
  border-bottom: 1px solid #eaedf2;
  line-height: 1.5;
}
.ac-table tbody td strong { color: #1a1a2e; }
.ac-table__alt td { background: #f9f9fb; }
.ac-table tbody tr:hover td {
  background: rgba(232,100,26,0.04);
}
.ac-lang-pill {
  display: inline-block;
  background: #E8641A;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════════════════ */
.ac-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
  padding: 4rem 0;
}
.ac-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ac-cta__text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.ac-cta__text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
}
.ac-cta__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   FOOTER OVERRIDE
════════════════════════════════════════════════════════ */
.footer__bottom {
  background: #0d0d1a;
  padding: 1.25rem 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer__bottom-inner a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__bottom-inner a:hover { color: #E8641A; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ac-hero { padding: 140px 0 60px; }
  .ac-program { padding: 1.75rem 1.25rem; }
  .ac-program__header { flex-direction: column; gap: 1rem; }
  .ac-program__icon { width: 52px; height: 52px; min-width: 52px; font-size: 1.25rem; }
  .ac-program__title { font-size: 1.2rem; }
  .ac-program__highlights { grid-template-columns: 1fr; }
  .ac-cta__inner { flex-direction: column; text-align: center; }
  .ac-cta__actions { justify-content: center; }
  .ac-stats-bar__grid { gap: 1rem 1.5rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .ac-hero__tags { gap: 0.35rem; }
  .ac-tag { font-size: 0.72rem; padding: 0.28rem 0.65rem; }
  .ac-table-section { padding: 1.5rem 1rem; }
}
