/*primary-section-page-style*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 0 80px; /* Top padding increased to make space for header */
  background-color: #2a9d8f;
  color: white;
}


.hero .hero-content {

  flex: 1;
  padding-right: 20px;
}

.hero .hero-title {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero .hero-description {
  font-size: 1.2rem;
  margin-top: 10px;
}

.hero .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero .hero-image {
  flex: 1;
}

/*primary About Section */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 0;
  background-color: #fff;
}

.about .about-content {
  flex: 1;
  padding-right: 20px;
}

.about .about-title {
  font-size: 2rem;
  font-weight: bold;
}

.about .about-description {
  font-size: 1.1rem;
  margin-top: 10px;
}

.about .about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

/* Departments Section */
.departments {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.departments .departments-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.departments-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.department-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.department-card:hover {
  transform: translateY(-10px);
}

.department-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.department-card .department-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 15px;
}

.department-card .department-description {
  font-size: 1rem;
  margin-top: 10px;
}

.department-card .learn-more {
  font-size: 1.1rem;
  color: #2a9d8f;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.department-card .learn-more ion-icon {
  margin-left: 10px;
}

/* Instructors Section */
.instructors {
  padding: 60px 0;
}

.instructors .instructors-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.instructors-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Increased gap for better spacing */
}

.instructor-card {
  background-color: #fff;
  padding: 30px; /* Increased padding for a bigger card */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Larger Instructor Image */
.instructor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain; /* Shows full image, but may add space */
  background-color: #fff; /* Optional: Adds a white background for transparent images */
  border: 4px solid #2a9d8f; /* Added a border for emphasis */
}

.instructor-card .instructor-name {
  font-size: 1.8rem; /* Slightly larger font */
  font-weight: bold;
  margin-top: 20px;
}

.instructor-card .instructor-role {
  font-size: 1.1rem;
  color: #555;
  margin-top: 8px;
}

.instructor-card .social-links {
  margin-top: 20px;
}

.social-link {
  color: #333;
  margin: 0 12px;
  font-size: 1.8rem; /* Bigger icons for better visibility */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  color: #2a9d8f;
  transform: scale(1.2);
}

/* Gallery Section Styles */
.gallery-section {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #f9fafb, #eef1f5);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-container {
  max-width: 100vw;
  padding: 0;
  text-align: center;
}



/*.gallery-container {
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}*/

.gallery-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.gallery-description {
  font-size: 1.25rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 60px;
}

.gallery-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  padding: 0 40px;
}

/*.gallery-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  padding: 0 20px;
}*/

.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.gallery-image-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image-wrapper {
    height: 260px;
  }
}

  
  /* Responsive Adjustments */
  @media screen and (max-width: 1200px) {
    .image-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
  }
  
  @media screen and (max-width: 768px) {
    .image-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Stacks at smaller widths */
    }
  }
  
  @media screen and (max-width: 480px) {
    .gallery h1 {
      font-size: 2rem;
    }
    .image-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Stacks in smaller grids */
    }
  }




  @media (max-width: 768px) {
  .gallery-title {
    font-size: 2rem;
  }

  .gallery-item img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 160px;
  }
}


  @media screen and (max-width: 768px) {
    /* Hero Section */
    .hero {
      flex-direction: column;
      text-align: center;
      padding: 80px 0 40px;
    }
  
    .hero .hero-content,
    .hero .hero-image {
      padding: 0;
    }
  
    /* About Section */
    .about {
      flex-direction: column;
      text-align: center;
    }
  
    .about .about-content {
      padding: 0;
    }
  
    .about .about-image {
      margin-top: 20px;
    }
  
    /* Departments */
    .departments-list {
      grid-template-columns: 1fr;
    }
  
    /* Instructors */
    .instructors-list {
      grid-template-columns: 1fr;
    }
  
    .instructor-card img {
      width: 120px;
      height: 120px;
    }
  
    .instructor-card .instructor-name {
      font-size: 1.5rem;
    }
  
    .instructor-card .instructor-role {
      font-size: 1rem;
    }
  
    /* Typography adjustments */
    .hero .hero-title,
    .about .about-title,
    .departments .departments-title,
    .instructors .instructors-title {
      font-size: 1.8rem;
    }
  
    .hero .hero-description,
    .about .about-description {
      font-size: 1rem;
    }
  }

  
/* === our program Section Styling === */
.packages {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.title {
  font-size: 34px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.description {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* === Card Grid Layout === */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* === Card Style === */
.card {
  background: #ffffff;
  padding: 25px;
  width: 280px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* === Icon Styling === */
.icon {
  font-size: 40px;
  color: #1e90ff;
  margin-bottom: 15px;
}

/* === Text Styling === */
.card h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.card p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}



  
  
  @media screen and (max-width: 480px) {
    .container {
      width: 95%;
    }
  
    .department-card,
    .instructor-card {
      padding: 15px;
    }
  
    .instructor-card img {
      width: 100px;
      height: 100px;
    }
  
    .instructor-card .instructor-name {
      font-size: 1.3rem;
    }
  
    .social-link {
      font-size: 1.5rem;
      margin: 0 8px;
    }
  }
  
  .gallery {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .gallery-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2a9d8f;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  