/* ================== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================== BODY ================== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f7fb;
  color: #333;
  line-height: 1.7;
  text-align: center;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 30px 15px;
}

/* ================== BACKGROUND ANIMATION ================== */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.circle {
  position: absolute;
  bottom: -150px;
  background: rgba(100, 149, 237, 0.25);
  border-radius: 50%;
  animation: floatUp 20s linear infinite;
}
.circle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-duration: 25s; }
.circle:nth-child(2) { width: 120px; height: 120px; left: 30%; animation-duration: 20s; animation-delay: 5s; }
.circle:nth-child(3) { width: 60px; height: 60px; left: 50%; animation-duration: 15s; animation-delay: 3s; }
.circle:nth-child(4) { width: 100px; height: 100px; left: 70%; animation-duration: 18s; animation-delay: 7s; }
.circle:nth-child(5) { width: 150px; height: 150px; left: 90%; animation-duration: 28s; animation-delay: 10s; }
.circle:nth-child(6) { width: 90px; height: 90px; left: 20%; animation-duration: 22s; animation-delay: 6s; }
.circle:nth-child(7) { width: 70px; height: 70px; left: 40%; animation-duration: 16s; animation-delay: 8s; }
.circle:nth-child(8) { width: 110px; height: 110px; left: 60%; animation-duration: 24s; animation-delay: 4s; }
.circle:nth-child(9) { width: 130px; height: 130px; left: 80%; animation-duration: 26s; animation-delay: 12s; }
.circle:nth-child(10) { width: 100px; height: 100px; left: 50%; animation-duration: 30s; animation-delay: 2s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.3); opacity: 0; }
}

/* ================== MAIN WRAPPER ================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ================== SECTION HEADING ================== */
.safety-section {
  max-width: 800px;
  margin: 100px auto 60px auto;
  padding: 0 20px;
}

.title {
  font-size: 36px;
  font-weight: 700;
  color: #2a145a;
  margin-bottom: 15px;
}
.line {
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, #2a50f5, #6c63ff);
  margin: 0 auto 20px auto;
  border-radius: 2px;
}
.description {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

/* ================== COURSES GRID ================== */
.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-bottom: 60px;
}
@media (min-width: 1200px) {
  .courses-container {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1300px;
    margin: 0 auto 60px auto;
  }
}

