/* =========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero {
  background: radial-gradient(circle at top left, #1d1f5a, #050515);
  color: var(--white);
  padding: 30px 0 40px;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  min-height: 360px;
  z-index: 2;
}

.hero-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 780;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 12px;
  max-width: 420px;
}

.hero-sub span {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  background: var(--primary);
  color: white;
}

body.dark-mode .btn-primary {
  background: var(--accent);
  color: #111;
}

body.dark-mode .btn-primary:hover {
  background: #cc8a2a;
  color: #111;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

body.dark-mode .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-proof {
  margin-top: 18px;
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-proof strong {
  font-weight: 600;
}

.hero-proof-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.78rem;
}

.hero-slider {
  position: relative;
  max-width: 560px;
  width: 100%;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

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

.hero-content {
  max-width: 520px;
  position: relative;
  z-index: 10;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 5;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.hero-dot.is-active {
  background: var(--accent) !important;
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--accent);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.hero-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-bg.is-active {
  opacity: 0.18;
}

/* Sections Layout */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(251, 176, 64, 0.15);
  color: #d48d06;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

body.dark-mode .section-tag {
  background: rgba(251, 176, 64, 0.2);
  color: var(--accent);
}

/* Course Card */
.creative-section {
  padding: 80px 0;
  background: var(--bg-body);
  position: relative;
}

.course-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.course-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(44, 47, 120, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}

body.dark-mode .course-tag {
  background: rgba(251, 176, 64, 0.15);
  color: var(--accent);
}

.course-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.course-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.course-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 35px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pillar-item {
  text-align: center;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-section-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode .pillar-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.pillar-item:hover .pillar-icon {
  background: var(--primary);
  color: #fff;
}

body.dark-mode .pillar-item:hover .pillar-icon {
  background: var(--accent);
  color: #111;
}

.pillar-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.course-visual {
  position: relative;
  background-color: #000;
  overflow: hidden;
  min-height: 400px;
}

.course-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  opacity: 0.8;
}

.course-card-container:hover .course-visual img {
  transform: scale(1.05);
  opacity: 0.6;
}

.course-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card-container:hover .course-visual-overlay {
  opacity: 1;
}

.course-visual-text h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.course-visual-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Services Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(44, 47, 120, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
  transition: all 0.3s;
}

body.dark-mode .service-icon {
  background: rgba(251, 176, 64, 0.1);
  color: var(--accent);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: #fff;
}

body.dark-mode .service-card:hover .service-icon {
  background: var(--accent);
  color: #111;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.service-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1rem;
}

/* Referral Section */
.referral-section {
  background: var(--bg-section-alt);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.reward-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

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

.reward-header {
  padding: 25px;
  background: var(--primary);
  color: white;
  text-align: center;
}

body.dark-mode .reward-header {
  background: #23232e;
  border-bottom: 1px solid var(--border-color);
}

.reward-tier {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reward-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.reward-name {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.reward-body {
  padding: 25px;
}

.reward-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reward-list li i {
  color: #4caf50;
  margin-top: 4px;
}

.share-container {
  max-width: 700px;
  margin: 0 auto;
}

.share-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  text-align: center;
}

.referral-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}

.referral-code-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  background: var(--bg-input);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-color);
  user-select: all;
  transition: border-color 0.2s, color 0.2s;
}

body.dark-mode .referral-code-value {
  color: var(--accent);
}

.referral-code-value:hover {
  border-color: var(--primary);
}

body.dark-mode .referral-code-value:hover {
  border-color: var(--accent);
}

.regenerate-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.regenerate-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(44, 47, 120, 0.05);
  transform: rotate(180deg);
}

body.dark-mode .regenerate-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(251, 176, 64, 0.08);
}

.share-link-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--bg-input);
  padding: 5px;
  border-radius: 999px;
  flex-wrap: wrap;
}

.share-link-input {
  flex: 1;
  min-width: 180px;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  font-family: monospace;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

body.dark-mode .copy-btn {
  background: var(--accent);
  color: #111;
}

body.dark-mode .copy-btn:hover {
  background: #cc8a2a;
}

.share-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.share-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.share-socials a:hover {
  background: var(--primary);
  color: white;
}

body.dark-mode .share-socials a:hover {
  background: var(--accent);
  color: #111;
}

/* =========================================
   SCHOLARSHIP SECTION - REDESIGNED
   ========================================= */

.scholarship-new-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-section-alt) 100%);
  position: relative;
  overflow: hidden;
}

