/* =========================
    Reset & Global Styles
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  background: #f5f5f5;
}

a {
  text-decoration: none;
}

/* Header */
.header {
  background: #0057B7;
  padding: 10px 18px;
  /* أقل ارتفاع */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

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

  direction: rtl;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  /* قرب الكلمة من اللوغو */
}

.logo img {
  height: 46px;
  /* أصغر شوي */
}

.logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ===== Nav ===== */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  font-size: 17px;
  font-weight: 600;
  margin-left: 22px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: #ffcc00;
  color: #0057B7;
  transform: translateY(-2px);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 8px;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 15px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero.jpg') center/cover no-repeat;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  padding: 0 20px 60px;
  color: white;
}

.hero-text {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px 50px;
  border-radius: 12px;
  display: inline-block;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 25px;
}

.hero-text button {
  background: #ffcc00;
  color: #0057B7;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

.hero-text button:hover {
  transform: scale(1.05);
}

/* Services */
.page-title {
  text-align: center;
  font-size: 32px;
  margin: 40px 0 20px;
  color: #0057B7;
}

.devices {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.device-card {
  background: #e3e6dd;
  padding: 30px 20px;
  border-radius: 12px;
  font-size: 18px;
  text-align: center;
  flex: 1 1 250px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

.card-icon {
  width: 60px;
  margin-bottom: 15px;
}

/* Carousel */
.carousel {
  max-width: 1000px;
  margin: 60px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel img {
  width: 100%;
  display: none;
  border-radius: 12px;
}

.carousel img.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-nav span {
  cursor: pointer;
  font-size: 40px;
  color: white;
  padding: 0 15px;
  user-select: none;
}

/* Testimonials */
.testimonials {
  background: #0057B7;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.testimonial-card {
  max-width: 600px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
}

/* Statistics */
.statistics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  text-align: center;
}

.stat-card {
  flex: 1 1 200px;
  background: #e3e6dd;
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
}

.stat-card img {
  width: 50px;
  margin-bottom: 10px;
}

/* Featured Plans */
.featured-plans {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.plan-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.plan-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  flex: 1 1 250px;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.plan-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.plan-card p {
  font-size: 18px;
  margin-bottom: 15px;
}

.plan-card button {
  background: #0057B7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.plan-card button:hover {
  background: #ffcc00;
  color: #0057B7;
  transform: translateY(-2px);
}

/* CTA Banner */
.cta-banner {
  background: #ffcc00;
  color: #0057B7;
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 60px 20px;
  font-size: 24px;
  font-weight: bold;
}

.cta-banner a {
  color: #0057B7;
  background: white;
  padding: 12px 25px;
  border-radius: 8px;
  margin-left: 20px;
  font-weight: 600;
}

/* =========================
   Sections Titles
========================= */
section {
  padding: 60px 40px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #0057B7;
}

/* =========================
   FAQ Section
========================= */
.faq-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  width: 100%;
  background: #e3e6dd;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: 0.3s;
  color: #0057B7;
}

.faq-question:hover {
  background: #d4d7cd;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: white;
  border-radius: 0 0 10px 10px;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 15px 20px;
  margin: 0;
  color: #333;
  line-height: 1.7;
}

/* =========================
   Plans / Cards
========================= */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

/* Hero */
.plans-hero {
  background: url('../images/plans.jpg') center/cover no-repeat;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.plans-hero .hero-text h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.plans-hero .hero-text p {
  font-size: 20px;
}

/* Plans Cards */
.plans-section {
  padding: 50px 20px;
  text-align: center;
}

.plans-section .plans {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: #e3e6dd;
  padding: 25px 15px;
  border-radius: 12px;
  width: 250px;
  position: relative;
  transition: 0.3s;
  cursor: pointer;
}

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

.plan-card.popular {
  border: 2px solid #0057B7;
}

.plan-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffcc00;
  color: #0057B7;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}

.plan-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.plan-card ul li {
  margin: 8px 0;
}

.plan-card .price {
  font-size: 20px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.plan-card button {
  background: #0057B7;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.plan-card button:hover {
  background: #004399;
}

/* Comparison Table */
.comparison-section {
  padding: 50px 20px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 12px;
}

.comparison-table th {
  background: #0057B7;
  color: white;
}

.comparison-table td {
  background: white;
}

/* Carousel */
.offers-section {
  padding: 50px 20px;
  text-align: center;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel img {
  width: 100%;
  display: none;
}

.carousel img.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-nav span {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

/* Testimonials */
.testimonials-section {
  padding: 50px 20px;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: #0057B7;
  color: white;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.confirm-btn {
  background: #0057B7;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.confirm-btn:hover {
  background: #004399;
}

/* Section Titles */
.section-title {
  font-size: 32px;
  color: #0057B7;
  margin-bottom: 30px;
}

/* =========================
   Footer
========================= */
.footer {
  background: #0057B7;
  color: white;
  font-size: 14px;
  padding: 40px 20px 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-column a {
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #ffcc00;
}

.footer-column a img {
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

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

/* =========================
   About Page
========================= */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  background: #f5f5f5;
}

h2 {
  text-align: center;
  color: #0057B7;
  margin: 40px 0 20px;
  font-size: 32px;
}

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/about-hero.jpg') center/cover no-repeat;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.about-hero-text h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.about-hero-text p {
  font-size: 20px;
}

/* About Us */
.about-section {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.about-content img {
  flex: 1 1 400px;
  border-radius: 12px;
  width: 100%;
}

.about-text {
  flex: 1 1 500px;
}

/* Vision & Mission */
.vision-mission-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.vm-card {
  flex: 1 1 300px;
  background: #e3e6dd;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.vm-card img {
  width: 60px;
  margin-bottom: 15px;
}

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

/* Partners */
.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.partners-logos img {
  width: 150px;
  filter: grayscale(20%);
  transition: transform 0.3s;
}

.partners-logos img:hover {
  transform: scale(1.1);
}

/* =========================
   Timeline Section
========================= */
.timeline-section {
  padding: 60px 20px;
  text-align: center;
}

.timeline-section h2 {
  font-size: 32px;
  color: #0057B7;
  margin-bottom: 50px;
}

/* الخط الوسطي */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: #ffcc00;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* العنصر */
.timeline-item {
  position: relative;
  width: 45%;
  background: #e3e6dd;
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* يمين */
.timeline-item:nth-child(odd) {
  margin-left: auto;
  text-align: right;
}

/* يسار */
.timeline-item:nth-child(even) {
  margin-right: auto;
  text-align: right;
}

/* النقطة الزرقاء */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 18px;
  height: 18px;
  background: #0057B7;
  border-radius: 50%;
  z-index: 1;
}

/* نقطة عناصر اليمين → يسار الكارد (باتجاه الخط) */
.timeline-item:nth-child(odd)::before {
  left: -9px;
}

/* نقطة عناصر اليسار → يمين الكارد (باتجاه الخط) */
.timeline-item:nth-child(even)::before {
  right: -9px;
}

/* السنة */
.timeline-item .year {
  font-size: 20px;
  font-weight: bold;
  color: #0057B7;
  display: block;
  margin-bottom: 8px;
}

/* النص */
.timeline-item p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    margin-right: 0;
    margin-left: 40px;
  }

  .timeline-item::before {
    left: -32px;
    right: auto;
  }
}

/* =========================
   Team Section
========================= */

.team-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

/* Team Card */
.team-card {
  position: relative;
  flex: 1 1 250px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image fills the card */
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Overlay */
.team-card .team-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  text-align: center;
  color: white;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.2),
      transparent);
}

/* Name */
.team-card h3 {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 700;
}

/* Role */
.team-card p {
  font-size: 15px;
  color: #ffcc00;
}

/* Hover Effect */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* =========================
   Responsive Media Queries
========================= */
@media (max-width: 768px) {

  /* Header */
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 15px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {

  /* Hero */
  .hero-text {
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  /* Cards full width */
  .plan-card,
  .device-card,
  .support-box {
    width: 100%;
  }

  /* Header logo smaller */
  .header .logo img {
    height: 60px;
  }
}


/* Hero */
.support-hero {
  background: url('../images/support.jpg') center/cover no-repeat;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.support-hero .hero-text h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.support-hero .hero-text p {
  font-size: 20px;
}

/* Support Cards */
.support-cards-section {
  padding: 50px 20px;
  text-align: center;
}

.support-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.support-card {
  background: #e3e6dd;
  padding: 25px 15px;
  border-radius: 12px;
  width: 250px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.support-card .icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.support-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* FAQ */
.faq-section {
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  color: #0057B7;
  margin-bottom: 30px;
  text-align: center;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  width: 100%;
  padding: 15px;
  text-align: right;
  background: #e3e6dd;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.faq-question:hover {
  background: #d0d3c8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  background: white;
  padding: 0 15px;
  border-radius: 0 0 10px 10px;
}

.faq-answer p {
  margin: 10px 0;
}

/* Contact Form */
.contact-form-section {
  padding: 50px 20px;
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

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

.contact-form button {
  background: #0057B7;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #004399;
}

.plan-card.highlight {
  border: 3px solid #ffcc00;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
  transform: scale(1.03);
}