/* General Styles */
body {
  line-height: 1.6;
  margin: 0;
  direction: rtl;
  scroll-behavior: smooth;
  background-color: #f4f4f4;
  font-family: "Cairo", sans-serif !important;
  font-weight: 600;
}

*:not(i) {
  font-family: 'Cairo', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800 !important;
}

.call-number {
  cursor: pointer;
  color: white;
}

/* ===========================
   HEADER (Fixed Navbar)
=========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(24, 19, 19, 0.2);
  padding: 10px 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ===========================
   LOGO
=========================== */
.logo img {
  width: 230px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .logo img {
    width: 180px;
  }
}

/* ===========================
   CALL BUTTON
=========================== */
.call-button {
  gap: 8px;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  text-decoration: none;
  background-color: #232a62;
  color: white;
  padding: 5px 16px;
  border-radius: 10px;
  font-size: 30px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(61, 138, 208, 0.5);
  white-space: nowrap;
}

.call-button:hover {
  color: white;
  text-decoration: none;
}

.call-button i {
  margin-left: 5px;
}

/* ===========================
   MENU TOGGLE (Hamburger)
=========================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1a2546;
}

/* ===========================
   NAV LINKS (Desktop)
=========================== */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  text-decoration: none;
  color: #1a2546;
  font-size: 16px;
  font-weight: 600;
}

.nav-links a:hover {
  color: #3d8ad0;
}

/* ===========================
   RESPONSIVE (Tablet + Mobile)
=========================== */
@media (max-width: 992px) {
  .call-button {
    font-size: 18px;
    padding: 5px 12px;
  }

  .logo img {
    width: 200px;
  }
}