.scholarship-new-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.scholarship-new-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Scholarship Header */
.scholarship-header {
  text-align: center;
  margin-bottom: 60px;
}

.scholarship-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(251, 176, 64, 0.15);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(251, 176, 64, 0.3);
}

.scholarship-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .scholarship-title {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scholarship-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scholarship Cards Grid */
.scholarship-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Scholarship Card */
.scholarship-new-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.scholarship-new-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Featured Card */
.scholarship-new-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  position: relative;
}

.scholarship-new-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffdd88, var(--accent));
}

.scholarship-new-card.featured .card-new-title,
.scholarship-new-card.featured .card-features li,
.scholarship-new-card.featured .price-label,
.scholarship-new-card.featured .price-value {
  color: white;
}

.scholarship-new-card.featured .card-features li i {
  color: var(--accent);
}

.scholarship-new-card.featured .card-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.scholarship-new-card.featured .card-top-badge {
  background: var(--accent);
  color: #111;
}

/* Card Corner Decoration */
.card-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(251, 176, 64, 0.08) 50%);
  border-radius: 0 0 0 24px;
  pointer-events: none;
}

.scholarship-new-card.featured .card-corner {
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.08) 50%);
}

/* Top Badge */
.card-top-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(251, 176, 64, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Card Icon */
.card-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(44, 47, 120, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.scholarship-new-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

body.dark-mode .card-icon {
  background: rgba(251, 176, 64, 0.1);
  color: var(--accent);
}

/* Card Title */
.card-new-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* Price Section */
.card-price {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
}

body.dark-mode .card-price {
  background: rgba(255, 255, 255, 0.05);
}

.price-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

body.dark-mode .price-value {
  color: var(--accent);
}

/* Features List */
.card-features {
  list-style: none;
  margin-bottom: 28px;
  padding: 0;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.card-features li i {
  width: 20px;
  color: var(--success);
  font-size: 0.9rem;
  flex-shrink: 0;
}

body.dark-mode .card-features li i {
  color: var(--accent);
}

/* Card Buttons */
.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary-new {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-primary-new:hover {
  background: var(--primary);
  color: white;
  gap: 12px;
}

body.dark-mode .btn-primary-new {
  border-color: var(--accent);
  color: var(--accent);
}

body.dark-mode .btn-primary-new:hover {
  background: var(--accent);
  color: #111;
}

.btn-featured {
  background: var(--accent);
  color: #111;
  border: none;
}

.btn-featured:hover {
  background: #e6a010;
  transform: translateY(-2px);
  gap: 12px;
  box-shadow: 0 8px 20px rgba(251, 176, 64, 0.4);
}

/* Status Box */
.status-box {
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Stats Section */
.stats-section {
  background: var(--bg-body);
  padding: 50px 0 60px;
}

.stats-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 30px;
}

.stats-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.stats-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.visible-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

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

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

body.dark-mode .stat-value {
  color: var(--accent);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-highlight {
  color: var(--accent);
  font-weight: 600;
}

.stats-footer {
  text-align: center;
  margin-top: 40px;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--bg-section-alt);
  padding: 50px 0 60px;
  margin-top: 0;
  transition: background 0.3s;
}

.testimonials-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
}

.testimonials-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.testimonials-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: background 0.3s;
}

.testimonial-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-meta strong {
  color: var(--text-main);
  font-size: 0.82rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.3s;
}

body.dark-mode .testimonials-dot {
  background: #444;
}

.testimonials-dot.is-active {
  background: var(--accent) !important;
}

/* Partners Section */
.partners-section {
  padding: 60px 0;
  background: var(--bg-section-alt);
  overflow: hidden;
}

body.dark-mode .partners-section {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.partners-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.partners-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.partners-slider-container {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-left 50s linear infinite;
}

.partners-slide {
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.partner-logo {
  height: 45px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
  object-fit: contain;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Floating Elements */
.leaderboard-toggle-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--primary) 0%, #1a1c4a 100%);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  z-index: 90;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: padding 0.3s, background 0.3s, transform 0.3s;
  animation: bounce-slide 3s infinite ease-in-out, glow-pulse 2s infinite alternate;
  box-shadow: 0 0 20px rgba(251, 176, 64, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
}

body.dark-mode .leaderboard-toggle-btn {
  background: linear-gradient(180deg, var(--accent) 0%, #cc8a2a 100%);
  color: #111;
  box-shadow: 0 0 25px rgba(251, 176, 64, 0.6);
}

.leaderboard-toggle-btn:hover {
  padding-right: 28px;
  animation-play-state: paused;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 35px rgba(251, 176, 64, 0.7);
}

.leaderboard-toggle-btn i {
  transform: rotate(90deg);
  font-size: 1.1rem;
  animation: icon-spin 4s linear infinite;
}

@keyframes bounce-slide {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-8px);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 15px rgba(44, 47, 120, 0.3);
    filter: brightness(1);
  }
  100% {
    box-shadow: 0 0 30px rgba(251, 176, 64, 0.6);
    filter: brightness(1.1);
  }
}

@keyframes icon-spin {
  0% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(450deg);
  }
}

.leaderboard-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 105;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.leaderboard-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header h3 i {
  color: var(--accent);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.drawer-close:hover {
  color: var(--text-main);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid transparent;
}

.leaderboard-item:hover {
  background: var(--bg-input);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, transparent 100%);
  border-left: 4px solid #ffd700;
}

.leaderboard-item.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.25) 0%, transparent 100%);
  border-left: 4px solid #c0c0c0;
}

