/* Main Stylesheet for Galaxy AI Courses Website */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* RTL Font Support */
html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .btn {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .section-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .section-subtitle {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .hero-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .hero-subtitle {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .category-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .path-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .benefit-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .benefit-description {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .inclusion-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .inclusion-description {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .step-title {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .step-description {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .eligibility-subtitle {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .form-label {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .form-control {
  font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .copyright {
  font-family: 'Tajawal', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

/* Color Variables */
:root {
  --primary-blue: #0066ff;
  --secondary-blue: #0055d4;
  --light-blue: #e6f0ff;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --success-green: #28a745;
  --error-red: #dc3545;
}

/* Typography Utility Classes */
.text-blue {
  color: var(--primary-blue);
}

.text-gray {
  color: var(--medium-gray);
}

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

.text-white {
  color: white;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 500;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-blue);
  margin: 20px auto 0;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  padding: 5px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 40px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:not(.btn):hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--light-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 12px 32px;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/BG.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('images/ai-patterns/circuit-pattern.svg');
  opacity: 0.1;
  z-index: 1;
}

.hero-title {
  font-size: 3.75rem;
  margin-bottom: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  margin-top: 25px;
}

/* Mobile Responsive Styles for Arabic Hero */
@media (max-width: 768px) {
  html[lang="ar"] .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }
  
  html[lang="ar"] .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  
  html[lang="ar"] .hero-text {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  html[lang="ar"] .hero-title {
    font-size: 1.5rem !important;
  }
  
  html[lang="ar"] .hero-subtitle {
    font-size: 0.8rem !important;
  }
  
  html[lang="ar"] .hero-text {
    font-size: 0.8rem !important;
  }
}

/* Eligibility Section */
.eligibility {
  background-color: var(--light-gray);
}

.eligibility-group {
  margin-bottom: 50px;
}

.eligibility-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.eligibility-subtitle.rtl {
  flex-direction: row-reverse;
  text-align: right;
}

.eligibility-subtitle i {
  font-size: 1.4rem;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.eligibility-grid.not-required {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1000px;
  margin: 20px auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-blue);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

/* Inclusions Section */
.inclusions {
  background-color: #e6f0ff;
}

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

.inclusion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inclusion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.inclusion-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.inclusion-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.inclusion-description {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-top: 10px;
}

.cta-button {
  background-color: var(--primary-blue);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(10px);
}

/* Learning Experience Section */
.learning-experience {
  background-color: var(--white);
}

.experience-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.experience-flow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: var(--primary-blue);
  z-index: 0;
}

.experience-step {
  position: relative;
  z-index: 1;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 22%;
  text-align: center;
}

.step-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.step-description {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* Career Paths Section */
.career-paths {
  background-color: var(--light-gray);
}

.paths-categories {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-gray);
  border-left: 4px solid var(--primary-blue);
  padding-left: 15px;
  font-weight: 500;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.path-card {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.path-card .course-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background-color: #f5f5f5;
  padding: 5px;
}

.path-card .path-title {
  padding: 10px 5px;
  margin: 0;
  background: var(--white);
  font-size: 0.9rem;
}

.path-card .course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

.path-card .badge-new {
  background-color: var(--success-green);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.85;
}

.path-card .badge-popular {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.85;
}

.path-card .course-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.path-card:hover .course-details {
  transform: translateY(0);
}

.path-card .course-duration,
.path-card .course-level {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.path-card .course-duration i,
.path-card .course-level i {
  color: var(--primary-blue);
}

.path-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.path-title {
  font-size: 1rem;
  color: var(--dark-gray);
}

.path-card .course-link {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
}

.path-card:hover .course-link {
  right: 20px;
  opacity: 1;
}

.path-card .course-link i {
  font-size: 1.2rem;
}

/* AI Stats Section */
.ai-stats {
  background-color: var(--white);
}

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

.stat-card {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  background-color: var(--light-blue);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 1rem 0;
  transition: all 0.3s ease;
}

/* Add a subtle scale effect when the number is animated */
.stat-number.animated {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.stat-fraction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 1rem 0;
}

.stat-divider {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.stat-denominator {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.stat-description {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.stat-source {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Why Choose Galaxy Section */
.why-galaxy {
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  padding: 30px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-right: 20px;
}

.benefit-content {
  flex-grow: 1;
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark-gray);
  font-weight: 500;
}

.benefit-description {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* RTL Support for Why Choose Galaxy Section */
html[lang="ar"] .benefit-item {
  flex-direction: row-reverse;
}

html[lang="ar"] .benefit-icon {
  margin-right: 0;
  margin-left: 20px;
}

html[lang="ar"] .benefit-content {
  text-align: right;
}

html[lang="ar"] .benefit-title {
  text-align: right;
}

html[lang="ar"] .benefit-description {
  text-align: right;
}

/* Contact Form Section */
.contact {
  background-color:  var(--primary-blue);
  background-image: url('images/BG2.png');
}

.contact .section-header {
  color: var(--white);
}

.contact .section-title {
  color: var(--white) !important;
}

.contact .section-title::after {
  background-color: var(--white);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background: #0056b3;
}

.contact-form button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.form-success-message,
.form-error-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.footer-contact {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

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

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-blue);
}

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

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Phone number formatting for mobile */
@media (max-width: 768px) {
    .footer-contact .phone-number {
        display: none;
    }
    
    .footer-contact a[href^="tel:"]::after {
        content: attr(data-mobile-number);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .experience-flow {
    flex-direction: column;
    gap: 30px;
  }
  
  .experience-flow::after {
    display: none;
  }
  
  .experience-step {
    width: 100%;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .eligibility-grid,
  .inclusions-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .eligibility-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .eligibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .eligibility-grid {
    grid-template-columns: 1fr;
  }
  
  .eligibility-grid.not-required {
    grid-template-columns: 1fr;
  }
}

.title-container {
    position: relative;
    /* height is set inline to 160px */
    width: 650px;
    margin: 0 auto;
}

.title-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.title-text.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .title-container {
        height: 100px !important;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .title-text {
        width: 100%;
    }

    .title-text .text-blue {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .title-container {
        height: 100px !important;
        width: 100%;
        max-width: 300px;
    }

    .title-text .text-blue {
        font-size: 2rem !important;
        line-height: 1;
    }
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.go-to-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

.go-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

@media (max-width: 768px) {
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: auto;
        background: white;
        padding: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 8px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        margin: 0;
    }

    .nav-list .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .nav-list .nav-link.btn.btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* RTL Support for Mobile Menu */
    html[lang="ar"] .nav {
        right: auto;
        left: -100%;
        border-radius: 0 0 8px 0;
    }

    html[lang="ar"] .nav.active {
        left: 0;
        right: auto;
    }

    html[lang="ar"] .nav-list {
        align-items: flex-end;
    }

    html[lang="ar"] .nav-list .nav-link {
        text-align: right;
    }
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: var(--primary-blue);
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Course Card Visibility */
.path-card.hidden {
    display: none;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 20px;
    display: none;
}

.no-results.visible {
    display: block;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--medium-gray);
}

.error {
    text-align: center;
    padding: 40px;
    color: var(--error-red);
}

.error button {
    margin-top: 20px;
}

.exam-details-section {
  margin: 40px 0 0 0;
}

.exam-details-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
  border: none;
  padding-bottom: 0;
  display: block;
  text-align: left;
}

.exam-details-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #e9eef6;
  margin-top: 10px;
}

.exam-details-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.exam-detail-card {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 18px 28px;
  min-width: 220px;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  box-shadow: none;
  border: none;
  gap: 10px;
}

.exam-detail-label {
  font-weight: 700;
  margin-right: 8px;
  color: #222;
}

.exam-detail-desc {
  font-weight: 400;
  color: #222;
}

/* Mobile Section Reordering */
@media (max-width: 768px) {
    .section {
        order: 0; /* Default order */
    }
    
    .hero {
        order: 1;
    }
    
    .career-paths {
        order: 2;
    }
    
    .why-galaxy {
        order: 3;
    }
    
    .ai-stats {
        order: 4;
    }
    
    .inclusions {
        order: 5;
    }
    
    .learning-experience {
        order: 6;
    }
    
    .eligibility {
        order: 7;
    }
    
    .contact {
        order: 8;
    }
    
    .footer {
        order: 9;
    }
}

/* Add display flex to body to enable ordering */
@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
    }
}

/* Updated Language Switcher Styles */
#language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
}

#language-switcher .lang-btn {
  padding: 5px 10px;
  border: 1px solid #0066ff;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
}

#language-switcher .lang-btn:hover {
  background-color: #f0f0f0;
}

#language-switcher .lang-btn.active {
  color: #0066ff;
}

#language-switcher .lang-separator {
  color: #0066ff;
  font-weight: bold;
}

/* RTL Support */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] #language-switcher {
  flex-direction: row-reverse;
}

/* RTL Support for Category Titles */
html[lang="ar"] .category-title {
    text-align: right;
    direction: rtl;
}

html[lang="ar"] .category-title .text-blue {
    margin-left: 5px;
    margin-right: 0;
}

/* Contact Form RTL Support */
.contact-form.rtl {
    direction: rtl;
    text-align: right;
}

.contact-form.rtl .form-label {
    text-align: right;
}

.contact-form.rtl .form-control {
    text-align: right;
}

.contact-form.rtl .form-control::placeholder {
    text-align: right;
}

.contact-form.rtl select.form-control {
    padding-right: 10px;
    padding-left: 30px;
    background-position: left 10px center;
}

.contact-form.rtl textarea.form-control {
    text-align: right;
}

/* RTL Support for Form Validation Messages */
.contact-form.rtl .form-success-message,
.contact-form.rtl .form-error-message {
    text-align: right;
}

/* RTL Support for Form Loading State */
.contact-form.rtl button[type="submit"] {
    direction: rtl;
}

.contact-form.rtl button[type="submit"] i {
    margin-left: 8px;
    margin-right: 0;
}
