html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Body uses flex so footer can sit at bottom,
   but still scrolls normally when content is long */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content area (we'll wrap hero + courses in this) */
.page-main {
  flex: 1;
}


html {
  scroll-behavior: smooth;
}

/* main content should stretch, pushing footer to bottom */
.page-main {
  flex: 1;
}


body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;     /* optional */
}



/* Hide elements until needed */
.hidden {
  display: none;
}

/* Optional: highlight selected item */
.courses-dropdown li a.active {
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 600;
}


    /* ===============================
   NAVBAR / HEADER
   (styles used by header.html)
================================= */
.navbar {
  background-color: #fff;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo img {
  height: 40px;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo a img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #13277e;
}

.btn-signup {
  background: linear-gradient(90deg, #fff9d9, #ffe78b);
  color: #13277e !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.btn-signup:hover {
  background: linear-gradient(90deg, #fff2b0, #ffd46b);
  color: #000 !important;
}

/* Header Styling */
.main-header {
  background-color: #ffffff;
  padding: 15px 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 94px;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo img {
  height: 46px;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 50px;
  margin-top: 14px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #6c6c6c;
  transition: color 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
}

/* Generic button base (for header, if needed) */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  height: 52px;
  width: 150px;
}

.main-nav .btn {
  margin-left: 30px;
}

/* Dropdown Styling */
.nav-links li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  z-index: 999;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #6c6c6c;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #13277e;
  color: #fff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

 /* ===============================
   HERO SECTION 
================================= */
    .hero2 {
      display: flex;
      align-items: center;
      padding: 2px 0px;
      gap: 40px;
    }

    .hero2-left {
      flex: 1.2;
    }

    .hero2-left h1 {
      font-size: 2.7rem;
      color: #13277E;
      margin-bottom: 20px;
      line-height: 1.3;
    }

    .hero2-left p {
      color: #333;
      margin-bottom: 30px;
      font-size: 1.1rem;
    }

    .hero2-left .join-btn {
      padding: 15px 30px;
      background: #13277E;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: 0.3s;
    }

    .hero2-left .join-btn:hover {
      background: #129c6f;
    }

    .hero2 img {
      flex: 1;
      width: 100%;
      height: 400px; /* reduce height */
      border-radius: 10px;
      object-fit: cover;
    }

    /* RESPONSIVE */   /* RESPONSIVE */   /* RESPONSIVE */
    @media (max-width: 900px) {
  .hero2 {
    flex-direction: column;
    text-align: center;
    padding: 24px 5vw;
    gap: 24px;
  }

  .hero2-left h1 {
    font-size: 2rem;
  }

  .hero2 img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .navbar {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .courses-section {
    padding: 32px 4vw 48px;
  }

  .courses-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-filter-group {
    width: 100%;
  }

  .courses-filter-pill {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 16px;
  }

  .courses-dropdown {
    position: static;
    width: 100%;
    margin-top: 4px;
  }

  .courses-dropdown ul {
    width: 100%;
  }
}


    /* ===========================
   GOOGLE CLOUD COURSES SECTION
=========================== */

.courses-section {
  padding: 40px 5vw 60px;
  background-color: #f5f7fa;
}

.courses-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filters row */
.courses-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* Filter group = pill + dropdown */
.courses-filter-group {
  position: relative;
}

/* Pill button */
.courses-filter-pill {
    font-size: 18px;
    padding: 12px 24px;
    font-weight: 600;
    
    background: transparent;               /* transparent pill */
    color: #13277E;                         /* deep navy text */
    border: 2px solid #13277E;              /* navy border */
    border-radius: 999px;

    transition: 0.25s ease;
}



.courses-filter-pill span.chevron {
  font-size: 11px;
  color: #6b7280;
}

.courses-filter-pill.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
  color: #2563eb;
}

/* Dropdown */
.courses-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  z-index: 30;
  padding: 6px 0;
}

.courses-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.courses-dropdown li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.courses-dropdown li a:hover {
  background: #eef2ff;
  color: #1d4ed8;
}

/* Show dropdown on hover */
.courses-filter-group:hover .courses-dropdown {
  display: block;
}

/* ====== MULTI-LEVEL DROPDOWN FOR CLASS ====== */

/* Level 1 items (Science / Commercial / Arts) */
.courses-dropdown .level-1 > li {
  position: relative; /* so sub-menu can position from here */
}

/* Items that have a submenu */
.courses-dropdown li.has-sub > a {
  display: flex;                 /* override block for these only */
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Little arrow on the right */
.courses-dropdown .submenu-arrow i {
  font-size: 11px;
  color: #6b7280;
}

/* Level 2 submenu (SSS 1–3) */
.courses-dropdown .sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;                    /* open to the right */
  min-width: 180px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  padding: 6px 0;
  z-index: 40;                   /* above the parent dropdown */
}

/* Links inside SSS submenu */
.courses-dropdown .sub-menu li a {
  padding: 8px 14px;
  font-size: 13px;
}

/* Show SSS submenu when hovering Science / Commercial / Arts */
.courses-dropdown .has-sub:hover > .sub-menu {
  display: block;
}


/* Active filters line */
.courses-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.courses-active-filters span.label {
  color: #6b7280;
}

.courses-active-filters .active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e5efff;
  border-radius: 999px;
  font-size: 12px;
  color: #1d4ed8;
}

