/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s ease;
}

a:hover {
  color: #e74c3c;
}

/* Navbar Placeholder */
.navbar-placeholder {
  height: 80px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  background: #2c3e50;
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.main-title span {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 5px;
}

.main-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background-color: #e74c3c;
  margin: 15px auto 0;
  border-radius: 2px;
}

.breadcrumb {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: white;
  margin: 0 5px;
}

/* Courses Section */
.courses-section {
  padding: 60px 0;
  background-color: #fff;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1.1rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-image {
  height: 180px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #eaeaea;
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.course-image:hover img {
  transform: scale(1.1); /* Zoom in by 10% */
}

.course-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.course-content {
  padding: 20px;
}

.course-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.course-description {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #eaeaea;
  padding-top: 15px;
}

.course-duration {
  display: flex;
  align-items: center;
}

.course-duration i {
  margin-right: 5px;
  color: #2c3e50;
}

.course-rating {
  display: flex;
  align-items: center;
}

.stars {
  color: #f39c12;
  margin-right: 5px;
}

.course-details {
  margin: 15px 0;
  font-size: 0.9rem;
}

.course-details-item {
  display: flex;
  margin-bottom: 8px;
  color: #555;
}

.course-details-item i {
  width: 20px;
  margin-right: 8px;
  color: #2c3e50;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #2c3e50;
  color: white;
  border: none;
  flex: 1;
}

.btn-primary:hover {
  background-color: #1a252f;
}

.btn-outline {
  background-color: transparent;
  color: #2c3e50;
  border: 1px solid #2c3e50;
  margin-left: 10px;
}

.btn-outline:hover {
  background-color: #f8f9fa;
}

.btn-cta {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  margin-right: 15px;
}

.btn-cta:hover {
  background-color: #c0392b;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  color: #2c3e50;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #e74c3c;
  margin: 15px auto 0;
  border-radius: 2px;
}

.why-choose-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
}

.why-choose-content p {
  margin-bottom: 20px;
}

/* Who Can Apply Section */
.who-can-apply-section {
  padding: 60px 0;
  background-color: #fff;
}

.apply-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.apply-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1rem;
  color: #555;
}

.apply-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #2c3e50;
}

/* CTA Section */
.cta-section {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: #1a252f;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #e74c3c;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
  margin-right: 10px;
  color: #e74c3c;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: #e74c3c;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Course Detail Page Styles */
.course-header {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0;
  margin-top: 78px;
}

.course-header-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

/* .course-header-image {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
} */

.course-header-image i {
  font-size: 6rem;
  color: white;
}

.course-header-info h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* .course-header-image img {
  height: 260px;
  width: 260px;
  width: 207px;
  height: 216px;
  object-fit: contain;
  filter: brightness(0) invert(1);
} */

a.btn.btn-primary.course-sidebar-cta {
  margin-top: 20px;
}

.course-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.course-header-meta-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.course-header-meta-item i {
  margin-right: 8px;
}

.course-overview {
  padding: 60px 0;
  background-color: white;
}

.course-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.course-description-full {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.course-description-full p {
  margin-bottom: 20px;
}

.course-sidebar {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  position: sticky;
  top: 20px;
}

.course-price {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: bold;
  /* object-fit: contain; */
}

.course-price img {
  height: 229px;
  width: 400px;
  object-fit: fill;
}

.course-price span {
  font-size: 1rem;
  color: #777;
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: normal;
}

.course-sidebar-cta {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* .course-features {
  /* margin-top: 77px; */
 */

.course-features h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #2c3e50;
}

.course-features-list {
  list-style: none;
}

.course-features-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.course-features-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #e74c3c;
}

.course-curriculum {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.curriculum-accordion {
  margin-top: 40px;
}

.curriculum-module {
  margin-bottom: 20px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.module-header {
  padding: 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 1px solid #eaeaea;
}

.module-header:hover {
  background-color: #f0f0f0;
}

.module-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.module-content.active {
  max-height: 1000px;
  padding: 20px;
}

/* .module-lessons {
  
} */

.module-lessons li {
  margin-bottom: 15px;
  padding-left: -5px;
  position: relative;
  color: #555;
}

.module-lessons li:last-child {
  margin-bottom: 0;
}

.module-lessons li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: #2c3e50;
}

.course-benefits {
  padding: 60px 0;
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, border 0.3s ease, border-radius 0.3s ease;
  border: 2px solid transparent; /* Default border */
}

.benefit-card:hover {
  transform: translateY(-5px);
  border: 2px solid  #2c3e50; /* Thicker border + color change */
  border-radius: 20px; 
}

.benefit-icon {
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.benefit-description {
  color: #555;
  line-height: 1.6;
}

/* .course-instructors {
  padding: 60px 0;
  background-color: #f8f9fa;
} */

/* .instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
} */

/* .instructor-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

/* .instructor-image {
  height: 200px;
  overflow: hidden;
}

.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-info {
  padding: 20px;
}

.instructor-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

.instructor-title {
  color: #777;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.instructor-bio {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.instructor-social {
  display: flex;
  gap: 10px;
}

.instructor-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #f8f9fa;
  border-radius: 50%;
  color: #2c3e50;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.instructor-social a:hover {
  background-color: #2c3e50;
  color: white;
} */

/* .course-reviews {
  padding: 60px 0;
  background-color: white;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.reviews-average {
  text-align: center;
}

.reviews-average-number {
  font-size: 4rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
}

.reviews-stars {
  color: #f39c12;
  font-size: 1.5rem;
  margin: 10px 0;
}

.reviews-count {
  color: #777;
}

.reviews-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

.review-breakdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-stars {
  width: 100px;
  text-align: right;
}

.review-bar {
  flex: 1;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background-color: #f39c12;
}

.review-percentage {
  width: 40px;
  color: #777;
  font-size: 0.9rem;
}

.reviews-list {
  margin-top: 40px;
}

.review-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.review-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-info h4 {
  margin-bottom: 5px;
  color: #2c3e50;
}

.review-date {
  color: #777;
  font-size: 0.9rem;
}

.review-rating {
  color: #f39c12;
}

.review-content {
  color: #555;
  line-height: 1.6;
} */

.course-faq {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.faq-accordion {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2c3e50;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 1000px;
  padding: 0 20px 20px;
}

.faq-answer p {
  color: #555;
  line-height: 1.6;
}

.related-courses {
  padding: 60px 0;
  background-color: white;
}

.related-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Responsive Styles */
/* Responsive Adjustments */
@media (max-width: 992px) {
  .course-header-content,
  .course-overview-grid {
    grid-template-columns: 1fr;
  }

  .course-header {
    padding: 40px 0;
  }

  .cta-section h2,
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .courses-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .btn,
  .btn-cta {
    padding: 10px;
    font-size: 0.95rem;
  }

  .course-price {
    font-size: 1.5rem;
  }

  .course-header-info h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }
}


/* Module Toggle Animation */
.module-toggle {
  transition: transform 0.3s ease;
}

.module-toggle.active {
  transform: rotate(180deg);
}

/* Active Module Styling */
.module-header.active {
  background-color: #f0f0f0;
  border-bottom: 2px solid #e74c3c;
}