.leaderboard-item.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.25) 0%, transparent 100%);
  border-left: 4px solid #cd7f32;
}

.leaderboard-rank {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.leaderboard-item.rank-1 .leaderboard-rank,
.leaderboard-item.rank-2 .leaderboard-rank,
.leaderboard-item.rank-3 .leaderboard-rank {
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.leaderboard-item.rank-1 .leaderboard-rank {
  color: #daa520;
}

.leaderboard-item.rank-2 .leaderboard-rank {
  color: #a9a9a9;
}

.leaderboard-item.rank-3 .leaderboard-rank {
  color: #b8860b;
}

.leaderboard-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.leaderboard-item.rank-1 .leaderboard-thumb {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.leaderboard-item.rank-2 .leaderboard-thumb {
  border-color: #c0c0c0;
}

.leaderboard-item.rank-3 .leaderboard-thumb {
  border-color: #cd7f32;
}

.leaderboard-info {
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-name i {
  font-size: 0.7rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

body.dark-mode .leaderboard-name i {
  color: var(--accent);
}

.leaderboard-item:hover .leaderboard-name i {
  opacity: 1;
}

.leaderboard-course {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(44, 47, 120, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

body.dark-mode .leaderboard-score {
  color: var(--accent);
  background: rgba(251, 176, 64, 0.1);
}

.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s;
  z-index: 99;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary);
}

body.dark-mode .scroll-to-top:hover {
  background: #cc8a2a;
}

body.dark-mode .scroll-to-top {
  background: var(--accent);
  color: #111111;
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

body.dark-mode .scroll-to-top svg {
  stroke: #111111;
}

/* Loader */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body.dark-mode .loader-spinner {
  border-top-color: var(--accent);
}

.loader-text {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .hero-slider {
    max-width: 100%;
  }
  
  .hero-sub {
    margin-inline: 0;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
  
  .hero-dots {
    bottom: 20px;
    right: 16px;
  }
  
  .hero {
    padding: 20px 0 30px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-sub {
    font-size: 0.9rem;
  }
  
  .course-card-container {
    grid-template-columns: 1fr;
  }
  
  .course-visual {
    min-height: 250px;
    order: -1;
  }
  
  .course-content {
    padding: 30px;
  }
  
  .course-pillars {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .share-link-wrapper {
    flex-direction: column;
    background: transparent;
    gap: 12px;
    padding: 0;
    border-radius: 0;
  }
  
  .copy-btn {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
  }
  
  .referral-code-value {
    font-size: 1.3rem;
    padding: 10px 20px;
    letter-spacing: 2px;
  }
  
  /* Scholarship responsive */
  .scholarship-cards-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .scholarship-title {
    font-size: 1.8rem;
  }
  
  .scholarship-new-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .partner-logo {
    height: 35px;
    padding: 0 20px;
  }
  
  .partners-section {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .leaderboard-drawer {
    width: 100%;
    right: -100%;
  }
  
  .leaderboard-toggle-btn {
    padding: 12px 14px;
  }
  
  .scroll-to-top {
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  /* Scholarship responsive */
  .scholarship-new-card {
    padding: 24px 20px;
  }
  
  .card-new-title {
    font-size: 1.3rem;
  }
  
  .price-value {
    font-size: 1.3rem;
  }
  
  .card-features li {
    font-size: 0.85rem;
  }
}