/* =========================
   GLOBAL STYLES
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #222;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 80px 8%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* =========================
   HEADER
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  color: #003366;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #d4af37;
}

/* =========================
   HERO — Full width banner
========================= */

.hero {
  position: relative;
  width: 100%;
  /* Push below fixed header */
  margin-top: 99px;
  overflow: hidden;
  background: #e8edf5;
  padding: 0;
  line-height: 0;
}

/* Banner fills full width, shows complete image */
.hero-banner {
  width: 100%;
  display: block;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  animation: bannerZoom 1.4s ease forwards;
}

/* Overlay hidden — banner already has its own design */
.hero-overlay {
  display: none;
}

/* Hero text hidden — banner image already has text baked in */
.hero-content {
  display: none;
}


/* =========================
   BUTTON
========================= */

.btn {
  display: inline-block;
  background: #d4af37;
  color: #003366;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.4s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 40px;
  color: #003366;
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
}

/* =========================
   COURSES
========================= */

.courses {
  background: #f7fbff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.course-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border-top: 5px solid #d4af37;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.course-card h3 {
  color: #003366;
  margin-bottom: 15px;
}

.course-card p {
  color: #555;
  line-height: 1.7;
}

/* =========================
   CONTACT
========================= */

.contact {
  background: linear-gradient(135deg, #003366, #0055aa);
  color: #fff;
}

.contact .section-title h2,
.contact .section-title p {
  color: #fff;
}

.contact-box {
  max-width: 700px;
  margin: auto;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

.contact button {
  background: #d4af37;
  color: #003366;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: 0.3s;
}

.contact button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #001f3f;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 900px;
  margin: auto;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #d4af37;
}

/* Legal toggle buttons */
.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
}

.footer-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  width: auto;
  transition: 0.3s;
}

.footer-toggle:hover {
  border-color: #d4af37;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
}

/* Legal content panels */
.footer-legal-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 22px 25px;
  margin: 12px auto;
  max-width: 820px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal-panel h4 {
  color: #d4af37;
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-panel p {
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 25px;
  font-size: 12px;
  opacity: 0.45;
}

/* =========================
   ANIMATIONS
========================= */

/* --- KEYFRAMES --- */

@keyframes bannerZoom {
  from { transform: scale(1.06); opacity: 0.6; }
  to   { transform: scale(1);    opacity: 1;   }
}

@keyframes headerDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bold card entrance — zoom up with overshoot */
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(0.75) translateY(50px); }
  70%  { opacity: 1; transform: scale(1.04) translateY(-6px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* Pulse glow on CTA button */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(212,175,55,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(212,175,55,0);   }
  100% { box-shadow: 0 0 0 0   rgba(212,175,55,0);    }
}

/* Gold shimmer sweep on card top border */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* --- ON-LOAD ANIMATIONS --- */

/* Banner zoom */
.hero-banner img {
  animation: bannerZoom 1.5s ease forwards;
}

/* Header drops in */
.header {
  animation: headerDrop 0.6s ease forwards;
}

/* CTA button pulse */
.btn {
  animation: pulse 2.5s ease-in-out infinite;
}

/* --- SCROLL-TRIGGERED BASE STATE --- */
/* Elements start hidden; JS adds .animate class to trigger */

.section-title,
.contact-box,
.course-card {
  opacity: 0;
  transform: translateY(35px);
  transition: none;
}

/* --- SECTION TITLE: subtle fade up --- */
.section-title.animate {
  animation: fadeUp 0.7s ease forwards;
}

/* --- COURSE CARDS: bold pop with stagger --- */
.course-card.animate {
  animation: cardPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.course-card.animate:nth-child(1) { animation-delay: 0s;    }
.course-card.animate:nth-child(2) { animation-delay: 0.12s; }
.course-card.animate:nth-child(3) { animation-delay: 0.24s; }
.course-card.animate:nth-child(4) { animation-delay: 0.36s; }
.course-card.animate:nth-child(5) { animation-delay: 0.48s; }

/* Gold shimmer on card top border on hover */
.course-card {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #d4af37 0%,
    #fff6c0 40%,
    #d4af37 60%,
    #d4af37 100%
  );
  background-size: 200% auto;
  border-radius: 20px 20px 0 0;
  animation: shimmer 2.5s linear infinite;
}

/* Card icon bounce on hover */
.course-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 45px rgba(0, 51, 102, 0.15);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease;
}

/* --- CONTACT BOX: subtle fade up --- */
.contact-box.animate {
  animation: fadeUp 0.8s ease 0.15s forwards;
}

/* Footer fade in */
footer {
  animation: fadeIn 1s ease both;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

  .hero {
    margin-top: 85px;
  }

  nav ul {
    gap: 15px;
  }

}

@media (max-width: 768px) {

  .header .container {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .logo img {
    height: 55px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Header shrinks on mobile: 55px logo + 10px*2 padding = 75px */
  .hero {
    margin-top: 75px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .footer-legal-panel {
    padding: 16px;
  }

} /* END @media (max-width: 768px) */