* {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

:root {
  --nav-color: #1565C0;          /* FICER Blue */
  --button-text-footer: #0a2e52; /* Deep Navy */
  --badge-color: #1976D2;        
  --extra-color: #ffffff;
  --default-color: #546e7a;
}

/* =========================================
   HERO BANNER
   ========================================= */
.courses-hero {
  background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
  /* Flex properties yahan se hata dein */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(10, 46, 82, 0.9) 0%, rgba(21, 101, 192, 0.8) 100%);
  
  /* Ye 3 lines text ko vertically aur horizontally 100% center karengi */
  display: flex;
  align-items: center;      /* Vertically center (Upar neeche) */
  justify-content: center;  /* Horizontally center (Left right) */
}

.courses-hero .container { 
  position: relative; 
  z-index: 2; 
  /* Text center rahenga aur maximum width limit bhi laga di hai */
  text-align: center;
  max-width: 800px; 
}

.hero-title {
  color: var(--extra-color);
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  margin: 0 auto;
}

.courses-hero .container { position: relative; z-index: 2; }

.hero-title {
  color: var(--extra-color);
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   SEARCH BAR
   ========================================= */
.searching-bar {
  height: 60px;
  padding: 0 5px 0 15px;
  border: 1px solid #e0e0e0;
  background-color: var(--extra-color);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.searching-bar:focus-within {
  border-color: var(--nav-color);
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}

.search-course {
  border: none;
  flex-grow: 1;
  outline: none;
  color: var(--button-text-footer);
  font-size: 16px;
  background: transparent;
}

.search-course::placeholder { color: var(--default-color); }

.fa-magnifying-glass {
  font-size: 18px;
  color: var(--nav-color);
  margin-right: 10px;
}

.search-btn {
  background-color: var(--nav-color);
  color: white;
  border: 2px solid var(--nav-color);
  border-radius: 50px;
  padding: 8px 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-btn:hover {
  border-color: var(--button-text-footer);
  background-color: var(--button-text-footer);
  color: var(--extra-color);
}

/* =========================================
   ANIMATED COURSE CARDS
   ========================================= */
.course-card {
  background-color: var(--extra-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Taake content upar rahe aur buttons neeche */
}

/* Animated Blue Border on Top */
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nav-color), var(--badge-color));
  transition: width 0.5s ease-in-out;
  z-index: 2;
  border-radius: 16px 16px 0 0;
}

.course-card:hover::before {
  width: 100%;
}

/* Hover Effects */
.course-card:hover {
  background-color: rgba(21, 101, 192, 0.04);
  border-color: rgba(21, 101, 192, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(21, 101, 192, 0.15);
}

/* Icon Styling */
.course-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.course-card:hover .course-icon-box {
  background-color: var(--nav-color);
  box-shadow: 0 0 20px rgba(21, 101, 192, 0.4);
}

.course-icon {
  font-size: 32px;
  color: var(--nav-color);
  transition: color 0.3s ease;
}

.course-card:hover .course-icon {
  color: #ffffff;
}

/* Typography */
.course-title {
  color: var(--button-text-footer);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.course-card:hover .course-title {
  color: var(--nav-color);
}

.course-description {
  color: var(--default-color);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center; /* Center text kyunki ab description choti hai */
}

/* --- BUTTONS CONTAINER (NEW) --- */
.course-buttons {
  display: flex;
  justify-content: center;
  gap: 10px; /* Buttons ke beech gap */
  margin-top: auto; /* Yeh buttons ko hamesha card ke bottom mein push karega */
  width: 100%;
  flex-wrap: wrap; /* Agar space na ho toh neeche aa jayen */
}

/* View Details Button (Secondary Style) */
.course-detail-btn {
  text-decoration: none;
  color: var(--button-text-footer);
  background-color: transparent;
  border: 2px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  flex: 1; /* Dono buttons barabar width lein */
  min-width: 110px;
  text-align: center;
}

.course-detail-btn:hover {
  border-color: var(--button-text-footer);
  background-color: rgba(10, 46, 82, 0.05);
  transform: translateY(-2px);
}

/* Enroll Now Button (Primary Style) */
.course-enroll-btn {
  text-decoration: none;
  background-color: var(--nav-color);
  color: var(--extra-color) !important;
  border: 2px solid var(--nav-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  flex: 1; /* Dono buttons barabar width lein */
  min-width: 110px;
  text-align: center;
}

.course-enroll-btn:hover {
  background-color: var(--button-text-footer);
  border-color: var(--button-text-footer);
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .courses-hero { min-height: 300px; }
}


/* =========================================
   HOW IT WORKS / PROCESS SECTION
   ========================================= */
.process-card {
  background-color: var(--extra-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nav-color), var(--badge-color));
  transition: width 0.5s ease-in-out;
  z-index: 2;
}

.process-card:hover::before { width: 100%; }

.process-card:hover {
  background-color: rgba(21, 101, 192, 0.04);
  border-color: rgba(21, 101, 192, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(21, 101, 192, 0.15);
}

.step-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  font-weight: 800;
  color: rgba(21, 101, 192, 0.08);
  line-height: 1;
  transition: color 0.3s ease;
}

.process-card:hover .step-number {
  color: rgba(21, 101, 192, 0.15);
}

.process-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.process-card:hover .process-icon-box {
  background-color: var(--nav-color);
  box-shadow: 0 0 20px rgba(21, 101, 192, 0.4);
}

.process-icon {
  font-size: 28px;
  color: var(--nav-color);
  transition: color 0.3s ease;
}

.process-card:hover .process-icon { color: #ffffff; }

.process-title {
  color: var(--button-text-footer);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.process-card:hover .process-title { color: var(--nav-color); }

.process-desc {
  color: var(--default-color);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* =========================================
   TESTIMONIALS / REVIEWS SECTION (Light Blue Theme for Visibility)
   ========================================= */
.testimonial-section {
  background-color: #eef5fc; /* Halka sa FICER Blue background taake section highlight ho */
  border-radius: 30px; /* Thora rounded touch */
}

.testimonial-card {
  background-color: var(--extra-color) !important; /* Pure White Cards */
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Animated border from bottom */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--nav-color);
  transition: width 0.5s ease-in-out;
}

.testimonial-card:hover::after { width: 100%; }

.testimonial-card:hover {
  background-color: rgba(21, 101, 192, 0.04) !important;
  border-color: rgba(21, 101, 192, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(21, 101, 192, 0.15);
}

.quote-icon { margin-bottom: 15px; }
.quote-icon i {
  font-size: 32px;
  color: rgba(21, 101, 192, 0.2);
}

/* Text colors forcefully dark kiye hain taake white background par 100% dikhain */
.review-text {
  color: #546e7a !important; /* Dark Soft Blue-Grey text */
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-stars { margin-bottom: 20px; }
.review-stars i { color: #fbc02d !important; font-size: 14px; } /* Gold Stars */

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.reviewer-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--nav-color);
}

.reviewer-name {
  color: #0a2e52 !important; /* Deep Navy text */
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.reviewer-course {
  color: #1565C0 !important; /* FICER Blue text */
  font-size: 13px;
  font-weight: 500;
}