.courses-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 40px;
}

.slider-container {
  position: relative;
  width: 90%;
  margin: auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}
/* Card container */
.cardfs {
  position: relative;
  flex: 0 0 33.333%;
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;
}

/* Image styling */
.cardfs img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: all 0.4s ease;
}

.cardfs-title {
width: 100%;
  background-color: #0d6efd;   /* normal blue */
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
  display: inline-block;       /* so it wraps nicely around the text */
  transition: background-color 0.3s ease;
}

/* link styling */
.cardfs-title a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

/* hover on whole pill */
.cardfs-title:hover {
  background-color: orange;   /* darker blue on hover */
}


/* Overlay appears on hover */
.overlayg {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 50px; /* leaves space for title below */
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 10px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.overlayg h3 {
  color: #f8c272;
  font-size: 22px;
  margin-bottom: 10px;
}

.overlayg p {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Hover effect */
.cardfs:hover img {
  filter: brightness(60%);
  transform: scale(1.02);
}

.cardfs:hover .overlayg {
  opacity: 1;
}

/* Title always visible below image */
.cardfs-title {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  margin-top: 5px;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #003366;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 2;
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }


/*Couseses bg image*/
/* big title, split to allow blue accent span */
.courses-hero .hero-content h1 {
  font-size: 72px;
  line-height: 0.95;
  margin: 0 0 16px 0;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* accent for one word */
.courses-hero .hero-content h1 .accent-blue {
  color: #1E90FF;
  -webkit-text-stroke: 0px rgba(0,0,0,0.08);
}

/* descriptive paragraph */
.courses-hero .hero-content p {
  color: rgba(247,247,247,0.94);
  font-size: 18px;
  line-height: 1.8;

  /* ⭐ Make lines shorter */
  max-width: 800px;

  /* ⭐ Center the block */
  margin: 0 auto 18px auto;

  /* ⭐ Balanced “justify + center” feel */
  text-align: center;
}





.nav-btn:hover {
  background-color: #003366;
}

.cardfs:hover .overlayg {
  opacity: 1;
}

/* Base Hero Section */
.courses {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
 text-align:center;
 align-items:center;
  color: white;
  overflow: hidden;
  padding: 40px 20px;
}

/* Dark overlay */
.courses .overlay {
 position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* lighter overlay - less opacity */
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 0;
}



/* Button */
.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  background-color: orange;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: #ffae42;
  transform: scale(1.05);
}
.hero-btnS {
  display: inline-block;
  padding: 8px 18px;     /* smaller button */
  border-radius: 5px;
  background-color: orange;
  color: white;
  font-size: 20px;       /* reduced text size */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btnS:hover {
  background-color: #ffae42;
  transform: scale(1.05);
}

/*Course*/
.bbn {
  color: blue;            /* normal color */
  text-decoration: underline;
  font-weight: 600;
  transition: 0.3s ease;
}

.bbn:hover {
  color: #084298;            /* darker color on hover */
}



/*Our training model*/

.program-cardsc {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 28px 24px;
  width: 85%;
  max-width: 1000px;
  color: #f7f7f7;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  text-align: left;
  border-top: 4px solid #FF9800;
  transition: all 0.3s ease;
}

.program-cardsc h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.program-cardsc p {
  margin: 0;
  font-size: 16px;
  color: rgba(247,247,247,0.9);
  line-height: 1.5;
  text-align:center;
}

/* hover effects */
.program-cardsc:hover {
  transform: translateY(-4px);
  border-left-color: #1E90FF;
box-shadow: 0 10px 28px rgba(30,144,255,0.45); /* Dodger Blue glow */
  transition: 0.3s ease;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .cardfs { flex: 0 0 50%; } /* 2 per view */
  
}

@media (max-width: 600px) {
  .cardfs { flex: 0 0 100%; } /* 1 per view */
  .cardfs img { height: 250px; }
  .method {
    padding: 40px 15px;
    width: 80%;
  }

  .method h2 {
    font-size: 28px;
  }

  .method p {
    font-size: 18px;
  }

  .overlayg li{
   font-size:14px;
  }
  .overlayg p{
   font-size:15px;

  }
}


