/*primary-section-page-style*/
html {
  scroll-behavior: smooth;
}
*,
*::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;
}

/* 🌟 Modern Hero Section */
.hero-modern {
  background: linear-gradient(135deg, #2a9d8f, #248a7c);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

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

.hero-text {
  flex: 1;
  max-width: 550px;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
}

.hero-text span {
  color: #ffd166;
}

.hero-text p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: #f5f5f5;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* 🎯 Buttons */
.btn-primary {
  background: #ffd166;
  color: #222;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: #ffe08a;
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background: #fff;
  color: #2a9d8f;
  transform: translateY(-3px);
}

/* ✅ Sleek Hero Image */
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease;
}

.hero-img img {
  width: 80%;
  max-width: 340px;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* 🎓 Modern About Section */
.about-modern {
  background-color: #f8f9fa;
  padding: 100px 0;
}

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

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 80%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img img:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  max-width: 520px;
  padding-left: 40px;
  animation: fadeInUp 1s ease;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.about-text li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.about-text li i {
  color: #2a9d8f;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ✨ Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 15px;
}

/* 🌐 Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* 🔄 Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(25px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 📱 Responsive Design */
@media (max-width: 992px) {
  .hero-flex,
  .about-flex {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text,
  .about-text {
    padding: 0;
  }

  .hero-img img,
  .about-img img {
    max-width: 300px;
    margin-bottom: 25px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .about-text h2,
  .section-title {
    font-size: 1.9rem;
  }
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #2a9d8f 0%, #38b2ac 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero .hero-content {
  flex: 1;
  padding-right: 30px;
  animation: fadeInUp 1.2s ease;
}

.hero .hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.hero .hero-title span {
  color: #f4a261;
}

.hero .hero-description {
  font-size: 1.1rem;
  margin-top: 15px;
  line-height: 1.8;
  color: #fefefe;
  max-width: 500px;
}

.hero .hero-image {
  flex: 1;
  text-align: right;
  animation: fadeInRight 1.2s ease;
}

.hero .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.hero .hero-image img:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Buttons */
.hero .hero-btn {
  display: inline-block;
  background-color: #f4a261;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 25px;
  transition: all 0.3s ease;
}

.hero .hero-btn:hover {
  background-color: #e76f51;
  transform: translateY(-3px);
}

/* Floating Shapes */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero::before {
  width: 180px;
  height: 180px;
  top: 60px;
  left: -60px;
  background: #ffffff;
}

.hero::after {
  width: 220px;
  height: 220px;
  bottom: -80px;
  right: 50px;
  background: #ffffff;
}

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

.about .about-content {
  flex: 1;
  padding-right: 40px;
  animation: fadeInUp 1.2s ease;
}

.about .about-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 15px;
}

.about .about-description {
  font-size: 1.05rem;
  margin-top: 10px;
  color: #444;
  line-height: 1.8;
}

.about .about-points {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.about .about-points li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
  display: flex;
  align-items: center;
}

.about .about-points i {
  color: #2a9d8f;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* About Button */
.about .about-btn {
  display: inline-block;
  background-color: #2a9d8f;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.about .about-btn:hover {
  background-color: #21867a;
  transform: translateY(-3px);
}

.about .about-image {
  flex: 1;
  text-align: right;
  animation: fadeInRight 1.2s ease;
}

.about .about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.about .about-image img:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(25px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .about {
    flex-direction: column;
    text-align: center;
    padding: 80px 0 40px;
  }

  .hero .hero-content,
  .about .about-content {
    padding: 0;
  }

  .hero .hero-image,
  .about .about-image {
    margin-top: 30px;
    text-align: center;
  }

  .hero .hero-title {
    font-size: 2rem;
  }

  .about .about-title {
    font-size: 1.8rem;
  }
}


.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);
  }
