/* =====================================================
   SKILLTEC — apply.css  (responsive + UX upgrade)
   ===================================================== */

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body { background: #f3f3f3; color: #222; }
a    { text-decoration: none; cursor: pointer; }

/* ── BUTTON ANIMATIONS ── */
@keyframes bounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-10px) scale(1.05); }
  50%  { transform: translateY(0) scale(0.98); }
  70%  { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
button:active { animation: bounce 0.4s; }
.bounce       { animation: bounce 0.5s ease; }

/* ── FADE-UP SCROLL ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }


/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  position: absolute;
  top: 25px; left: 0; right: 0;
  margin: 0 80px;
  height: 100px;
  background: white;
  color: #2FC0EE;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 100;
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.navbar-collapse { background: white; padding: 10px; border-radius: 0 0 20px 20px; }
nav ul   { display: flex; gap: 40px; list-style: none; font-weight: 500; }
nav li   { color: #38a8c8; cursor: pointer; transition: 0.2s; }
nav li:hover { color: #2f545f; transform: translateY(-3px); }
.active  { color: #ff8c38 !important; }
nav      { position: relative; z-index: 1000; }
.navbar .nav-link       { color: #38a8c8 !important; font-weight: 500; }
.navbar .nav-link:hover { color: #2f545f !important; }

/* Apply Now nav button */
.btn-apply-nav {
  display: inline-block;
  background: #FB963E;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 10px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-apply-nav:hover { background: #e07e2a; color: #fff !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown a { color: #38a8c8; font-size: 15px; display: block; text-decoration: none; }
.dropdown-menu {
  position: absolute; top: 120%; right: 0;
  background: white; padding: 15px 0; min-width: 180px;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown-menu li         { padding: 10px 20px; }
.dropdown-menu li a       { color: #062C33; font-size: 15px; display: block; }
.dropdown-menu li:hover   { background: #f5f5f5; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }


/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 80vh;
  background: url(images/hero\ pic.png) center/cover no-repeat;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* subtle dark overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(6,32,43,0.40);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.hero-text {
  position: relative; z-index: 1;
  margin-left: 80px;
  color: white;
  max-width: 560px;
  padding-top: 120px; /* clears navbar */
}

.hero-text h1 {
  font-family: 'Abril Fatface';
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.1;
}
.hero-text span { color: #f28c3c; }
.hero-text p    { margin-top: 14px; font-size: clamp(14px, 1.6vw, 18px); opacity: 0.9; }


/* ══════════════════════════════════════════════════
   INTRO  — logo + full name side by side
══════════════════════════════════════════════════ */
.intro {
  margin: 80px auto;
  padding: 0 80px;
  text-align: center;
}

/* FIX: logo sits neatly beside the heading */
.intro-container {
  display: flex;
  flex-direction: row;          /* side-by-side on all screens ≥ 480px */
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.intro-container img {
  width: 100px;                 /* big enough to be visible, not overwhelming */
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.intro h2 {
  color: #2ea6cc;
  font-size: clamp(28px, 4vw, 52px);
  font-family: 'Abril Fatface';
  line-height: 1.1;
  text-align: left;
}

.intro p {
  margin-top: 14px;
  font-size: 15px;
  color: #555;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* ══════════════════════════════════════════════════
   COURSES (Online section)
══════════════════════════════════════════════════ */
.courses {
  background: #2ea6cc;
  padding: 70px 80px;
  text-align: center;
}

.courses h2 {
  margin-bottom: 36px;
  color: #fff;
  font-family: 'Abril Fatface';
  font-size: clamp(30px, 4vw, 48px);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}

.course-card {
  color: #06202B;
  background: white;
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;
  border-bottom-right-radius: 70px;
  border-bottom-left-radius: 12px;
  padding: 0 0 16px;
  max-width: 300px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-right-radius: 70px;
  border-top-left-radius: 70px;
  display: block;
}

.course-card p {
  font-size: 14px;
  padding: 14px 16px 0;
  line-height: 1.5;
  color: #333;
}


/* ══════════════════════════════════════════════════
   APPLY SECTION — courses list
══════════════════════════════════════════════════ */
.apply-section {
  margin: 70px auto;
  padding: 0 80px;
}

.apply-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: clamp(22px, 3vw, 32px);
  color: #06202B;
}

.apply-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.apply-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* icon circle */
.apply-item i {
  font-size: 28px;
  color: #2ea6cc;
  background: rgba(46,166,204,0.10);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
.apply-item:hover i { background: rgba(46,166,204,0.22); }

.apply-item p {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color: #333;
}
.apply-item p b { color: #06202B; }

/* Enquire button */
.view_btn,
.apply-item button {
  background: #f28c3c;
  border: 2px solid #f28c3c;
  padding: 10px 22px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}
.view_btn:hover,
.apply-item button:hover {
  background: white;
  color: #f28c3c;
}
.view_btn a           { color: white; text-decoration: none; }
.view_btn:hover a     { color: #f28c3c; }


/* ══════════════════════════════════════════════════
   TUTOR SECTION
══════════════════════════════════════════════════ */
.tutor {
  background: linear-gradient(135deg, #2ea6cc 0%, #1a7a9e 100%);
  padding: 70px 80px;
}

.tutor h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Abril Fatface';
  font-size: clamp(28px, 4vw, 46px);
  color: white;
}

.tutor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.tutor img {
  width: 100%;
  height: auto;
  border: 4px solid rgba(255,255,255,0.8);
  border-top-left-radius: 70px;
  border-bottom-right-radius: 70px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.20);
  transition: transform 0.4s;
}
.tutor img:hover { transform: scale(1.02); }

.tutor > .tutor-grid > div { color: white; }

.tutor p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: left;
  color: rgba(255,255,255,0.92);
}

.tutor button {
  background: #f28c3c;
  border: 2px solid #f28c3c;
  padding: 14px 32px;
  color: white;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.tutor button:hover {
  background: white;
  color: #f28c3c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  margin-top: 80px;
  background: #06202B;
  color: white;
  padding: 70px 80px;
}
footer h3 { margin-bottom: 16px; font-size: 18px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.social-icons { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #247a9f;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; transition: 0.3s; text-decoration: none;
}
.social-icons a:hover { background: #f28c3c; transform: translateY(-3px); }

.footlink,
.footer-links ul a { color: white; text-decoration: none; display: block; transition: color 0.2s; }
.footlink:hover,
.footer-links ul a:hover { color: #f28c3c; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-contact p  { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }

/* Newsletter */
.newsletter { margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.newsletter h3 { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  max-width: 700px; margin: 0 auto;
}
.newsletter-form input {
  padding: 12px 16px; border-radius: 6px; border: none;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  flex: 1; min-width: 180px; outline: none;
  transition: box-shadow 0.2s;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(251,150,62,0.4); }
.newsletter-form button {
  padding: 12px 28px; background: #FB963E; color: white;
  border: none; border-radius: 6px; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: background 0.2s;
}
.newsletter-form button:hover { background: #e07e2a; }


/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════ */

/* ── TABLET (≤ 991px) ── */
@media (max-width: 991px) {

  /* navbar */
  .navbar { margin: 0 20px; height: auto; min-height: 70px; top: 15px; border-radius: 20px; padding: 8px 0; }
  .nav-inner { padding: 0 20px; flex-wrap: wrap; }
  .logo img  { width: 130px !important; height: auto !important; }
  .btn-apply-nav { margin: 6px 0 4px 0; }

  /* hero */
  .hero { min-height: 60vh; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
  .hero::before { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
  .hero-text { margin-left: 30px; padding-top: 100px; }

  /* intro */
  .intro { padding: 0 30px; margin: 60px auto; }
  .intro-container { gap: 20px; }
  .intro-container img { width: 80px; }
  .intro h2 { font-size: 36px; text-align: center; }
  .intro p   { font-size: 14px; }

  /* courses */
  .courses { padding: 50px 30px; }
  .course-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-card { max-width: 340px; }

  /* apply */
  .apply-section { padding: 0 20px; }
  .apply-item { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .apply-item p { text-align: center; }
  .apply-item i { margin: 0 auto; }

  /* tutor */
  .tutor { padding: 50px 30px; }
  .tutor-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .tutor p { text-align: center; }
  .tutor button { margin: 0 auto; display: block; }

  /* footer */
  footer { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-about { text-align: center; }
  .footer-links, .footer-contact, .newsletter { text-align: center; }
  .social-icons { justify-content: center; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; min-width: unset; }
}

/* ── MOBILE (≤ 575px) ── */
@media (max-width: 575px) {

  /* navbar */
  .navbar { margin: 0 12px; border-radius: 16px; }
  .nav-inner { padding: 0 14px; }
  .logo img  { width: 110px !important; }

  /* hero */
  .hero-text { margin-left: 20px; margin-right: 20px; padding-top: 90px; }
  .hero-text h1 { font-size: 36px; }

  /* intro */
  .intro { padding: 0 16px; margin: 50px auto; }
  .intro-container { flex-direction: column; gap: 14px; }
  .intro-container img { width: 70px; }
  .intro h2 { font-size: 28px; text-align: center; }

  /* courses */
  .courses { padding: 40px 16px; }
  .course-card { max-width: 300px; }

  /* apply */
  .apply-section { padding: 0 16px; margin: 50px auto; }
  .apply-item { padding: 20px 16px; }

  /* tutor */
  .tutor { padding: 40px 16px; }
  .tutor-grid { gap: 24px; }

  /* footer */
  footer { padding: 40px 16px; }
  .footer-grid { gap: 30px; }
}