.courses-active-filters .active-chip i {
  font-size: 11px;
}

.courses-active-filters .clear-all {
  margin-left: 8px;
  font-size: 12px;
  color: #2563eb;
}

/* Make the first pill (High School) bigger */
.courses-filters-row .courses-filter-group:first-child .courses-filter-pill {
  font-size: 18px;
  padding: 12px 20px;
  font-weight: 600;
}


/* Cards grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  /* On very small screens, make dropdown go full width a bit more nicely */
  .courses-dropdown {
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  .courses-track .course-card {
    flex: 0 0 80vw;   /* each card ~80% of viewport width */
  }
}


/* Course card */
.course-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.course-card .card-top-label {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  padding: 8px 12px 0;
}

/* Banner + logo */
.course-card .card-banner {
  margin-top: 4px;
  position: relative;
  height: 110px;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #f3f4ff 30%,
    #e0ecff 60%,
    #fef9c3 100%
  );
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fake pattern */
.course-card .card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(148, 163, 184, 0.4),
    rgba(148, 163, 184, 0.4) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

.course-card .card-logo {
  position: relative;
  background: #ffffff;
  border-radius: 3px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-card .card-logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4285f4; /* Google blue */
}

.course-card .card-logo-text {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.course-card .card-body {
  padding: 12px 12px 10px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.course-card .course-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}

.course-card .course-provider {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
}

.course-card .card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.course-card .card-footer-left,
.course-card .card-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-card .card-footer i {
  font-size: 12px;
}

/* ==== Horizontal auto-scrolling carousel ==== */
.courses-carousel {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

/* Track that slides left continuously */
.courses-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  /* the animation will be attached from JS so we can restart it */
}

/* Make cards suitable for a horizontal row */
.courses-track .course-card {
  flex: 0 0 260px;          /* fixed width card */
}

/* Smooth sliding animation */
@keyframes slide-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Clickable card style */
.clickable-topic {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.clickable-topic:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===============================
   NEWSLETTER FOOTER
================================= */
.qei-newsletter {
  position: relative;
  overflow: clip;
  padding: 56px 16px 64px;
  color: #eaf0ff;
  isolation: isolate;
}

/* Gradient background */
.qei-newsletter-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      1100px 600px at 85% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      900px 500px at 15% 30%,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(180deg, #4b465a 0%, #0a1d78 60%, #061e64 100%);
  box-shadow: inset 0 40px 60px rgba(0, 0, 0, 0.25);
}

.qei-newsletter-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* Heading */
.qei-newsletter-heading {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.4rem + 1.2vw, 2rem);
  margin: 8px 0 22px;
  letter-spacing: 0.2px;
}

/* Form row */
.qei-newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}

