/* Nurli Kelajak — public landing page */

:root {
  --lp-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-hero-min: min(92vh, 860px);
  --lp-max: 1180px;
  --lp-glass: rgba(8, 12, 28, 0.72);
  --lp-glass-border: rgba(255, 255, 255, 0.08);
  --lp-accent: #34d399;
  --lp-accent-2: #22d3ee;
  --lp-warm: #fbbf24;
  --lp-radius: 1.25rem;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-body {
  font-family: var(--lp-font);
  background: #050816;
  color: #e2e8f0;
}

.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 60%);
}

.landing-main {
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
  background: transparent !important;
}

/* —— Header —— */
.landing-header {
  padding: 0.85rem 1.5rem;
  background: rgba(5, 8, 22, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--lp-ease), border-color 0.35s, box-shadow 0.35s, padding 0.35s;
}

.landing-header.is-scrolled {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: rgba(5, 8, 22, 0.88);
  border-bottom-color: var(--lp-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.landing-header__logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.25));
}

.landing-header__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.landing-header__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  position: relative;
}

.landing-header__link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.landing-header__link--active {
  color: #f1f5f9 !important;
  background: rgba(52, 211, 153, 0.14);
  font-weight: 600;
}

.landing-header__btn--login {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  color: #022c22 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35) !important;
}

.landing-header__nav-close {
  display: none;
}

.landing-header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lp-glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-header__menu-toggle svg {
  width: 20px;
  height: 20px;
}

html { scroll-behavior: smooth; }

/* —— Hero —— */
.lp-hero {
  position: relative;
  min-height: var(--lp-hero-min);
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 5.5rem 0 0;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__bg .landing-slideshow {
  position: absolute;
  inset: 0;
  min-height: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.lp-hero__bg .landing-slideshow__overlay {
  background:
    linear-gradient(105deg, rgba(5, 8, 22, 0.92) 0%, rgba(5, 8, 22, 0.78) 42%, rgba(5, 8, 22, 0.35) 72%, rgba(5, 8, 22, 0.2) 100%),
    linear-gradient(to top, rgba(5, 8, 22, 0.95) 0%, transparent 35%);
}

.lp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6.5rem;
  display: flex;
  align-items: center;
}

.lp-hero__content {
  max-width: 620px;
  animation: lp-fade-up 0.9s var(--lp-ease) both;
}

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  margin-bottom: 1.1rem;
}

.lp-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-accent-2);
  box-shadow: 0 0 10px var(--lp-accent-2);
  animation: lp-pulse 2.2s ease infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.lp-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lp-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #6ee7b7 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero__title-sub {
  display: block;
  color: #f8fafc;
  font-weight: 700;
}

.lp-hero__desc {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: #94a3b8;
  max-width: 52ch;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.2s var(--lp-ease), box-shadow 0.2s, filter 0.2s;
}

.lp-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lp-btn--primary {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #022c22;
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.35);
}

.lp-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.lp-btn--warm {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1c1917;
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.3);
}

.lp-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.lp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.lp-tag svg {
  width: 14px;
  height: 14px;
  color: var(--lp-accent);
}

/* Slideshow controls in hero */
.lp-hero__bg .lp-slide-ctrls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  top: auto;
  z-index: 4;
  display: flex;
  gap: 0.4rem;
}

