/* ==========================================================================
   KALINGAEURO - Online IELTS Coaching Page Stylesheet
   ========================================================================== */

:root {
  --ke-font-display: 'Outfit', sans-serif;
  --ke-font-body: 'Montserrat', sans-serif;
  
  /* Brand color variables */
  --brand-primary: #ed5024;
  --brand-secondary: #21a95d;
  --brand-accent: #21a95d;
  --brand-dark: #1e293b;
  --brand-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
}

.ke-ielts-page-body {
  font-family: var(--ke-font-body) !important;
  background-color: var(--brand-light) !important;
  color: var(--brand-dark) !important;
  overflow-x: hidden;
}

.ke-ielts-root h1, 
.ke-ielts-root h2, 
.ke-ielts-root h3, 
.ke-ielts-root h4, 
.ke-ielts-root h5, 
.ke-ielts-root h6 {
  font-family: var(--ke-font-display) !important;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Common Section Headers */
.ke-section-subtitle {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.ke-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.ke-section-desc {
  font-size: 17px;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Custom Buttons */
.ke-btn-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  font-family: var(--ke-font-display);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(237, 80, 36, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.ke-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 80, 36, 0.35);
  background-color: #ff6a3d !important;
  border-color: #ff6a3d !important;
}

.ke-btn-outline {
  border: 2px solid var(--brand-dark) !important;
  color: var(--brand-dark) !important;
  background: transparent !important;
  font-family: var(--ke-font-display);
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  transition: all 0.3s ease !important;
}

.ke-btn-outline:hover {
  background-color: var(--brand-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Hero Section */
.ke-hero {
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 90px 0;
  overflow: hidden;
}

.ke-hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(33, 169, 93, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.relative-content {
  position: relative;
  z-index: 2;
}

.ke-hero-tag {
  display: inline-block;
  background-color: rgba(33, 169, 93, 0.1);
  color: var(--brand-secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(33, 169, 93, 0.15);
}

.ke-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.ke-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 30px;
}

.ke-hero-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ke-hero-point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.ke-hero-point-item i {
  color: var(--brand-primary);
  font-size: 18px;
}

.ke-hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ke-hero-card:hover {
  transform: translateY(-5px);
}

.ke-hero-card-header {
  background: var(--brand-dark);
  color: #fff;
  padding: 20px 25px;
}

.ke-hero-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff !important;
}

.ke-hero-card-body {
  padding: 25px;
}

.ke-fact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ke-fact-item .label {
  font-weight: 600;
  color: #64748b;
}

.ke-fact-item .value {
  font-weight: 700;
  color: var(--brand-dark);
}

.ke-text-primary {
  color: var(--brand-primary) !important;
}

.ke-text-secondary {
  color: var(--brand-secondary) !important;
}

/* ==========================================================================
   Course Architecture Section
   ========================================================================== */
.ke-arch-section {
  background-color: #fff;
}

.ke-arch-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
}

.ke-arch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border-color: rgba(237, 80, 36, 0.2);
}

.ke-arch-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(237, 80, 36, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ke-arch-icon-wrapper i {
  font-size: 26px;
  color: var(--brand-primary);
}

.ke-arch-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ke-arch-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 15px;
}

.ke-arch-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.ke-arch-bullets li {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ke-arch-bullets li i {
  color: var(--brand-secondary);
}

/* ==========================================================================
   Course Level Tiers Section
   ========================================================================== */
.ke-tiers-section {
  background-color: var(--brand-light);
}

.ke-tier-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
  transition: all 0.3s ease;
}

.ke-tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.ke-tier-header {
  padding: 30px;
  color: #fff;
  text-align: center;
}

.ke-tier-header.express {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #d43b12 100%);
}

.ke-tier-header.regular {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #178345 100%);
}

.ke-tier-header.elite {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #0f172a 100%);
}

.ke-tier-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
}

.ke-tier-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
}

.ke-tier-body {
  padding: 30px;
}

.ke-tier-metric {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #e2e8f0;
}

.ke-tier-metric .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-dark);
  font-family: var(--ke-font-display);
}

.ke-tier-metric .label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.ke-tier-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.ke-tier-features li {
  font-size: 14.5px;
  color: #475569;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ke-tier-features li i {
  color: var(--brand-secondary);
}

/* ==========================================================================
   Practice & Evaluation Loops Section
   ========================================================================== */
.ke-evaluation-section {
  background-color: #fff;
}

.ke-loop-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 50px;
}

.ke-loop-step {
  display: flex;
  gap: 24px;
  margin-bottom: 35px;
  position: relative;
}

.ke-loop-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 25px;
  width: 2px;
  height: calc(100% - 30px);
  background-color: #cbd5e1;
}

.ke-loop-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(237, 80, 36, 0.2);
  z-index: 2;
}

.ke-loop-content {
  text-align: left;
}

