/* ===============================
   PREMIUM THEME (Multilevel)
=============================== */

:root{
  --bg: #f5f6fa;
  --text: #12131a;
  --muted: rgba(18, 19, 26, .65);

  --brand: #e53935;
  --brand2: #c62828;

  --card: rgba(255,255,255,.92);
  --border: rgba(0,0,0,.08);

  --shadow: 0 12px 30px rgba(0,0,0,.10);
  --shadow2: 0 18px 44px rgba(0,0,0,.14);

  --radius: 18px;
  --radius2: 24px;

  --sidebarW: 280px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, sans-serif;
}

html, body{
  height:100%;
}

body{
  background:
    radial-gradient(1100px 540px at 14% 0%, rgba(0, 255, 127, .26), transparent 52%),
    radial-gradient(980px 560px at 86% 18%, rgba(0, 230, 120, .20), transparent 58%),
    linear-gradient(155deg, #00ff7f 0%, #00d66b 55%, #00b85c 100%);
  color: var(--text);
}

/* nicer scroll */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: rgba(0,0,0,.05); }
::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.20); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(0,0,0,.30); }

.container{
  display:flex;
  min-height: 100vh;
}

/* ===============================
   SIDEBAR (Premium)
=============================== */
.sidebar{
  width: var(--sidebarW);
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;

  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);

  transform: translateX(0);
  transition: transform .28s ease;
}

.sidebar.open{
  transform: translateX(0);
}

.sidebar-toggle-btn{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: var(--brand2);
  font-weight: 800;
  cursor: pointer;
  display: none;
}

.sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,252,.92));
}

.logo{
  padding: 8px 12px;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
  color: #111;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.logo::before{ content: none; }

.home-icon{
  width: 26px;
  height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 18px rgba(229,57,53,.22);
}
.home-icon svg{
  width: 16px;
  height: 16px;
  fill: #fff;
}

.sidebar-hide-btn{
  border: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,245,245,.92));
  color: #111;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sidebar-hide-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.logo::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(229,57,53,.12);
}

.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 18px 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 14px;
  color: var(--brand);
}

.section-label::before{
  content:"";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(229,57,53,.12);
}

.section-label--ielts{
  color: var(--brand2);
}

.section-label--ielts::before{
  background: var(--brand2);
  box-shadow: 0 0 0 6px rgba(198,40,40,.12);
}

.menu-group{
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 8px 12px 12px;
  margin: 6px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.subject-links{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin: 10px 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.05);
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.subject-link{
  display:block;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid deeppink;
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.subject-link:hover{
  background: rgba(229,57,53,.10);
  color: var(--brand2);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.menu-title{
  padding: 14px 14px;
  cursor:pointer;
  user-select:none;
  font-weight: 700;
  font-size: 15px;

  display:flex;
  align-items:center;
  justify-content: space-between;

  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 4px solid deeppink;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ielts-group .menu-title{
  color: var(--brand2);
}

.ielts-group .menu-title:hover{
  background: rgba(198,40,40,.16);
}

.menu-title:hover{
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.7));
  transform: translateX(2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.menu-title::after{
  content:"›";
  font-size: 18px;
  opacity:.55;
  transform: rotate(0deg);
  transition: transform .22s ease, opacity .22s ease;
}

.menu-group.active .menu-title::after{
  transform: rotate(90deg);
  opacity: 1;
}

.submenu{
  display:none;
  padding: 12px 6px 6px;
}

.menu-group.active .submenu{
  display:block;
}

.submenu button,
.submenu a{
  display:block;
  width: 100%;
  border: 0;
  text-align:left;
  cursor:pointer;
  text-decoration:none;
  color: var(--text);

  padding: 12px 14px 12px 16px;
  margin-top: 10px;

  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  border: 1px solid rgba(0,0,0,.05);
  border-left: 4px solid deeppink;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.submenu button:hover,
.submenu a:hover{
  background: rgba(229,57,53,.10);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
  border-color: rgba(229,57,53,.22);
}

.submenu button.active{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(229,57,53,.20);
}

/* ===============================
   HOME PREMIUM CARDS
=============================== */
.hero{
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.hero-title-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  position: relative;
  padding-right: 170px;
}

.hero-cta{
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 16px 30px rgba(229,57,53,.28);
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
  animation: heroCtaPulse 2.8s ease-in-out infinite;
  justify-self: end;
  align-self: start;
}

.hero-cta:hover{
  transform: translateY(-2px) scale(1.02);
}

.hero-cta::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.45) 45%, transparent 75%);
  transform: translateX(-120%);
  animation: heroCtaShine 3.6s ease-in-out infinite;
}

@keyframes heroCtaPulse{
  0%, 100%{
    box-shadow: 0 16px 30px rgba(229,57,53,.28);
    transform: translateY(0);
  }
  50%{
    box-shadow: 0 22px 40px rgba(229,57,53,.36);
    transform: translateY(-1px);
  }
}

@keyframes heroCtaShine{
  0%, 55%{
    transform: translateX(-120%);
  }
  100%{
    transform: translateX(120%);
  }
}

.hero h1{
  font-size: 32px;
  margin: 6px 0;
  color: #0f1017;
}

.welcome-marquee{
  display: inline-block;
  white-space: nowrap;
  position: relative;
  will-change: text-shadow, opacity;
  animation: welcomeGlow 5s ease-in-out infinite;
}

.welcome-marquee::after{
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(37,99,235,0.85), rgba(37,99,235,0));
  box-shadow: 0 0 20px rgba(37,99,235,0.6);
  opacity: 0.2;
  animation: welcomeUnderline 5s ease-in-out infinite;
}

@keyframes welcomeGlow{
  0%, 100%{
    text-shadow: 0 0 0 rgba(37,99,235,0);
  }
  50%{
    text-shadow: 0 0 18px rgba(37,99,235,0.55);
  }
}

@keyframes welcomeUnderline{
  0%, 100%{
    opacity: 0.25;
    filter: blur(0.2px);
  }
  50%{
    opacity: 1;
    filter: blur(0px);
  }
}

.hero p{
  color: var(--muted);
  font-size: 16px;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: var(--brand2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.path-row{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.path-card{
  background: linear-gradient(180deg, rgba(255,240,240,.98) 0%, rgba(255,229,229,.94) 100%);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border: 1px solid rgba(229,57,53,.16);
  position: relative;
  overflow: hidden;
}

.path-card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(229,57,53,.24);
  box-shadow: 0 0 26px rgba(229,57,53,.22);
  opacity: .5;
  animation: edgePulse 5s ease-in-out infinite;
  pointer-events: none;
}

.path-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.path-sub{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12px;
  color: #fff;
}

.pill-red{
  background: linear-gradient(120deg, var(--brand), var(--brand2));
}

.pill-deep{
  background: linear-gradient(120deg, #8b1c1c, #c62828);
}

.path-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.path-item{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(229,57,53,.14);
  transition: transform .16s ease, box-shadow .16s ease, border .16s ease, background .16s ease;
}

.path-item h4{
  margin: 0 0 4px;
}

.path-item p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.path-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0,0,0,.10);
  border: 1px solid rgba(229,57,53,.25);
  background: rgba(229,57,53,.08);
}

.circle-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 14px;
  color: #0f1017;
  background: linear-gradient(135deg, #ffe7e7, #ffd4d4);
  border: 1px solid rgba(229,57,53,.28);
}

.circle-icon-sm{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 13px;
  background: linear-gradient(135deg, #ffecec, #ffdede);
}

.subjects-block{
  margin-top: 10px;
}

.section-heading{
  margin-bottom: 10px;
}

.section-heading h3{
  margin: 8px 0 4px;
}

.section-heading p{
  margin:0;
  color: var(--muted);
}

.subject-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.subject-card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px;
  text-decoration:none;
  color: var(--text);
  border-radius: 14px;
  background: rgba(255,242,242,.95);
  border: 1px solid rgba(229,57,53,.18);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  transition: transform .16s ease, box-shadow .16s ease, border .16s ease, background .16s ease;
  position: relative;
  overflow: hidden;
}

.subject-card h4{
  margin: 0 0 4px;
}

.subject-card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.subject-card p + p{
  margin-top: 4px;
  color: #2e7d32;
  font-weight: 700;
}

.subject-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0,0,0,.12);
  border: 1px solid rgba(229,57,53,.28);
  background: rgba(229,57,53,.08);
}