.lp-slide-ctrl {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(10px);
  color: #f1f5f9;
  border-radius: 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.lp-slide-ctrl:hover {
  background: rgba(5, 8, 22, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.lp-hero__bg .landing-slideshow__dots {
  bottom: 1.35rem;
  left: auto;
  right: 6.5rem;
  transform: none;
}

.landing-slideshow__dot {
  width: 8px;
  height: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--lp-ease), background 0.3s;
}

.landing-slideshow__dot--active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
}

/* —— Stats —— */
.lp-stats {
  position: relative;
  z-index: 3;
  max-width: var(--lp-max);
  margin: -3.25rem auto 0;
  padding: 0 1.5rem;
}

.lp-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lp-glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lp-stat {
  padding: 1.35rem 1rem;
  text-align: center;
  border-right: 1px solid var(--lp-glass-border);
  transition: background 0.25s;
}

.lp-stat:last-child { border-right: none; }
.lp-stat:hover { background: rgba(52, 211, 153, 0.06); }

.lp-stat__num {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #6ee7b7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* —— Sections —— */
.lp-section {
  padding: 5rem 1.5rem;
}

.lp-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
}

.lp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.lp-section-head__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent-2);
  margin-bottom: 0.65rem;
}

.lp-section-head__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.lp-section-head__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #64748b;
}

.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease);
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— About bento —— */
.lp-about {
  background: linear-gradient(180deg, transparent, rgba(52, 211, 153, 0.03) 50%, transparent);
}

.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.lp-bento-card {
  grid-column: span 6;
  padding: 1.5rem;
  border-radius: var(--lp-radius);
  background: var(--lp-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--lp-glass-border);
  transition: transform 0.3s var(--lp-ease), border-color 0.3s, box-shadow 0.3s;
}

.lp-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lp-bento-card--wide { grid-column: span 12; }

.lp-bento-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 1.4rem;
}

.lp-bento-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lp-bento-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
}

.lp-bento-card__text strong { color: #94a3b8; }

/* —— Majors —— */
.lp-majors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.lp-major {
  padding: 1.35rem;
  border-radius: var(--lp-radius);
  background: var(--lp-glass);
  border: 1px solid var(--lp-glass-border);
  transition: transform 0.3s var(--lp-ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.lp-major::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  opacity: 0;
  transition: opacity 0.3s;
}

.lp-major:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.3);
}

.lp-major:hover::before { opacity: 1; }

.lp-major__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.lp-major__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lp-major__subs {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

/* —— Posts —— */
.lp-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-post {
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-glass);
  border: 1px solid var(--lp-glass-border);
  transition: transform 0.3s var(--lp-ease), box-shadow 0.3s;
}

.lp-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lp-post__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lp-post__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.lp-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--lp-ease);
}

.lp-post:hover .lp-post__img { transform: scale(1.05); }

.lp-post__placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(15, 23, 42, 0.8));
  color: #334155;
  font-size: 2.5rem;
}

.lp-post__body { padding: 1.1rem 1.2rem 1.25rem; }

.lp-post__date {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-accent-2);
  margin: 0 0 0.4rem;
}

.lp-post__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.45;
}

.lp-posts__cta { margin-top: 2rem; text-align: center; }

/* —— FAQ —— */
.lp-faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lp-faq-item {
  border-radius: 0.95rem;
  background: var(--lp-glass);
  border: 1px solid var(--lp-glass-border);
  overflow: hidden;
  transition: border-color 0.25s;
}

.lp-faq-item[open] { border-color: rgba(52, 211, 153, 0.35); }

.lp-faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.lp-faq-item__q::-webkit-details-marker { display: none; }

.lp-faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.12);
  color: var(--lp-accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.3s var(--lp-ease);
}

.lp-faq-item[open] .lp-faq-item__icon { transform: rotate(45deg); }

.lp-faq-item__a {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #64748b;
}

/* —— CTA banner —— */
.lp-cta {
  padding: 0 1.5rem 1rem;
}

.lp-cta__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: var(--lp-radius);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(34, 211, 238, 0.08)),
    var(--lp-glass);
  border: 1px solid rgba(52, 211, 153, 0.25);
  backdrop-filter: blur(16px);
}

.lp-cta__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #f8fafc;
}

.lp-cta__text {
  margin: 0 0 1.35rem;
  color: #94a3b8;
  font-size: 1rem;
}

.lp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* —— Contact —— */
.lp-contact .landing-contact__grid {
  gap: 1rem;
}

