/* Add to your CSS */






body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.ziqain-footer {
  background: linear-gradient(135deg, #800000, #4a4a4a);
  color: #fff;
  padding: 3rem 5% 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-brand h2 {
  font-size: 2rem;
  margin: 0.5rem 0;
  color: #ffd700;
}

.footer-brand p {
  max-width: 300px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links ul,
.footer-contact p {
  margin: 0.5rem 0;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  color: #ffd700;
  margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
  text-decoration: none;
  color: #f1f1f1;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffd700;
}

.footer-logo {
  height: 100px; /* Keep the height fixed */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(2.5); /* Visually scale up the logo */
  transform-origin: center;
  margin-bottom: 0.5rem;
}


.footer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}





.footer-social .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
}

.footer-bottom-bar button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffd700;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

#scrollToTop {
  right: 110px;
}

#darkToggle {
  right: 20px;
}

.footer-bottom-bar button:hover {
  background-color: #fff;
  color: #800000;
}

/* ===== DARK MODE FIX ===== */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}
body.dark-mode .ziqain-footer {
  background: linear-gradient(135deg, #1c1c1c, #0d2f0d);
}
body.dark-mode .footer-links a,
body.dark-mode .footer-contact a {
  color: #f0f0f0;
}
body.dark-mode .footer-links a:hover,
body.dark-mode .footer-contact a:hover {
  color: #ffd700;
}
body.dark-mode .footer-bottom-bar button {
  background-color: #ffd700;
  color: #121212;
}
body.dark-mode #darkToggle {
  background-color: #f0f0f0;
  color: #121212;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

.ziqain-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
   transform: scale(1.0);
 
}

.brand-logo img {
  height: 80px;
   transform: scale(1.5);
   
   
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #800000;
  font-weight: bold;
  white-space: nowrap;
 
}


.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #a16f03;
}

