/* --- Global Styles & Variables --- */
:root {
  --primary-color: #0D6EFD; /* A modern, vibrant blue */
  --secondary-color: #6C757D;
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-color: #343a40;
  --heading-color: #212529;
  --border-radius: 12px;
  --box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.3s ease;
}

/* --- Base & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--heading-color); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }

/* --- Reusable Components (Buttons, Section Titles) --- */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.section-title p { font-size: 1.1rem; color: var(--secondary-color); max-width: 600px; margin: 0 auto; }
.btn {
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-speed);
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #0b5ed7; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3); }
.btn-secondary { background-color: var(--surface-color); color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; transform: translateY(-3px); }

/* --- Header & Navigation --- */
.main-header { background-color: var(--surface-color); box-shadow: var(--box-shadow); position: sticky; top: 0; z-index: 1000; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.9rem; color: var(--secondary-color); border-bottom: 1px solid #e9ecef; }
.top-bar .fab { color: #25D366; margin-right: 5px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo img { height: 50px; }
.nav-links { list-style: none; display: flex; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--heading-color); font-weight: 500; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; }

/* --- Hero Section --- */
.hero-section { height: 90vh; background: url('images/slider/2a.jpg') no-repeat center center/cover; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; color: #fff; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)); }
.hero-content { position: relative; z-index: 2; animation: fadeIn 1.5s ease-out; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px;color: #fff; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 40px; font-weight: 300; }

/* --- About Section --- */
.about-section { padding: 80px 0; background-color: var(--surface-color); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.about-video { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.about-video video { width: 100%; display: block; }
.about-text h3 { color: var(--primary-color); }

/* --- Courses Section --- */
.courses-section { padding: 80px 0; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.course-card { background-color: var(--surface-color); padding: 30px; text-align: center; border-radius: var(--border-radius); box-shadow: var(--box-shadow); transition: all var(--transition-speed); border-top: 4px solid var(--primary-color); }
.course-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.course-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.course-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.course-card p { font-size: 0.95rem; color: var(--secondary-color); line-height: 1.5; }

/* --- Testimonials Section --- */
.testimonials-section { padding: 80px 0; background: linear-gradient(45deg, var(--primary-color), #0a4ebd); color: #fff; text-align: center; }
.testimonials-section .section-title h2, .testimonials-section .section-title p { color: #fff; }
.testimonials-section .section-title h2::after { background-color: #fff; }
.testimonial-content { max-width: 800px; margin: 0 auto; }
.testimonial-content .fa-quote-left { font-size: 3rem; opacity: 0.5; margin-bottom: 20px; }
.testimonial-text { font-size: 1.2rem; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 600; }

/* --- Registration & Location Sections --- */
.register-section { padding: 80px 0; background-color: var(--surface-color); text-align: center; }
.register-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.location-section { padding: 80px 0 0 0; }
.map-container { width: 100%; border-top: 4px solid var(--primary-color); }

/* --- Footer --- */
.main-footer { background-color: var(--heading-color); color: #adb5bd; padding-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid #495057; }
.footer-logo { height: 45px; margin-bottom: 20px; }
.footer-about p { margin-bottom: 0.5rem; }
.footer-social p { font-weight: bold; color: #fff; margin-bottom: 15px; }
.footer-social div { display: flex; gap: 15px; }
.footer-social a { color: #fff; font-size: 1.5rem; transition: color var(--transition-speed); }
.footer-social a:hover { color: var(--primary-color); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* --- Animations & Responsive Design --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
  .about-video { max-width: 500px; margin: 0 auto 30px auto; }
  .about-text { text-align: center; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .nav-links { display: none; } /* Basic mobile: you'd add JS for a real toggle menu */
  .mobile-nav-toggle { display: block; }
  .footer-content { flex-direction: column; text-align: center; align-items: center; }
}