.subject-card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(229,57,53,.24);
  box-shadow: 0 0 20px rgba(229,57,53,.22);
  opacity: .5;
  animation: edgePulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

.teacher-banner{
  margin-top: 40px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,240,240,.96), rgba(255,230,230,.90));
  border: 1px solid rgba(229,57,53,.20);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  flex-wrap: wrap;
}

body.reading-page .main{
  display:flex;
  flex-direction: column;
}

body.reading-page .content-section.active.has-back{
  display:flex;
  flex-direction: column;
  flex: 1;
}

body.reading-page .teacher-banner{
  margin-top: auto;
}

.has-fixed-teacher .main{
  padding-bottom: 170px;
}

.has-fixed-teacher .teacher-banner.teacher-banner-fixed{
  position: fixed;
  left: calc(var(--sidebarW) + 16px);
  right: 16px;
  bottom: 16px;
  transform: none;
  width: auto;
  margin: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
}

.teacher-hero{
  display:flex;
  gap: 12px;
  align-items:center;
}

.teacher-photo{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: url("teacher-avatar.jpg") center/cover no-repeat;
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}

.teacher-name{
  font-weight: 800;
  font-size: 16px;
}

.teacher-role{
  color: var(--muted);
  font-size: 13px;
}

.teacher-contact{
  margin-top: 4px;
  font-size: 13px;
  color: var(--text);
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-contact a{
  color: var(--brand2);
  text-decoration: none;
  font-weight: 700;
}

.teacher-contact .divider{
  color: rgba(0,0,0,.35);
}

.teacher-actions-wide{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.cta-btn{
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border-radius: 12px;
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 12px 24px rgba(229,57,53,.28);
  transition: transform .16s ease, box-shadow .16s ease;
  animation: telegramBlink 5s ease-in-out infinite;
}

.cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(229,57,53,.34);
}

@media (max-width: 768px){
  .hero h1{
    font-size: 26px;
  }
  .hero-title-row{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }
  .hero-cta{
    position: static;
    margin-top: 8px;
    align-self: flex-start;
  }
  .path-grid{
    grid-template-columns: 1fr;
  }
  .path-row{
    grid-template-columns: 1fr;
  }
}

/* Premium teacher card */
.teacher-card{
  margin: 16px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(229,57,53,0.08), rgba(30,144,255,0.06));
  border: 2px solid deeppink;
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}
.teacher-card-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.teacher-avatar{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #e0e7ff);
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  position: relative;
  overflow: hidden;
}
.teacher-avatar::after{
  content: "S";
  position: absolute;
  inset: 0;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: #1f2937;
}
/* Optional: replace with your photo file */
.teacher-avatar.has-photo{
  background: center/cover no-repeat url("teacher-avatar.jpg");
}
.teacher-avatar.has-photo::after{
  content:"";
}
.teacher-name{
  font-weight: 800;
  color: #111;
}
.teacher-role{
  color: rgba(18,19,26,.65);
  font-size: 13px;
}
.teacher-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pulse-btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2ca5e0, #1f8fcb);
  color: #fff;
  font-weight: 800;
  text-decoration:none;
  overflow:hidden;
  box-shadow: 0 12px 26px rgba(44,165,224,0.35);
  animation: telegramBlink 5s ease-in-out infinite;
}
.pulse-btn::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.55);
  animation: pulseGlow 2.2s ease-out infinite;
  pointer-events:none;
}
.pulse-btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.ghost-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  color: #111;
  text-decoration:none;
  font-weight: 700;
}
.ghost-link:hover{
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
@keyframes pulseGlow{
  0% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 0.25; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.12); }
}

