:root {
    --primary: #4a6bff;
    --secondary: #ff6b6b;
    --dark: #2d3748;
    --light: #f8f9fa;
    --gray: #718096;
    --success: #48bb78;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

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

header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

/* .nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
} */

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* padding: 0.5rem 0; */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #2F80ED, #1565C0);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #2F80ED;
  transform: translateY(-2px);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #2F80ED;
  transition: transform 0.3s ease;
}

.mobile-menu:hover {
  transform: scale(1.1);
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

/* .mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
} */

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
  text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
     margin: 40px 0 -60px 0;
}


.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.hero-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.hero-img-1 {
    width: 70%;
    top: 0;
    right: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero-img-2 {
    width: 60%;
    bottom: 0;
    left: 0;
    z-index: 2;
    animation: float 7s ease-in-out infinite 1s;
}

.hero-img-3 {
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.7;
    animation: float 8s ease-in-out infinite 2s;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;

}
 /* Language switcher styles */
 .language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}
.language-switcher a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.language-switcher a:hover {
    background-color: #f0f0f0;
}
.language-switcher a.active {
    background-color: #007bff;
    color: white;
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #6c8aff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Study Plan Section */
.study-plan {
    padding: 100px 0;
    background-color: #f9faff;
}

.plan-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.logo-img {
    width: 60px !important;
    height: 60px !important;
    color: white;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

.plan-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.plan-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-img-main {
    width: 80%;
    top: 0;
    right: 0;
    z-index: 2;
    animation: scalePulse 8s infinite;
}

.plan-img-bg {
    width: 70%;
    bottom: 0;
    left: 0;
    z-index: 1;
    opacity: 0.8;
}

@keyframes scalePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.plan-content {
    flex: 1;
    padding-left: 50px;
}

.plan-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.plan-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.plan-steps {
    margin-top: 30px;
}

.plan-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Practice Exams Section */
.practice-exams {
    padding: 100px 0;
    background-color: white;
}

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

.exam-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.exam-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.exam-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.exam-content {
    padding: 25px;
}

.exam-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.exam-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.exam-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.exam-questions {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 14px;
}

.exam-questions i {
    margin-right: 5px;
    color: var(--primary);
}

/* Progress Tracking Section */
.progress-tracking {
    padding: 100px 0;
    background-color: #f9faff;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.progress-content {
    flex: 1;
    padding-right: 50px;
}

.progress-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.progress-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.progress-stats {
    margin-top: 40px;
}

.stat-item {
    margin-bottom: 25px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-title {
    font-weight: 600;
}

.stat-percent {
    color: var(--primary);
    font-weight: 700;
}

.progress-bar {
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #6c8aff 100%);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

.progress-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.progress-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.progress-img-main {
    width: 80%;
    top: 0;
    left: 0;
    z-index: 2;
    animation: slideLeftRight 8s infinite;
}

.progress-img-bg {
    width: 70%;
    bottom: 0;
    right: 0;
    z-index: 1;
    opacity: 0.8;
}

@keyframes slideLeftRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonials-slider {
    margin-top: 50px;
    position: relative;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 15px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
}

.slick-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.slick-dots .slick-active button {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6c8aff 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-button.white {
    background-color: white;
    color: var(--primary);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.cta-button.white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

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

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

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .plan-container, .progress-container {
        flex-direction: column;
    }
    
    .hero-text, .plan-content, .progress-content {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-image, .plan-image, .progress-image {
        width: 100%;
        height: 400px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .plan-content h2, .progress-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
   .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding-top: 3rem;
      transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      z-index: 999;
  }
  
  .nav-links.active {
      left: 0;
  }
  
  .nav-links li {
      margin: 1.5rem 0;
      transform: translateY(20px);
      opacity: 0;
      transition: all 0.3s ease;
  }
  
  .nav-links.active li {
      transform: translateY(0);
      opacity: 1;
      transition-delay: calc(var(--i, 0) * 0.1s);
  }
  
  .nav-links a {
      font-size: 1.3rem;
      font-weight: 600;
  }
  
  .mobile-menu {
      display: block;
      z-index: 1001;
  }
  

    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .features, .study-plan, .practice-exams, .progress-tracking, .testimonials, .cta {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p, .section-title p, .cta p {
        font-size: 16px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .feature-card, .exam-card {
        padding: 20px;
    }
}

.about-hero {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}
.hero-text h1 {
    color: white;
}
.hero-text p {
    color: white;
}
.our-story {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #3a7bd5;
    top: 0;
    bottom: 0;
    left: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 100px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #3a7bd5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.timeline-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    margin-top: 0;
    color: #3a7bd5;
}

.team-section {
    padding: 80px 0;
}

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

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f1f1f1;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: #3a7bd5;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #3a7bd5;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: #3a7bd5;
    color: white;
}

.mission-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mission-text {
    flex: 1;
}

.mission-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: white;
}

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

.stat-item {
    padding: 30px 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.contact-main {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding-top: 20px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

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

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3a7bd5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #3a7bd5;
}

.info-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}




/* Responsive Styles */
@media (max-width: 992px) {
    .mission-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

      .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding-top: 3rem;
      transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      z-index: 999;
  }
  
  .nav-links.active {
      left: 0;
  }
  
  .nav-links li {
      margin: 1.5rem 0;
      transform: translateY(20px);
      opacity: 0;
      transition: all 0.3s ease;
  }
  
  .nav-links.active li {
      transform: translateY(0);
      opacity: 1;
      transition-delay: calc(var(--i, 0) * 0.1s);
  }
  
  .nav-links a {
      font-size: 1.3rem;
      font-weight: 600;
  }
  
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .story-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

.back_to_setting {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    direction: ltr; /* Always LTR for proper icon alignment */
}

/* English text */
html[lang="en"] .back_to_setting::before {
    content: "Back to Settings";
}

/* Arabic text */
html[lang="ar"] .back_to_setting::before {
    content: "العودة إلى الإعدادات";
    font-family: 'Cairo', 'Tajawal', sans-serif;
    letter-spacing: normal;
}

.back_to_setting:hover {
    background: linear-gradient(135deg, #1565C0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 128, 237, 0.4);
    color: white;
    text-decoration: none;
}

.back_to_setting:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
}

.back_to_setting i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.back_to_setting:hover i {
    transform: translateX(-2px);
}

/* RTL Support for Arabic */
html[dir="rtl"] .back_to_setting {
    left: auto;
    right: 2rem;
    flex-direction: row-reverse;
}

html[dir="rtl"] .back_to_setting i {
    transform: scaleX(-1); /* Flip arrow for RTL */
}

html[dir="rtl"] .back_to_setting:hover i {
    transform: scaleX(-1) translateX(2px);
}

/* Icon positioning and animation */
.back_to_setting i {
    order: 2; /* Place icon after text */
    margin-left: 0.3rem;
}

html[dir="rtl"] .back_to_setting i {
    order: -1; /* Place icon before text in RTL */
    margin-left: 0;
    margin-right: 0.3rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .back_to_setting {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    html[dir="rtl"] .back_to_setting {
        left: auto;
        right: 1rem;
    }
}