/*------------------------------------*\
  #BASE STYLES
\*------------------------------------*/

/* Color Variables */
:root {
  --primary-color: #ff7b2b; /* Orange */
  --primary-light: #ff9a5a;
  --primary-dark: #e06c20;
  --secondary-color: #21014a; /* Dark Purple */
  --secondary-light: #3a1a6b;
  --secondary-dark: #1a013a;
  --text-color: #ffffff; /* White */
  --dark-text: #333;
  --medium-text: #555;
  --light-text: #777;
  --light-bg: #f8f8f8;
  --lighter-bg: #fcfcfc;
  --border-color: #eaeaea;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  --section-padding: 100px 0;
  --transition: all 0.3s ease;
}

/* General Body Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--lighter-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container for Centering Content */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Section Padding */
.content-section {
  padding: var(--section-padding);
}

.content-section:nth-of-type(odd) {
  background: var(--light-bg);
}

.section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  color: var(--medium-text);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}

.btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Card Base Style for various sections */
.card {
  background: var(--text-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

/* Grid Layout for Cards/Images */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/*------------------------------------*\
  #HEADER & NAVIGATION
\*------------------------------------*/

.main-header {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(33, 1, 74, 0.95);
  backdrop-filter: blur(5px);
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  margin-right: 10px;
}

.logo span {
  color: var(--text-color);
  font-size: 1.5em;
  font-weight: 700;
  /* Remove or comment out this line to allow text wrapping */
  /* white-space: nowrap; */
}

/* Add a media query to adjust font size for smaller screens */
@media (max-width: 576px) {
  .logo span {
    font-size: 1.1em; /* Adjust as needed for better fit on small screens */
    white-space: normal; /* Ensure text wraps on small screens */
  }
}

@media (max-width: 400px) {
  /* Even smaller screens */
  .logo span {
    font-size: 0.9em; /* Further reduce font size if necessary */
  }
}

.main-nav .nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-links li {
  margin-left: 30px;
  position: relative;
}

.main-nav .nav-links li a {
  color: var(--text-color);
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  font-size: 1.05em;
}

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

.main-nav .nav-links li a:hover::after {
  width: 100%;
}

.main-nav .nav-links li a.active {
  color: var(--primary-color);
}

/* Burger Menu for Mobile Navigation */
.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.burger .line {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: var(--transition);
}

/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/

.hero-section {
  background: linear-gradient(rgba(33, 1, 74, 0.8), rgba(33, 1, 74, 0.8)),
    url("images/kağıt.jpg")
      no-repeat center center/cover;
  color: var(--text-color);
  text-align: center;
  padding: 180px 0 120px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  margin-top: 70px;
}

.hero-section h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  font-size: 1.3em;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/*------------------------------------*\
  #STATS SECTION
\*------------------------------------*/

.stats-section {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
  background-size: cover;
  z-index: -1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3em;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1.1em;
  opacity: 0.9;
}

/*------------------------------------*\
  #ABOUT SECTION
\*------------------------------------*/

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  text-align: left;
}

.about-text .highlight {
  font-size: 1.2em;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 25px;
}

.about-features {
  margin: 30px 0;
}

.about-features li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.about-features i {
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 3px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--hover-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/*------------------------------------*\
  #METHODOLOGY SECTION
\*------------------------------------*/

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.method-card {
  background: var(--text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
}

.method-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.method-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-color);
  font-size: 2em;
  transition: var(--transition);
}

.method-card:hover .method-icon {
  background: var(--secondary-color);
  transform: rotate(10deg) scale(1.1);
}

.method-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/*------------------------------------*\
  #COURSES SECTION
\*------------------------------------*/

.course-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.tab-btn.active {
  background: var(--primary-color);
  color: var(--text-color);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 123, 43, 0.1);
}

.course-card {
  text-align: left;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: 600;
}

.course-card h3 {
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-size: 1.5em;
}

.course-level {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.course-features {
  margin: 20px 0;
}

.course-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95em;
}

.course-features i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.course-price {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.2em;
}

.all-courses-link {
  margin-top: 40px;
  text-align: center;
}