.course-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  margin: 20px auto;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.course-content { padding: 20px; flex: 1; }
.course-title {
  font-size: 18px;
  font-weight: 600;
  color: #2a145a;
  margin-bottom: 12px;
  min-height: 50px;
  line-height: 1.4;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid #eee;
}
.level {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}
.course-btn {
  background: linear-gradient(135deg, #2a50f5, #6c63ff);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.course-btn:hover {
  background: linear-gradient(135deg, #1c36b8, #4930ff);
  transform: scale(1.05);
}

/* ================== COURSE SECTIONS (with ticks) ================== */
.course-section {
  margin-bottom: 50px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.course-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.course-section h2 {
  font-size: 24px;
  color: #2a145a;
  margin-bottom: 12px;
  border-left: 5px solid #2a50f5;
  padding-left: 10px;
}
.course-section p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

/* Tick List */
.course-section ul {
  list-style: none;
  padding-left: 0;
}
.course-section ul li {
  margin: 18px 0;
  padding-bottom: 8px;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}
.course-section ul li::after {
  content: "✔";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #2a50f5;
  font-weight: bold;
  background: #fff;
  padding: 0 5px;
}

/* ================== COMMON STYLE ================== */
section {
  padding: 50px 20px;
}

section h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

section p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

section ul {
  list-style: none;
  padding-left: 0;
}

section ul li {
  font-size: 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #222;
}

section ul li i {
  color: #2a50f5;
  font-size: 18px;
}

/* ================== FLEX CONTAINERS ================== */
.fire-safety-container,
.first-aid-container,
.construction-safety-container,
.general-industry-container,
.oil-gas-container,
.lead-auditor-container,
.food-safety-container,
.risk-assessment-container,
.train-trainer-container,
.manual-handling-container,
.environmental-protection-container,
.other-safety-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.fire-safety-left,
.first-aid-left,
.construction-safety-left,
.general-industry-left,
.oil-gas-left,
.lead-auditor-left,
.food-safety-left,
.risk-assessment-left,
.train-trainer-left,
.manual-handling-left,
.environmental-protection-left,
.other-safety-left {
  flex: 1;
}

.fire-safety-right,
.first-aid-right,
.construction-safety-right,
.general-industry-right,
.oil-gas-right,
.lead-auditor-right,
.food-safety-right,
.risk-assessment-right,
.train-trainer-right,
.manual-handling-right,
.environmental-protection-right,
.other-safety-right {
  flex: 1;
}

/* ================== SECTION BACKGROUNDS ================== */
.fire-safety { background: #f0f8ff; }
.first-aid { background: #ffffff; }
.construction-safety { background: #f9f9f9; }
.general-industry { background: #f0f8ff; }
.oil-gas { background: #ffffff; }
.lead-auditor { background: #f9f9f9; }
.food-safety { background: #f0f8ff; }
.risk-assessment { background: #ffffff; }
.train-trainer { background: #f9f9f9; }
.manual-handling { background: #f0f8ff; }
.environmental-protection { background: #ffffff; }
.other-safety { background: #f9f9f9; }

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .title { font-size: 28px; }
  .description { font-size: 15px; }
  .course-title { font-size: 16px; }

  .fire-safety-container,
  .first-aid-container,
  .construction-safety-container,
  .general-industry-container,
  .oil-gas-container,
  .lead-auditor-container,
  .food-safety-container,
  .risk-assessment-container,
  .train-trainer-container,
  .manual-handling-container,
  .environmental-protection-container,
  .other-safety-container {
    flex-direction: column;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .safety-section { padding: 0 15px; }
  .title { font-size: 24px; }
  .line { width: 80%; }
}
/* ================== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ================== HEADER ================== */
header {
  background: #243447;  /* dark blue strip */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 45px;
}

header .logo h1 {
  font-size: 20px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}

/* ================== FOOTER ================== */
.footer {
  background: linear-gradient(135deg, #194a64, #889e32);
  padding: 50px 40px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  color: #fff;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffd700;
}

.footer-column p,
.footer-column ul,
.footer-column a {
  font-size: 15px;
  color: #eee;
  text-decoration: none;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a:hover {
  color: #ffd700;
}

/* bottom copyright strip */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  nav ul {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-column {
    min-width: 100%;
  }
}
/* ===== INTRO SECTION ===== */
.intro-section {
  background: linear-gradient(135deg, #f0f7ff, #e6f3ff);  /* soft gradient */
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* floating background shapes */
.intro-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(26, 86, 219, 0.1);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  animation: float 8s infinite alternate ease-in-out;
}

.intro-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 59, 181, 0.08);
  border-radius: 50%;
  bottom: -80px;
  right: -80px;
  animation: float 10s infinite alternate-reverse ease-in-out;
}

.intro-section .container {
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease-in-out;
}

.intro-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.4;
  background: linear-gradient(90deg, #1a56db, #003bb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 1s ease-in-out;
}

.intro-section p {
  font-size: 17px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.intro-section p:nth-of-type(2) {
  animation-delay: 0.4s;
}

.intro-section .btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(90deg, #1a56db, #003bb5);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3);
  animation: fadeIn 2s ease-in-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.intro-section .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.5);
}

/* === Keyframes === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(40px);
  }
}

/* responsive */
@media (max-width: 768px) {
  .intro-section h2 {
    font-size: 26px;
  }

  .intro-section p {
    font-size: 15px;
  }
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar */
nav {
  background: linear-gradient(90deg, #194a64, #889e32);
  padding: 12px 40px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav ul li {
  position: relative;
}
nav ul li a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #ffd700;
}

/* Dropdown */
nav ul li ul {
  position: absolute;
  top: 100%;   /* exactly below parent */
  left: 0;
  background: #fff;
  border-radius: 6px;
  min-width: 180px;
  display: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  z-index: 999;
}
nav ul li ul li {
  width: 100%;
}
nav ul li ul li a {
  color: #333;
  padding: 10px 15px;
  font-weight: 500;
  white-space: nowrap;
}
nav ul li ul li a:hover {
  background: #f0f0f0;
  color: #1a56db;
}

/* Show dropdown on hover */
nav ul li:hover > ul {
  display: block;
}

/* Sub-dropdown (right side) */
nav ul li ul li ul {
  top: 0;
  left: 100%;
  margin-left: 2px;
  border-radius: 6px;
}

/* Responsive Fix */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  nav ul li ul {
    position: relative;
    box-shadow: none;
    min-width: 100%;
  }
  nav ul li ul li ul {
    left: 0;
  }
}

/* ================== SAFETY SECTION MOTION ================== */
.safety-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #fffbe6; /* soft yellow background */
  opacity: 0;
  transform: translateY(40px);
  animation: sectionFadeUp 1.2s ease-out forwards;
}

/* Animation Keyframes */
@keyframes sectionFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Circles stay same */
.safety-section .circle {
  position: absolute;
  bottom: -120px;
  background: rgba(100, 149, 237, 0.2);
  border-radius: 50%;
  animation: floatUp 18s linear infinite;
  z-index: -1;
}
