/* ==========================================================================
   KALINGAEURO - Invest Your Talent in Italy (IYT) Scholarship Page Stylesheet
   ========================================================================== */

/* Variables & Font Settings */
:root {
  --ke-font-display: 'Outfit', sans-serif;
  --ke-font-body: 'Montserrat', sans-serif;
  
  /* Brand color fallbacks (usually overwritten by settings.php) */
  --primary-color-fallback: #ed5024; /* KALINGAEURO Orange */
  --secondary-color-fallback: #26ad5f; /* KALINGAEURO Green */
  --body-bg-fallback: #f8fafc;
  --body-color-fallback: #1e293b;
  --card-bg-fallback: #ffffff;
  --card-border-fallback: #e2e8f0;
  --muted-color-fallback: #64748b;
  
  /* Color aliases */
  --brand-primary: #ed5024;
  --brand-secondary: #21a95d;
  --brand-accent: #21a95d;
  --brand-dark: #414141;
  --brand-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

/* Core Document styling */
.ke-iyt-page-body {
  font-family: var(--ke-font-body) !important;
  background-color: var(--brand-light) !important;
  color: var(--body-color, var(--body-color-fallback)) !important;
  overflow-x: hidden;
}

.ke-iyt-root h1, 
.ke-iyt-root h2, 
.ke-iyt-root h3, 
.ke-iyt-root h4, 
.ke-iyt-root h5, 
.ke-iyt-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: var(--muted-color, var(--muted-color-fallback));
  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(38, 173, 95, 0.08) 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: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--brand-dark);
}

.ke-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-color, var(--muted-color-fallback));
  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 var(--card-border, var(--card-border-fallback));
}

.ke-fact-item .label {
  font-weight: 600;
  color: var(--muted-color, var(--muted-color-fallback));
}

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

/* ==========================================================================
   Popular Undergraduate Fields of Study
   ========================================================================== */
.ke-iyt-info {
  background-color: #fff;
}

.ke-iyt-info-card {
  background-color: var(--brand-light);
  border: 1px solid var(--card-border, var(--card-border-fallback));
  border-radius: 16px;
  padding: 35px 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ke-iyt-info-card:hover {
  background-color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(237, 80, 36, 0.08);
}

.ke-card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(237, 80, 36, 0.06);
  color: var(--brand-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.ke-iyt-info-card:hover .ke-card-icon {
  background-color: var(--brand-primary);
  color: #fff;
}

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

.ke-iyt-info-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-color, var(--muted-color-fallback));
  margin: 0;
}

/* ==========================================================================
   Rewards and Perks Breakdown
   ========================================================================== */
.ke-rewards {
  background-color: var(--brand-light);
}

.ke-reward-box {
  background-color: #fff;
  border: 1px solid var(--card-border, var(--card-border-fallback));
  border-radius: 16px;
  padding: 40px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.02);
}

.ke-reward-badge {
  display: inline-block;
  background-color: rgba(38, 173, 95, 0.1);
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.ke-reward-box h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.ke-reward-box p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-color, var(--muted-color-fallback));
}

.ke-reward-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.ke-reward-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-color, var(--body-color-fallback));
}

.ke-reward-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 800;
}

/* Responsive Table */
.ke-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border, var(--card-border-fallback));
  box-shadow: var(--glass-shadow);
  background-color: #fff;
}

.ke-custom-table {
  margin-bottom: 0 !important;
  border-collapse: collapse;
  width: 100%;
  min-width: 700px;
}

.ke-custom-table th {
  background-color: var(--brand-dark) !important;
  color: #fff !important;
  font-family: var(--ke-font-display);
  font-weight: 600;
  padding: 18px 24px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.ke-custom-table td {
  padding: 18px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--card-border, var(--card-border-fallback));
  color: var(--body-color, var(--body-color-fallback));
}

.ke-custom-table tbody tr:last-child td {
  border-bottom: none;
}

.ke-custom-table tbody tr:hover {
  background-color: rgba(237, 80, 36, 0.02);
}

/* ==========================================================================
   Eligibility Criteria Section
   ========================================================================== */
.ke-eligibility {
  background-color: #fff;
}

