/* General body and container styles */
body {
    font-family: "Inter", sans-serif;
    color: #1a202c;
    background-color: #f7fafc;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Scoped Courses Page Hero */
.ca-courses-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.ca-courses-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ca-courses-hero-content-left,
.ca-courses-hero-content-right {
  min-width: 0;
}

.ca-courses-hero-content-right {
  position: relative;
}

.ca-courses-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #2563EB;
  background: #eaf2ff;
  border: 1px solid #d7e6ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-courses-hero-title {
  margin: 0;
  color: #172033;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.ca-courses-hero-subtitle {
  max-width: 720px;
  margin: 20px 0 0;
  color: #536579;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
}

.ca-courses-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ca-courses-hero-btn-primary,
.ca-courses-hero-btn-secondary {
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.ca-courses-hero-btn-primary {
  color: #fff;
  background: #2563EB;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.ca-courses-hero-btn-secondary {
  color: #2563EB;
  background: #fff;
  border: 1px solid #cbdcff;
}

.ca-courses-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe7ff;
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.16);
}

.ca-courses-hero-card {
  min-height: 108px;
  padding: 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e6eefb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ca-courses-hero-card:hover,
.ca-courses-hero-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.ca-courses-hero-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #2563EB;
  background: #eef5ff;
}

.ca-courses-hero-card-title {
  margin: 0;
  color: #172033;
  font-size: 0.98rem;
  font-weight: 900;
}

.ca-courses-hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(37, 99, 235, 0.12);
}

.ca-courses-hero-shape-1 {
  width: 130px;
  height: 130px;
  right: -30px;
  top: -30px;
}

.ca-courses-hero-shape-2 {
  width: 80px;
  height: 80px;
  left: -22px;
  bottom: -22px;
}

@media (max-width: 991px) {
  .ca-courses-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ca-courses-hero-badge,
  .ca-courses-hero-buttons {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .ca-courses-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .ca-courses-hero {
    padding: 44px 16px 56px;
  }

  .ca-courses-hero-buttons {
    flex-direction: column;
  }

  .ca-courses-hero-btn-primary,
  .ca-courses-hero-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ca-courses-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Container now stretches to full width with side padding */
.main-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5px; /* Adjusted padding to 5px on both sides */
}



/* Courses Page Styles */
.page-header {
  background: linear-gradient(90deg, #2563eb 60%, #1e40af 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.8rem; /* Increased font size to match .hero h1 */
  font-weight: 700;
  margin-bottom: 18px;
}
.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
  color: #e0e7ff; /* Added color for better contrast */
}
.study-hero {
  background: linear-gradient(90deg, #2563eb 60%, #1e40af 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.study-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.study-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}
.study-hero .btn-primary {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}
.study-hero .btn-primary:hover {
  background: #2563eb;
  color: #fff;
}
/* Hero Section */
.hero {
  /* margin-top: 50px; */
  background: linear-gradient(to right, #2563eb, #0a2342);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  color: #e0e7ff;
}

.cta {
  background-color: #f5f5f5;
  padding: 60px 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cta h2 {
  font-size: 2.4em;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cta p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background-color: #007bff; /* Bootstrap Blue */
  color: #fff;
  padding: 14px 28px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cta .btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.category-tabs {
  display: flex;
  gap: 1rem;
  margin: 32px 0 24px 0;
  flex-wrap: wrap;
}
.tab-btn {
  background: #f1f5f9;
  color: #2563eb;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
}
.tab-btn.active,
.tab-btn:hover {
  background: #2563eb;
  color: #fff;
}

.course-section {
  padding: 48px 0;
}
.course-section h2 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 32px;
  text-align: left;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
}

.course-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #2563eb;
  color: #fff;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.13);
}

.course-content {
  padding: 24px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.course-content h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 10px;
}
.course-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 16px;
}

.specializations,
.features {
  margin-bottom: 16px;
}
.specializations h4,
.features h4 {
  font-size: 1rem;
  color: #2563eb;
  margin-bottom: 8px;
}
.specializations .tag {
  display: inline-block;
  background: #e0e7ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  margin: 0 6px 6px 0;
  font-weight: 500;
}
.features ul {
  list-style: disc inside;
  color: #555;
  margin-left: 12px;
  font-size: 0.98rem;
}
.features ul li {
  margin-bottom: 4px;
}

.course-content .btn {
  margin-top: 12px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-section h2 {
    text-align: center;
  }
  .page-header {
    text-align: center;
  }
}
@media (max-width: 600px) {
  .course-content {
    padding: 16px 8px 12px 8px;
  }
  .category-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .course-header h1 {
    font-size: 1.8rem;
  }
  .courses-grid {
    gap: 16px;
  }
  .course-card {
    padding: 18px;
  }
  .course-card h3 {
    font-size: 1.15rem;
  }
  .course-card p,
  .course-card li {
    font-size: 0.95rem;
  }
}
