/* ==========================================================================
   KALINGAEURO - PhD Abroad 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-pa-page-body {
  font-family: var(--ke-font-body) !important;
  background-color: var(--brand-light) !important;
  color: var(--brand-dark) !important;
  overflow-x: hidden;
}

.ke-pa-root h1, 
.ke-pa-root h2, 
.ke-pa-root h3, 
.ke-pa-root h4, 
.ke-pa-root h5, 
.ke-pa-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, #f3f6f9 0%, #eef2f6 100%);
  padding: 80px 0;
  overflow: hidden;
}

.ke-hero-bg-accent {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(237, 80, 36, 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(237, 80, 36, 0.1);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(237, 80, 36, 0.15);
}

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

.ke-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #64748b;
  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-secondary);
  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, #ed5024) !important;
}

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

.ke-text-dark {
  color: var(--brand-dark, #1e293b) !important;
}

/* ==========================================================================
   Details / Outlines Styles
   ========================================================================== */
.ke-details-section {
  background-color: var(--brand-light);
}

.ke-detail-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.02);
  transition: all 0.3s ease;
}

.ke-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
}

.ke-detail-card i {
  font-size: 32px;
  color: var(--brand-primary);
  margin-bottom: 20px;
  display: block;
}

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

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

/* Process Timeline (Step-by-step Setup) */
.ke-process-section {
  background-color: #fff;
}

.ke-step-card {
  background-color: var(--brand-light);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.ke-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 80, 36, 0.2);
}

.ke-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #fff;
  font-family: var(--ke-font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ke-step-card h3 {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 12px;
}

.ke-step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   Interactive PhD Scholarship Finder & Cold Email Widget
   ========================================================================== */
.ke-dashboard-section {
  background-color: #fff;
}

.ke-dashboard-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-dashboard-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  text-align: left;
}

.ke-dashboard-label {
  font-family: var(--ke-font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.ke-dashboard-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
}

.ke-dashboard-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(237, 80, 36, 0.2);
}

.ke-dashboard-control option {
  background: #0f172a;
  color: #fff;
}

.ke-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 8px 20px 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.ke-toggle-wrapper:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ke-toggle-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 900;
  font-size: 13px;
  transition: all 0.2s ease;
}

.ke-toggle-wrapper.active .ke-toggle-checkbox {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: #fff;
}

/* Results panel splits */
.ke-results-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

.ke-results-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-results-header i {
  color: var(--brand-primary);
}

.ke-grant-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ke-grant-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.ke-grant-card.recommended {
  border-left: 4px solid var(--brand-secondary);
}

.ke-grant-card h5 {
  font-size: 16.5px;
  color: #fff !important;
  margin-bottom: 10px;
}

.ke-grant-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.ke-grant-meta span.highlight {
  color: #fff;
  font-weight: 700;
}

.ke-grant-meta span.success {
  color: var(--brand-secondary);
  font-weight: 700;
}

.ke-probability-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.ke-prob-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.ke-prob-value {
  font-family: var(--ke-font-display);
  font-size: 26px;
  font-weight: 800;
}

.ke-prob-value.high { color: var(--brand-secondary); }
.ke-prob-value.med { color: #f59e0b; }
.ke-prob-value.low { color: var(--brand-primary); }

.ke-prob-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  line-height: 1.4;
}

/* Email Draft Container */
.ke-draft-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.ke-draft-toolbar {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ke-draft-toolbar span {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.ke-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ke-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ke-btn-copy.copied {
  background: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

.ke-draft-body {
  padding: 25px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;
}

/* ==========================================================================
   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);
}

.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;
  }
}

@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-dashboard-wrapper {
    padding: 30px 20px;
  }
  .ke-dashboard-inputs {
    gap: 18px;
    margin-bottom: 25px;
  }
  .ke-results-split {
    gap: 20px;
  }
}
