/* Global Styles */
:root {
  --primary: #005293;
  --secondary: #ff9900;
  --dark: #222;
  --light: #f9f9f9;
  --gray: #777;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
      background: url('assets/images/chiu-teng-bg.jpeg') no-repeat center center fixed;
    background-size: cover;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
}

.primary-btn {
  background: var(--primary);
  color: white;
  margin-right: 15px;
}

.secondary-btn {
  background: var(--secondary);
  color: white;
}

.small-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.outline-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.submit-btn {
  background: var(--secondary);
  color: white;
  width: 100%;
  padding: 15px;
  border: none;
}

.dark-bg {
  background-color: var(--dark-bg);
  color: white;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 82, 147, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
  list-style: none;
}

.nav-links a {
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-links a i {
  margin-right: 8px;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active {
  color: var(--secondary);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Home Section */
#home {
  height: 100vh;
  background: url('../assets/images/training-bg.jpg') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.home-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.home-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-buttons {
  margin-top: 30px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-title {
  color: var(--gray);
}

/* Courses Section */
.courses-tabs {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: gray;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 25px;
}

/* Enrollment Section */
.enrollment-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.enrollment-form-container {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.enrollment-info {
  flex: 1;
  padding: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.benefits-list {
  margin: 20px 0;
}

.benefits-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.benefits-list i {
  margin-right: 10px;
  color: var(--secondary);
}

.pricing-info {
  background: rgba(0, 82, 147, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

/* Employers Section */
.employers-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.employers-info {
  flex: 1;
}

.employers-form {
  flex: 1;
  background: gray;
  padding: 30px;
  border-radius: 8px;
}

.employer-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.benefit-item {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.fee-notice {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
  text-align: center;
}

/* Gallery Section */
.gallery-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 10px 10px 0;
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 82, 147, 0.9);
  color: white;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  bottom: 0;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item i {
  margin-right: 15px;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 3px;
}

.social-links {
  display: flex;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.contact-map {
  width: 100%;
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-links,
.footer-courses,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links li,
.footer-courses li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-courses a {
  transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-courses a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--secondary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .enrollment-container,
  .employers-container,
  .contact-container {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-map {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: all 0.5s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 0 0 30px 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active .line2 {
    opacity: 0;
  }
  
  .burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
  }
  
  .primary-btn, .secondary-btn {
    margin: 10px 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}