.ke-loop-content h3 {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.ke-loop-content p {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Target Band Estimator Widget
   ========================================================================== */
.ke-widget-section {
  background-color: #fff;
}

.ke-widget-wrapper {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
  color: #fff;
}

.ke-widget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 35px;
  text-align: left;
}

@media (min-width: 768px) {
  .ke-widget-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ke-widget-group {
  display: flex;
  flex-direction: column;
}

.ke-widget-label {
  font-family: var(--ke-font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

/* Custom range inputs */
.ke-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  margin: 15px 0;
}

.ke-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(237, 80, 36, 0.5);
  transition: transform 0.1s ease;
}

.ke-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ke-slider-val-display {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ke-slider-val-current {
  color: var(--brand-primary);
  font-size: 18px;
  font-weight: 800;
}

/* Selector buttons for current english level */
.ke-level-selector {
  display: flex;
  gap: 12px;
}

.ke-level-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ke-level-btn.active {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  box-shadow: 0 0 15px rgba(33, 169, 93, 0.3);
}

.ke-level-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Output calculation splits */
.ke-widget-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}

@media (min-width: 992px) {
  .ke-widget-split {
    grid-template-columns: 1fr 1fr;
  }
}

.ke-widget-col {
  text-align: left;
}

.ke-widget-header {
  font-size: 19px;
  font-weight: 750;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}

.ke-widget-header i {
  color: var(--brand-secondary);
}

.ke-estimator-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
}

.ke-est-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.ke-est-hours {
  font-family: var(--ke-font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.ke-est-track-name {
  font-family: var(--ke-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.ke-est-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.ke-widget-classes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ke-widget-class-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.ke-widget-class-item i {
  color: var(--brand-primary);
  font-size: 18px;
}

/* ==========================================================================
   Consultation Lead Form Section
   ========================================================================== */
.ke-consultation-section {
  background-color: #fff;
}

.ke-form-wrapper {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.ke-form-info-side {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #0f172a 100%);
  color: #fff;
  padding: 50px;
  display: flex;
  align-items: center;
}

.ke-form-info-content h3 {
  color: #fff !important;
  font-size: 26px;
  margin-bottom: 20px;
}

.ke-form-info-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

.ke-form-bullets {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  margin-bottom: 0;
}

.ke-form-bullets li {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ke-form-bullets li i {
  color: var(--brand-secondary);
  font-size: 20px;
}

.ke-form-field-side {
  padding: 50px;
}

.ke-form-container h2 {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.ke-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-dark);
}

.ke-form .input-group-text {
  background-color: var(--brand-light);
  border-color: #d1d5db;
  color: #64748b;
}

.ke-form .form-control,
.ke-form .form-select {
  border-color: #d1d5db;
  font-size: 15px;
  padding: 10px 14px;
}

.ke-form .form-control:focus,
.ke-form .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(237, 80, 36, 0.15);
}

/* Custom styles for selects in forms (fixes potential white blocks in dark elements) */
.ke-form .form-select.ke-form-select-theme {
  --bs-form-select-bg: #fff !important;
  background-color: #fff !important;
  color: var(--brand-dark) !important;
}

.ke-btn-submit {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  font-family: var(--ke-font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(237, 80, 36, 0.25);
  transition: all 0.3s ease !important;
}

.ke-btn-submit:hover {
  background: #ff6a3d !important;
  border-color: #ff6a3d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 80, 36, 0.35);
}

.ke-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ke-success-box {
  background-color: rgba(33, 169, 93, 0.08);
  border: 1px solid rgba(33, 169, 93, 0.2);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(33, 169, 93, 0.05);
}

.ke-success-box i {
  font-size: 48px;
  color: var(--brand-secondary);
  display: block;
  margin-bottom: 16px;
}

.ke-success-box h4 {
  color: var(--brand-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.ke-success-box p {
  margin-bottom: 0;
  color: var(--brand-dark);
}

/* ==========================================================================
   Viewport Scroll Reveal Animations
   ========================================================================== */
.js-active .ke-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-active .reveal-fade-up {
  transform: translateY(30px);
}

.js-active .reveal-fade-right {
  transform: translateX(-30px);
}

.js-active .reveal-fade-left {
  transform: translateX(30px);
}

.js-active .ke-reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .ke-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive media queries */
@media (max-width: 991px) {
  .ke-hero-title {
    font-size: 34px;
  }
  .ke-form-info-side, .ke-form-field-side {
    padding: 40px;
  }
  .ke-widget-wrapper {
    padding: 35px 25px;
  }
  .ke-loop-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 575px) {
  .ke-hero-title {
    font-size: 28px;
  }
  .ke-section-title {
    font-size: 26px;
  }
  .ke-form-info-side, .ke-form-field-side {
    padding: 30px 20px;
  }
  .ke-widget-wrapper {
    padding: 30px 15px;
  }
  .ke-loop-step {
    flex-direction: column;
    gap: 12px;
  }
  .ke-loop-step:not(:last-child)::after {
    display: none;
  }
}
