/* Best Assignments — legit digital theme overlay */
:root {
  --ba-navy: #0b1f3a;
  --ba-navy-2: #132b4d;
  --ba-gold: #c9a227;
  --ba-gold-soft: #e8d48b;
  --ba-ink: #142033;
  --ba-mute: #5a6b7d;
  --ba-paper: #f7f5f0;
  --ba-line: #e4eaf1;
  --ba-wa: #25d366;
  --ba-max: 1120px;
}

body {
  font-family: "Source Sans 3", "Glory", sans-serif !important;
  color: var(--ba-ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.sec-title-two h2,
.heading-why h2,
.ba-display {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: var(--ba-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hide leftover discount / spam modules if still in markup */
.cta-discount,
.pattern-layer-one,
.pattern-layer-three,
#sticky_form,
#btnsticky,
#discount-form-modal-2,
.modal-backdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.ba-has-legit-hero .banner-section,
body.ba-has-legit-hero .banner-section-five,
body.ba-has-legit-hero .banner-section-four,
body.ba-has-legit-hero .main-slider,
body.ba-has-legit-hero .banner-section-two,
body.ba-has-legit-hero .tp-banner-container,
body.ba-has-legit-hero .rev_slider_wrapper,
body.ba-has-legit-hero .horizontal-form-section .inner-container form {
  display: none !important;
}
/* Keep page scrollable; don't clip hero text */
body.ba-has-legit-hero,
body.ba-has-legit-hero .page-wrapper {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* ===== LEGIT HERO (fully visible — no cut-off) ===== */
.ba-hero {
  position: relative;
  overflow: visible !important;
  color: #fff;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  display: block;
  background:
    linear-gradient(105deg, rgba(7, 21, 38, 0.90) 0%, rgba(11, 31, 58, 0.78) 55%, rgba(11, 31, 58, 0.62) 100%),
    url("/assets/images/ba-hero-campus.webp") center/cover no-repeat;
  /* Extra bottom space so floating WhatsApp does not cover CTAs */
  padding: 3.25rem 0 7.5rem;
}
.ba-hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--ba-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.ba-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ba-gold-soft);
  margin-bottom: 0.85rem;
}
.ba-hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 4.8vw, 3.35rem) !important;
  line-height: 1.12 !important;
  max-width: 18ch !important;
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}
.ba-hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  max-width: 40ch;
  margin: 0 0 1.35rem;
  line-height: 1.5;
}
.ba-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ba-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(37,211,102,0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ba-btn-wa:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff !important; }
.ba-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: #fff !important;
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.45);
  text-decoration: none !important;
}
.ba-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.ba-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.ba-trust-row span::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ba-gold);
  margin-right: 0.45rem;
  vertical-align: middle;
}

/* Hide old banner when hero_legit is present as sibling preference via body class */
body.ba-has-legit-hero .banner-section,
body.ba-has-legit-hero .main-slider,
body.ba-has-legit-hero section.banner-section-two {
  display: none !important;
}

/* ===== SECTION SHELL ===== */
.ba-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #fff;
}
.ba-section.band { background: var(--ba-paper); }
.ba-sec-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.ba-sec-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.55rem;
}
.ba-sec-head p { color: var(--ba-mute); font-size: 1.05rem; margin: 0; }

.ba-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.ba-card {
  background: #fff;
  border: 1px solid var(--ba-line);
  border-radius: 16px;
  padding: 1.4rem 1.25rem;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11,31,58,0.08);
  border-color: rgba(201,162,39,0.45);
}
.ba-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.ba-card p { color: var(--ba-mute); font-size: 0.98rem; margin-bottom: 0.9rem; }
.ba-card a {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ba-navy);
  border-bottom: 2px solid var(--ba-gold);
  text-decoration: none !important;
}

.ba-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.ba-step {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  border-top: 3px solid var(--ba-gold);
  box-shadow: 0 8px 24px rgba(11,31,58,0.04);
}
.ba-step .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ba-gold);
  line-height: 1;
  margin-bottom: 0.45rem;
}
.ba-step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.ba-step p { color: var(--ba-mute); margin: 0; font-size: 0.98rem; }

.ba-note {
  text-align: center;
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--ba-mute);
  font-size: 0.95rem;
}

.ba-cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(201,162,39,0.18), transparent 50%),
    var(--ba-navy);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem) 0;
}
.ba-cta-band h2 { color: #fff !important; margin-bottom: 0.5rem; }
.ba-cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }

/* Soften old sections to match theme */
.why-section,
.faq-section,
.writer-section,
.clients-section,
.main-content-area,
.g-footer {
  background: #fff;
}
.why-section .heading-why h2,
.faq-section .sec-title-two h2,
.writer-section .sec-title-two h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem) !important;
}
.writer-section .inner-box {
  border-radius: 16px !important;
  border: 1px solid var(--ba-line) !important;
  box-shadow: none !important;
  padding: 1.5rem !important;
}
.free-feature-box,
.side-div {
  border-radius: 16px;
  border: 1px solid var(--ba-line);
  background: var(--ba-paper);
  padding: 1.5rem !important;
}
.why-choose-btn,
.btn-ordernow,
.cta-btns,
.order-now,
.theme-btn.btn-style-eight {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
}
.theme-btn.btn-style-eleven {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* Tutor cards */
.ba-tutor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ba-tutor {
  border: 1px solid var(--ba-line);
  border-radius: 16px;
  padding: 1.25rem;
  background: #fff;
}
.ba-tutor h4 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.ba-tutor .role { color: var(--ba-gold); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.ba-tutor p { color: var(--ba-mute); font-size: 0.92rem; margin: 0; }

/* Reviews */
.ba-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ba-review {
  background: var(--ba-paper);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--ba-line);
}
.ba-review strong { display: block; margin-bottom: 0.35rem; color: var(--ba-navy); }
.ba-review p { color: var(--ba-mute); font-size: 0.95rem; margin: 0; }

/* Service pages banner polish */
.sidebar-page-container .sec-title h2,
.service-detail h1,
.service-detail h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
}

@media (max-width: 991px) {
  .ba-cards, .ba-steps, .ba-review-grid { grid-template-columns: 1fr 1fr; }
  .ba-tutor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ba-cards, .ba-steps, .ba-review-grid, .ba-tutor-grid { grid-template-columns: 1fr; }
  .ba-hero {
    padding: 2.25rem 0 6.5rem;
  }
  .ba-hero h1 {
    max-width: none !important;
    font-size: 1.9rem !important;
  }
  .ba-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ba-btn-wa, .ba-btn-ghost {
    justify-content: center;
  }
}

/* Floating quote button: don't cover hero text */
body.ba-has-legit-hero a.float {
  bottom: 18px !important;
  z-index: 40 !important;
}

/* Gentle entrance */
@keyframes baFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ba-hero .container,
.ba-sec-head,
.ba-card,
.ba-step {
  animation: baFadeUp 0.55s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .ba-hero .container, .ba-sec-head, .ba-card, .ba-step { animation: none; }
}
