/* ==========================================================================
   WORKER ACADEMY STYLES - MASTER CSS
   Updated: May 12, 2025
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

html {
  scroll-padding-top: 80px;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  border-bottom: 1px solid #eee;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

nav {
  display: flex;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fa6755;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  padding: 30px;
  background-color: white;
}

.hero-text {
  width: 50%;
  font-size: 48px;
  font-weight: bold;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
}

.hero-image {
  width: 50%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
  background-color: white;
  padding: 0 0 40px;
  margin-bottom: 30px;
  overflow: hidden;
}

.about-header {
  background-color: black;
  color: white;
  padding: 30px;
  margin-bottom: 30px;
}

.about-title,
.about-subtitle,
.about-partnership {
  color: white;
  font-family: 'Poppins', sans-serif;
}

.about-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.about-subtitle {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-partnership {
  font-style: italic;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-box {
  margin-bottom: 30px;
  border: 1px solid #eee;
  overflow: hidden;
}

.about-box-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  padding: 15px;
  font-weight: bold;
  color: black;
}

.about-box-content {
  padding: 20px;
  background-color: white;
  line-height: 1.6;
}

.about-box-content p,
.about-box-content li {
  margin-bottom: 15px;
}

.about-box-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.about-cta {
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.about-highlight {
  font-weight: bold;
}

/* About box color variations */
.about-box-red .about-box-heading { background-color: #fa6755; }
.about-box-yellow .about-box-heading { background-color: #ffe175; }
.about-box-green .about-box-heading { background-color: #35b97e; }
.about-box-blue .about-box-heading {
  background-color: #2176ae;
  color: white;
}

/* --------------------------------------------------------------------------
   COURSE SECTIONS
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: 0;
  overflow: hidden; /* Prevents content spillover */
  clear: both;
}

.section-title {
  color: black;
  padding: 20px 30px;
  font-size: 36px;
  font-weight: bold;
  text-align: right;
  border-top: 6px solid black;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  width: 100%;
}

.section-description {
  color: white;
  background-color: black;
  padding: 15px 30px;
  font-size: 14px;
  line-height: 1.5;
}

.courses-container {
  padding: 20px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  clear: both; /* Ensure proper clearing of floats */
}

.course-box {
  border: 1px solid #ddd;
  margin-bottom: 20px;
  height: 100%; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.title {
  padding: 15px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.course-box .content {
  flex-grow: 1;
  padding: 15px;
  background-color: white;
  color: black;
  font-size: 13px;
  line-height: 1.4;
}

.full-list {
  padding: 8px 15px;
  text-align: center;
  font-weight: bold;
  grid-column: 2;
  align-self: start;
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.full-list a {
  color: black;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 5px;
}

.full-list:hover {
  opacity: 0.9;
}

.full-list h3 {
  color: black;
  font-size: 16px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* Course section color variations */
.political-bg { background-color: #fa6755; }
.leadership-bg { background-color: #ffe175; }
.campaign-bg { background-color: #35b97e; }
.digital-bg { background-color: #2176ae; }

.political-title { background-color: #fa6755; color: black; }
.leadership-title { background-color: #ffe175; color: black; }
.campaign-title { background-color: #35b97e; color: black; }
.digital-title { background-color: #2176ae; color: white; }

.digital-bg.full-list a,
.digital-bg.full-list h3 {
  color: white;
}

/* Featured course styling */
.featured-course {
  border: 2px solid #fa6755;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.featured-course:before {
  content: "New";
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #fa6755;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 3px;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   SIGNUP PAGE
   -------------------------------------------------------------------------- */
.signup-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.signup-header {
  margin-bottom: 30px;
  text-align: center;
}

.signup-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.signup-header p {
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}

.form-container {
  background-color: #fa6755;
  padding: 30px;
  border-top: 6px solid black;
}

/* --------------------------------------------------------------------------
   MAUTIC FORM
   -------------------------------------------------------------------------- */
.mauticform_wrapper {
  max-width: 600px;
  margin: 10px auto;
  background-color: #fa6755;
}

.mauticform-row {
  display: block;
  margin-bottom: 20px;
}

.mauticform-label {
  font-size: 1.1em;
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.mauticform-input,
.mauticform-selectbox,
.mauticform-textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #CCC;
  background: #fff;
  border-radius: 4px;
}

.mauticform-errormsg {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}

.mauticform-message {
  margin-bottom: 10px;
  color: green;
}

.mauticform-error {
  margin-bottom: 10px;
  color: red;
}

.mauticform-button-wrapper {
  text-align: center;
}

.mauticform-button {
  background-color: black;
  color: white;
  font-weight: bold;
  padding: 10px 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mauticform-button:hover {
  background-color: #333;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: black;
  color: white;
  width: 100%;
}

footer p {
  width: 60%;
  font-size: 14px;
  line-height: 1.5;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-logo-svg {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.contact-button {
  display: inline-block;
  background-color: #fa6755;
  color: black;
  padding: 12px 25px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 15px;
  border: none;
  transition: background-color 0.2s ease;
}

.contact-button:hover {
  background-color: #e55744;
}

/* --------------------------------------------------------------------------
   THANK YOU PAGE
   -------------------------------------------------------------------------- */
#thank-you .thank-you-box {
  background-color: #35b97e;
  border-top: 6px solid black;
  padding: 40px;
  text-align: center;
  color: white;
  font-family: 'Open Sans', sans-serif;
}

#thank-you .thank-you-box h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  margin-bottom: 30px;
}

#thank-you .thank-you-message {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#thank-you .thank-you-footer {
  font-size: 22px;
  font-weight: bold;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   UTILITIES & HELPER CLASSES
   -------------------------------------------------------------------------- */
/* Nav injection fix */
#nav-container, #footer-container {
  display: contents;
}

/* Animation for hover states */
@keyframes subtle-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE STYLES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 140px;
  }

  body {
    padding: 0 15px;
  }

  /* Header/Nav responsive */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    margin: 10px 0;
  }

  /* Hero responsive */
  .hero {
    flex-direction: column;
    padding: 20px 15px;
  }

  .hero-text,
  .hero-image {
    width: 100%;
    text-align: center;
  }

  .hero-text {
    font-size: 32px;
  }

  /* About section responsive */
  .about-header,
  .section-description {
    padding: 20px;
    font-size: 16px;
  }

  .about-box-content,
  .about-box-heading {
    padding: 15px;
    font-size: 14px;
  }

  /* Course section responsive */
  .courses-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .section-title {
    text-align: left;
    font-size: 28px;
  }

  .full-list {
    grid-column: 1;
  }

  .featured-course:before {
    top: -8px;
    right: -8px;
    font-size: 12px;
    padding: 2px 8px;
  }

  /* Footer responsive - improved version */
  footer {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    background-color: black;
    width: 100%;
  }
  
  footer p {
    width: 100%;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .footer-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 10px;
  }
  
  .footer-logo {
    max-height: 35px;
    width: auto;
    object-fit: contain;
  }
  
  .footer-logo-svg {
    max-height: 45px;
    width: auto;
    object-fit: contain;
  }
  
  /* Fix for logo alignment in mobile footer */
  .footer-logos a {
    display: inline-block;
    text-align: center;
    width: 45%;
    margin: 0;
  }
  
  /* Add more space in mobile footer */
  #footer-container {
    margin-top: 30px;
  }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
  /* Further reduce logo size on very small screens */
  .footer-logo {
    max-height: 30px;
  }
  
  .footer-logo-svg {
    max-height: 40px;
  }
  
  /* Stack logos vertically on very small screens for better readability */
  .footer-logos {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-logos a {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Reduce footer text size */
  footer p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  /* Adjust other elements for very small screens */
  .hero-text {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
}