/*------------------------------------*\
  #TESTIMONIALS SECTION
\*------------------------------------*/

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--text-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.testimonial-rating {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.testimonial-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 3em;
  color: rgba(255, 123, 43, 0.2);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.author-info span {
  color: var(--medium-text);
  font-size: 0.9em;
}

/*------------------------------------*\
  #EVENTS SECTION
\*------------------------------------*/

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(33, 1, 74, 0.8));
  color: var(--text-color);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin-bottom: 5px;
  font-size: 1.3em;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.9;
}

/*------------------------------------*\
  #CTA SECTION
\*------------------------------------*/

.cta-section {
  background: linear-gradient(rgba(33, 1, 74, 0.9), rgba(33, 1, 74, 0.9)),
    url("https://via.placeholder.com/1920x600/21014a/ffffff?text=Ücretsiz+Seviye+Tespit")
      no-repeat center center/cover;
  color: var(--text-color);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to the start of the cross axis, useful if content height varies */
  gap: 30px; /* Increased gap for more space between cards */
  flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
}

.info-box {
  width: 320px; /* Increased width for wider boxes */
  height: 320px; /* Adjusted height to maintain square shape */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Aligns content to the left within the box */
  padding: 20px;
  flex-shrink: 0;
  flex-grow: 0;
  /* Removed text-align: center from here */
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center; /* Keep heading centered */
  width: 100%; /* Ensure heading takes full width to center itself */
}

.info-box p {
  margin-bottom: 8px;
  line-height: 1.4;
  text-align: left; /* Ensure paragraphs are left-aligned */
  width: 100%; /* Ensure paragraphs take full width for consistent alignment */
  padding-left: 20px; /* Add some padding for visual separation from the left edge */
}

.info-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.5em;
  margin-left: auto; /* Center icon */
  margin-right: auto; /* Center icon */
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-box p {
  margin-bottom: 10px;
}

.info-box a {
  color: black;
}

.info-box a:hover {
  color: var(--primary-color);
}

.contact-form-wrapper {
  background: var(--text-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.form-title {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  font-size: 2em;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: "Open Sans", sans-serif;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 123, 43, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 1em;
}

.map-container {
  margin-top: 50px;
  text-align: center;
}

.map-title {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-size: 2em;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

/*------------------------------------*\
  #FAQ SECTION
\*------------------------------------*/

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: var(--text-color);
  border: none;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--secondary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-question i {
  transition: var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--text-color);
}

.faq-answer p {
  padding: 0 0 20px;
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/

.main-footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo a {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  margin-right: 10px;
}

.footer-logo span {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.2em;
}

.footer-logo p {
  opacity: 0.8;
  font-size: 0.95em;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3em;
}

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

.footer-links ul li a {
  color: var(--text-color);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-contact ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

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

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter h4 {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-family: "Open Sans", sans-serif;
}

.newsletter-form button {
  background: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 10px;
  opacity: 0.7;
  font-size: 0.9em;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.85em;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
}

/*------------------------------------*\
  #BACK TO TOP BUTTON
\*------------------------------------*/

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/*------------------------------------*\
  #RESPONSIVE DESIGN (MEDIA QUERIES)
\*------------------------------------*/

@media (max-width: 1200px) {
  .hero-section h1 {
    font-size: 3em;
  }
}

@media (max-width: 992px) {
  .main-nav .nav-links {
    position: fixed;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    padding: 0;
  }

  .main-nav .nav-links li {
    opacity: 0;
    margin: 20px 0;
  }

  .burger {
    display: block;
  }

  .nav-active {
    transform: translateX(0%);
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-text {
    text-align: center;
  }

  .about-features {
    text-align: left;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  .section-title {
    font-size: 2.2em;
  }

  .hero-section {
    padding: 150px 0 80px;
  }

  .hero-section h1 {
    font-size: 2.5em;
  }

  .hero-section p {
    font-size: 1.1em;
  }

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

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

  .course-tabs {
    flex-direction: column;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8em;
  }

  .hero-section h1 {
    font-size: 2em;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul,
  .footer-contact ul {
    align-items: center;
    justify-content: center;
  }

  .footer-contact ul li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 5px;
    padding: 10px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1em;
    bottom: 20px;
    right: 20px;
  }
}