@media (max-width: 768px) {
  nav {
    display: flex;
    align-items: center;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: block;
    margin-left: 10px;
  }

  /* Hide nav links initially */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 55px;
    left: 0;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .call-button {
    font-size: 18px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .call-button {
    font-size: 17px;
    padding: 3px 8px;
  }

  .menu-toggle {
    font-size: 26px;
  }

  .nav-links {
    top: 50px;
  }

  .logo img {
    width: 165px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Animated Button Styling */
.animated-button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: #232a62;
  padding: 12px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.animated-button:hover {
  color: white;
  text-decoration: none;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.animated-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-out;
  z-index: -1;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

.hero-text {
  border: 1px solid white;
  text-align: center;
  background: #232a62;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 10px;
}

.hero-text p {
  font-size: 18px;
  margin: 0;
}

.hero .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f4b400;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* About Section */
.about-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: right;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1 1 400px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1 1 400px;
  color: #333;
  line-height: 1.7;
  padding: 0 10px;
}

.about-text h3 {
  font-size: 1.6rem;
  color: #232a62;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.about-text a {
   font-size: 1.6rem;
  color: #232a62;
  text-decoration: none;
  font-weight: bold;
}

.about-text a:hover {
  text-decoration: underline;
}

.call-to-action {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.2rem;
  margin-top: 15px;
}

/* Consolidated Mobile Fixes - REPLACES ALL PREVIOUS MOBILE QUERIES */
@media (max-width: 768px) {
  .about-section {
    padding: 30px 15px !important;
    max-height: none !important;
    height: auto !important;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .about-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .about-image {
    flex: 1 1 auto;
    max-width: 100%;
    order: 2;
  }

  .about-image img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }

  .about-text {
    flex: 1 1 auto;
    padding: 0;
    order: 1;
  }

  .about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .call-to-action {
    font-size: 1rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 25px 10px !important;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .about-wrapper {
    gap: 15px;
  }

  .about-image img {
    max-height: 200px;
  }

  .about-text h3 {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  .call-to-action {
    font-size: 0.95rem;
  }
}

/* Gallery Section - UPDATED FOR YOUR HTML STRUCTURE */
.gallery-section {
  padding: 0px 20px;
  background: #f8f9fa;
  text-align: center;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #3d8ad0;
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 30px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.contact-icon,
.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 30px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none !important;
  color: white !important; /* Added !important to ensure white color */
  background-color: #232a62;
  transition: all 0.3s ease; /* Changed to 'all' for better hover effects */
  box-sizing: border-box;
  margin-left: 10px;
  margin-right: 0;
  border: 2px solid transparent; /* Added for better hover effect */
}

/* Fixed the hover selector - removed space before :hover */
.contact-icon:hover,
.contact-whatsapp:hover {
  color: white !important; /* Ensure color stays white on hover */
  background-color: #1a2546; /* Darker shade for hover effect */
  transform: scale(1.05); /* Added scale effect on hover */
  text-decoration: none !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Added shadow on hover */
}

.contact-whatsapp {
  background-color: #25d366 !important;
}

/* WhatsApp specific hover effect */
.contact-whatsapp:hover {
  background-color: #1da851 !important; /* Darker green on hover */
}

/* Increased icon size and improved alignment */
.contact-icon i,
.contact-whatsapp i {
  margin-right: 12px; /* Slightly increased margin */
  font-size: 32px !important; /* Increased from 24px to 32px */
  transition: transform 0.3s ease; /* Added transition for icon */
}

/* Optional: Add icon animation on hover */
.contact-icon:hover i,
.contact-whatsapp:hover i {
  transform: scale(1.1); /* Slight icon scale on hover */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .contact-icon,
  .contact-whatsapp {
    padding: 12px 25px;
    font-size: 24px;
  }
  
  .contact-icon i,
  .contact-whatsapp i {
    font-size: 28px !important; /* Slightly smaller on mobile */
    margin-right: 10px;
  }
}

@media (max-width: 480px) {
  .contact-icon,
  .contact-whatsapp {
    padding: 10px 20px;
    font-size: 20px;
  }
  
  .contact-icon i,
  .contact-whatsapp i {
    font-size: 24px !important;
    margin-right: 8px;
  }
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: 600;
}

.whatsapp-button i {
  font-size: 20px;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1a2546 0%, #232a62 100%);
  color: white;
  padding: 40px 20px 20px;
  /* margin-top: 50px; */
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3d8ad0, #25d366, #f4b400);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Social Media Section */
.social-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Specific social media colors on hover */
.social-link:nth-child(1):hover { background: #006eff; } /* Facebook */
.social-link:nth-child(2):hover { background: hsl(184, 81%, 58%); } /* Instagram */
.social-link:nth-child(3):hover { background: #1da1f2; } /* Twitter */
.social-link:nth-child(4):hover { background: #df0e0e; } /* YouTube */
.social-link:nth-child(5):hover { background: #40ade7; } /* LinkedIn */

/* Credits Section */
.credits-section {
  padding-top: 20px;
}

.credits-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

.developer-link {
  color: #3d8ad0;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.developer-link:hover {
  color: #fff;
  background: #3d8ad0;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(61, 138, 208, 0.4);
}

.separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
  }
  
  .social-title {
    font-size: 1.2rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .credits-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .social-icons {
    gap: 10px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .social-title {
    font-size: 1.1rem;
  }
  
  .credits-text {
    font-size: 0.85rem;
  }
  
  .separator {
    display: block;
    margin: 5px 0;
  }
}

/* Animation for social icons */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.social-link {
  animation: float 3s ease-in-out infinite;
}

.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.4s; }
.social-link:nth-child(4) { animation-delay: 0.6s; }
.social-link:nth-child(5) { animation-delay: 0.8s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .social-link {
    animation: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  #lightbox-img {
    max-width: 95%;
    max-height: 70vh;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }

  .contact-icon,
  .contact-whatsapp {
    font-size: 24px;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 0px 20px !important;
  }

  .gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item img {
    height: 180px;
  }

  .contact-icon,
  .contact-whatsapp {
    font-size: 18px;
    padding: 10px 20px;
  }

  .contact-icon i,
  .contact-whatsapp i {
    font-size: 20px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .animated-button,
  .animated-button::before {
    transition: none;
    animation: none;
  }

  .gallery-item:hover {
    transform: none;
  }
}

/* FAQ Section */
.faq-section {
  padding: 50px 20px;
  background: #f7f7f7;
  direction: rtl;
  text-align: right;
  font-family: "Cairo", sans-serif;
}

.faq-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #222;
}

.faq-section dl {
  max-width: 900px;
  margin: 0 auto;
}

.faq-section dt {
  font-size: 22px;
  font-weight: 700;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  border-right: 4px solid #0aa60f;
}

.faq-section dt:hover {
  background: #e7ffe8;
}

/* Default (hidden state) */
.faq-section dd {
  font-size: 18px;
  background: #fafafa;
  padding: 0; /* remove all padding */
  margin: 0;  /* remove margin so nothing shows */
  border-radius: 0; /* prevent borders from showing */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  border-right: 0; /* hide border */
}

/* Active (visible state) */
.faq-section dd.active {
  padding: 14px 20px; /* visible padding */
  margin-bottom: 20px; /* space below visible answer */
  border-radius: 10px;
  border-right: 3px solid #0aa60f;
}



@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 26px;
  }

  .faq-section dt {
    font-size: 20px;
    padding: 14px 16px;
  }

  .faq-section dd {
    font-size: 17px;
    padding: 6px 16px;
  }
}
