/*=================================================================
  Homepage Redesign — everything below the hero
  Loads after style.css, only adds tokens + refines existing
  theme classes (trust-strip, course-box2, counter-card, etc.)
  Brand colors are inherited from the theme's :root variables:
  --theme-color (maroon/red), --title-color (navy), --smoke-color
  (cream/off-white). A single green accent is added for trust
  elements (Trustpilot / guarantees) to match the brand's existing
  WhatsApp/Trustpilot greens.
=================================================================*/

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 12px rgba(10, 3, 60, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 3, 60, 0.10);
  --shadow-lg: 0 24px 48px rgba(10, 3, 60, 0.16);

  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --accent-green: #128a4f;
  --accent-green-bg: #e7f6ee;
}

/*-----------------------------------------------------------------
  Scroll-reveal utility (paired with homepage-redesign.js)
-----------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
  .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
  .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.38s; }
}

/*-----------------------------------------------------------------
  Global micro-interactions
-----------------------------------------------------------------*/
.th-btn {
  transition: transform var(--ease), box-shadow var(--ease), color 0s, background-color 0s;
}

.th-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.th-btn:active {
  transform: translateY(0);
}

a, button, .link-btn, .icon-btn {
  transition: color var(--ease), background-color var(--ease), border-color var(--ease),
    box-shadow var(--ease), transform var(--ease);
}

.sub-title {
  letter-spacing: 0.8px;
  font-weight: 600;
}

/*-----------------------------------------------------------------
  Trust strip
-----------------------------------------------------------------*/
.trust-strip {
  background: var(--smoke-color);
  padding: var(--space-4) 0;
}

.trust-strip_item {
  padding: var(--space-2);
}

.trust-strip_item i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white-color);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
  color: var(--theme-color);
  transition: transform var(--ease), box-shadow var(--ease);
}

.trust-strip_item:hover i {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trust-strip_item span {
  font-size: 14px;
  letter-spacing: 0.2px;
}

@media (max-width: 575px) {
  .trust-strip_item span {
    font-size: 13px;
  }
}

/*-----------------------------------------------------------------
  No-AI banner — soft gradient instead of flat block
-----------------------------------------------------------------*/
.no-ai-banner {
  background: linear-gradient(90deg, var(--theme-color), #7a0003);
  padding: var(--space-2) 0;
}

.no-ai-banner p {
  font-size: 15px;
  letter-spacing: 0.2px;
}

@media (max-width: 575px) {
  .no-ai-banner p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/*-----------------------------------------------------------------
  LMS platform logos — flat, no badge/card background
-----------------------------------------------------------------*/
.lms-platform-sec {
  padding: var(--space-5) 0 var(--space-6);
}

.lms-platform-list {
  gap: 0;
  align-items: stretch;
}

.lms-platform-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  height: 46px;
  padding: 0 var(--space-4);
  transition: transform var(--ease), opacity var(--ease);
}

.lms-platform-logo:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  width: 1px;
  background: rgba(10, 3, 60, 0.10);
}

@media (max-width: 575px) {
  .lms-platform-logo:not(:last-child)::after {
    display: none;
  }
}

.lms-platform-logo:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.lms-platform-logo img {
  height: 100%;
  max-height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--ease), opacity var(--ease);
}

.lms-platform-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/*-----------------------------------------------------------------
  About image
-----------------------------------------------------------------*/
.img-box7 {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/*-----------------------------------------------------------------
  About / counter-grid cards
-----------------------------------------------------------------*/
.counter-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  justify-content: flex-start;
  gap: var(--space-3);
}

.counter-grid {
  background: var(--white-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 3, 60, 0.05);
  padding: var(--space-3) var(--space-2);
  width: 100%;
  transition: transform var(--ease), box-shadow var(--ease);
}

.counter-grid:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .counter-grid-wrap {
    grid-template-columns: 1fr;
  }
}

/*-----------------------------------------------------------------
  CTA banner — "Ready to Boost Your Grades?"
-----------------------------------------------------------------*/
section:has(> .bg-img[data-bg-src*="cta_bg"]) {
  overflow: hidden;
}

.bg-img[data-bg-src*="cta_bg"] {
  position: relative;
}

.bg-img[data-bg-src*="cta_bg"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(160, 0, 4, 0.92) 0%, rgba(10, 3, 60, 0.90) 100%);
}

.bg-img[data-bg-src*="cta_bg"] img {
  position: relative;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/*-----------------------------------------------------------------
  Service cards (course-box2) — elevation, unified hover, tags
-----------------------------------------------------------------*/
.course-box2 {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 3, 60, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}

.course-box2:hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-box2 .course-img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
}

.course-box2 .course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-box2 .course-img .tag {
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.course-box2 .course-title a {
  transition: color var(--ease);
}

.course-box2 .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--theme-color);
}

.course-box2 .link-btn i {
  transition: transform var(--ease);
}

.course-box2 .link-btn:hover i {
  transform: translateX(4px);
}

