/* Base Section Layout */
.scholarships-section-v2 {
  background-color: #f8fafc;
  padding: 50px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}

.scholarships-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title-block {
  text-align: center;
  margin-bottom: 30px;
}

.section-title-block h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-title-block p {
  color: #64748b;
  font-size: 16px;
}

/* Country Filter Tabs Bar */
.country-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 5px 20px 5px;
  scrollbar-width: thin;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
  background: #c5221f; /* Matching site header red */
  color: #ffffff;
  border-color: #c5221f;
  box-shadow: 0 4px 12px rgba(197, 34, 31, 0.25);
}

/* Horizontal Grid Slider Wrapper */
.slider-controls-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scholarships-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px;
  width: 100%;
}

.scholarships-grid::-webkit-scrollbar {
  height: 6px;
}
.scholarships-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Arrows for Scrolling */
.slider-arrow {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: #0f172a;
  color: #ffffff;
}

.slider-arrow.left { margin-right: 10px; }
.slider-arrow.right { margin-left: 10px; }

/* Individual Cards */
.scholarship-card {
  min-width: 330px;
  max-width: 350px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.scholarship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.country-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-full { background: #dcfce7; color: #166534; }
.badge-partial { background: #fef9c3; color: #854d0e; }
.badge-govt { background: #f1f5f9; color: #475569; }

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-info {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-info p {
  margin-bottom: 8px;
}

.card-bottom {
  margin-top: auto;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.cta-inquire-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cta-inquire-btn:hover {
  background: #c5221f;
}

/* High-Contrast Counseling CTA Banner */
.counseling-banner {
  margin-top: 50px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-left: 6px solid #c5221f;
  border-radius: 12px;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.counseling-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.counseling-text p {
  color: #475569;
  font-size: 14px;
  margin: 0;
}

.counseling-btn {
  background: #c5221f;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.counseling-btn:hover {
  background: #991b1b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .slider-arrow { display: none; }
  .counseling-banner { flex-direction: column; text-align: center; }
  .counseling-btn { width: 100%; text-align: center; }
}