@keyframes telegramBlink{
  0%, 100%{
    opacity: 1;
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50%{
    opacity: .25;
    text-shadow: 0 0 14px rgba(255,255,255,.65);
  }
}

/* Mobile menu button */
.mobile-menu-btn{
  display:none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;

  font-size: 20px;
  border: 0;
  color: #fff;

  padding: 10px 14px;
  border-radius: 14px;

  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 30px rgba(229,57,53,.25);
  cursor:pointer;
  transition: transform .18s ease;
}

.mobile-menu-btn:hover{ transform: scale(1.05); }

/* ===============================
   MAIN
=============================== */
.main{
  margin-left: var(--sidebarW);
  width: calc(100% - var(--sidebarW));
  padding: 28px;
  min-height: 100vh;
}
.main.has-back{
  position: relative;
  padding-top: 64px;
}

h1, h2, h3{
  letter-spacing: .2px;
}

p{
  color: var(--muted);
}

/* ===============================
   GENERAL CARDS / GRIDS
=============================== */
.hidden{ display:none !important; }

.exercise-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.exercise-wrap{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.exercise-card{
  background: var(--card);
  border: 2px solid deeppink;
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
  cursor:pointer;
  user-select:none;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow:hidden;
}

.ready-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px 6px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 10px 18px rgba(34,197,94,.35);
  pointer-events: none;
}
.ready-badge::before{
  content: "+";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  font-size: 12px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.rp1-ready{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px 6px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 10px 18px rgba(34,197,94,.35);
  pointer-events: none;
}
.rp1-ready::before{
  content: "✓";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.rp1-ready::after{
  content: "+";
  margin-left: 2px;
}

@media (max-width: 640px){
  .rp1-ready{
    padding: 5px 9px 5px 24px;
    font-size: 10px;
  }
}

.feedback-btn{
  align-self: flex-start;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 22px rgba(229,57,53,.26);
  position: relative;
  overflow: hidden;
  animation: telegramBlink 4.6s ease-in-out infinite;
}
.feedback-btn::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  animation: pulseGlow 2.4s ease-out infinite;
  pointer-events:none;
}
.feedback-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(229,57,53,.34);
}

@media (max-width: 640px){
  .feedback-btn{
    font-size: 11px;
    padding: 5px 9px;
  }
}

.exercise-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(500px 240px at 20% 0%, rgba(229,57,53,.14), transparent 55%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.exercise-card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(229,57,53,.28);
  box-shadow: 0 0 0 1px rgba(229,57,53,.10), 0 0 22px rgba(229,57,53,.25);
  opacity: .55;
  animation: edgePulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.exercise-card:hover{
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow2);
  border-color: rgba(229,57,53,.25);
}

.exercise-card:hover::before{
  opacity: 1;
}

.exercise-card h3{
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.exercise-card p{
  position: relative;
  z-index: 1;
}

/* ===============================
   LISTENING PART 1
=============================== */
.listening-instructions{
  background: rgba(255,255,255,.92);
  border: 2px dashed rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 10px 0 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.listening-instructions h3{
  margin-bottom: 6px;
}

.listening-instructions p{
  color: var(--text);
  margin: 0;
}

.listening-question-card{
  padding: 20px;
}

.listening-questions{
  list-style: decimal;
  padding-left: 44px;
  margin: 0;
  list-style-position: outside;
}

.listening-question{
  padding: 12px 0 12px 6px;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}

.listening-question:last-child{
  border-bottom: 0;
}

.listening-options{
  display: grid;
  gap: 8px;
}

.listening-options div{
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.listening-option{
  display: grid;
  grid-template-columns: 20px 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
}

.listening-option input{
  margin-top: 3px;
  accent-color: #e53935;
}

.option-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: #b31412;
  font-weight: 700;
  font-size: 13px;
}

.listening-audio{
  margin: 14px 0 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,255,252,.92));
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.listening-audio-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.listening-audio h3{
  margin: 0;
}

.listening-audio-player{
  width: 100%;
  margin-top: 8px;
}

.listening-check-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.listening-feedback{
  margin-top: 12px;
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.listening-feedback .is-correct{
  color: #0b6b2e;
  font-weight: 600;
  margin-bottom: 6px;
}

.listening-feedback .is-wrong{
  color: #b31412;
  font-weight: 600;
  margin-bottom: 6px;
}

.listening-gap-title{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

.listening-gap-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.listening-gap-item{
  display: grid;
  grid-template-columns: 52px 1fr minmax(120px, 190px) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}

.lp2-page .listening-gap-item{
  grid-template-columns: 52px auto minmax(120px, 190px) auto;
  justify-content: start;
}

.listening-gap-item:last-child{
  border-bottom: 0;
}

.gap-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: #b31412;
  font-weight: 800;
  font-size: 14px;
}

.gap-text{
  font-weight: 600;
}

.gap-trail{
  color: var(--muted);
  font-size: 14px;
}

.lp2-page .gap-trail{
  color: var(--text);
  font-weight: 600;
}

.listening-gap-item .blank{
  width: 100%;
  min-width: 120px;
}

.listening-info-block{
  display: grid;
  gap: 12px;
}

.listening-info-group{
  background: rgba(255,255,255,.7);
  border: 1px dashed rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.listening-info-heading{
  font-weight: 700;
  margin-bottom: 6px;
}

.listening-info-list{
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 6px;
}

.listening-info-line{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px){
  .listening-gap-item{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lp2-page .listening-gap-item{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gap-num{
    width: 38px;
  }

  .has-fixed-teacher .main{
    padding-bottom: 240px;
  }

  .has-fixed-teacher .teacher-banner.teacher-banner-fixed{
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
    padding: 14px;
  }

  .has-fixed-teacher .teacher-banner.teacher-banner-fixed .teacher-actions-wide{
    width: 100%;
    justify-content: stretch;
  }

  .has-fixed-teacher .teacher-banner.teacher-banner-fixed .cta-btn,
  .has-fixed-teacher .teacher-banner.teacher-banner-fixed .ghost-link{
    width: 100%;
    text-align: center;
  }

  body.reading-page.has-fixed-teacher .main{
    padding-bottom: 24px;
  }

  body.reading-page.has-fixed-teacher .teacher-banner.teacher-banner-fixed{
    position: static;
    margin: 20px 0 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    backdrop-filter: none;
  }
}

@media (max-width: 640px){
  .hero-cta{
    padding: 8px 14px;
    font-size: 13px;
  }

  .listening-question-card{
    padding: 16px;
  }

  .listening-questions{
    padding-left: 28px;
  }

  .listening-question{
    padding: 14px 0 14px 4px;
  }

  .listening-question + .listening-question{
    margin-top: 6px;
  }

  .listening-options{
    gap: 10px;
  }

  .listening-option{
    grid-template-columns: 18px 22px 1fr;
    padding: 10px;
    line-height: 1.35;
  }

  .option-label{
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

@keyframes edgePulse{
  0%, 100%{
    opacity: .25;
    filter: brightness(0.95);
  }
  50%{
    opacity: .8;
    filter: brightness(1.1);
  }
}

/* “Back” + primary buttons */
.back-btn,
.submit-btn,
.btn{
  border: 0;
  cursor:pointer;
  font-weight: 800;

  padding: 10px 16px;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.back-btn{
  background: rgba(0,0,0,.06);
  color: var(--text);
}

.back-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.content-section.has-back{
  position: relative;
  padding-top: 64px;
}

.writing-hero{
  margin: 12px 0 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,245,245,.88));
  border: 1px solid rgba(229,57,53,.18);
  box-shadow: 0 16px 36px rgba(0,0,0,.10);
}
.writing-hero-inner{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.writing-hero-eyebrow{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--brand2);
}
.writing-hero-title{
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: #111;
  letter-spacing: .2px;
}
.writing-hero-by{
  font-size: 13px;
  font-weight: 700;
  color: rgba(17,17,17,.7);
}

.simon-spotlight{
  margin: 18px 0 26px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,249,240,.98), rgba(240,248,255,.96));
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  position: relative;
  overflow: hidden;
}

.simon-spotlight::before{
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,193,7,.28), rgba(255,193,7,0));
}

.simon-spotlight-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.simon-spotlight-tag{
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.simon-spotlight h2{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #111;
  letter-spacing: .2px;
}

.simon-spotlight p{
  margin: 0;
  font-size: 15px;
  color: #2f2f2f;
  line-height: 1.6;
}

.simon-spotlight-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.simon-spotlight-chip{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: #a11818;
  font-size: 12px;
  font-weight: 700;
}

.simon-spotlight-actions{
  margin-top: 6px;
}

.simon-page-intro{
  margin: 6px 0 12px;
  color: #0a0a0a;
  line-height: 1.6;
}

.simon-essays-grid{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.simon-essay-card{
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
  overflow: hidden;
}

.simon-essay-summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  padding-right: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255,249,240,.98), rgba(240,248,255,.96));
  position: relative;
}

.simon-essay-summary::-webkit-details-marker{
  display: none;
}

.simon-essay-summary::marker{
  content: "";
}

.simon-essay-summary::after{
  content: "▾";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 16px;
  color: rgba(17,17,17,.55);
  transition: transform .18s ease;
}

.simon-essay-card[open] .simon-essay-summary::after{
  transform: rotate(180deg);
}

.simon-essay-summary-title{
  font-size: 18px;
  font-weight: 900;
  color: #000;
  word-break: break-word;
}

.simon-essay-summary-meta{
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.simon-essay-body{
  padding: 18px;
  border-top: 1px dashed rgba(17,24,39,.15);
}

.simon-essay-snippet{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #0a0a0a;
}

.simon-essay-placeholder{
  padding: 12px;
  border-radius: 12px;
  background: rgba(17,24,39,.04);
  border: 1px dashed rgba(17,24,39,.15);
  font-size: 14px;
  color: #444;
}

.simon-essay{
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.simon-essay.simon-essay-standalone{
  margin: 16px 0 26px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 16px 32px rgba(0,0,0,.10);
}

.simon-essay-head{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.simon-essay-label{
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229,57,53,.12);
  color: #7a0c0c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.simon-essay h2{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #000;
}

.simon-essay-meta{
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
}

.simon-essay-question{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(17,24,39,.04);
  border: 1px dashed rgba(17,24,39,.15);
  font-size: 15px;
  line-height: 1.65;
  color: #000;
}

.simon-essay-text{
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  font-weight: 500;
}

.simon-essay-text p{
  margin: 0 0 12px;
  color: #000;
  font-weight: 500;
}

.simon-essay-text p:last-child{
  margin-bottom: 0;
}

.simon-essay-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.simon-essay-tags span{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.essay-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.essay-actions .essay-secondary{
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  transition: transform .16s ease, box-shadow .16s ease;
}

.essay-actions .essay-secondary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
}

.essay-actions a[href^="https://t.me/share/url"]{
  background: linear-gradient(135deg, #1f6feb, #0b4dbb);
  border-color: rgba(31,111,235,.35);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31,111,235,.28);
  animation: shareGlow 2.6s ease-in-out infinite;
}

.essay-actions a[href^="https://t.me/share/url"]:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31,111,235,.35);
}

@keyframes shareGlow{
  0%{
    filter: brightness(1);
    box-shadow: 0 14px 28px rgba(31,111,235,.26);
  }
  50%{
    filter: brightness(1.18);
    box-shadow: 0 20px 40px rgba(31,111,235,.42);
  }
  100%{
    filter: brightness(1);
    box-shadow: 0 14px 28px rgba(31,111,235,.26);
  }
}

.essay-share-tag{
  margin: 0 0 14px;
  font-weight: 800;
  color: #000;
}

.rc-hero{
  margin: 10px 0 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,247,255,.92));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.rc-hero-eyebrow{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0b4dbb;
}

.rc-hero-title{
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 900;
  color: #000;
}

.rc-hero-sub{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.rc-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  margin: 16px 0;
}

.rc-card-title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: #000;
}

.rc-passage p{
  font-size: 20px;
  line-height: 1.35;
  color: #000;
  font-weight: 400;
}

.rc-note{
  margin: 0 0 12px;
  color: #111;
  font-weight: 700;
}

.rc-question{
  border-top: 1px dashed rgba(0,0,0,.12);
  padding: 12px 0;
}

.rc-question:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.rc-q{
  font-weight: 400;
  color: #000;
  margin-bottom: 8px;
}