.lp-contact .landing-contact__block {
  border-radius: var(--lp-radius);
  background: var(--lp-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--lp-glass-border);
}

.lp-contact .landing-contact__subtitle {
  color: var(--lp-accent-2);
}

/* —— Floating contact —— */
.floating-contact-btn {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #34d399, #059669) !important;
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.4) !important;
}

.floating-contact-modal__panel {
  border-radius: var(--lp-radius) !important;
  background: rgba(8, 12, 28, 0.95) !important;
}

.lp-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0.5rem 0 0.3rem;
}

/* —— Footer —— */
.landing-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--lp-glass-border);
  background: rgba(5, 8, 22, 0.85);
}

.landing-footer__text {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .lp-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-stat:nth-child(2) { border-right: none; }
  .lp-stat:nth-child(1),
  .lp-stat:nth-child(2) { border-bottom: 1px solid var(--lp-glass-border); }
  .lp-bento-card { grid-column: span 12; }
  .lp-posts__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .landing-header__menu-toggle { display: inline-flex; }

  .landing-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--lp-glass-border);
    transform: translateX(100%);
    transition: transform 0.35s var(--lp-ease);
    z-index: 99;
    overflow-y: auto;
  }

  .landing-header__nav.is-open { transform: translateX(0); }

  .landing-header__nav-close {
    display: flex;
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
  }

  .landing-header__nav-close:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
    transform: rotate(90deg);
  }

  .landing-header__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .landing-header__link {
    display: block !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.65rem;
  }

  .landing-header__actions {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .lang-switch { margin-left: 0 !important; justify-content: center; }

  .landing-header__btn {
    justify-content: center;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .lp-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .lp-hero__inner { padding: 1.5rem 1rem 2rem; }

  /* Hide slide UI on mobile — autoplay only; stops overlap with tags */
  .lp-hero__bg .lp-slide-ctrls,
  .lp-hero__bg .landing-slideshow__dots {
    display: none;
  }

  .lp-hero__tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .lp-hero__tags .lp-tag {
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.74rem;
  }

  .lp-hero__tags .lp-tag:last-child {
    grid-column: 1 / -1;
  }

  .lp-stats { margin-top: 1rem; padding: 0 1rem; }

  .lp-section { padding: 3.5rem 1rem; }

  .lp-posts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .lp-stats__grid { grid-template-columns: 1fr; }
  .lp-stat { border-right: none !important; border-bottom: 1px solid var(--lp-glass-border) !important; }
  .lp-stat:last-child { border-bottom: none !important; }
  .lp-hero__actions { flex-direction: column; }
  .lp-btn { width: 100%; }

  .lp-hero__tags {
    grid-template-columns: 1fr;
  }

  .lp-hero__tags .lp-tag:last-child {
    grid-column: auto;
  }
}

/* —— Public posts page —— */
.posts-page {
  position: relative;
  padding: 5.75rem 1.5rem 4rem;
  min-height: 60vh;
}

.posts-page__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
}

.posts-page__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.posts-page__title {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f8fafc;
}

.posts-page__intro {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #94a3b8;
}

.posts-page__actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}

.posts-page .post-featured__link {
  transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease), border-color 0.25s;
}

.posts-page .post-featured__link:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.55);
}

.posts-page .post-card--compact {
  transition: transform 0.22s var(--lp-ease), border-color 0.22s, box-shadow 0.22s;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.posts-page .post-card--compact:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.45);
}

.posts-page .post-card__read {
  color: var(--lp-accent);
  font-weight: 600;
}

.posts-page .posts-empty {
  border-radius: var(--lp-radius);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: var(--lp-glass);
  padding: 2.5rem 1.5rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .posts-page {
    padding: 4.75rem 1rem 3rem;
  }

  .posts-page__hero {
    margin-bottom: 1.75rem;
  }
}

