/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  padding-top: 80px; /* Adjusted for header height */
}

/* Header */
header {
  background: linear-gradient(90deg, #003366, #005599);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
}

.hamburger {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

.close-btn {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  display: none;
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: background 0.3s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}

.nav-link.active {
  background: rgba(255,255,255,0.3);
  border-radius: 5px;
}

/* Hero Section */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  background-color: #003366; /* Fallback color */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url('https://izzonix.github.io/Learning-academy-template/images/hero-bg.jpg');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Page-Specific Hero Backgrounds */
.hero-home {
  background-image: url('https://izzonix.github.io/Learning-academy-template/images/hero-bg.jpg');
}

.hero-about {
  background-image: url('https://username.github.io/repository-name/images/about-hero.jpg');
  height: 50vh;
}

.hero-registration {
  background-image: url('https://username.github.io/repository-name/images/registration-hero.jpg');
  height: 50vh;
}

.hero-gallery {
  background-image: url('https://username.github.io/repository-name/images/gallery-hero.jpg');
  height: 50vh;
}

.hero-contact {
  background-image: url('https://username.github.io/repository-name/images/contact-hero.jpg');
  height: 50vh;
}

/* CTA */
.cta {
  padding: 80px 20px;
  background: linear-gradient(90deg, #003366, #005599);
  text-align: center;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #003366;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.cta-button:hover {
  background: #002244;
  color: white;
  transform: translateY(-2px);
}

button.cta-button {
  border: none;
  cursor: pointer;
}

button.cta-button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-column h3 {
  margin-bottom: 15px;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-column p {
  color: white;
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 70px; /* Adjusted for smaller header */
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #003366;
    padding: 60px 20px;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .close-btn {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-about h1,
  .hero-registration h1,
  .hero-gallery h1,
  .hero-contact h1 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  }
