/* === Hero Section === */
.hero {
  position: relative;
  background: url('../images/tsdn-hero.jpg') center/cover no-repeat;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  text-align: center;
  font-family: 'Arial', sans-serif;
  user-select: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.6);
}

.hero-overlay {
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 700;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
  transition: background-color 0.3s ease, transform 0.25s ease;
}

.hero-content .btn:hover,
.hero-content .btn:focus {
  background-color: #0056b3;
  transform: translateY(-3px);
  outline: none;
}

.tsdn-courses {
  padding: 3rem 1rem;
  background: #f9fafc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}

.tsdn-courses h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tsdn-courses h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #007BFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tsdn-courses h4 {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #0056b3;
}

.tsdn-courses p {
  margin-bottom: 1rem;
}

/* Methods & Resources on top */
.methods-resources {
  background: #e8f0fe;
  border-left: 6px solid #007BFF;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  border-radius: 4px;
}

/* Cards container grid */
.courses-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

/* Course Cards */
.course-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  box-shadow: 0 6px 15px rgb(0 123 255 / 0.3);
  border-color: #007BFF;
}

.course-list, .pillars-list {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.course-list li, .pillars-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  list-style-type: none;
}

.course-list li::before, .pillars-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #007BFF;
  font-weight: bold;
}

/* Learn More link */
.btn-link {
  align-self: flex-start;
  color: #007BFF;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  transition: color 0.3s ease;
}

.btn-link:hover,
.btn-link:focus {
  color: #0056b3;
  text-decoration: underline;
  outline: none;
}

/* Scrollbar styling for lists */
.course-list::-webkit-scrollbar, .pillars-list::-webkit-scrollbar {
  width: 6px;
}
.course-list::-webkit-scrollbar-thumb, .pillars-list::-webkit-scrollbar-thumb {
  background-color: #007BFF;
  border-radius: 3px;
}


/* === Contact / Enroll Section === */
.contact.section {
  padding: 50px 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.contact.section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #222;
  font-weight: 700;
}

.contact.section p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact.section .btn {
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  margin: 0 10px;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.25s ease;
}

.contact.section .btn:hover,
.contact.section .btn:focus {
  background-color: #0056b3;
  transform: translateY(-3px);
  outline: none;
}

/* === Testimonials Section === */
.testimonials {
  background: #f9fafc;
  padding: 50px 0;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #007BFF;
}

.testimonial-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  padding: 0 20px;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 15px;
}

blockquote footer {
  font-weight: 700;
  font-size: 1rem;
  color: #007BFF;
}

.testimonial-controls {
  margin-top: 20px;
}

.testimonial-controls button {
  background: #007BFF;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 8px 16px;
  margin: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.testimonial-controls button:hover,
.testimonial-controls button:focus {
  background-color: #0056b3;
  outline: none;
}


/* === Partners Section === */
.partners.section {
  padding: 60px 20px;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.partners h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: 700;
}

.partners-grid {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.partners-grid img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners-grid img:hover{
  transform: scale(1.5);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .courses h2,
  .testimonials h2,
  .partners h2,
  .contact.section h2 {
    font-size: 2.2rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }
  .course-category {
    max-width: 100%;
  }
}
