/* ==========================================================================
   Cadence Strings & Keys — Component Styles
   Hero Slider, Cards, Tabs, Timelines, Environment, Modals & Actions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SLIDER SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 18, 22, 0.92) 0%,
    rgba(15, 18, 22, 0.75) 45%,
    rgba(15, 18, 22, 0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  color: var(--text-white);
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(103, 3, 47, 0.25);
  border: 1px solid rgba(139, 26, 74, 0.4);
  color: #F5D0DF;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: #E2E8F0;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.hero-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  width: 38px;
  background: var(--primary);
  border-radius: 8px;
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.06);
}

.hero-media-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Trinity College London Mobile Hero Block Format */
  .hero-section {
    height: auto !important;
    min-height: 570px !important;
    padding: 0 !important;
    background: var(--primary) !important;
    position: relative;
    overflow: hidden;
  }
  .hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 570px;
  }
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background: var(--primary) !important;
    background-image: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  }
  .hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hero-media-mobile {
    display: block !important;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #1A1F26;
  }
  .hero-media-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .hero-overlay {
    display: none !important;
  }
  .hero-content {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    padding: 22px 18px 44px 18px !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .hero-badge {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #E9E0E9 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    display: block !important;
    width: fit-content;
  }
  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.02em !important;
  }
  .hero-title span {
    color: #FFFFFF !important;
    text-decoration: none !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #F5EBF3 !important;
    margin-bottom: 20px !important;
    font-weight: 400 !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 13px 20px !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .hero-actions .btn-primary {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    border: 1.5px solid #FFFFFF !important;
  }
  .hero-actions .btn-outline-white {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  }
  .hero-actions .btn-whatsapp {
    background: var(--whatsapp-color) !important;
    color: #FFFFFF !important;
  }
  .hero-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
  }
  .hero-controls-inner {
    justify-content: center !important;
  }
  .hero-dots {
    justify-content: center;
    width: 100%;
    gap: 8px;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
  }
  .hero-dot.active {
    width: 22px;
    background: #FFFFFF;
  }
  .hero-arrows {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. QUALIFIED MUSIC TEACHER TRUST SECTION
   -------------------------------------------------------------------------- */
.teacher-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.teacher-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.teacher-badge-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.teacher-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.teacher-badge-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.teacher-badge-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.teacher-boards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.teacher-board-mini-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: var(--transition-fast);
}

.teacher-board-mini-card:hover {
  border-color: var(--primary-border);
  background: var(--primary-subtle);
  transform: translateY(-3px);
}

.teacher-board-mini-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.teacher-board-mini-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .teacher-media img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .teacher-media img {
    height: 280px;
  }
  .teacher-badge-floating {
    position: static;
    margin-top: 14px;
    padding: 14px 16px;
  }
  .teacher-boards-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
}

/* --------------------------------------------------------------------------
   3. INTERNATIONAL EXAMINATION SYSTEMS SLIDER / TABS
   -------------------------------------------------------------------------- */
.boards-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.board-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1.5px solid var(--border-medium);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.board-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.board-tab-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
}

.board-tab-btn .tab-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
}

.board-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
}

.board-content-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.board-content-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.board-detail-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.board-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.board-badge-pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-badge);
}

.curriculum-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.curriculum-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   4. SYLLABUS PILLARS / CARDS (TRINITY, ROCKSCHOOL, ABRSM)
   -------------------------------------------------------------------------- */
.syllabus-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.syllabus-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.syllabus-card-header {
  margin-bottom: 18px;
}

.syllabus-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.syllabus-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.syllabus-list-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   5. TIMELINE: HOW TO GIVE YOUR MUSIC EXAM
   -------------------------------------------------------------------------- */
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin: 48px 0 32px 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-step:hover .timeline-number {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.timeline-step-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.timeline-step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .timeline-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 18px;
  }
  .timeline-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   6. EXAM SUBMISSION GUIDES & RESULTS CARDS
   -------------------------------------------------------------------------- */
.guide-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--transition-base);
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.guide-card-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
}

.guide-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px 0;
}

.guide-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.guide-feature-label {
  font-weight: 700;
  color: var(--text-dark);
  min-width: 100px;
}

.guide-feature-val {
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   7. STARTING AGE CARDS
   -------------------------------------------------------------------------- */
.age-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.age-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.age-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.age-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.age-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   8. HOW INDIVIDUAL CLASSES WORK (4-STEP PROCESS)
   -------------------------------------------------------------------------- */
.process-step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.process-step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-badge);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
  transition: var(--transition-fast);
}

.process-step-card:hover .process-step-number {
  color: var(--primary);
}

.process-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. PRIVATE & DISTRACTION-FREE LEARNING ENVIRONMENT
   -------------------------------------------------------------------------- */
.env-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 320px;
  group: true;
}

.env-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.env-image-card:hover img {
  transform: scale(1.08);
}

.env-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 21, 26, 0.9) 100%);
  color: var(--text-white);
}