.qei-newsletter-form input {
  width: min(600px, 88vw);
  flex: 1 1 420px;
  background: transparent;
  color: #eaf0ff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.qei-newsletter-form input::placeholder {
  color: rgba(234, 240, 255, 0.8);
}

.qei-newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.qei-newsletter-form button {
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: #ffbd66;
  color: #1a2a6b;
  box-shadow: 0 8px 20px rgba(255, 189, 102, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.qei-newsletter-form button:hover {
  box-shadow: 0 10px 28px rgba(255, 189, 102, 0.45);
  filter: brightness(1.05);
}

.qei-newsletter-form button:active {
  transform: translateY(1px);
}

/* Footer links */
.qei-newsletter-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 14px;
  flex-wrap: wrap;
  font-size: 1.02rem;
}

.qei-newsletter-links a {
  color: #eaf0ff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.qei-newsletter-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.qei-newsletter-sep {
  opacity: 0.55;
}

.qei-newsletter-copy {
  margin: 6px 0 0;
  font-size: 1.02rem;
  opacity: 0.9;
}

/* accessibility helper (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  .qei-newsletter-form {
    gap: 10px;
  }

  .qei-newsletter-form button {
    width: 100%;
  }
}


/* ===============================
   RTECH FLOATING CHATBOT
================================= */
.rtech-chatbot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

/* Round Floating Button */
.chatbot-toggle {
  width: 65px;
  height: 65px;
  background: #ffd500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
}

.chatbot-toggle img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

/* Chat Window */
.chatbot-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  display: none;
  overflow: hidden;
  flex-direction: column;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.chatbot-header {
  background-color: #ffd500;
  color: #000;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.chatbot-header .bot-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chatbot-header button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

/* Chat Area */
.chatbot-content {
  padding: 15px;
  height: 250px;
  overflow-y: auto;
  background: #f9f9f9;
}

.bot-msg,
.user-msg {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot-msg {
  background: #f1f1f1;
  align-self: flex-start;
}

.user-msg {
  background: #ffd500;
  color: #000;
  align-self: flex-end;
  margin-left: auto;
}

/* Input Area */
.chatbot-input {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
  background: #fff;
}

.chatbot-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
}

.chatbot-input button {
  background: #ffd500;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

@media (max-width: 768px) {
  .rtech-chatbot {
      position: fixed !important;
      bottom: 10px !important;
      right: 10px !important;
      pointer-events: none;   /* prevents scroll pushing */
  }

  .rtech-chatbot * {
      pointer-events: auto;   /* keeps button clickable */
  }
}

@media (max-width: 768px) {
  body {
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
  }
}

/* FIX MOBILE WHITE SPACE UNDER FOOTER */
body, html {
    margin: 0;
    padding: 0;
    height: auto !important;
    overflow-x: hidden;
}

body > section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ===========================
   MOBILE FIXES
   =========================== */
@media (max-width: 768px) {

  /* Hero: stack on small screens */
  .hero2 {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .hero2-left h1 {
    font-size: 2rem;
  }

  .hero2-left p {
    font-size: 0.95rem;
  }

  .hero2 img {
    height: auto;
    max-height: 260px;
    width: 100%;
  }

  /* Filters row: wrap nicely */
  .courses-wrapper {
    padding: 0 8px;
  }

  .courses-filters-row {
    gap: 8px;
  }

  .courses-filter-group {
    flex: 1 1 48%;
  }

  .courses-filter-pill {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 16px;
  }

  /* Carousel cards a bit smaller on mobile */
  .courses-track .course-card {
    flex: 0 0 220px;
  }
}

