/* ============================================================
   components.css — Buttons, Badges, Pills, Forms, Pagination, Breadcrumbs
   ============================================================ */

/* ── Buttons ── */

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  display: inline-block;
  text-decoration: none;
  border: none;
  text-align: center;
  line-height: 1.4;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.btn-primary,
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

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

.btn-outline:hover,
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-teal,
.btn--teal {
  background: var(--color-teal);
  color: #fff;
}

.btn-whatsapp,
.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* Hero CTA buttons */
.btn--hero-primary {
  background: #fff;
  color: #ac328a;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.btn--hero-primary:hover {
  background: #f0e8f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(172, 50, 138, 0.25);
  text-decoration: none;
  opacity: 1;
}

.btn--hero-primary--teal {
  color: #159486;
}

.btn--hero-primary--teal:hover {
  background: #e0f5f3;
  box-shadow: 0 8px 28px rgba(21, 148, 134, 0.25);
}

.btn--hero-ghost {
  background: rgba(250, 249, 252, 0.1);
  color: #faf9fc;
  border: 1.5px solid rgba(250, 249, 252, 0.3);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
}

.btn--hero-ghost:hover {
  background: rgba(250, 249, 252, 0.18);
  text-decoration: none;
  opacity: 1;
}

/* Mentoria CTA buttons */
.btn-mentoria-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(172, 50, 138, 0.3);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-mentoria-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(172, 50, 138, 0.4);
  text-decoration: none;
  color: #fff;
}

.btn-mentoria-cta-secondary {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-mentoria-cta-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-mentoria-cta-lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* Apply button (scholarship detail) */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.15s;
  box-shadow: 0 4px 14px rgba(172, 50, 138, 0.25);
  border: none;
  cursor: pointer;
  line-height: 1.3;
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(172, 50, 138, 0.35);
  text-decoration: none;
  color: #fff;
}

.btn-apply--muted {
  background: linear-gradient(135deg, #888, #666);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-apply--muted:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-apply--full {
  width: 100%;
  justify-content: center;
}

.btn-apply--sm {
  font-size: 13px;
  padding: 10px 20px;
}

.btn-apply svg {
  flex-shrink: 0;
}

/* ── Badges ── */

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-open {
  background: #e8f8f5;
  color: var(--color-teal);
}

.badge-closing {
  background: #e6f7f4;
  color: #159486;
}

.badge-closed {
  background: #f0f0f0;
  color: #666;
}

.badge-category,
.badge--category {
  background: var(--color-primary);
  color: #fff;
  left: 12px;
  right: auto;
  position: absolute;
  top: 12px;
}

/* ── Empty States ── */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

.empty-state svg {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ── Checklist ── */

.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Pullquote ── */

.pullquote {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.pullquote::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.pullquote blockquote {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pullquote__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pullquote__text::before {
  content: '\201C';
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  font-family: Georgia, serif;
  display: block;
  line-height: 0.5;
  margin-bottom: 1rem;
}

.pullquote__author {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.pullquote__author strong {
  color: #fff;
}

@media (max-width: 768px) {
  .pullquote { padding: 3.5rem 0; }
  .pullquote__text { font-size: 1.2rem; }
}

/* ── Founder Section ── */

.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.founder__photo {
  position: relative;
}

.founder__photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 44px rgba(0,0,0,0.10);
  aspect-ratio: 3 / 4;
}

.founder__photo::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 3px solid var(--color-teal);
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  transform: translate(12px, 12px);
}

.founder__quote {
  position: relative;
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-teal);
  font-style: normal;
}

.founder__bio {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.founder__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.founder__title {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .founder__photo {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ── Pills ── */

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pill-type {
  background: #f5f3fa;
  color: var(--color-accent-light);
}

.pill-country {
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
  text-decoration: none;
}

.pill-country:hover {
  background: var(--color-teal);
  color: #fff;
  text-decoration: none;
}

.cat-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  text-decoration: none;
}

.cat-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ── Forms / Filters ── */

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  align-items: center;
}

.filter-bar select,
.filter-bar input {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s;
  flex: 1;
  min-width: 140px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ── Form Fields ── */

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1625;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(172, 50, 138, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-required {
  color: #FF6B35;
  margin-left: 0.15rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox label a:hover {
  color: var(--color-primary-dark);
}

/* ── Pagination ── */

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.page-btn.current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  justify-content: center;
  color: var(--color-text-muted);
}

/* ── Breadcrumbs ── */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  color: #ccc;
  font-family: serif;
  font-size: 1.2rem;
  line-height: 1;
}

.breadcrumbs .current {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Hero breadcrumbs — light text on dark/colored backgrounds */
.hero-breadcrumbs {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero--centered .hero-breadcrumbs {
  justify-content: center;
}

.hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.hero-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.3);
}

.hero-breadcrumbs .current {
  color: #fff;
}

/* ── Ad Slots ── */

.ad-slot {
  min-height: 90px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
  border-radius: var(--radius);
}