.env-image-overlay h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.env-image-overlay p {
  font-size: 0.85rem;
  color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   10. WHY CHOOSE US GRID (12 FEATURES)
   -------------------------------------------------------------------------- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-check {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. CALL TO ACTION RED SECTION
   -------------------------------------------------------------------------- */
.cta-banner-section {
  background: linear-gradient(135deg, #67032F 0%, #54022A 60%, #3E0120 100%);
  color: var(--text-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.cta-banner-desc {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 36px;
  font-weight: 400;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   12. INTERACTIVE MODAL (BOOKING & EXAM GUIDES)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 21, 26, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-form-group {
  margin-bottom: 18px;
}

.modal-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  background: var(--bg-white);
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ==========================================================================
   TRINITY COLLEGE LONDON MOBILE THEME COMPONENTS (max-width: 768px)
   Features: Lavender Nav Pills, Shaded Box Cards, 8px Radius, Full-Width Buttons
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Exam Boards Tabs — Trinity Mobile Links Bar (#nav_links_mobile) */
  .boards-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: #EADEE7;
    border-radius: 8px;
    border: 1px solid #D2BFD0;
    margin-bottom: 22px;
  }

  .board-tab-btn {
    flex-direction: column;
    padding: 10px 4px;
    font-size: 0.84rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    background: transparent;
    color: var(--text-dark);
    text-align: center;
    gap: 2px;
    justify-content: center;
    transition: all var(--transition-fast);
  }

  .board-tab-btn.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(103, 3, 47, 0.25);
  }

  .board-tab-btn .tab-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border-radius: var(--radius-full);
  }

  /* Trinity-style Shaded Detail Card (.shaded-box) */
  .board-detail-card {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: none;
  }

  .board-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2D7E0;
  }

  .board-badge-pill {
    background: #EADEE7;
    border: 1px solid #D2BFD0;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .curriculum-pills {
    gap: 6px;
  }

  .curriculum-pill {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    background: #FFFFFF;
    color: var(--primary-dark);
    border: 1px solid #D2BFD0;
    border-radius: var(--radius-full);
  }

  .board-detail-card > div:last-child {
    text-align: center !important;
  }

  .board-detail-card > div:last-child .btn {
    width: 100%;
  }

  /* 2. Syllabus & Guide Cards — Trinity Academic Grid */
  .syllabus-card {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: none;
  }
  .syllabus-card:hover {
    transform: none;
  }

  .syllabus-card-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
  }

  .syllabus-card .btn {
    border-radius: var(--radius-full);
    width: 100%;
    margin-top: 10px;
  }

  .guide-card {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: none;
  }

  .guide-card-badge {
    background: #EADEE7;
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .guide-card .btn {
    border-radius: var(--radius-full);
    width: 100%;
  }

  /* 3. Timeline Mobile Roadmap — Trinity Step Numbers */
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 18px 0;
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 14px 16px;
  }

  .timeline-number {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0;
    flex-shrink: 0;
    box-shadow: none;
  }

  .timeline-step-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
  }

  .timeline-step-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-body);
  }

  /* 4. Age, Process & Environment Cards */
  .age-card {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: none;
  }

  .age-indicator {
    font-size: 1rem;
    color: var(--primary);
  }

  .age-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
  }

  .process-step-card {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: none;
  }

  .process-step-number {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 6px;
  }

  .process-step-title {
    font-size: 1.08rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 4px;
  }

  .env-image-card {
    height: 220px;
    border-radius: 8px;
  }

  .env-image-overlay {
    padding: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 21, 26, 0.92) 100%);
  }

  .env-image-overlay h4 {
    font-size: 1.02rem;
  }

  /* 5. Why Choose Us (12 Features) — Trinity Shaded Box Grid */
  .feature-item {
    background: #F8F5F8;
    border: 1px solid #E2D7E0;
    border-radius: 8px;
    padding: 14px 16px;
    gap: 12px;
    box-shadow: none;
  }

  .feature-check {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: #EADEE7;
    color: var(--primary);
  }

  .feature-info h4 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-dark);
  }

  .feature-info p {
    font-size: 0.82rem;
    color: var(--text-body);
  }

  /* 6. CTA Banner Section — Trinity Purple Block Banner */
  .cta-banner-section {
    padding: 44px 0;
    background: var(--primary) !important;
  }

  .cta-banner-title {
    font-size: clamp(1.68rem, 6.2vw, 2.1rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
  }

  .cta-banner-desc {
    font-size: 0.95rem;
    color: #F5EBF3;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .cta-banner-inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  .cta-banner-actions {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
  }

  .cta-banner-actions .btn {
    width: 100%;
    border-radius: var(--radius-full);
    font-weight: 700;
    padding: 13px 22px;
    box-shadow: none !important;
  }

  .cta-banner-actions .btn-white {
    background: #FFFFFF !important;
    color: var(--primary) !important;
  }

  /* 7. Interactive Modals (Trinity Dialog Aesthetic) */
  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-dialog {
    padding: 22px 18px;
    border-radius: 12px 12px 8px 8px;
    border-top: 4px solid var(--primary);
    max-height: 88vh;
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    background: #F8F5F8;
    color: var(--primary);
  }

  .modal-header h3 {
    font-size: 1.25rem;
    color: var(--primary);
  }

  .modal-input,
  .modal-select,
  .modal-textarea {
    font-size: 16px;
    padding: 11px 14px;
    border-radius: 6px;
    border: 1px solid #D2BFD0;
    background: #FAF8FA;
  }

  .modal-dialog .btn {
    border-radius: var(--radius-full);
  }
}

@media (max-width: 480px) {
  .board-tab-btn {
    font-size: 0.78rem;
    padding: 8px 2px;
  }

  .board-tab-btn .tab-badge {
    display: none;
  }

  .board-detail-card {
    padding: 16px 12px;
  }

  .syllabus-card {
    padding: 16px 14px;
  }

  .guide-card {
    padding: 16px 14px;
  }

  .feature-item {
    padding: 12px 12px;
  }
}