.rc-options{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.rc-options label{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,24,39,.04);
  border: 1px solid rgba(0,0,0,.08);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: #000;
}

.rc-options label.is-correct{
  border-color: rgba(27,158,119,.65);
  background: rgba(27,158,119,.12);
}

.rc-options label.is-wrong{
  border-color: rgba(211,47,47,.65);
  background: rgba(211,47,47,.12);
}

.rc-explain{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
}

.rc-feedback{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}

.rc-question.is-correct .rc-feedback{
  color: #087f5b;
}

.rc-question.is-wrong .rc-feedback{
  color: #b00020;
}

.rc-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
}

.rc-check{
  background: linear-gradient(135deg, #1f6feb, #0b4dbb);
  color: #fff;
  border-radius: 12px;
}

.rc-score{
  font-weight: 900;
  color: #000;
}

@media (max-width: 640px){
  .rc-hero-title{ font-size: 24px; }
  .rc-card{ padding: 14px; }
}

@media (max-width: 640px){
  .writing-hero{
    padding: 14px;
  }
  .writing-hero-title{
    font-size: 26px;
  }
  .simon-spotlight{
    padding: 16px;
  }
  .simon-spotlight h2{
    font-size: 22px;
  }
  .simon-essay-body{
    padding: 14px;
  }
  .simon-essay.simon-essay-standalone{
    padding: 16px;
  }
  .simon-essay-summary-title{
    font-size: 16px;
  }
  .simon-essay h2{
    font-size: 20px;
  }
}

@media (max-width: 480px){
  .back-btn-top{
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .back-btn-top + .back-btn-top{
    top: 46px;
  }
}

body.speaking-page .content-section.active.has-back{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

body.speaking-page .content-section.active.has-back .teacher-banner{
  margin-top: auto;
  margin-bottom: 0;
}

.back-btn-top{
  position: absolute;
  top: 12px;
  right: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(245,245,245,.92));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
}

.back-btn-top + .back-btn-top{
  top: 54px;
}

.back-btn-top + .back-btn-top + .back-btn-top{
  top: 96px;
}

.back-btn-top:hover{
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 18px 34px rgba(0,0,0,.16);
}

.feedback-btn-top{
  top: 54px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .2px;
  border-radius: 12px;
  border: 0;
  color: #fff !important;
  background: var(--brand2) !important;
  box-shadow: 0 12px 24px rgba(229,57,53,.28);
}
.feedback-btn-top:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px rgba(229,57,53,.34);
}
.feedback-caption-top{
  position: absolute;
  top: 92px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

@media (max-width: 640px){
  .feedback-caption-top{
    top: 98px;
    font-size: 10px;
  }
}

.rp4-top-actions{
  position: absolute;
  top: 54px;
  right: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  z-index: 2;
}
.rp4-top-actions .feedback-btn-top{
  position: static;
}
.rp4-top-actions .rp4-top-link{
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  padding: 6px 10px;
}

@media (max-width: 640px){
  .rp4-top-actions{
    top: 58px;
    gap: 8px;
  }
  .rp4-top-actions .badge{
    font-size: 10px;
    padding: 5px 8px;
  }
}

.submit-btn,
.btn{
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 30px rgba(229,57,53,.20);
}

.submit-btn:hover,
.btn:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(229,57,53,.26);
}

/* Exercise view typography */
#rp1-exercise{
  background: var(--card);
  border: 2px solid deeppink;
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  padding: 22px;
  width: 100%;
  min-height: calc(100vh - 140px);
}

#ex-text{
  margin-top: 12px;
  line-height: 1.75;
  color: rgba(18,19,26,.85);
  white-space: pre-wrap; /* enterlarni ko'rsatadi */
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px){
  .main{ padding: 20px; }
}

@media (max-width: 768px){
  .sidebar{
    transform: translateX(-100%);
  }
  .sidebar.open{
    transform: translateX(0);
  }
  .sidebar-toggle-btn{
    display: none;
  }
  .main{
    margin-left: 0;
    width: 100%;
    padding-top: 76px;
  }
  .mobile-menu-btn{
    display:block;
  }
}

body.sidebar-collapsed .sidebar{
  transform: translateX(-100%);
}
body.sidebar-collapsed .main{
  margin-left: 0;
  width: 100%;
}
body.sidebar-collapsed .mobile-menu-btn{
  display: block;
}
body.sidebar-collapsed.has-fixed-teacher .teacher-banner.teacher-banner-fixed{
  left: 16px;
  right: 16px;
}

/* Speaking Part 1.2 modal: shift questions a bit to the right */
.type-modal-card{
  transform: translateX(2.5cm);
}
@media (max-width: 768px){
  .type-modal-card{
    transform: translateX(0);
  }
}

@media (max-width: 768px){
  .reading-text{
    font-size:18px;
  }
  #rp1-exercise{
    min-height: calc(100vh - 120px);
  }
}
/* ===============================
   READING PART 2 (PREMIUM)
=============================== */
.muted{ color: rgba(18,19,26,.65); }

.p2-shell{
  max-width: 1150px;
  margin: 0 auto;
}

.p2-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.p2-brand{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  font-weight:700;
}
.pill.ghost{ background: #f6f7fb; }

.p2-title{
  margin: 10px 0 14px;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.p2-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  padding:18px;
}

.p2-instructions{
  margin-bottom:18px;
  background: linear-gradient(180deg, #ffffff, #fafbff);
}

.p2-card h3{ margin-bottom:10px; }

.p2-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.mini{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#f1f3ff;
  border:1px solid rgba(0,0,0,.06);
  color:#222;
  font-weight:700;
}

.p2-grid{
  display:grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap:18px;
}

.p2-statements{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-left: 20px;
}
.p2-statements li{
  background:#f7f7f7;
  border:1px solid rgba(0,0,0,.06);
  padding:12px 12px;
  border-radius:14px;
  line-height:1.5;
  transition: .25s;
}
.p2-statements li:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.p2-tip{
  margin-top:14px;
  background:#fff4f4;
  border-left: 6px solid #e53935;
  padding:12px 14px;
  border-radius:14px;
  line-height:1.5;
}

.p2-texts{ display:flex; flex-direction:column; gap:12px; }

.p2-text-row{
  display:grid;
  grid-template-columns: 46px 1fr 120px;
  gap:12px;
  align-items:start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background: #ffffff;
  transition: .25s;
}
.p2-text-row:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.p2-qnum{
  width:46px;height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: #e53935;
  color:#fff;
}

.p2-textbox .p2-site{
  font-weight:900;
  margin-bottom:6px;
  color:#111;
}
.p2-text{
  line-height:1.6;
  color:#222;
}

.p2-answerbox label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:rgba(18,19,26,.7);
  margin-bottom:6px;
}

.p2-select{
  width:100%;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.14);
  background:#f8f9ff;
  font-weight:800;
  outline:none;
  transition:.2s;
}
.p2-select:focus{
  border-color:#e53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,.15);
}

.p2-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.btn.ghost-btn{
  background:#f2f2f2;
  color:#111;
}
.btn.ghost-btn:hover{ transform: scale(1.03); }

.btn.dark-btn{
  background:#111;
  color:#fff;
}
.btn.dark-btn:hover{ transform: scale(1.03); }

.p2-result{
  margin-top:14px;
  padding:14px;
  border-radius:14px;
  background:#f6fff6;
  border-left: 6px solid #2e7d32;
  line-height:1.6;
}

@media (max-width: 980px){
  .p2-grid{ grid-template-columns: 1fr; }
  .p2-text-row{ grid-template-columns: 46px 1fr; }
  .p2-answerbox{ grid-column: 1 / -1; }
}
/* ===============================
   PART 2 (Premium UI)
=============================== */
.muted { opacity: 0.8; }

.p2-shell {
  max-width: 1050px;
  margin: 0 auto;
}

.p2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.pill.ghost {
  background: #fff;
  color: #111;
  border: 1px solid #e5e5e5;
}

.p2-title {
  font-size: 34px;
  margin: 10px 0 16px;
  letter-spacing: -0.5px;
}

.p2-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.10);
  line-height: 1.7;
}