/* —— Public olympiad list —— */
.olympiad-page--modern {
  position: relative;
  padding: 5.75rem 1.5rem 4rem;
  min-height: 60vh;
  background:
    radial-gradient(900px 480px at 0% -5%, rgba(251, 191, 36, 0.12), transparent 45%),
    radial-gradient(800px 420px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 42%),
    transparent;
}

.olympiad-page--modern .olympiad-page__container {
  max-width: var(--lp-max);
}

.olympiad-page__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.olympiad-page--modern .olympiad-page__title {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f8fafc;
}

.olympiad-page--modern .olympiad-page__lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #94a3b8;
}

.olympiad-page__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.olympiad-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.olympiad-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #022c22;
  background: linear-gradient(135deg, var(--lp-warm), #f59e0b);
}

.olympiad-section--panel {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-glass-border);
  background: var(--lp-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.olympiad-section--panel .olympiad-section__head {
  margin-bottom: 1rem;
}

.olympiad-page--modern .olympiad-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}

.olympiad-page--modern .olympiad-section__icon {
  width: 0.55rem;
  height: 0.55rem;
}

.olympiad-page--modern .olympiad-section__empty {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: #94a3b8;
  font-size: 0.9rem;
}

.olympiad-page--modern .olympiad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.olympiad-page--modern .olympiad-card {
  width: auto;
  min-width: 0;
  max-width: none;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
  transition: transform 0.22s var(--lp-ease), border-color 0.22s, box-shadow 0.22s;
}

.olympiad-page--modern .olympiad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
}

.olympiad-page--modern .olympiad-card--ielts:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.olympiad-page--modern .olympiad-card__media {
  aspect-ratio: 16 / 9;
}

.olympiad-page--modern .olympiad-card__placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.15), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
}

.olympiad-page--modern .olympiad-card__type {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 28, 0.72);
}

.olympiad-page--modern .olympiad-card__title {
  font-size: 1.05rem;
  color: #f1f5f9;
}

.olympiad-page--modern .olympiad-card__cta {
  color: var(--lp-warm);
}

.olympiad-page--modern .olympiad-card__status--open {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.olympiad-page--modern .olympiad-card__status--active {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.olympiad-page--modern .olympiad-card__status--ended {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.olympiad-page--modern .olympiad-page__back {
  margin-top: 2rem;
  text-align: center;
}

.olympiad-page__back-btn {
  display: inline-flex;
  gap: 0.45rem;
}

.olympiad-page__back-btn svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 768px) {
  .olympiad-page--modern {
    padding: 4.75rem 1rem 3rem;
  }

  .olympiad-page__hero {
    margin-bottom: 1.75rem;
  }

  .olympiad-page__steps {
    flex-direction: column;
    align-items: stretch;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
  }

  .olympiad-page--modern .olympiad-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .olympiad-page--modern .olympiad-card {
    flex: 0 0 85%;
    max-width: 300px;
    scroll-snap-align: start;
  }
}

/* —— Shared public detail pages (no math rain) —— */
.public-detail-page {
  position: relative;
  padding: 5.75rem 1.5rem 4rem;
  min-height: 60vh;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(56, 189, 248, 0.09), transparent 44%),
    radial-gradient(760px 400px at 0% 100%, rgba(52, 211, 153, 0.07), transparent 42%);
}

.public-detail-page__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
}

.public-detail-page__inner--article {
  max-width: 52rem;
}

.public-detail-page__inner--narrow {
  max-width: 52rem;
}

