:root {
  --primary: #8c00ff;
  --secondary: #2b2d42;
  --accent: #808080;
  --background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), #9b5de5);
  color: white;

  animation: pulse 2s infinite;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  animation: pulse 2s infinite;
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  animation: pulse 2s infinite;
}

.btn-white-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  animation: pulse 2s infinite;
}

.btn-white-outline:hover {
  background: #fff;
  color: var(--primary);
  animation: pulse 2s infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn:hover {
  transform: translateY(-3px);
}

/* Header Styles */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  z-index: 1001;
}

.logo span {
  color: var(--secondary);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}
.hero .container {
  display: flex;
  align-items: center;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.hero-image img {
  max-width: 90%;
  animation: float 3s ease-in-out infinite;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.gradient-text {
  color: var(--primary);
}

/* Stats Section */
.stats {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 60px 40px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.4s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.6s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.8s;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
  animation: countUp 2s ease-out;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Courses Section */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card Flip Styles */
.course-card {
  perspective: 1000px;
  height: 500px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.course-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.card-front {
  background-color: var(--card-bg);
  color: var(--text);
}

.card-back {
  background: linear-gradient(135deg, var(--primary), #9b5de5);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}

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

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

.course-content {
  padding: 25px;
}

.course-category {
  display: inline-block;
  background: rgba(174, 0, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.course-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.course-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.course-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}

.course-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.course-features i {
  margin-right: 10px;
  color: white;
}

.card-back-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.card-back .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Free Courses Section  */
.free-courses {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.free-courses::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ff007f" opacity="0.03"><polygon points="0,0 1000,50 1000,100 0,100"/></svg>');
  background-size: cover;
}

.free-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.free-course-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  display: flex;
  animation: fadeInUp 1s ease-out;
}

.free-course-card:nth-child(1) {
  animation-delay: 0.2s;
}
.free-course-card:nth-child(2) {
  animation-delay: 0.4s;
}
.free-course-card:nth-child(3) {
  animation-delay: 0.6s;
}
.free-course-card:nth-child(4) {
  animation-delay: 0.8s;
}

.free-course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.free-course-image {
  flex: 0 0 40%;
  overflow: hidden;
}

.free-course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.free-course-card:hover .free-course-image img {
  transform: scale(1.1);
}

.free-course-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.free-course-badge {
  display: inline-block;
  background: rgba(255, 0, 127, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.free-course-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.free-course-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.free-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.free-course-rating {
  color: #ffc107;
}

.free-course-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.free-course-btn:hover {
  background: #e00070;
  transform: translateY(-2px);
}

/* Instructor Section  */
.instructors-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 80px 0;
  position: relative;
}

.instructors-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ff007f" opacity="0.03"><circle cx="50" cy="50" r="40"/></svg>');
  background-size: 200px 200px;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.instructor-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  text-align: center;
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.instructor-card:nth-child(1) {
  animation-delay: 0.2s;
}
.instructor-card:nth-child(2) {
  animation-delay: 0.4s;
}
.instructor-card:nth-child(3) {
  animation-delay: 0.6s;
}

.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.instructor-card-image {
  height: 350px;
  object-fit: contain;
  overflow: hidden;
  position: relative;
}

.instructor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-card-image img {
  transform: scale(1.1);
}

.instructor-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.instructor-card-content {
  padding: 25px 20px;
}

.instructor-card-name {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.instructor-card-role {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.instructor-card-bio {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.instructor-card-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.instructor-card-stat {
  text-align: center;
}

.instructor-card-stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.instructor-card-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.instructor-card-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.instructor-card-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.instructor-card-social a:hover {
  transform: translateY(-3px);
  background: #9b5de5;
}

/* Contact Us Section */
.contact-section {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 80px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 127, 0.05),
    rgba(155, 93, 229, 0.05)
  );
  border-radius: 50%;
  z-index: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.contact-info {
  padding-right: 20px;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 127, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  margin-bottom: 0;
  color: var(--text-light);
}

.contact-social {
  display: flex;
  gap: 15px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  transform: translateY(-3px);
  background: #9b5de5;
}

.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #e00070;
  transform: translateY(-2px);
}

/* Expert Guidance Section */
.expert-guidance {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 60px 40px;
  box-shadow: var(--shadow);
}

.guidance-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.guidance-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.guidance-item:nth-child(1) {
  animation-delay: 0.2s;
}
.guidance-item:nth-child(2) {
  animation-delay: 0.4s;
}
.guidance-item:nth-child(3) {
  animation-delay: 0.6s;
}

.guidance-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.guidance-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 0, 127, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.5s ease;
}

.guidance-item:hover .guidance-icon {
  transform: rotate(15deg);
  background: rgba(255, 0, 127, 0.2);
}

.guidance-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Footer Section */
footer {
  background: var(--secondary);
  color: white;
  padding: 70px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  color: #cccccc;
  margin-bottom: 25px;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-contact p {
  color: #cccccc;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-newsletter p {
  color: #cccccc;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #e00070;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cccccc;
}

/* Animations */
@keyframes gradientFlow {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(155, 93, 229, 0.7);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Additional Animation Classes */
.bounce {
  animation: bounce 2s infinite;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .free-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .free-courses-grid-2 {
    grid-template-columns: repeat(3, 1fr);
  }

  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .free-courses-grid {
    grid-template-columns: 1fr;
  }

  .free-course-card {
    height: auto;
    flex-direction: column;
  }

  .free-course-image {
    flex: 0 0 200px;
  }

  .free-courses-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructor-container {
    flex-direction: column;
  }

  .instructor-image {
    flex: 0 0 auto;
  }

  .instructors-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    padding-right: 0;
  }

  .guidance-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle-label {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav ul li {
    margin: 15px 0;
  }

  .nav-toggle:checked ~ nav ul {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero .container {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .free-courses-grid {
    grid-template-columns: 1fr;
  }

  .free-courses-grid-2 {
    grid-template-columns: 1fr;
  }

  .instructor-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .guidance-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .card-back-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .course-card {
    height: 500px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .instructor-section {
    padding: 40px 20px;
  }

  .instructor-name {
    font-size: 1.8rem;
  }
}