.p2-hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 18px 0;
}

.p2-list {
  margin-left: 20px;
}

.p2-text {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fafafa;
  transition: 0.25s;
}

.p2-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  background: #fff;
}

.p2-text-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e53935;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.p2-label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
}

.p2-select {
  margin-top: 6px;
  width: 160px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
}

.exercise-card {
  transition: 0.25s;
  border-radius: 18px;
}

.exercise-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}
/* ===============================
   READING PART 1 — PREMIUM UI
=============================== */
.muted { opacity: 0.75; }

.exercise-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:18px;
}

.exercise-card{
  background:#fff;
  border: 2px solid deeppink;
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 30px rgba(0,0,0,0.10);
  transition:0.25s;
  cursor:pointer;
}

.exercise-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow:0 18px 40px rgba(0,0,0,0.14);
}

#rp1-list .exercise-card{
  position: relative;
  overflow: hidden;
  padding-top: 12px;
}

#rp1-list .exercise-card h3{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

#rp1-list .exercise-card p{
  margin-top: 8px;
  color: #000;
  font-weight: 700;
}

#rp1-list .exercise-card::after{
  display: none;
}

.reading-card{
  background:#fff;
  border: 2px solid deeppink;
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 35px rgba(0,0,0,0.10);
  line-height:1.8;
  width: 100%;
  color: #000;
}

.reading-head{
  display:flex;
  gap:10px;
  margin-bottom:12px;
  color: #000;
}

.pill{
  padding:6px 12px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:13px;
}
.pill.ghost{
  background:#fff;
  color:#111;
  border:1px solid #eee;
}

.reading-text{
  font-size:19px;
  color: #000;
}

.blank{
  width:130px;
  padding:7px 10px;
  margin: 0 6px;
  border-radius:10px;
  border:2px solid #ddd;
  outline:none;
  font-weight:700;
  transition:0.2s;
}

.blank:focus{
  border-color:#111;
  transform: scale(1.02);
}

.blank.correct{
  border-color:#2ecc71;
  background:#eafff3;
}

.blank.wrong{
  border-color:#e53935;
  background:#fff0f0;
}

.reading-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

.check-btn, .reset-btn, .back-btn{
  border:none;
  padding:10px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition:0.25s;
}

.check-btn{
  background:#e53935;
  color:#fff;
}
.check-btn:hover{
  transform: scale(1.05);
  background:#c62828;
}

.reset-btn{
  background:#111;
  color:#fff;
}
.reset-btn:hover{
  transform: scale(1.05);
}

.result-box{
  margin-top:16px;
  padding:16px;
  border-radius:14px;
  background:#f6f6f6;
}

.score-line{
  font-size:16px;
  margin-bottom:10px;
}

.perfect{
  font-weight:800;
}

.feedback{
  line-height:1.8;
}

.hidden{ display:none; }
/* ===============================
   READING PART 3 (Premium)
=============================== */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title {
  font-size: 34px;
  letter-spacing: -0.6px;
}

.page-subtitle {
  margin-top: 6px;
  opacity: 1;
  color: #000;
}

.page-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.badge-soft {
  background: #fff;
  color: #111;
  border: 1px solid #e7e7e7;
}

.rp3-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.rp3-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}

.rp3-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efefef;
}

.rp3-h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.rp3-ex-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.rp3-instructions {
  opacity: 1;
  color: #000;
  line-height: 1.6;
  max-width: 850px;
}

.rp3-card-title{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
}

.rp3-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-ghost {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #e6e6e6 !important;
}

.btn-ghost:hover {
  transform: scale(1.04);
}

.rp3-headings,
.rp3-questions {
  margin-top: 18px;
}

.rp3-h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}

.headings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.heading-item {
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  transition: 0.25s;
  color: #000;
}

.heading-item:hover {
  transform: scale(1.02);
  background: #f3f3f3;
}

.heading-key {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 900;
}

.rp3-tip {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  color: #000;
}

#rp3-grid .exercise-card,
#rp5-grid .exercise-card {
  position: relative;
  overflow: hidden;
}

.rp3-ready {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f7b3d;
  background: #eafff2;
  border: 1px solid #b8f0ce;
  box-shadow: 0 8px 18px rgba(11, 122, 59, 0.12);
  isolation: isolate;
}

.rp3-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  transform: translateX(-130%);
  animation: rp3ReadySweep 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rp3ReadySweep {
  0% { transform: translateX(-130%); }
  12% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.tip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  display: inline-block;
}

.q-card {
  margin-top: 12px;
  border: 1px solid #efefef;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  transition: 0.25s;
}

.q-card:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.q-head {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.q-title {
  font-weight: 900;
  font-size: 16px;
  width: 60px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f5f5f5;
}

.q-select label {
  display: block;
  font-size: 12px;
  opacity: 1;
  color: #000;
  margin-bottom: 4px;
}

.rp3-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  outline: none;
  transition: 0.2s;
}

.rp3-select:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.q-status {
  font-weight: 800;
  font-size: 13px;
  text-align: right;
  opacity: 1;
}

.q-status.good {
  color: #1b7f3a;
}

.q-status.bad {
  color: #b42318;
}

.q-text {
  font-size: 18px;
  line-height: 1.7;
  opacity: 1;
  color: #000;
}

.rp3-result {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #efefef;
  background: #fafafa;
}

.rp3-result .score {
  font-weight: 900;
  margin-bottom: 8px;
}

.rp3-result .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  margin-top: 8px;
}

.rp3-result .line.good {
  border-color: rgba(27,127,58,0.25);
}

.rp3-result .line.bad {
  border-color: rgba(180,35,24,0.25);
}

@media (max-width: 900px) {
  .headings-grid {
    grid-template-columns: 1fr;
  }
  .q-head {
    grid-template-columns: 60px 1fr;
  }
  .q-status {
    text-align: left;
  }
}
/* ===== Part 3 exercise list cards (premium) ===== */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.exercise-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  transition: 0.25s;
  text-decoration: none;
  color: inherit;
}

.exercise-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 38px rgba(0,0,0,0.10);
}

.exercise-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.exercise-card p {
  opacity: 0.75;
  line-height: 1.4;
}

/* ===============================
   READING PART 4 (Premium Quiz UI)
=============================== */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.page-title {
  font-size: 34px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-subtitle {
  opacity: 0.75;
}

.page-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #eee;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  font-weight: 700;
  font-size: 13px;
}
.badge-soft { opacity: 0.8; }

.rp4-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.rp4-h2 { font-size: 22px; margin-bottom: 6px; }
.rp4-h3 { font-size: 16px; margin-bottom: 10px; }
.rp4-sub { opacity: 0.78; line-height: 1.5; }

.rp4-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rp4-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn.btn-ghost {
  background: #f2f2f2;
  color: #111;
}
.btn.btn-ghost:hover {
  background: #eaeaea;
}

.rp4-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.passage-box {
  background: #fbfbfb;
  border: 1px solid #efefef;
  border-radius: 18px;
  padding: 16px;
  line-height: 1.75;
  max-height: 520px;
  overflow: auto;
}

.q-block {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.25s;
}
.q-block:hover { transform: scale(1.01); }

.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.q-num { font-weight: 900; }
.q-type {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fafafa;
  opacity: 0.85;
}

.q-text { margin: 10px 0 12px; line-height: 1.55; opacity: 0.92; }

