/* :root {
  --primary: #0090c9;
  --primary-dark: #0077a8;
  --secondary: #ff9312;
  --secondary-dark: #e67e00;
  --dark: #222;
  --darker: #111;
  --light: #f4f4f4;
  --lighter: #f9f9f9;
  --gray: #666;
  --white: #fff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
} */

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
} */

/* Add all the CSS styles from the previous homepage implementation here */
/* This would be the complete CSS code we had in the earlier examples */

:root {
  --primary: #0090c9;
  --primary-dark: #0077a8;
  --secondary: #ff9312;
  --secondary-dark: #e67e00;
  --dark: #222;
  --darker: #111;
  --light: #f4f4f4;
  --lighter: #f9f9f9;
  --gray: #666;
  --white: #fff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px; /* Changed to 10px padding */
}
.section-padding {
  padding: 80px 0; /* Reduced padding for mobile */
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  padding: 0 10px; /* Added 10px padding */
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto 30px;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 60px;
  color: var(--gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px; /* Added 10px padding */
}
.btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 147, 18, 0.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 10px; /* Added 10px margin */
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
}
.card-secondary::before {
  background: var(--secondary);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 10px; /* Added 10px padding */
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px; /* Changed to 10px padding */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}
header.scrolled {
  padding: 15px 10px; /* Changed to 10px padding */
  background: rgba(255, 255, 255, 0.98);
}

.header-content{
    min-width: 100%;
}
.logo {
  display: flex;
  align-items: left;
}
.logo img{
  max-width: 150px;
  height: auto;
}
.logo h1 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  display: hidden;
}
.logo i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 24px;
}
nav ul {
  display: flex;
}
nav li {
  margin-left: 25px;
}
nav a {
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
nav a:hover {
  color: var(--primary);
}
nav a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Carousel */
.carousel {
  position: relative;
  margin-top: 80px;
  height: 100vh;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  padding: 0 10px; /* Changed to 10px padding */
  position: relative;
}
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.slide-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 10px; /* Added 10px padding */
}
.slide h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1.2s;
}
.slide p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.prev {
  left: 10px;
} /* Changed to 10px */
.next {
  right: 10px;
} /* Changed to 10px */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* About */
#about {
  background: var(--lighter);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 0 10px; /* Added 10px padding */
}
.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}
.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}
.about-image:hover img {
  transform: scale(1.05);
}

/* Courses */
.course-card {
  position: relative;
}
.course-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}
.course-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}
.course-card p {
  margin-bottom: 20px;
  color: var(--gray);
}
.course-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.course-price {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.2rem;
}
.course-rating {
  color: #ffc107;
}

/* Features */
#features {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
}
#features .section-title {
  color: var(--white);
}
#features .section-title::after {
  background: var(--secondary);
}
#features .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-card::before {
  background: var(--secondary);
}
.feature-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--secondary);
}

/* Categories */
.category-card {
  padding: 40px 20px;
  background: var(--white);
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
  margin: 0 10px; /* Added 10px margin */
}
.category-card:hover {
  transform: translateY(-10px);
  background: var(--primary);
  color: var(--white);
}
.category-card:hover .category-icon {
  color: var(--white);
}
.category-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}
.category-card h3 {
  font-size: 1.5rem;
}

/* Achievements */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 10px; /* Added 10px padding */
}
.stat {
  text-align: center;
  padding: 30px;
}
.stat-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
}
.stat h3 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 10px;
}
.stat p {
  color: var(--gray);
  font-weight: 500;
}

/* Instructors */
.instructor-card {
  text-align: center;
}
.instructor-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid var(--light);
}
.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}
.instructor-card .title {
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 500;
}
.instructor-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.instructor-social a {
  color: var(--gray);
  font-size: 18px;
  transition: var(--transition);
}
.instructor-social a:hover {
  color: var(--primary);
}

/* Testimonials */
#testimonials {
  background: var(--lighter);
}
.testimonial-card {
  position: relative;
  padding: 40px 30px;
  background: var(--white);
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}
.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}
.testimonial-author {
  display: flex;
  align-items: center;
}
.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}
.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.author-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Blog */
.blog-card {
  text-align: left;
}
.blog-image {
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: -30px -30px 20px;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover .blog-image img {
  transform: scale(1.1);
}
.blog-meta {
  display: flex;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--gray);
}
.blog-meta span {
  margin-right: 15px;
}
.blog-meta i {
  margin-right: 5px;
  color: var(--primary);
}
.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.blog-card p {
  margin-bottom: 20px;
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}
.read-more:hover {
  color: var(--secondary);
}
.read-more:hover i {
  transform: translateX(5px);
}

/* FAQ */
.faq-container {
  padding: 0 10px; /* Added 10px padding */
}
.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question i {
  transition: var(--transition);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--gray);
  padding-left: 10px;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 10px;
}

/* Newsletter */
.newsletter {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 10px; /* Changed to 10px padding */
}
.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.newsletter p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter input {
  padding: 15px;
  flex: 1;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}
.newsletter button {
  padding: 15px 30px;
  border: none;
  border-radius: 0 50px 50px 0;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.newsletter button:hover {
  background: var(--darker);
}

/* CTA */
.cta {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  padding: 80px 10px; /* Changed to 10px padding */
}
.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--darker);
  color: #ccc;
  padding: 60px 0 30px; /* Reduced padding for mobile */
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
  padding: 0 10px; /* Added 10px padding */
}
.footer-column h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}
.footer-column p {
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #aaa;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}
.footer-links a i {
  margin-right: 8px;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}
.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #888;
  padding: 0 10px; /* Added 10px padding */
}
.copyright a {
  color: var(--secondary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Spinner */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid var(--light);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .slide h2 {
    font-size: 2.8rem;
  }
  .slide p {
    font-size: 1.1rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  header {
    padding: 15px 10px;
  }
  nav ul {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  nav ul.active {
    right: 0;
  }
  nav li {
    margin: 0 0 30px 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .slide h2 {
    font-size: 2.2rem;
  }
  .slide p {
    font-size: 1rem;
  }
  .carousel-btn {
    display: none;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter input {
    border-radius: 50px;
    margin-bottom: 0;
  }
  .newsletter button {
    border-radius: 50px;
    width: 100%;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card {
    margin: 0 10px;
  }
  .category-card {
    margin: 0 10px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stat {
    padding: 20px;
  }
  .stat h3 {
    font-size: 2.5rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-text h3 {
    font-size: 1.8rem;
  }
  .cta h2,
  .newsletter h2 {
    font-size: 2rem;
  }
  .cta p,
  .newsletter p {
    font-size: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  .slide h2 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .logo h1 {
    font-size: 24px;
  }
  .card {
    padding: 20px;
  }
  .course-icon,
  .feature-icon,
  .category-icon,
  .stat-icon {
    font-size: 35px;
  }
  .instructor-image {
    width: 120px;
    height: 120px;
  }
  .blog-image {
    height: 160px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .slide h2 {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .card {
    padding: 15px;
  }
  .about-text h3 {
    font-size: 1.5rem;
  }
}
