/* Font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400&display=swap');

/* 🌐 Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  background-color: #f4f7fb;
  color: #333;
}

/* 🎯 Header */
header {
  background: linear-gradient(90deg, #0056b3, #0078d7);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  border-radius: 16px;
  margin-right: 1rem;
}

.title h1 {
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.title p {
  font-size: 0.9rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 🏠 Home */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  border-radius: 20px;
}

.home {
  background: linear-gradient(180deg, #e8f1fb, #ffffff);
  margin-bottom: 0.5rem; /* reduced spacing */
}

.home h2 {
  color: #0056b3;
}

.image-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.image-grid img {
  width: 30%;
  min-width: 250px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}

/* 📚 Courses Section */
.courses {
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-top: 0; /* remove extra top gap */
  text-align: center;
}

.courses h2 {
  color: #0056b3;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-transform: uppercase;
}

.course-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.active-course h3,
.upcoming-courses h3 {
  color: #004a99;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.course-card.highlight {
  background: linear-gradient(135deg, #0078d7, #004a99);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.course-card.highlight h4 {
  color: #ffeb3b;
}

.enroll-btn {
  margin-top: 1rem;
  background: #ffeb3b;
  color: #004a99;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enroll-btn:hover {
  background: #fff176;
  transform: scale(1.05);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: left;
  border-left: 6px solid #0078d7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-left-color: #ffeb3b;
}

/* 👩‍🏫 Trainers */
.trainers {
  background: linear-gradient(135deg, #0078d7, #004a99);
  color: #ffd54f;
  padding: 4rem 2rem;
  border-radius: 20px;
}

.trainers h2 {
  color: #ffeb3b;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.trainer-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
}

.trainer-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 6px 16px rgba(255,255,255,0.3);
}

/* 📞 Contact Section - Premium Glass UI */
.contact {
  background: linear-gradient(180deg, #f9fbff, #eef3f9);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 3rem auto;
  backdrop-filter: blur(10px);
}

.contact h2 {
  color: #0056b3;
  font-size: 2.3rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 1.3rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 520px;
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 120, 215, 0.15);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 120, 215, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.contact-info {
  color: #0078d7;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info:hover {
  color: #004a99;
}

/* “Follow Us” Section */
.social-section h3 {
  color: #004a99;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #0056b3;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border-radius: 30px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social:hover {
  background: linear-gradient(135deg, #0078d7, #0056b3);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 120, 215, 0.3);
}

.social img {
  width: 22px;
  height: 22px;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0056b3;
  color: white;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* 📱 Responsive Design */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  .image-grid img {
    width: 45%;
  }

  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logo {
    height: 50px;
  }

  section {
    padding: 2rem 1rem;
  }

  .image-grid img {
    width: 90%;
  }

  .trainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: 1fr;
  }
}
