/* =====================================================
   ClassIQ custom CSS — Bootstrap version
   Bootstrap now handles: grid/columns, responsive breakpoints,
   buttons' base shape, forms, sticky header, cards, toast
   animation. This file only adds brand-specific styling that
   Bootstrap has no utility for.
   ===================================================== */
/* Override Bootstrap's stepped container widths with our original
   smooth, narrower max-width — matches the original custom-CSS design */
.container {
  max-width: 1200px;
}

:root {
  --bg: #f4f4f4;
  --card: #ececee;
  --lime: #c3f471;
  --text: #2b2b2b;
  --muted: #8a8a8a;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Only Bootstrap's grid replaced our old manual breakpoints — this is the
   one small custom media query left, purely for the courses banner, since
   Bootstrap has no component for that specific decorative shape. */
main {
  overflow-x: hidden;
}

/* ---------- Brand buttons: lime isn't a Bootstrap theme color ---------- */
.btn-lime {
  background-color: var(--lime);
  color: #111;
  border: none;
}
.btn-lime:hover {
  background-color: #b3e85f;
  color: #111;
}

/* ---------- Logo ---------- */
.logo {
  cursor: pointer;
  font-size: 1.1rem;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--lime);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- nav-link: Bootstrap's own button reset already fixes the old
   iOS Safari default-blue-button bug, so no manual colour fix is needed ---------- */
.nav-link {
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.6;
  color: #000;
}
.hero-highlight {
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100%
    5px;
  padding-bottom: 4px;
}
.hero-image {
  background: radial-gradient(circle, #c9f58a 0%, transparent 65%);
  padding: 20px;
  border-radius: 12px;
}

/* ---------- Section titles + logos row ---------- */
.section-title {
  font-size: 1.9rem;
  font-weight: 400;
  color: #444;
}
.logos {
  color: #c2c2c6;
  font-size: 2.2rem;
  font-weight: 600;
}

/* ---------- Category cards ---------- */
.category-card {
  background: var(--card);
  border-radius: 30px;
  padding: 50px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Features image block ---------- */
.features-image {
  background: var(--card);
  border-radius: 12px;
  padding: 50px 20px;
}

/* ---------- Page switching (still custom JS logic, not a Bootstrap job) ---------- */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ---------- Forms ---------- */
.form-card input::placeholder {
  color: #888;
}
.message {
  color: #c62828;
  font-size: 0.85rem;
  min-height: 1.1em;
}
.message.success {
  color: #2e7d32;
}
.switch-text a {
  color: #000;
}

/* ---------- Courses banner (custom shape, no Bootstrap equivalent) ---------- */
.banner {
  position: relative;
  height: 330px;
  padding: 60px 50px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 60%, #c9f58a 0%, transparent 30%),
    var(--card);
}
.banner-title {
  max-width: 55%;
  font-size: 1.6rem;
  font-weight: 600;
}
.banner img {
  position: absolute;
  right: 6%;
  bottom: -20px;
  width: 260px;
}
.courses-title {
  font-size: 1.9rem;
}

/* ---------- Course cards ---------- */
.course-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
}
.course-thumb {
  height: 130px;
  display: grid;
  place-items: center;
  font-size: 3rem;
}

/* ---------- Footer ---------- */
.footer h4 {
  margin-bottom: 10px;
}
.socials a {
  width: 36px;
  height: 36px;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

/* =====================================================
   this css is used for media query fully 
   ===================================================== */
@media (max-width: 576px) {
  .banner {
    height: 220px;
    padding: 30px 24px;
  }
  .banner-title {
    font-size: 1.1rem;
    max-width: 62%;
  }
  .banner img {
    width: 150px;
    bottom: -30px;
  }
}


/* ---------- Header on small phones ---------- */
   @media (max-width: 480px) {
    #authButtons {
      flex-basis: 100%;       /* forces a new row inside the flex-wrap container */
      margin-left: 0 !important; /* overrides Bootstrap's ms-auto utility */
      justify-content: space-between;
      margin-top: 10px;
    }
  
    /* Login + SignUp (logged out): split the row evenly 50/50 */
    #authButtons .btn-equal {
      flex: 1 1 0;
      text-align: center;
    }
  
    /* "Hi, name" + Logout (logged in): NOT equal width — "Hi, name" hugs
       the left at its natural size, Logout hugs the right at its natural
       size, with space-between filling the gap. Logout has no .btn-equal
       class on purpose — giving it flex:1 here would stretch it to fill
       the entire row. */
    #authButtons span {
      font-size: 0.95rem;
    }
  }