.ke-eligibility-card {
  background-color: var(--brand-light);
  border: 1px solid var(--card-border, var(--card-border-fallback));
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.ke-eligibility-card-accent {
  background: linear-gradient(135deg, rgba(237, 80, 36, 0.02) 0%, rgba(237, 80, 36, 0.05) 100%);
  border-color: rgba(237, 80, 36, 0.2);
}

.ke-eligibility-card-header h4 {
  font-size: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.ke-eligibility-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.eligibility-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--card-border, var(--card-border-fallback));
  font-size: 15px;
  color: var(--body-color, var(--body-color-fallback));
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.eligibility-list li i {
  color: var(--brand-primary);
  font-size: 18px;
  margin-top: 2px;
}

.eligibility-list li:last-child {
  border-bottom: none;
}

.eligibility-note {
  font-size: 13px;
  color: var(--muted-color, var(--muted-color-fallback));
  background-color: rgba(15, 23, 42, 0.03);
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.eligibility-note i {
  color: var(--brand-primary);
}

/* ==========================================================================
   Interactive Video script generator & Teleprompter
   ========================================================================== */
.ke-teleprompter-section {
  background-color: var(--brand-light);
}

.ke-prompt-wrapper {
  background: #fff;
  border: 1px solid var(--card-border, var(--card-border-fallback));
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.ke-prompt-title-bar {
  border-bottom: 1px solid var(--card-border, var(--card-border-fallback));
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.ke-prompt-title-bar h3 {
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ke-prompt-title-bar h3 i {
  color: var(--brand-primary);
}

.ke-prompt-screen-container {
  background-color: #1e293b; /* Slate dark */
  border: 4px solid var(--brand-dark);
  border-radius: 12px;
  height: 280px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-top: 25px;
}

.ke-prompt-screen-content {
  padding: 120px 25px; /* Large padding top/bottom to keep text centered */
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  scroll-behavior: auto;
}

.ke-prompt-screen-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.ke-prompt-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  color: #fbbf24; /* Amber yellow for teleprompter contrast */
  text-align: center;
  font-family: var(--ke-font-display);
  margin: 0;
  white-space: pre-line;
}

/* Center tracking line for teleprompter */
.ke-prompt-center-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 50px;
  margin-top: -25px;
  border-top: 2px dashed rgba(251, 191, 36, 0.25);
  border-bottom: 2px dashed rgba(251, 191, 36, 0.25);
  background-color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 2;
}

.ke-prompt-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  background-color: #f1f5f9;
  padding: 15px 20px;
  border-radius: 8px;
}

.ke-speed-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.ke-speed-slider-group label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--brand-dark);
}

.ke-speed-slider {
  flex: 1;
  accent-color: var(--brand-primary);
}

/* ==========================================================================
   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 var(--card-border, var(--card-border-fallback));
}

.ke-form-info-side {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e293b 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: var(--muted-color, var(--muted-color-fallback));
}

.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(38, 173, 95, 0.08);
  border: 1px solid rgba(38, 173, 95, 0.2);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(38, 173, 95, 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);
}

/* ==========================================================================
   FAQs Accordion Section
   ========================================================================== */
.ke-faq {
  background-color: var(--brand-light);
}

.ke-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ke-accordion-item {
  background-color: #fff;
  border: 1px solid var(--card-border, var(--card-border-fallback));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
  transition: all 0.3s ease;
}

.ke-accordion-item:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.15);
}

.ke-accordion-header {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--ke-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-dark);
  cursor: pointer;
  transition: color 0.3s ease;
}

.ke-accordion-header span:first-child {
  padding-right: 20px;
}

.ke-accordion-header .icon {
  font-size: 20px;
  color: var(--brand-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.ke-accordion-item.active .ke-accordion-header {
  color: var(--brand-primary);
}

.ke-accordion-item.active .icon {
  transform: rotate(45deg);
}

.ke-accordion-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.ke-accordion-item.active .ke-accordion-content {
  opacity: 1;
}

.ke-accordion-content p {
  padding: 0 28px 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-color, var(--muted-color-fallback));
}

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

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

/* Responsive tweaks */
@media (max-width: 991px) {
  .ke-hero-title {
    font-size: 36px;
  }
  .ke-form-info-side {
    padding: 40px;
  }
  .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-accordion-header {
    padding: 16px 20px;
  }
  .ke-accordion-content p {
    padding: 0 20px 16px;
  }
  .ke-reward-box {
    padding: 25px;
  }
  .ke-prompt-wrapper {
    padding: 25px 20px;
  }
  .ke-prompt-text {
    font-size: 18px;
  }
}
