

/* --- 1. Global Setup: Variables & Resets --- */

:root {
  
  --primary-color: #3498DB;
  --primary-color-darker: #2980B9; 
  --text-dark: #2C3E50; 
  --text-muted: #6c757d;
  --bg-light: #F4F4F4;
  --color-white: #ffffff;

  --dark-navy: var(--text-dark);
  --light-gray: var(--bg-light);
  --white: var(--color-white);
  --light-blue: var(--primary-color);
  --darker-blue: var(--primary-color-darker);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}


h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
}



.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}


.page-content {
  padding-top: 80px; 
}


.page-hero, .courses-section, .cta-section, .py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}


.page-hero, .cta-section, .bg-white, section {
  background-color: var(--color-white);
}
.courses-section {
  background-color: var(--bg-light);
}




/* Main Hero/Page Titles */
.hero-title, .display-4 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Subtitles / Lead Text */
.hero-subtitle, .lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* For backward compatibility with Bootstrap class names */
.text-dark { color: var(--text-dark) !important; }
.text-muted { color: var(--text-muted) !important; }


/* --- 2. Course Grid Layout --- */

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.course-item {
  width: 100%; /* Mobile first */
}


/* --- 3. Course Card Component --- */

.course-card {
  height: 100%;
  background-color: var(--color-white);
  border: 1px solid transparent; 
  border-radius: 12px;  
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); 
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(41, 128, 185, 0.15) !important;
  border-color: var(--primary-color-darker);
}

.course-card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.card-image-container {
  height: 200px;
  overflow: hidden;
}

.card-image, .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Content Area inside the card */
.card-content, .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;  
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  flex-grow: 1; 
  margin-bottom: 1rem;
  line-height: 1.6;
}


/* --- 4. Button Component  --- */

.course-btn, .btn-primary {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: var(--primary-color);
  color: var(--color-white);
  border: 1px solid var(--primary-color);
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 50px;  
  transition: all 0.3s ease;
}

.course-btn:hover,
.btn-primary:hover {
  background-color: var(--primary-color-darker) !important;
  border-color: var(--primary-color-darker) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 128, 185, 0.3);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}


.large-btn {
  padding: 0.8rem 1.8rem;
  font-size: 1.25rem;
}


/* --- 5. CTA (Call to Action) Section --- */

.hero-content, .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}


/* --- 6. Responsive Media Queries --- */

/* Medium screens and up (Tablet) */
@media (min-width: 768px) {
  .course-item {
    width: calc(50% - 0.75rem);
  }
}

/* Large screens and up (Desktop) */
@media (min-width: 992px) {
  .course-item {
    width: calc(33.333% - 1rem);
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-title, .display-4 {
    font-size: 2.5rem;
  }
  .course-btn, .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-widh: 576px) {
  .hero-title, .display-4 {
    font-size: 2rem;
  }
  .hero-subtitle, .lead {
    font-size: 1rem;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .card-text {
    font-size: 0.9rem;
  }
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}