* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}


/* Carousel Section */
.carousel {
  position: relative;
  width: 100%;
  margin-top: 0; /* Stick to the bottom of the navbar */
}

.carousel-images {
  display: flex;
  transition: transform 1s ease-in-out;
   width: 100%;
}

.carousel-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.mobile-img {
  display: none;
}

@media (max-width: 768px) {
  .desktop-img {
    display: none;
  }
  
  .mobile-img {
    display: block;
    height: 60vh;
  }
}
/**********************************************************************************************/
/* Products Section */
.products-section {
  padding: 40px 10% 60px; /* space around the section */
  background-color: #f9f9f9; /* optional subtle background */
  text-align: center;
}

.products-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0b175f;
}

.section-title {
  font-size: 2rem;
  color: #0b175f;
  margin-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; /* space between items */
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
}

.product-card-wrapper {
  text-align: center; /* Center-align the product name */
}

.product-card {
  background-color: #fff;
  border-radius: 16px; /* Optional: if you want the card itself rounded */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Ensures the image corners stay rounded if image fills card */
  transition: transform 0.3s ease;
  cursor: pointer; 
}

.product-card img {
  width: 100%;
  height: 300px; /* Control the height */
  object-fit: cover; /* Makes the image fill the space and crop if needed */
  border-radius: 16px; /* Rounded corners on the image itself */
  transition: transform 0.3s ease;
}

.product-card p {
  font-size: 1rem;
  color: #0b175f;
  margin: 0;
}

.product-card img:hover {
  transform: scale(0.97); /* Optional: Shrink the image instead of the card */
}

.product-card:hover {
  transform: scale(0.95); /* shrink effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-name {
  font-size: 1rem;
  color: #333;
  margin: 16px 0;
}

.product-card-wrapper a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
}


/* CTA Button */
.cta-button-container {
  margin-top: 60px;
}

.btn-primary {
  background-color: #0b175f;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #1a2a80;
  transform: scale(0.97);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .products-section {
    padding: 0px 5% 40px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-card img {
    height: 150px;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}

/******************************************************************************************/

.cta-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 400px;
}

/* Left Half */
.cta-left {
  flex: 1;
  background-color: #0b175f;
  color: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
}

.cta-left h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-left p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #d4af37;
  color: #0b175f;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e0a800;
}

/* Right Half */
.cta-right {
  flex: 1;
  background: url('../img/background.png') center/cover no-repeat;
  color: #fff;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
}

.cta-right::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(11, 23, 95, 0.7); /* dark overlay for readability */
}

.cta-right-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-right-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-right-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .cta-section {
    flex-direction: column;
  }

  .cta-left, .cta-right {
    width: 100%;
    padding: 40px 20px;
  }

  .cta-left, .cta-right-content {
    align-items: center;
    text-align: center;
  }
}