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

body {
  font-family: 'Roboto Condensed', sans-serif;
  background: #f4f7f8;
  color: #333;
  line-height: 1.6;
}

  h2, body, p, ul, li, a, h3, h4, footer {
  font-family: 'Josefin Sans', sans-serif;
}


 h1 {
  font-family: 'Lobster Two', cursive;
  font-style: italic;
}


.header-main {
  display: flex;
  align-items: center; 
}

.header-logo {
  height: 100px; 
  width: auto; 
  margin-right: 20px; 
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 0;
  list-style: none;
  margin-top: 10px;
  flex-wrap: wrap;

}


.container {
max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Header & Navigation Styles */
header {
  background: #005792;
  color: white;
  padding: 30px 0;
}



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

header h1 {
  font-size: 32px;
  font-weight: 700;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-top: 10px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

nav li + li::before {
  content: '|';
  color: rgba(255, 255, 255, 0.4);
}

/* === UPDATED HERO SECTION STYLES START === */
.hero {
  /* The new background image */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/ChatGPT Image Jul 6, 2025, 10_31_56 PM.png');
  
  /* Positioning the background image */
  background-size: cover;
  background-position: bottom center;
  
  /* Keep the original styling for text and padding */
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}

.btn {
  display: inline-block;
  background: white;
  color: #005792;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 65px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: #48A14D;
  color: white;
}

/* Cards Section */
.cards {
  display: flex;
  flex-wrap: wrap;
  
  gap: 20px;
  justify-content: center;
}

.card {
  background: white;
 margin-bottom: 60px;
  margin-top: 60px;
  padding: 30px;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 300px;
  transition: transform 0.2s ease;
  text-align: left;
}

.card h4 {
  margin-bottom: 20px;
  color: #005792;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.card-link:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* Footer */
footer {
  background: #005792;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* === STYLES FOR AL-RAWABI PAGE START === */

.hero-section {
  display: grid;
  align-items: end;
  justify-items: center;
  position: relative;
  height: 350px;
}
.hero-background-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: baseline; 
  justify-content: center; 
  gap: 2rem; 
  text-align: center;
  color: #ffffff;
  padding-bottom: 40px;
}

.hero-arabic-text {
  font-family: 'Amiri', serif;
  font-size: 6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.hero-english-text {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  letter-spacing: 3px;
  transform: translateY(-1px);
}

.product-section {
  padding: 40px 20px;
}

.product-section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-top: 0;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.product-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #005792;
  border-radius: 2px;
}

/* === REFACTORED PRODUCT GRID STYLES START === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Increased the gap to add more space between products */
  gap: 50px 100px;
  margin-top: 20px;

}
.product {
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: none;
}

.product:hover {
  transform: none;
  box-shadow: none;
}

.product .image-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding-top: 50%;
  overflow: visible; 
}

.product .image-container .product-image {
  position: absolute;
  top: 0;
  left:0;

  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease-out;
}

.product:hover .image-container .product-image {
  transform: translateY(-20px) scale(1.02);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.18));
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-container:hover .arrow {
  opacity: 1;
  visibility: visible;
}

.prev-arrow {
  left: 10px;
}

.next-arrow {
  right: 10px;
}

.product .description {
  padding: 0;
  flex-grow: 0;
  margin-top: 25px;
  max-width: 300px;
  font-weight: 700;
}

.product h4 {
  margin-top: 0;
  margin-bottom: 30px;
}



/* Media Queries for Grid Responsiveness */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Adjusted gap for tablets */
    gap: 80px 60px;
  }
   .header-main {
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }
  header .container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}
/* === REFACTORED PRODUCT GRID STYLES END === */


/* === STYLES FOR AL-RAWABI PAGE END === */

