/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #003366;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* Hero + Footer shared background */
body.home .hero-wrapper {
  background: url('images/hero-background.png') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 0;
}

/* Hero section */
body.home .hero {
  background: none;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.home .hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
  margin-top: -5vh;
  z-index: 1;
  position: relative;
}

.tagline {
  color: #ffffff;
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Page content for non-home pages */
.page-content {
  margin-top: 3rem;
  padding: 0 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer section */
.footer-section {
  background-color: #003366;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

body.home .footer-section {
  background-color: transparent !important;
  color: white;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: -4rem;
}

/* Footer layout */
.footer-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  flex-wrap: wrap;
  text-align: left;
}

.footer-image-small {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.footer-text {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* CTA button — gray */
.cta-link {
  color: #fff;
  background-color: #666666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
}

.cta-link:hover {
  background-color: #4d4d4d;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-image-inline {
  width: 32px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .footer-inline {
    flex-direction: column;
    text-align: center;
  }

  .footer-text {
    text-align: center;
  }

  .footer-image-small {
    margin-bottom: 0.5rem;
  }

  .tagline {
    font-size: 1.75rem;
  }
}

/* Hamburger menu styles with fade-in animation */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
  }

  #menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
    max-height: none;
    opacity: 1;
    margin-top: 1rem;
  }
}

/* Responsive fix for image-text layout on mobile */
@media (max-width: 768px) {
  section {
    flex-direction: column !important;
    padding: 40px 20px !important;
  }

  section > div {
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  section img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 20px;
  }
}


/* PowerPoint Creator section layout */
.ppt-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #ffffff;
  flex-wrap: wrap;
  gap: 40px;
}

.ppt-image {
  flex: 0 0 300px;
}

.ppt-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.ppt-text {
  flex: 1;
  max-width: 600px;
}

.ppt-text h1 {
  font-size: 32px;
  color: #000000;
  margin-bottom: 20px;
}

.ppt-text p {
  font-size: 16px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Description section */
.ppt-description {
  padding: 40px 20px;
  background-color: #ffffff;
}

.ppt-description p {
  font-size: 16px;
  color: #444444;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .ppt-section {
    flex-direction: column;
    text-align: center;
  }

  .ppt-image {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .ppt-text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .ppt-text h1 {
    font-size: 24px;
  }

  .ppt-text p {
    font-size: 15px;
  }
}