.options { display: grid; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #eee;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}
.opt:hover { transform: scale(1.01); }

.opt input { transform: scale(1.15); cursor: pointer; }

.q-status {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.9;
}
.q-status.good { color: #0f7a3a; }
.q-status.bad { color: #b00020; }

.rp4-result {
  margin-top: 14px;
  background: #fff4f4;
  border-left: 5px solid #e53935;
  border-radius: 14px;
  padding: 14px;
}
.rp4-result .score {
  font-weight: 900;
  margin-bottom: 8px;
}

.rp4-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #eee;
}
.rp4-line.good { border-color: rgba(15,122,58,0.25); }
.rp4-line.bad { border-color: rgba(176,0,32,0.20); }

@media (max-width: 980px) {
  .rp4-layout { grid-template-columns: 1fr; }
  .passage-box { max-height: none; }
}
/* Part 4 layout: faqat page scroll bo'lsin */
.rp4-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;

  /* MUHIM: grid ichida scroll bo'lib qolmasin */
  min-height: 0;
}

/* Passage blok - ichki scroll yo'q */
.rp4-passage,
.passage-box {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* Questions blok - ichki scroll yo'q */
.rp4-questions,
.questions-box {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* Agar sen oldin scroll uchun shuni qo'ygan bo'lsang - bekor bo'ladi */
.rp4-card {
  min-height: 0;
}
/* ===============================
   READING PART 4 (PRO)
=============================== */

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:18px;
}
.page-title{font-size:34px; letter-spacing:-0.5px; margin-bottom:6px;}
.page-subtitle{color:#666;}

.page-badges{display:flex; gap:10px; flex-wrap:wrap;}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  background:#111;
  color:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.badge-soft{
  background:#fff;
  color:#111;
  border:1px solid #eee;
}

.rp4-card{
  background:#fff;
  border-radius:18px;
  padding:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  border:1px solid #f1f1f1;
}

.rp4-h2{font-size:24px; margin-bottom:6px;}
.rp4-h3{font-size:16px; margin-bottom:10px; color:#111;}
.rp4-sub{color:#666; margin-bottom:14px; line-height:1.6;}
.rp4-ex-title{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
}

.rp5-ex-title{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
}

.rp4-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}

.rp4-actions{display:flex; gap:10px; flex-wrap:wrap;}
.btn{
  background:#e53935;
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition:.25s;
}
.btn:hover{transform:translateY(-1px) scale(1.03); filter:brightness(.95);}
.btn-ghost{
  background:#fff;
  color:#111;
  border:1px solid #eee;
}
.btn-ghost:hover{background:#fafafa;}

.back-btn{
  background:#fff;
  border:1px solid #eee;
  border-radius:999px;
  padding:8px 14px;
  font-weight:800;
  cursor:pointer;
  margin-bottom:14px;
  transition:.25s;
}
.back-btn:hover{transform:translateY(-1px) scale(1.03); background:#fafafa;}

.exercise-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:14px;
}

.exercise-card{
  background:linear-gradient(180deg,#fff, #fafafa);
  border:1px solid #f0f0f0;
  border-radius:16px;
  padding:16px 16px;
  cursor:pointer;
  transition:.25s;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}
.exercise-card:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 20px 50px rgba(0,0,0,.10);
}
.exercise-card h3{margin-bottom:6px;}
.exercise-card p{color:#666; line-height:1.45;}

/* ====== MAIN LAYOUT (NO INNER SCROLL) ====== */
.rp4-layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:start;
  min-height:0;              /* muhim: grid ichida scroll bo'lib qolmasin */
}

/* PASSAGE + QUESTIONS: ichki scroll yo‘q */
.passage-box,
#rp4-questions{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

/* Reading Part 4: darker text */
.rp4-card,
.rp4-card p,
.rp4-card li,
.rp4-card .q-text,
.rp4-card .q-num,
.rp4-card .q-badge,
.rp4-card .opt span,
.rp4-card .rp4-sub {
  color: #111;
}

/* Passage styling */
.passage-box{
  background:#fcfcfc;
  border:1px solid #f0f0f0;
  border-radius:14px;
  padding:16px;
  line-height:1.75;
  color:#222;
}
.passage-box h4{
  margin:0 0 12px;
  font-size:18px;
}
.passage-box p{margin:0 0 12px;}

/* Question cards */
.q-card{
  border:1px solid #f0f0f0;
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.05);
}
.q-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.q-num{font-weight:900;}
.q-type{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #eee;
  background:#fafafa;
  color:#333;
}

.option{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border:1px solid #f1f1f1;
  border-radius:14px;
  margin-bottom:8px;
  cursor:pointer;
  transition:.2s;
}
.option:hover{transform:scale(1.01); background:#fafafa;}
.option input{margin-top:3px;}
.option b{min-width:22px; display:inline-block;}

.q-feedback{
  margin-top:8px;
  font-weight:800;
  font-size:13px;
}
.ok{color:#1b7f3a;}
.bad{color:#c62828;}

.rp4-result{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  background:#fff4f4;
  border-left:6px solid #e53935;
  line-height:1.7;
}

/* Mobile: Passage tepada, questions pastda */
@media (max-width: 980px){
  .rp4-layout{grid-template-columns:1fr;}
  .page-title{font-size:28px;}
}
/* ===== Reading Part 5 layout ===== */
.rp5-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 950px){
  .rp5-layout{ grid-template-columns: 1fr; }
}

/* Tasks cards */
.task-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.task-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 8px;
}

.task-num{ font-weight: 800; }
.task-badge{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229,57,53,0.10);
  border: 1px solid rgba(229,57,53,0.20);
  font-weight: 700;
}

.task-text{ line-height: 1.55; margin-bottom: 10px; }

.gap-input{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

.gap-input:focus{
  transform: scale(1.01);
  border-color: rgba(229,57,53,0.50);
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.task-feedback{
  margin-top: 10px;
  font-size: 13px;
}

.task-card.ok{ border-color: rgba(46, 204, 113, 0.35); }
.task-card.bad{ border-color: rgba(231, 76, 60, 0.35); }

.sec-title{
  margin: 6px 0 12px 0;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.85;
}




/* =========================================================
   WRITING TASK 1.1 – Premium UI
   ========================================================= */
.page-head h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
}
.page-sub{
  margin-top: 6px;
  opacity: 0.9;
}

.w11-view{ display:none; }
.w11-view.w11-active{ display:block; animation: fade 0.25s ease; }

.w11-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap:18px;
  max-width: 1100px;
  margin: 18px auto 0;
}
.w11-card{
  border:0;
  cursor:pointer;
  text-align:left;
  background:#fff;
  padding:22px;
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.w11-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}
.w11-emoji{
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}
.w11-card h3{ margin: 6px 0 6px; font-size: 18px; color:#111; }
.w11-card p{ margin: 0; color:#666; }

.w11-topbar{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:flex-start;
  margin: 10px 0 18px;
}
.w11-title h2{ margin: 0; }
.w11-title p{ margin: 6px 0 0; opacity: 0.9; }

.w11-list{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  gap: 12px;
}
.w11-item{
  background:#fff;
  border-radius:16px;
  padding: 16px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.w11-item-left{ min-width: 0; }
.w11-item-title{
  color:#111;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35;
  max-width: 720px;
}
.w11-badge{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#f3f4f6;
  color:#111;
  font-weight: 700;
}

.w11-detail{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.w11-detail-box{
  background:#fff;
  border-radius:18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.w11-detail-box h3{
  margin: 0 0 10px;
  color:#111;
}
.w11-detail-text{
  line-height: 1.75;
  color:#222;
}
.w11-textarea{
  width: 100%;
  min-height: 210px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.w11-textarea:focus{
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.w11-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.w11-hint{ opacity: .9; font-weight: 700; }

.w11-note{
  margin-top: 10px;
  opacity: 0.9;
}

.primary-btn, .ghost-btn{
  border:0;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}
.primary-btn{
  background:#e53935;
  color:#fff;
}
.primary-btn:hover{ filter: brightness(0.95); }
.ghost-btn{
  background:#f3f4f6;
  color:#111;
}
.ghost-btn:hover{ filter: brightness(0.98); }

.video-card{
  background:#fff;
  border-radius:18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.video-card h4{ margin: 10px 0 6px; color:#111; }
.video-card p{ margin: 0; color:#666; }

@media (max-width: 900px){
  .w11-grid{ grid-template-columns: 1fr; }
  .w11-detail{ grid-template-columns: 1fr; }
  .w11-item{ flex-direction: column; align-items: flex-start; }
  .w11-item-title{ max-width: 100%; }
}
/* =========================================================
   WRITING TASK 1.1 / 1.2 — PREMIUM UI (w11 / w12)
   Paste this at the VERY END of style.css
========================================================= */

/* page head */
.page-head{
  margin: 10px 0 18px;
}
.page-head h1{
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.page-sub{
  color: #6b7280;
  font-size: 15px;
}

/* shared “view” system */
.w11-view{ display:none; }
.w11-view.w11-active{ display:block; }

/* 3 premium boxes */
.w11-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.w11-card{
  width:100%;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px 18px;
  text-align:left;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.w11-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}
.w11-emoji{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(229,57,53,0.10);
  font-size: 22px;
  margin-bottom: 10px;
}
.w11-card h3{
  font-size: 18px;
  margin: 2px 0 6px;
}
.w11-card p{
  color:#6b7280;
  font-size: 14px;
  line-height: 1.45;
}

/* topbar */
.w11-topbar{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 12px 0 16px;
}
.w11-title h2{
  margin:0;
  font-size: 22px;
}
.w11-title p{
  margin: 4px 0 0;
  color:#6b7280;
  font-size: 14px;
}

/* back button (premium) */
.back-btn{
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  transition: .18s ease;
}
.back-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* video list */
.video-list{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
}
.video-card{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.video-wrapper{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #0b0f19;
}
.video-wrapper iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-card h4{
  margin: 12px 14px 4px;
  font-size: 16px;
}
.video-card p{
  margin: 0 14px 14px;
  color:#6b7280;
  font-size: 13.5px;
}

/* list (samples/practice) */
.w11-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.w11-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-row-left h4{
  margin:0;
  font-size: 16px;
}
.muted{
  margin: 4px 0 0;
  color:#6b7280;
  font-size: 13.5px;
}

/* pill buttons */
.pill-btn{
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  background: #e53935;
  color:#fff;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  box-shadow: 0 10px 20px rgba(229,57,53,0.25);
  white-space: nowrap;
}
.pill-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(229,57,53,0.32);
}
.pill-btn:active{ transform: translateY(0px) scale(0.99); }

/* detail pages */
.w11-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.w11-detail-box{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-detail-box h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.w11-detail-text{
  white-space: pre-wrap;
  line-height: 1.65;
  color:#111827;
  font-size: 14.5px;
}

/* textarea + actions */
.w11-textarea{
  width:100%;
  min-height: 220px;
  resize: vertical;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  outline: none;
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(255,255,255,0.95);
}
.w11-textarea:focus{
  border-color: rgba(229,57,53,0.55);
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.w11-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.w11-nav-group{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.w11-next-btn,
.w11-prev-btn{
  white-space: nowrap;
}

.submit-btn{
  border: none;
  padding: 11px 16px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
  background: #e53935;
  color:#fff;
  box-shadow: 0 12px 24px rgba(229,57,53,0.25);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(229,57,53,0.30);
}
.submit-btn:disabled{
  opacity: .6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.ghost-btn{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.ghost-btn:hover{
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.w11-hint{
  color:#10b981;
  font-weight: 700;
  font-size: 13.5px;
}
.w11-note{
  margin-top: 10px;
  color:#6b7280;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Writing task 1.1 typography +2 size */
.w11-page .page-head h1{ font-size: 36px; }
.w11-page .page-sub{ font-size: 17px; }
.w11-page .w11-title h2{ font-size: 24px; }
.w11-page .w11-title p{ font-size: 16px; }
.w11-page .w11-card h3{ font-size: 20px; }
.w11-page .w11-card p{ font-size: 16px; }
.w11-page .w11-row-left h4{ font-size: 18px; }
.w11-page .muted{ font-size: 15px; }
.w11-page .w11-detail-box h3{ font-size: 18px; }
.w11-page .w11-detail-text{ font-size: 16px; }
.w11-page .w11-textarea{ font-size: 16px; }
.w11-page .w11-hint{ font-size: 15px; }
.w11-page .w11-note{ font-size: 15px; }
.w11-page #w11-sample-answer{ font-size: 22px; line-height: 1.7; }
.w11-mark{
  background: #ffe08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

/* responsive */
@media (max-width: 1100px){
  .w11-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .video-list{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .w11-detail{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .w11-grid{ grid-template-columns: 1fr; }
  .video-list{ grid-template-columns: 1fr; }
  .page-head h1{ font-size: 26px; }
}
/* W20 Premium */
.w20-view { display: none; }
.w20-active { display: block; }
.w20-hero { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:24px; background:linear-gradient(120deg, rgba(245,194,107,0.12), rgba(125,224,197,0.08)); border:1px solid rgba(255,255,255,0.06); border-radius:18px; padding:24px; box-shadow:0 20px 50px rgba(0,0,0,0.35); }
.w20-eyebrow { letter-spacing:0.14em; text-transform:uppercase; color:#f5c26b; font-size:12px; margin:0 0 6px; }
.w20-hero h1 { margin:0; letter-spacing:-0.02em; }
.w20-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.w20-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:16px; }
.w20-card { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:18px; text-align:left; color:inherit; cursor:pointer; box-shadow:0 16px 40px rgba(0,0,0,0.32); transition:transform 150ms ease, border-color 150ms ease; }
.w20-card:hover { transform:translateY(-4px); border-color:rgba(245,194,107,0.4); }
.w20-emoji { font-size:28px; margin-bottom:8px; }
.w20-topbar { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.w20-title h2 { margin:0; }
.w20-title p { margin:0; color:#a6afbe; }
.w20-video-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:16px; }
.w20-video-card { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:14px; box-shadow:0 14px 32px rgba(0,0,0,0.3); }
.w20-list { display:flex; flex-direction:column; gap:12px; }
.w20-row { background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:14px 16px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.w20-detail { display:grid; gap:14px; }
.w20-detail.single { grid-template-columns:1fr; width:100%; }
.w20-detail-box { background:rgba(255,255,255,0.025); border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:14px; width:100%; }
.w20-detail.single .w20-detail-box { min-height:calc(100vh - 280px); }
.w20-detail-text { white-space:pre-wrap; color:#e8ecf2; line-height:1.7; font-size:18px; }
.w20-detail-text::selection { background:#fde68a; color:#111; }
.w20-hr { border:none; border-top:1px solid rgba(255,255,255,0.08); margin:14px 0; }
.w20-textarea { width:100%; min-height:220px; padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,0.08); background:rgba(0,0,0,0.15); color:#e8ecf2; font-size:15px; }
.w20-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.w20-hint { color:#a6afbe; font-size:13px; }
.w20-note { color:#a6afbe; font-size:14px; }
.w20-nav-group{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.w20-prev-btn,
.w20-next-btn{ white-space: nowrap; }
@media (max-width:640px) {
  .w20-hero { flex-direction:column; }
  .w20-row { align-items:flex-start; flex-direction:column; }
  .w20-hero-actions, .w20-actions { width:100%; }
  .w20-actions .submit-btn, .w20-actions .ghost-btn { flex:1; text-align:center; }
  .w20-detail.single .w20-detail-box { min-height:auto; }
}
/* W20 contrast refresh */
.w20-hero {
  background: linear-gradient(120deg, rgba(229,57,53,0.08), rgba(30,144,255,0.08));
  border: 1px solid rgba(0,0,0,0.04);
  color: #0f172a;
}
.w20-hero h1 { color: #0f172a; }
.w20-title p,
.w20-hint,
.w20-note { color: #4b5563; }

.w20-card,
.w20-video-card,
.w20-row,
.w20-detail-box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

.w20-detail-text { color: #0f172a; }
.w20-hr { border-top: 1px solid rgba(0,0,0,0.08); }
.w20-mark{
  background: #ffe08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.w20-textarea {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Writing task 1.2 typography +3 size */
.w20-page .page-head h1{ font-size: 37px; }
.w20-page .page-sub{ font-size: 18px; }
.w20-page .w20-eyebrow{ font-size: 15px; }
.w20-page .w20-title h2{ font-size: 25px; }
.w20-page .w20-title p{ font-size: 16px; }
.w20-page .w20-card h3{ font-size: 19px; }
.w20-page .w20-card p{ font-size: 16px; }
.w20-page .w20-emoji{ font-size: 31px; }
.w20-page .w20-row h4{ font-size: 18px; }
.w20-page .muted{ font-size: 16.5px; }
.w20-page .w20-detail-text{ font-size: 21px; }
.w20-page .w20-textarea{ font-size: 18px; }
.w20-page .w20-hint{ font-size: 16px; }
.w20-page .w20-note{ font-size: 17px; }
.w20-page .pill-btn,
.w20-page .btn,
.w20-page .back-btn{ font-size: 16px; }

/* Writing task 2 typography +3 size */
.w20-page-2 .page-head h1{ font-size: 37px; }
.w20-page-2 .page-sub{ font-size: 18px; }
.w20-page-2 .w20-eyebrow{ font-size: 15px; }
.w20-page-2 .w20-title h2{ font-size: 25px; }
.w20-page-2 .w20-title p{ font-size: 16px; }
.w20-page-2 .w20-card h3{ font-size: 19px; }
.w20-page-2 .w20-card p{ font-size: 16px; }
.w20-page-2 .w20-emoji{ font-size: 31px; }
.w20-page-2 .w20-row h4{ font-size: 18px; }
.w20-page-2 .muted{ font-size: 16.5px; }
.w20-page-2 .w20-detail-text{ font-size: 21px; }
.w20-page-2 .w20-textarea{ font-size: 18px; }
.w20-page-2 .w20-hint{ font-size: 16px; }
.w20-page-2 .w20-note{ font-size: 17px; }
.w20-page-2 .pill-btn,
.w20-page-2 .btn,
.w20-page-2 .back-btn{ font-size: 16px; }

/* ===============================
   MULTILEVEL VOCABULARY
=============================== */
.mvocab .exercise-grid{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mvocab .exercise-card{
  padding: 18px;
}

.mvocab .exercise-card h3{
  font-size: 16px;
  line-height: 1.35;
}

.mvocab .exercise-card p{
  font-size: 14.5px;
  line-height: 1.6;
}

.mvocab .exercise-card p + p{
  margin-top: 8px;
}

.mvocab.hide-sections .mvocab-sections .exercise-card:not(.section-1){
  display: none;
}

.mvocab .mvocab-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mvocab .mvocab-hint{
  font-size: 13px;
  color: var(--muted);
}

.mvocab .mvocab-ol{
  padding-left: 18px;
}

.mvocab .mvocab-ol li{
  margin: 10px 0;
}

.mvocab .mvocab-input{
  width: 180px;
  max-width: 100%;
  padding: 6px 8px;
  margin: 0 6px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
}

@media (max-width: 640px) {
  .mvocab .exercise-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mvocab .exercise-card{
    padding: 16px;
    border-radius: 16px;
  }

  .mvocab .exercise-card h3{
    font-size: 15px;
  }

  .mvocab .exercise-card p,
  .mvocab .mvocab-ol{
    font-size: 14px;
  }

  .mvocab .mvocab-ol li{
    margin: 8px 0;
  }

  .mvocab .mvocab-sections .exercise-card h3{
    font-size: 15px;
  }

  .mvocab .mvocab-sections .exercise-card p{
    font-size: 13px;
  }
}

.mvocab .mvocab-select{
  width: 240px;
  max-width: 100%;
  padding: 6px 8px;
  margin-left: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
}

.mvocab .mvocab-book{
  margin-top: 16px;
}

.mvocab .book-card{
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(180deg,#fff, #fafafa);
  border: 1px solid #f0f0f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.mvocab .book-cover{
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.mvocab .book-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mvocab .book-info h2{
  margin-bottom: 8px;
}

.mvocab .book-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mvocab .book-note{
  margin-top: 10px;
}

@media (max-width: 760px){
  .mvocab .book-card{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mvocab .book-cover{
    max-width: 260px;
    margin: 0 auto;
  }

  .mvocab .book-actions{
    justify-content: center;
  }
}

.mvocab .match-section{
  margin-top: 24px;
}

.mvocab .match-grid{
  display: grid;
  gap: 16px;
}

.mvocab .match-card{
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.mvocab .match-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.mvocab .match-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.mvocab .match-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mvocab .match-words{
  list-style: decimal;
}

.mvocab .match-words,
.mvocab .match-defs{
  margin: 0;
  padding-left: 20px;
}

.mvocab .match-words li,
.mvocab .match-defs li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  line-height: 1.5;
}

.mvocab .match-words li span{
  font-weight: 700;
}

.mvocab .match-select{
  width: 70px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
}

.mvocab .match-select.match-correct{
  border-color: rgba(15,122,58,0.5);
  background: #eef8f1;
}

.mvocab .match-select.match-wrong{
  border-color: rgba(176,0,32,0.4);
  background: #fff1f1;
}

.mvocab .match-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 760px){
  .mvocab .match-columns{
    grid-template-columns: 1fr;
  }

  .mvocab .match-words li{
    align-items: flex-start;
  }
}

.mvocab .mvocab-q{
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 10px;
  margin-top: 10px;
}

.mvocab .mvocab-q label{
  display: block;
  margin: 6px 0;
}

.mvocab .mvocab-test-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mvocab .mvocab-test-head .btn{
  white-space: nowrap;
}

.mvocab #w2-topic-1.test-active #w2-topic-1-content{
  display: none;
}

.mvocab #w2-topic-1.test-active #w2-topic-1-test{
  display: block;
}

.mvocab #w2-topic-2.test-active #w2-topic-2-content{
  display: none;
}

.mvocab #w2-topic-2.test-active #w2-topic-2-test{
  display: block;
}

.mvocab #w2-topic-3.test-active #w2-topic-3-content{
  display: none;
}

.mvocab #w2-topic-3.test-active #w2-topic-3-test{
  display: block;
}

.mvocab #w2-topic-4.test-active #w2-topic-4-content{
  display: none;
}

.mvocab #w2-topic-4.test-active #w2-topic-4-test{
  display: block;
}

.mvocab #w2-topic-5.test-active #w2-topic-5-content{
  display: none;
}

.mvocab #w2-topic-5.test-active #w2-topic-5-test{
  display: block;
}

.mvocab #w2-topic-6.test-active #w2-topic-6-content{
  display: none;
}

.mvocab #w2-topic-6.test-active #w2-topic-6-test{
  display: block;
}

.mvocab #w2-topic-7.test-active #w2-topic-7-content{
  display: none;
}

.mvocab #w2-topic-7.test-active #w2-topic-7-test{
  display: block;
}

.mvocab .mvocab-test-step .exercise-card{
  cursor: default;
  user-select: text;
  overflow: visible;
}

/* ===============================
   SPEAKING FULL MOCK
=============================== */
.mock-panel{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mock-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mock-body{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-question{
  font-size: 18px;
  line-height: 1.5;
}

.mock-timer-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mock-timer{
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.mock-status{
  color: var(--muted);
  font-weight: 600;
}

.mock-status.is-recording{
  color: #d32f2f;
}

.mock-image-wrap{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px;
}

.mock-image-wrap img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.mock-recordings-list{
  display: grid;
  gap: 12px;
}

.mock-recording-item{
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.mock-submit{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mock-results{
  margin-top: 16px;
}

.mock-download{
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
}

.mock-note{
  margin-top: 10px;
}

@media (max-width: 640px){
  .mock-question{
    font-size: 16px;
  }
}

.mock-mic{
  font-size: 18px;
  line-height: 1;
}

.mock-mic.is-recording{
  color: #d32f2f;
  animation: mockPulse 1s ease-in-out infinite;
}

@keyframes mockPulse{
  0%, 100%{ transform: scale(1); opacity: 0.7; }
  50%{ transform: scale(1.18); opacity: 1; }
}

.mock-cue{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.mock-cue-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #d32f2f;
  margin-bottom: 6px;
}

.mock-cue-lead,
.mock-cue-follow{
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

.mock-arguments{
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.mock-arguments-title{
  font-weight: 700;
  margin-bottom: 8px;
}

.mock-arguments-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

@media (max-width: 640px){
  .mvocab .mvocab-input,
  .mvocab .mvocab-select{
    width: 100%;
    margin: 6px 0 0;
  }
}

@media (max-width: 640px){
  .mvocab .exercise-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mvocab .exercise-card{
    padding: 16px;
  }

  .mvocab .exercise-card h3{
    font-size: 15.5px;
  }

  .mvocab .exercise-card p{
    font-size: 14px;
  }
}
