@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Basic Styles & Global Resets */
:root {
  --primary-color: #556B2F; /* Olive Green for a calming, natural feel */
  --secondary-color: #8B4513; /* Saddle Brown for secondary accents */
  --accent-color: #e9d358; /* Gold for highlights and CTAs */
  --text-color: #333333; /* Dark gray for readability */
  --light-text-color: #F5F5DC; /* Off-white for contrast on dark backgrounds */
  --bg-color: #F8F4E3; /* A creamy off-white background for a gentle look */
  --card-bg: #FFFFFF; /* Pure white for cards and elements */
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 12px 35px rgba(0, 0, 0, 0.15);
}

html[lang="ar"] {
  font-family: "Tajawal", Arial, sans-serif;
  direction: rtl;
}

html, body {
  overflow-x: hidden;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  text-decoration: none;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.4s, color 0.4s;
}

html::-webkit-scrollbar {
  width: 0.6rem;
}

html::-webkit-scrollbar-track {
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 5rem;
}

/*---------------------------------------------------------Header----------------------------------------------------------------*/

header {
  width: 100%;
  background:var(--accent-color);
  box-shadow: var(--shadow-light);
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--light-text-color);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.main-header {
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  transition: transform 0.3s ease;
  width: 100px;
}

.logo img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--light-text-color);
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a.active {
  background: rgba(255, 255, 255, 0.2);
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--light-text-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.login-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.burger {
  display: none;
  font-size: 1.5rem;
  color: var(--light-text-color);
  cursor: pointer;
}

/*---------------------------------------------------------Home Section----------------------------------------------------------------*/

.home {
  width: 100%;
}

.hero-section {
  background:var(--primary-color);
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: var(--light-text-color);
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: var(--accent-color);
  color: var(--light-text-color);
  box-shadow: 0 4px 15px rgba(181, 101, 118, 0.3);
}

.btn.primary:hover {
  background: #a35d6e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(181, 101, 118, 0.4);
}

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

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

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

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
}

.news-alert {
  background: linear-gradient(90deg, var(--accent-color), #d88a9c);
  color: var(--light-text-color);
  padding: 15px 0;
  overflow: hidden;
}

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

.news-alert p {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  animation: scrollText 20s linear infinite;
  white-space: nowrap;
}

.news-alert i {
  margin-right: 10px;
  font-size: 1.2rem;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/*---------------------------------------------------------About Section----------------------------------------------------------------*/

.about {
  padding: 80px 0;
  background: var(--bg-color);
}

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

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

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--text-color);
}

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