/*-----------------------------------------------------------------
  Stats strip (counter-area-2) — dark brand gradient, icon + card
-----------------------------------------------------------------*/
.counter-area-2 {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
  background: linear-gradient(120deg, var(--title-color) 0%, #170a45 45%, #4a0206 120%);
}

.counter-area-2::before,
.counter-area-2::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.counter-area-2::before {
  width: 320px;
  height: 320px;
  background: rgba(162, 0, 4, 0.45);
  top: -140px;
  left: -80px;
}

.counter-area-2::after {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -140px;
  right: -60px;
}

.counter-area-2 > .container {
  position: relative;
  z-index: 1;
}

/* Kill the template's leftover blue (#357AFA) divider borders at every breakpoint */
.counter-card-wrap,
.counter-card-wrap:last-child,
.counter-card-wrap:nth-child(1) .counter-card,
.counter-card-wrap:nth-child(2) .counter-card,
.counter-card-wrap:nth-child(3) .counter-card {
  border: 0 !important;
}

.counter-card-wrap {
  padding: var(--space-1);
}

.counter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: 16px 18px !important;
  height: 100%;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.counter-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
}

.counter-card_icon {
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white-color);
  font-size: 18px;
}

.counter-card_number {
  color: var(--white-color) !important;
  font-size: 24px !important;
  line-height: 1.1;
  margin-bottom: 2px !important;
}

.counter-card_text {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.counter-card_text strong {
  color: var(--white-color);
}

@media (max-width: 575px) {
  .counter-card {
    padding: 14px 16px !important;
    gap: 12px;
  }

  .counter-card_icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .counter-card_number {
    font-size: 20px !important;
  }

  .counter-card_text {
    font-size: 10px !important;
  }
}

/*-----------------------------------------------------------------
  Benefits & Guarantees — icon cards with numbered watermark
-----------------------------------------------------------------*/
#benefits-sec .row {
  counter-reset: benefit-counter;
}

.benefit-item {
  position: relative;
  background: var(--white-color);
  border: 1px solid rgba(10, 3, 60, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-3);
  height: 100%;
  counter-increment: benefit-counter;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.benefit-item::after {
  content: counter(benefit-counter, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(10, 3, 60, 0.12);
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(162, 0, 4, 0.15);
}

.benefit-item_icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--accent-green-bg);
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease);
}

.benefit-item_icon i {
  color: var(--accent-green);
  font-size: 24px;
  transition: color var(--ease);
}

.benefit-item:hover .benefit-item_icon {
  background: var(--theme-color);
  transform: rotate(-6deg) scale(1.05);
}

.benefit-item:hover .benefit-item_icon i {
  color: var(--white-color);
}

.benefit-item_text {
  font-size: 16px;
  padding-right: var(--space-3);
}

/*-----------------------------------------------------------------
  "One Trusted Platform" mockup section — elevated image collage
  + icon-chip checklist
-----------------------------------------------------------------*/
#mockup-sec .img-box8 {
  position: relative;
}

#mockup-sec .img-box8::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: calc(var(--radius) * 2);
  background:
    radial-gradient(circle at 25% 20%, rgba(162, 0, 4, 0.12), transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(10, 3, 60, 0.12), transparent 60%);
}

#mockup-sec .img-box8 .img1,
#mockup-sec .img-box8 .img2 {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

#mockup-sec .img-box8 .img1 img,
#mockup-sec .img-box8 .img2 img {
  transition: transform 0.5s ease;
}

#mockup-sec .img-box8:hover .img1 img,
#mockup-sec .img-box8:hover .img2 img {
  transform: scale(1.04);
}

#mockup-sec .checklist li {
  padding-left: 42px;
  font-size: 16px;
  margin-bottom: 16px !important;
}

#mockup-sec .checklist li::before {
  content: "\f00c";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-radius: 50%;
}

/*-----------------------------------------------------------------
  Blog / resource cards
-----------------------------------------------------------------*/
.blog-card {
  border-radius: var(--radius);
  border: 1px solid rgba(10, 3, 60, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card .blog-img {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 10;
}

.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .blog-meta.style2 a {
  border-radius: var(--radius-pill);
  background: var(--smoke-color);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--theme-color);
}

/*-----------------------------------------------------------------
  Community / social section
-----------------------------------------------------------------*/
.community-follow-card {
  border-radius: var(--radius);
}

.insta-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.insta-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.insta-box img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/*-----------------------------------------------------------------
  Footer polish
-----------------------------------------------------------------*/
.footer-wrapper .widget_title {
  position: relative;
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-3);
}

.footer-wrapper .widget_title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--theme-color);
}

.footer-wrapper .info-box_icon {
  border-radius: 50%;
  transition: transform var(--ease);
}

.footer-wrapper .info-box-wrap:hover .info-box_icon {
  transform: translateY(-2px);
}

.footer-wrapper .menu-all-pages-container .menu li a {
  transition: color var(--ease), padding-left var(--ease);
}

.footer-wrapper .menu-all-pages-container .menu li a:hover {
  padding-left: 4px;
}

@media (max-width: 767px) {
  .footer-wrapper .widget-area .row > div {
    margin-bottom: var(--space-4);
    text-align: left;
  }

  .footer-wrapper .widget-area .row > div:last-child {
    margin-bottom: 0;
  }
}

/*-----------------------------------------------------------------
  Accessibility helpers
-----------------------------------------------------------------*/
.icon-btn,
.community-follow-card_icon {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 575px) {
  body {
    font-size: 15px;
  }
}
