@charset "utf-8";

/* --------------------------------------------------
   0. Brand Color Variables
-------------------------------------------------- */
:root {
  --gold: #ce9029;
  --blue: #02334e;
  --dark: #0b1b2b;
  --light: #f9f9f9;
  --text: #333;
}

/* --------------------------------------------------
   1. Reset & Base Styles
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

/* --------------------------------------------------
   2. Links
-------------------------------------------------- */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   3. Layout Containers
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------------------------------
   4. Header & Navigation
-------------------------------------------------- */
header {
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo a {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: bold;
}
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
header nav a {
  color: #fff;
  font-weight: 500;
}
header nav a:hover,
header nav a.active {
  color: var(--gold);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  header nav ul {
    display: none;
    flex-direction: column;
    background: var(--blue);
    position: absolute;
    top: 100%;
    right: 1rem;
    padding: 1rem;
    border-radius: 4px;
  }
  header nav ul.active {
    display: flex;
  }
  header nav ul .nav-close {
    margin-bottom: 1rem;
    text-align: right;
  }
}

/* --------------------------------------------------
   5. Hero Sections
-------------------------------------------------- */
/* Main hero (homepage) */
.hero {
  position: relative;
  background: url('../images/hero-placeholder.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);   /* dark overlay at 50% opacity */
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Smaller hero (e.g. course.php) */
.hero-small {
  position: relative;
  background: url('../images/hero-course.jpg') center/cover no-repeat;
  height: 40vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-small::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-small .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------------------------------
   6. Buttons & Action Buttons
   (Stack on Mobile, Side-by-Side on Wider)
-------------------------------------------------- */
.btn,
.action-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
  text-align: center;
  margin: 0.5rem 0;          /* vertical gap on mobile */
  width: 100%;               /* full width on mobile */
  max-width: 300px;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.action-btn {
  background: var(--blue);
  color: #fff;
  border: none;
}

.btn:hover,
.action-btn:hover {
  opacity: 0.9;
}

/* On tablets and above, make buttons inline and side-by-side */
@media (min-width: 600px) {
  .hero .btn,
  .form-container button {
    display: inline-block;
    width: auto;
    margin: 0 0.5rem 0.5rem 0;
  }
}

/* --------------------------------------------------
   7. Section Titles
-------------------------------------------------- */
h2.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--blue);
}

/* --------------------------------------------------
   8. Course Cards
-------------------------------------------------- */
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  color: var(--blue);
}
.course-card p {
  flex-grow: 1;
  margin: 0 1rem 1rem;
  color: #555;
  line-height: 1.4;
}
.course-card .btn-outline {
  margin: 0 1rem 1rem;
}

/* --------------------------------------------------
   9. Trainer Intro
-------------------------------------------------- */
.trainer-intro .trainer-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.trainer-intro img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.trainer-intro p {
  line-height: 1.7;
  color: #333;
}

/* --------------------------------------------------
   10. Testimonials
-------------------------------------------------- */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1.5rem;
}
.testimonial-card p:first-child {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}
.testimonial-card p:last-child {
  text-align: right;
  font-weight: bold;
  color: var(--blue);
}

/* --------------------------------------------------
   11. Call To Action Section (below testimonials)
   (We’ll also re-use this for the early-bird banner)
-------------------------------------------------- */
.cta-section {
  background: #fffaf0;
  text-align: center;
  padding: 4rem 0;
  margin-top: 1rem;          /* push it below hero/buttons */
}
.cta-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--blue);
}
.cta-section p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* If you need a slimmer CTA (like the early-bird at very top) */
.cta-section.small {
  padding: 1rem 0;
  margin-top: 1rem;
}
.cta-section.small .container {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* Early-bird link inside CTA */
.cta-section a {
  color: var(--blue);
  font-weight: bold;
  text-decoration: underline;
  margin-left: 0.25rem;
}

/* --------------------------------------------------
   12. Forms (Sign Up, Login, Enrollment)
-------------------------------------------------- */
.form-container {
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.form-container h1 {
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-size: 1.75rem;
}
.form-container .form-group {
  margin-bottom: 1.25rem;
}
.form-container label span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-container input,
.form-container select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.form-container button {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-container button:hover {
  opacity: 0.9;
}

/* --------------------------------------------------
   13. Feedback Messages
-------------------------------------------------- */
.errors {
  background: #FFE6E6;
  color: #B30000;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.errors p {
  margin: 0.5rem 0;
}
.success {
  background: #E6FFE6;
  color: #006600;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* --------------------------------------------------
   14. Tables (Admin & Dashboard)
-------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
th, td {
  padding: 0.75rem;
  border: 1px solid #DDD;
  text-align: left;
}
th {
  background: var(--blue);
  color: #FFF;
}

/* --------------------------------------------------
   15. Footer
-------------------------------------------------- */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 2rem 0 1rem;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer .footer-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
footer .footer-info h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}
footer .footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------
   16. Responsive Overrides
-------------------------------------------------- */
@media (max-width: 600px) {
  h2.section-title {
    font-size: 1.5rem;
  }
  .course-cards,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
  .trainer-intro .trainer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 400px) {
  .form-container {
    padding: 1rem;
  }
}