.contact-btn a {
  background-color: #800000;
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-btn a:hover {
  background-color: #006400;
}

/* Improved dropdown styles */
.dropdown {
  position: relative;
}

/* Add this to your existing CSS */

/* Improved dropdown styles */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: " ▾";
  font-size: 0.8em;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 200px;
  z-index: 1000;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Ensure dropdown stays open when hovering over it */
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Improved accessibility */
.nav-links a:focus {
  outline: 2px solid #800000;
  outline-offset: 2px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: #f0f0f0;
  color: #800000;
  padding-left: 1.2rem;
}

/* Improved keyboard accessibility */
.nav-links a:focus {
  outline: 2px solid #800000;
  outline-offset: 2px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: #f0f0f0;
  color: #800000;
  padding-left: 1.2rem;
}

/* Mobile-friendly toggle for future responsiveness */
.nav-toggle {
  display: none;
}

.hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 5%;
  background: linear-gradient(to right, #800000, #006400);
  color: white;
  flex-wrap: wrap;
  overflow: hidden;
}

.banner-text {
  flex: 1 1 50%;
  z-index: 1;
}

.banner-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.banner-text span {
  color: #ffd700;
}

.banner-text p {
  font-size: 1.2rem;
  max-width: 400px;
}

.banner-graphics {
  flex: 1 1 50%;
  position: relative;
  height: 300px;
}



section {
  padding: 4rem 5%;
  background-color: #f9f9f9;
}

.content-block {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #800000;
}

.content-block p {
  font-size: 1.1rem;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

form input, form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

form button {
  width: 150px;
  padding: 0.8rem;
  background-color: #006400;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #800000;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

.flyer-section {
  background-color: #fff8f0;
  padding: 4rem 5%;
  text-align: center;
  border-top: 2px dashed #800000;
  border-bottom: 2px dashed #006400;
}

.flyer-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #800000;
  margin-bottom: 1rem;
}

.flyer-subheading {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.swiper {
  width: 50%;
  max-width: 700px;
  margin: auto;
  padding: 2rem 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flyer-image {
  max-width: 70%;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.flyer-image:hover {
  transform: scale(1.03);
}


.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}



.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-overlay-text span {
  color: #ffd700;
}






.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.overlay-text span {
  color: #ffd700;
}


.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-overlay-text span {
  color: #ffd700;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}



#typed-text {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta-btn {
  background: #ffd700;
  color: #800000;
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}


.hero-cta-btn:hover {
  background: #ff9f00;
  color: white;
}


.hero-cta-btn.secondary {
  background: transparent;
  border: 2px solid #ffd700;
  color: #fff;
}

.hero-cta-btn.secondary:hover {
  background: #ffd700;
  color: #800000;
}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.7);
  color: #800000;
  border: none;
  font-size: 2rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-btn:hover {
  background: #ffd700;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-left {
  left: 30px;
}

.slider-right {
  right: 30px;
}

.scroll-lottie {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}





/* Existing CSS here (unchanged above this line) */
/* ... rest of the existing CSS ... */

/* ================= Responsive Adjustments ================== */
@media (max-width: 768px) {
  .ziqain-navbar {
    flex-wrap: wrap;
    padding: 1rem 5%;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #800000;
    margin-left: auto;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    background-color: #fff;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
  }

  .nav-links li,
  .nav-links .dropdown {
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: none;
    padding-left: 1rem;
    margin-top: 0.3rem;
  }

  .contact-btn {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  .hero-banner,
  .hero-overlay {
    flex-direction: column;
    padding: 2rem 5%;
    text-align: center;
  }

  .hero-overlay-text,
  #typed-text {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  .swiper {
    width: 90%;
  }

  form {
    padding: 0 1rem;
  }

  .flyer-section h2 {
    font-size: 2rem;
  }

  .overlay-text {
    font-size: 2rem;
  }

  .slider-btn {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom-bar {
    font-size: 0.8rem;
  }

  .footer-logo img {
    height: 60px;
  }
}

.hero-overlay {
  backdrop-filter: blur(0);
}

.testimonials {
  background: linear-gradient(to right, #fefae0, #fff8f0);
  padding: 4rem 5%;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: #800000;
  margin-bottom: 2rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.testimonial-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  border-top: 4px solid #800000;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.testimonial-card p {
  font-style: italic;
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  color: #006400;
  font-weight: bold;
}

.bg-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('Images/karbala_cropped.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
  z-index: 1;
}


.bg-slide.active {
  opacity: 1;
  z-index: 1;
}



.bg-slide {
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btn {
  background: #ffd700;
  color: #800000;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}



@media (min-width: 820px) and (max-width: 1199px) {
  .hero-overlay {
    padding: 3rem 2rem 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-heading {
    max-width: 600px;
    margin: 0 auto;
  }

  #typed-text {
    font-size: 2.5rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-btn {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
    min-width: 140px;
    white-space: nowrap;
  }

  .slider-left {
    left: 15px;
  }

  .slider-right {
    right: 15px;
  }

  .swiper {
    width: 80%;
  }

  .flyer-image {
    max-width: 80%;
  }

  .testimonial-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-logo img {
    height: 80px;
  }
}



/* FINAL RESPONSIVE FIX FOR HERO SECTION */
@media (min-width: 820px) and (max-width: 1199px) {
  .hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    height: 100%;
    text-align: center;
  }

  .hero-heading {
    max-width: 600px;
    margin: 0 auto;
  }

  #typed-text {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
  }

  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    min-width: 140px;
    text-align: center;
  }

  .slider-btn {
    font-size: 1.8rem;
    padding: 0.4rem 0.8rem;
  }

  .slider-left {
    left: 20px;
  }

  .slider-right {
    right: 20px;
  }

  .swiper {
    width: 85%;
  }

  .flyer-image {
    max-width: 85%;
  }

  .testimonial-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-logo img {
    height: 80px;
  }
}



/* === FINAL HERO RESPONSIVENESS FIX: No Collapse on Resize === */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 600px; /* prevent too short */
  height: auto;
  overflow: hidden;
}

.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 600px;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0,0,0,0.2);
}

#typed-text {
  font-size: 3rem;
  color: white;
  font-weight: 800;
  word-wrap: break-word;
  max-width: 90%;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-cta-btn {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  min-width: 140px;
  text-align: center;
}

/* Adjust slider button positions on all screens */
.slider-left {
  left: 20px;
}
.slider-right {
  right: 20px;
}

/* Mobile & mid-size fix */
@media (max-width: 1024px) {
  #typed-text {
    font-size: 2.4rem;
  }
  .hero-cta-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    padding: 3rem 1rem;
  }

  #typed-text {
    font-size: 2rem;
  }

  .hero-cta-btn {
    width: 100%;
    max-width: 260px;
  }
}

/* ================= TRUE RESPONSIVE HERO FIX =================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  z-index: 0;
}

.bg-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}
.bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem 3rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#typed-text {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  max-width: 90%;
  word-wrap: break-word;
  line-height: 1.3;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-cta-btn {
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 25px;
  min-width: 140px;
  white-space: nowrap;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.7);
  color: #800000;
  border: none;
  font-size: 1.8rem;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-left { left: 20px; }
.slider-right { right: 20px; }

@media (max-width: 1100px) {
  #typed-text {
    font-size: 2.4rem;
  }
  .hero-cta-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    padding: 3rem 1rem;
  }
  #typed-text {
    font-size: 2rem;
  }
  .hero-cta-btn {
    width: 100%;
    max-width: 240px;
  }
  .slider-btn {
    font-size: 1.4rem;
    padding: 0.4rem 0.8rem;
  }
}


.hero-overlay {
  background: transparent;
}