.public-detail-page__back {
  display: inline-flex;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.public-detail-page__back svg {
  width: 1rem;
  height: 1rem;
}

.public-glass-panel {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-glass-border);
  background: var(--lp-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.public-form-alert {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.public-form-alert--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.public-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.public-data-table {
  margin: 0;
  min-width: 36rem;
}

.public-data-table thead {
  background: rgba(15, 23, 42, 0.55);
}

.public-data-table th {
  color: #c8d4e6;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.public-data-table td {
  font-size: 0.9rem;
}

/* —— Post detail —— */
.post-detail-page .post-detail {
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border: none;
  background: transparent;
  box-shadow: none;
}

.post-detail-page__eyebrow {
  margin-bottom: 0.35rem;
}

.post-detail-page .post-detail__header {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.post-detail-page .post-detail__title {
  color: #f8fafc;
}

.post-detail-page .post-detail__like-btn {
  border-radius: 999px;
}

.post-detail-page .post-comments {
  margin-top: 1.25rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-top: none;
}

.post-detail-page .comment-form {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.14);
}

.post-detail-page .comment-form__submit {
  border: none;
  cursor: pointer;
}

.post-detail-page .comment-item {
  background: rgba(15, 23, 42, 0.32);
}

/* —— Olympiad / IELTS detail —— */
.olympiad-detail-page .olympiad-detail__grid {
  gap: 1.15rem;
}

.olympiad-detail-page .olympiad-detail__main,
.olympiad-detail-page .olympiad-detail__side {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border: none;
  background: transparent;
  box-shadow: none;
}

.olympiad-detail-page__eyebrow {
  margin-bottom: 0.35rem;
}

.olympiad-detail-page .olympiad-detail__title {
  margin-top: 0.15rem;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.olympiad-detail-page .olympiad-detail__image {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

.olympiad-detail-page .olympiad-detail__pill--ielts {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.olympiad-detail-page .olympiad-detail__status--open {
  color: #6ee7b7;
}

.olympiad-detail-page .olympiad-detail__status--active {
  color: #7dd3fc;
}

.olympiad-detail-page .olympiad-detail__status--ended {
  color: #94a3b8;
}

.olympiad-detail-page .olympiad-detail__status--upcoming {
  color: #fcd34d;
}

.olympiad-detail-page .olympiad-detail__actions {
  margin-top: 1.15rem;
}

.olympiad-detail-page .olympiad-detail__form-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
}

.olympiad-detail-page .olympiad-detail__form .lp-btn {
  width: 100%;
  justify-content: center;
}

.olympiad-detail-page .olympiad-detail__standings {
  margin-top: 1.25rem;
}

.olympiad-detail-page .olympiad-detail__standings-card {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
}

.olympiad-detail-page .olympiad-detail__standings-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
}

.olympiad-detail-page .olympiad-detail__standings-empty {
  margin: 0.85rem 0 0;
  padding: 1.1rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .olympiad-detail-page .olympiad-detail__header {
    flex-direction: column;
  }

  .olympiad-detail-page .olympiad-detail__image {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
}

/* —— Quiz solutions —— */
.quiz-solutions-page__header {
  margin-bottom: 1.35rem;
}

.quiz-solutions-page__title {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f8fafc;
}

.quiz-solutions-page__subtitle {
  margin: 0;
  font-size: 1rem;
  color: #94a3b8;
}

.quiz-solutions-panel {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.quiz-solutions-panel__empty {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.quiz-solutions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-solutions-list__item {
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.35);
}

.quiz-solutions-list__question {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.quiz-solutions-list__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #022c22;
  background: linear-gradient(135deg, var(--lp-accent), #34d399);
}

.quiz-solutions-list__text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  line-height: 1.55;
  color: #e2e8f0;
}

.quiz-solutions-list__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.quiz-solutions-list__option {
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.quiz-solutions-list__option--correct,
.quiz-solutions-list__option--correct .katex {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  font-weight: 600;
}

.quiz-solutions-list__check {
  margin-left: 0.25rem;
  color: var(--lp-accent);
}

/* —— IELTS take exam —— */
.ielts-take-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 3.5rem);
  margin-top: 4.25rem;
  background: #0b1220;
}

.ielts-take-page__toolbar {
  position: sticky;
  top: 4.25rem;
  z-index: 25;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

.ielts-take-page__toolbar-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

.ielts-take-page__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #f8fafc;
}

.ielts-take-page__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #94a3b8;
}

.ielts-take-page__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ielts-take-page__badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ielts-take-page__badge--live {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.ielts-take-page__badge--preview {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.ielts-take-page__badge-note {
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
  max-width: 14rem;
}

.ielts-take-page__warning {
  display: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

.ielts-take-page__layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100dvh - 4.25rem - 4.5rem);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.ielts-take-page__pdf {
  flex: 1 1 68%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  background: #111827;
}

.ielts-take-page__pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.65);
}

.ielts-take-page__pdf-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ielts-take-page__pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
}

.ielts-take-page__pdf-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.ielts-take-page__pdf-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #1f2937;
}

.ielts-take-page__pdf-embed {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
}

.ielts-take-page__annot-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ielts-take-page__pdf-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.ielts-take-page__answers {
  flex: 1 1 32%;
  min-width: 280px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.ielts-take-page__answers-head {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ielts-take-page__answers-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ielts-take-page__answers-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

.ielts-take-page__answers-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.ielts-take-page__answers-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.15rem 1rem;
}

.ielts-take-page__preview-note {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.ielts-take-page__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ielts-take-page__answers-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ielts-take-page__answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ielts-take-page__answer-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.ielts-take-page__answer-label {
  flex: 0 0 2.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.ielts-take-page__answer-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
}

.ielts-take-page__answer-input:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.ielts-take-page__submit-row {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: flex-end;
}

.ielts-take-page__submit {
  min-width: 10rem;
  justify-content: center;
}

.ielts-take-page__mobile-toggle {
  display: none;
  position: fixed;
  right: 1rem;
  top: 5.25rem;
  z-index: 40;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  border-color: transparent !important;
}

.landing-body:has(.ielts-take-page) .landing-footer {
  display: none;
}

@media (max-width: 768px) {
  .public-detail-page {
    padding: 4.75rem 1rem 3rem;
  }

  .ielts-take-page__warning {
    display: block;
  }

  .ielts-take-page__toolbar-main {
    flex-direction: column;
    align-items: stretch;
  }

  .ielts-take-page__badges {
    align-items: flex-start;
  }

  .ielts-take-page__badge-note {
    text-align: left;
    max-width: none;
  }

  .ielts-take-page__layout {
    flex-direction: column;
    height: calc(100dvh - 4.25rem - 5.5rem);
  }

  .ielts-take-page__pdf {
    flex: 1 1 auto;
    border-right: none;
  }

  .ielts-take-page__answers {
    position: fixed;
    top: 4.25rem;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 420px;
    z-index: 35;
    box-shadow: -8px 0 24px rgba(2, 6, 23, 0.55);
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    transform: translateX(100%);
    transition: transform 0.25s var(--lp-ease);
  }

  .ielts-take-page__answers.ielts-open {
    transform: translateX(0);
  }

  .ielts-take-page__mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .ielts-take-page__answers-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-solutions-list__question {
    flex-direction: column;
    gap: 0.45rem;
  }
}

/* ══════════════════════════════════════════════════════════
   IED — Exam / Olympiad Detail Page  (shared ied-* system)
   Used by: ielts_exam_detail.html  &  olympiad_detail.html
   ══════════════════════════════════════════════════════════ */
.ied-page {
  position: relative;
  padding: 5.75rem 1.5rem 4rem;
  min-height: 60vh;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(56, 189, 248, 0.09), transparent 44%),
    radial-gradient(760px 400px at 0% 100%, rgba(52, 211, 153, 0.07), transparent 42%);
}

.ied-wrap {
  max-width: 52rem;
  margin: 0 auto;
}

.ied-back {
  display: inline-flex;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

/* —— Hero card —— */
.ied-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.92) 0%, rgba(15, 28, 50, 0.88) 100%);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.ied-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ied-hero--olympiad { border-color: rgba(52, 211, 153, 0.18); }
.ied-hero--olympiad::before { background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%); }

.ied-hero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ied-hero__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.ied-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ied-badge--ielts {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.ied-badge--olympiad {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.ied-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: ied-pulse 2.4s ease infinite;
}

.ied-badge__dot--olympiad {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

@keyframes ied-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

.ied-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ied-status--open     { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.ied-status--active   { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.ied-status--ended    { background: rgba(148, 163, 184, 0.1);  border: 1px solid rgba(148, 163, 184, 0.25); color: #94a3b8; }
.ied-status--upcoming { background: rgba(251, 191, 36, 0.1);   border: 1px solid rgba(251, 191, 36, 0.3);  color: #fcd34d; }

.ied-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.ied-hero__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ied-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.ied-date--start { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); color: #a7f3d0; }
.ied-date--end   { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25); color: #fca5a5; }

.ied-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ied-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ied-stat__value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
}

.ied-stat__label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ied-stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(148, 163, 184, 0.18);
}

.ied-hero__img-wrap {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
}

.ied-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ied-hero__img-placeholder {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

/* —— Content grid —— */
.ied-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

/* —— Glass panel —— */
.ied-panel {
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 28, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.ied-panel__title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.ied-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.ied-description p { margin: 0 0 0.75em; }
.ied-description p:last-child { margin-bottom: 0; }

.ied-solutions-row { margin-top: 0.75rem; }

/* —— Action card —— */
.ied-action-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(160deg, rgba(8, 12, 28, 0.88) 0%, rgba(15, 28, 50, 0.84) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  padding: 1.4rem 1.4rem 1.2rem;
  height: 100%;
}

.ied-action-card--olympiad { border-color: rgba(52, 211, 153, 0.16); }

.ied-action-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.ied-action-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ied-action-icon--register { background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.3);  color: #6ee7b7; }
.ied-action-icon--key      { background: rgba(251, 191, 36, 0.12);  border: 1px solid rgba(251, 191, 36, 0.28); color: #fcd34d; }
.ied-action-icon--info     { background: rgba(148, 163, 184, 0.1);  border: 1px solid rgba(148, 163, 184, 0.22); color: #94a3b8; }

.ied-action-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

.ied-action-card__hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

/* —— Form —— */
.ied-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ied-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ied-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.ied-form .form-input {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
  border-radius: 0.65rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}

.ied-form .form-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.ied-form__error {
  font-size: 0.78rem;
  color: #f87171;
}

.ied-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* —— Alert —— */
.ied-alert {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.87rem;
  line-height: 1.45;
}

.ied-alert--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* —— State message —— */
.ied-state {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ied-state--ended   { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.22); color: #fca5a5; }
.ied-state--waiting { background: rgba(148, 163, 184, 0.07); border: 1px solid rgba(148, 163, 184, 0.18); color: #94a3b8; }

/* Divider used in late-join layout between register and enter-with-key forms */
.ied-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 1rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.ied-divider::before,
.ied-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* Outline button variant for secondary actions */
.lp-btn--outline {
  background: transparent;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.lp-btn--outline:hover {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.55);
}

/* —— Standings —— */
.ied-standings { }

.ied-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #475569;
  font-size: 0.9rem;
  text-align: center;
}

/* —— Pagination —— */
.ied-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ied-page-btn {
  padding: 0.45rem 0.9rem;
  min-height: auto;
  font-size: 0.85rem;
}

.ied-page-info {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* —— Responsive —— */
@media (max-width: 720px) {
  .ied-page { padding: 4.75rem 1rem 3rem; }

  .ied-hero {
    flex-direction: column-reverse;
    gap: 1rem;
    padding: 1.4rem;
  }

  .ied-hero__img-wrap,
  .ied-hero__img-placeholder {
    width: 72px;
    height: 72px;
  }

  .ied-grid {
    grid-template-columns: 1fr;
  }

  .ied-hero__stats {
    gap: 1rem;
  }
}
