/* ============================================================
   EduGlobal — Main Stylesheet
   ============================================================ */

:root {
  --primary: #0d6efd;
  --primary-soft: rgba(13, 110, 253, 0.1);
  --success-soft: rgba(25, 135, 84, 0.1);
  --warning-soft: rgba(255, 193, 7, 0.1);
  --danger-soft: rgba(220, 53, 69, 0.1);
  --info-soft: rgba(13, 202, 240, 0.1);
  --secondary-soft: rgba(108, 117, 125, 0.1);
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: #212529;
  overflow-x: hidden;
}

/* ── Soft Color Utilities ── */
.bg-primary-soft   { background-color: var(--primary-soft) !important; }
.bg-success-soft   { background-color: var(--success-soft) !important; }
.bg-warning-soft   { background-color: var(--warning-soft) !important; }
.bg-danger-soft    { background-color: var(--danger-soft) !important; }
.bg-info-soft      { background-color: var(--info-soft) !important; }
.bg-secondary-soft { background-color: var(--secondary-soft) !important; }

/* ── Preloader ── */
#preloader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s;
  animation: hidePreloader 0s 3s forwards;
}
@keyframes hidePreloader {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
#preloader.hidden { opacity: 0; pointer-events: none; visibility: hidden; }

/* ── Navbar ── */
.navbar {
  transition: box-shadow .3s;
  z-index: 1030;
}
.navbar-brand { font-size: 1.25rem; }
.nav-link {
  font-weight: 500;
  color: #444 !important;
  padding: .5rem .75rem !important;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary) !important;
}
.dropdown-menu {
  border-radius: 12px;
  padding: .5rem;
  min-width: 220px;
}
.dropdown-item {
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .9rem;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--primary-soft); color: var(--primary); }

/* ── Hero ── */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section .container { position: relative; z-index: 2; }
.min-vh-80 { min-height: 80vh; }
.text-gradient { background: linear-gradient(135deg, #fff, rgba(255,255,255,.7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Cards ── */
.hover-lift { transition: transform .25s, box-shadow .25s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1) !important; }

/* ── Page Header ── */
.page-header { padding: 3rem 0; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Swiper ── */
.swiper { padding-bottom: 2.5rem !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ── Country Card ── */
.country-card .card { transition: all .25s; }
.country-card:hover .card { border-color: var(--primary) !important; }

/* ── Counter ── */
.counter-number { font-size: 2.5rem; }

/* ── Testimonial ── */
.testimonial-card { height: 100%; }

/* ── Blog ── */
.blog-content { line-height: 1.9; font-size: 1.05rem; }
.blog-content p { margin-bottom: 1.25rem; }

/* ── Footer ── */
.footer { background: #1a1a2e !important; }
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  display: block;
  padding: .2rem 0;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact li {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px; height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 1000;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13,110,253,.3);
  z-index: 999;
  transition: transform .2s;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-2px); }

/* ── Pagination ── */
.page-link { border-radius: 8px !important; margin: 0 2px; border: none; color: var(--primary); }
.page-item.active .page-link { background: var(--primary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .display-4 { font-size: 2rem; }
  .counter-number { font-size: 1.8rem; }
}

/* ── Hero Swiper ── */
.heroSwiper {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}
.heroSwiper .swiper-slide {
  min-height: 520px;
}
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  display: none !important;
}
.heroSwiper .swiper-pagination {
  bottom: 16px;
}
.heroSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: .6;
  width: 10px;
  height: 10px;
}
.heroSwiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}
