/* ================================
   Global
================================ */

body {
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
}

/* ================================
   Training Section (IMPORTANT FIX)
================================ */

/* Desktop spacing */
.training-section {
  margin-top: 190px;
}

/* Remove gap on mobile */
@media (max-width: 768px) {
  .training-section {
    margin-top: 0; /* 🔥 FIX */
  }
}

/* ================================
   Banner
================================ */

.training_banner {
  position: relative;
  width: 100%;
  height: 200px; /* IMPORTANT */
  background-image: url("../../images/cyber_new_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay */
.training_banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Text */
.banner_text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.banner_text h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0; /* FIX */
  padding: 0 20px;
}

/* ================================
   Banner Mobile Fix
================================ */

@media (max-width: 768px) {
  .training_banner {
    height: 260px; /* Smaller banner */
  }

  .banner_text h1 {
    font-size: 22px;
    line-height: 1.4;
  }
}

/* ================================
   Layout Wrapper
================================ */

.training-layout {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  gap: 30px;
  padding: 0 15px;
}

/* ================================
   Training Content
================================ */

.training_content {
  width: 80%;
  max-width: 850px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Headings */
.training_content h1 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #0a2540;
}

.training_content h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #0a2540;
  border-left: 5px solid #0174bb;
  padding-left: 12px;
}

.training_content h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Paragraph */
.training_content p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #444;
}

.training_content p span {
  color: #0174bb;
  font-weight: 600;
  
}

/* Lists */
.training_content ul {
  margin: 15px 0 25px 25px;
}

.training_content ul li {
  font-size: 16px;
  margin-bottom: 8px;
}

/* CTA highlight */
.training_content h2:last-of-type {
  background: #f2f7fb;
  padding: 15px;
  border-radius: 6px;
}

/* ================================
   Sidebar
================================ */

.training_sidebar {
  width: 20%;
  background: #f9fbfd;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 180px;
  height: fit-content;
}

.training_sidebar h3 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #0174bb;
  padding-bottom: 8px;
}

.training_sidebar ul {
  list-style: none;
  padding: 0;
}

.training_sidebar ul li {
  margin-bottom: 12px;
}

.training_sidebar ul li a {
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.training_sidebar ul li a:hover {
  font-size: 15px;
  color: #036cdb;
  padding-left: 4px;
}


/* ================================
   Tablet & Mobile Layout
================================ */

@media (max-width: 992px) {
  .training-layout {
    flex-direction: column;
    margin-top: 20px;
  }

  .training_content,
  .training_sidebar {
    width: 100%;
  }

  .training_sidebar {
    position: static;
    margin-top: 30px;
            width: 85%;

  }
}