.feature {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.feature p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/*---------------------------------------------------------Steps Section----------------------------------------------------------------*/

.download-steps {
  padding: 80px 0;
  background: var(--card-bg);
}

.download-steps .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.download-steps h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.step {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.step-icon {
  position: relative;
  margin-bottom: 20px;
}

.step-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-color);
  color: var(--light-text-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.step p {
  color: #666;
  line-height: 1.6;
}

/*---------------------------------------------------------Exams Section----------------------------------------------------------------*/

.exams-preview {
  padding: 80px 0;
  background: var(--bg-color);
}

.exams-preview .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

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

.exam-card {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.exam-icon {
  margin-bottom: 20px;
}

.exam-icon i {
  font-size: 3rem;
  color: var(--primary-color);
}

.exam-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.exam-card p {
  color: #666;
  margin-bottom: 20px;
}

.exam-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.exam-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.view-all-exams {
  text-align: center;
  margin-top: 20px;
}

/*---------------------------------------------------------Contact Section----------------------------------------------------------------*/

.contact {
  padding: 80px 0;
  background: var(--card-bg);
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact .container .section-subtitle{
  margin-left: 570px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-color);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-item p {
  color: #666;
}

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

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

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/*---------------------------------------------------------Footer----------------------------------------------------------------*/

footer {
  background: var(--primary-color);
  color: var(--light-text-color);
  padding: 60px 0 20px;
}

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

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

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.footer-section p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  padding-right: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--accent-color);
  color: var(--light-text-color);
  border: none;
  padding: 0 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-links ul {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/*---------------------------------------------------------Modal----------------------------------------------------------------*/

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .modal-content {
        background-color: var(--card-bg);
        margin: 5% auto;
        padding: 30px;
        border-radius: 10px;
        width: 90%;
        max-width: 800px;
        box-shadow: var(--shadow-heavy);
        animation: slideIn 0.3s ease-out;
        position: relative;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .close {
        position: absolute;
        top: 15px;
        right: 20px;
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .close:hover {
        color: var(--text-color);
    }

    .modal-content h2 {
        color: var(--primary-color);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }

    .modal-content h3 {
        color: var(--primary-color);
        margin: 25px 0 10px;
    }

    .modal-content p {
        line-height: 1.6;
        margin-bottom: 15px;
        color: #555;
    }

    .last-updated {
        text-align: center;
        font-style: italic;
        color: var(--primary-color);
        margin-top: 30px;
        font-weight: 500;
    }

/*---------------------------------------------------------Responsive Design----------------------------------------------------------------*/

/* تحسينات للشاشات العريضة جدًا */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }
  .stats-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* تحسينات للشاشات المتوسطة (أجهزة لوحية) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .main-content {
    margin-right: 200px;
  }
  .sidebar.collapsed ~ .main-content {
    margin-right: 70px;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-nav {
    display: none;
  }
  /* إظهار الجدول وإخفاء البطاقات على الأجهزة اللوحية */
  .exam-table {
    display: table;
  }
  .exam-cards {
    display: none;
  }
}

/* وسائط استعلام للهواتف الأكبر (أفقيًا) */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin-bottom: 40px;
  }
  .about-content {
    flex-direction: column;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* وسائط استعلام للهواتف (عموديًا) */
@media (max-width: 768px) {
  /* إخفاء شريط التمرير */
  ::-webkit-scrollbar {
    display: none;
  }
  body {
    scrollbar-width: none;
  }
  html, body {
    -ms-overflow-style: none;
  }
  /* قائمة التنقل */
  .nav-links {
    display: none;
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    box-shadow: var(--shadow-light);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .burger {
    display: block;
  }
  /* محتوى الصفحة */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .footer-links ul {
    justify-content: center;
  }
  .contact {
    width: 100%;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact .container .section-subtitle {
    margin-left: 0;
    text-align: center;
  }
  .contact-form h3 {
    font-size: 1.3rem;
  }
  .contact-info {
    gap: 20px;
    width: 90%;
  }
  .contact-form{
    width: 90%;
  }
  .social-links {
    justify-content: center;
  }
  body {
    width: 100%;
    display: block;
  }
  .container {
    flex-direction: column;
    padding-bottom: 70px;
  }
  /* الشريط الجانبي والقائمة المتنقلة */
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--card-bg);
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  .mobile-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mobile-nav li {
    flex: 1;
    text-align: center;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
  }
  .mobile-nav i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
  }
  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: rgba(85, 107, 47, 0.1);
  }
  /* المحتوى الرئيسي */
  .main-content {
    margin-right: 0;
    padding: 15px;
    width: 100%;
  }
  .top-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
  }
  .search {
    width: 100%;
    order: 2;
  }
  .user {
    align-self: flex-start;
    order: 1;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-card p {
    font-size: 1.5rem;
  }
  .exams-section h1 {
    font-size: 1.5rem;
  }
  .subject-section {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 90%;
    display: block;
    margin-left: 0; /* تم تعديل هذه القيمة لأنها غير منطقية */
  }
  .subject-title {
    padding: 12px 15px;
    font-size: 1.1rem;
  }
  /* الجدول والبطاقات */
  .exam-table {
    display: none;
  }
  .exam-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 30px;
    background: var(--card-bg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  .exam-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  .exam-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .exam-card-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .exam-card-label {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 80px;
  }
  .exam-card-value {
    text-align: left;
  }
  .exam-card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .exam-card-actions a,
  .exam-card-actions button {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
  }
  .btn-download {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
  }
  .btn-download:hover {
    background: #556b2f;
    border-color: #556b2f;
    transform: translateY(-2px);
  }
  #toggle-btn {
    display: none;
  }
  #dark-mode-toggle {
    bottom: 80px;
    left: 15px;
    width: 45px;
    height: 45px;
  }
  .hello {
    top: 60px;
    left: -130px;
    width: 180px;
  }
}

/* وسائط استعلام للهواتف الصغيرة جدًا */
@media (max-width: 576px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }
  .contact-info {
    justify-content: center;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 250px;
  }
  .steps-container, .exams-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  .newsletter-form button {
    border-radius: 5px;
    padding: 10px;
  }
}

/* وسائط استعلام للهواتف الصغيرة جدًا جدًا */
@media (max-width: 480px) {
  .main-content {
    padding: 10px;
  }
  .top-bar {
    padding: 12px;
  }
  .stats-container {
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card p {
    font-size: 1.3rem;
  }
  .exams-section h1 {
    font-size: 1.3rem;
  }
  .subject-title {
    padding: 10px 12px;
    font-size: 1rem;
  }
  /* تعديلات إضافية للبطاقات على الشاشات الصغيرة */
  .exam-cards {
    padding: 10px;
    gap: 10px;
  }
  .exam-card {
    padding: 12px;
  }
  .exam-card-actions {
    gap: 8px;
  }
  .exam-card-actions a,
  .exam-card-actions button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .mobile-nav a {
    padding: 8px 3px;
    font-size: 0.75rem;
  }
  .mobile-nav i {
    font-size: 1.1rem;
  }
}
.beta{
  width: 200px;
  position: absolute;
  margin-top: 80px;
  margin-right: -20px;
}