:root {
  --primary-color: #01497c;
  --secondary-color: #016b9c;
  --accent-color: #25d366;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #222;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
}

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

/* Header Styles */
header {
  background: linear-gradient(135deg, #ff8c00, #ffa500, #ff8c00);
  color: var(--white);
  padding: 10px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 80px;
  margin-left: 15px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
nav {
  background: var(--secondary-color);
  padding: 8px 0;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 8px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://res.cloudinary.com/dgmz3pcqy/image/upload/v1759813007/file_0000000030c061f48f983f4f6b2648f6_m85wfp.png') no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 40px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-color);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--white);
}

.cta-button:hover {
  background: transparent;
  transform: translateY(-3px);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Section Styles */
.section {
  padding: 50px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  bottom: -10px;
  right: 25%;
}

.section-header p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

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

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 150px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.article-content {
  padding: 20px;
}

.article-content .category {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.article-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.article-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.article-content h3 a:hover {
  color: var(--accent-color);
}

.article-content p {
  margin-bottom: 15px;
  color: #666;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

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

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

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

.testimonial-author-info p {
  color: #777;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  padding: 20px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

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

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

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

.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details i {
  margin-left: 10px;
  color: var(--accent-color);
  font-size: 1.2rem;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

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

/* Map */
.map-container {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
  margin: 50px 0;
}

.cta-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 50px 0 20px;
}

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

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

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

.footer-section p,
.footer-section li {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

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

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Changed from left to right for better UX */
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.whatsapp {
  background: #25d366;
}

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

.floating-buttons a:hover {
  transform: scale(1.1);
}

/* Slider Styles */
.slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

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

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
  min-width: 50px;
}

.slider-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  border-radius: 10px;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-modal:hover {
  background: #f0f0f0;
}

.modal-body {
  padding: 30px;
}

.modal-body h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.modal-body img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  margin-top: 15px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  nav {
    display: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 5px 0;
  }

  .floating-buttons {
    bottom: 10px;
    left: 10px;
  }

  .floating-buttons a {
    width: 45px;
    height: 45px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  /* Mobile slider optimization */
  .slider {
    height: 50vh;
    min-height: 250px;
  }
  
  .slider-controls button {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .slider-dots {
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 30px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
  
  /* Small mobile devices slider optimization */
  .slider {
    height: 40vh;
    min-height: 200px;
  }
  
  .slider-controls button {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 40px;
  }
  
  .slider-dots {
    bottom: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}