body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
  }
  
  .banner {
    position: relative;
    width: 100%;
    height: 700px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    background-color: black; /* Default background */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .banner h1 {
    font-size: 60px;
    color: white;
    text-shadow: 0 0 10px #e7b64b, 0 0 20px #e7b64b, 0 0 40px #e7b64b, 0 0 80px #e7b64b;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    margin-top: -50px;
  }
                                       /* Introduction Section */
                                  /* Keyframes for down to up animation */
  @keyframes downToUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Section Styling */
  .intermediate-section {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: white; /* Light gray background #ecebeb */
    border: 2px hidden red;
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Start position */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* Add class dynamically via JavaScript */
  .intermediate-section.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .intermediate-section .content {
    background-color: transparent;
    padding: 10px 40px; /* Increased padding for better spacing */
    border-radius: 10px;
    max-width: 1300px; /* Increased width */
    width: 80%; /* Adjusts width dynamically */
    margin-top: -100px;
  }
  
  .intermediate-section .content h1 {
    font-size: 30px;
    font-weight: bolder;
    color: #640d6b;
    margin: 28px;
  }
  
  .intermediate-section .content p {
    border: 2px hidden red;
    font-size: 17px; /* Slightly larger for readability */
    font-weight: 400; /* Professional, clean look */
    color: #444; /* Dark gray for a softer contrast */
    line-height: 1.8; /* Improves readability */
    text-align: justify; /* Aligns text for a structured look */
    margin-bottom: 0; /* Remove negative margin for proper spacing */
    font-family: 'Arial', sans-serif; /* Professional font choice */
  }
  
/* Quatation Marks Start */
.intermediate-section .content p q {
  display: inline-block; /* Ensures quotes align properly */
  position: relative;
}

.intermediate-section .content p q::before,
.intermediate-section .content p q::after {
  font-size: 2em; /* Scales with text size */
  font-weight: bold;
  color: #f49d1a; /* Golden color */
  vertical-align: baseline; /* Keeps alignment proper */
  line-height: 1; /* Prevents extra spacing issues */
}

.intermediate-section .content p q::before {
  content: '“'; /* Opening quotation mark */
  margin-right: 5px; /* Space after opening quote */
}

.intermediate-section .content p q::after {
  content: '”'; /* Closing quotation mark */
  margin-left: 5px; /* Space before closing quote */
}
/* Quatation Marks End */
  /* General Spacing */
  .section-spacing {
    background-color: white; /* Apply the same background color */
    padding: 50px 0; /* Maintain vertical spacing, remove side padding */
    margin: 0; /* Remove extra margin */
    width: 100%; /* Ensure full width */
  }
  
  /* Responsiveness for Introduction Section */
  @media (max-width: 1024px) {
    .intermediate-section {
      height: auto; /* Adjust height dynamically */
      padding: 20px;
      margin-bottom: 100px; /* Increase space for medium screens */
    }
  
    .intermediate-section .content {
      width: 90%;
      padding: 10px 20px;
      margin-top: -50px;
    }
  
    .intermediate-section .content h1 {
      font-size: 26px;
    }
  
    .intermediate-section .content p {
      font-size: 16px;
      line-height: 1.6;
    }
  
    .section-spacing {
      padding: 40px 0;
    }
  }
  
  @media (max-width: 768px) {
    .intermediate-section {
      height: auto;
      padding: 30px 15px;
      margin-bottom: 120px; /* More space for tablets */
    }
  
    .intermediate-section .content {
      width: 95%;
      margin-top: -30px;
    }
  
    .intermediate-section .content h1 {
      font-size: 24px;
      margin: 20px 0;
    }
  
    .intermediate-section .content p {
      font-size: 15px;
      line-height: 1.5;
    }
  
    .section-spacing {
      padding: 30px 0;
    }
  }
  
  @media (max-width: 480px) {
    .intermediate-section {
      height: auto;
      padding: 40px 10px;
      margin-bottom: 140px; /* Extra space for mobile devices */
    }
  
    .intermediate-section .content {
      width: 100%;
      margin-top: 0;
      padding: 10px 15px;
    }
  
    .intermediate-section .content h1 {
      font-size: 22px;
      margin: 15px 0;
    }
  
    .intermediate-section .content p {
      font-size: 14px;
      line-height: 1.4;
    }
  
    .section-spacing {
      padding: 20px 0;
    }
  }
  
  
                                                /* Eligibility Criteria */
  /* Keyframes for down to up animation */
  @keyframes downToUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Main Container with Transition */
  .main-container {
    display: flex;
    width: 65%;
    max-width: 62%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    overflow: visible;
    margin-left: 21%;
    margin-bottom: 100px;
    position: relative;
    border: 2px hidden red;
  
    /* Initially Hidden */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* When Section Becomes Visible */
  .main-container.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .menu {
    width: 280px;
    background-color: #0a043c;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    top: -35px;
    left: 0;
    border: 2px hidden blue;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin-left: -50px;
  }
  
  .menu button {
    background: none;
    border: none;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    width: 283px;
  }
  
  .menu button:hover, .menu button.active {
    background: linear-gradient(to right, #a000ff, #f49d1a);
  }
  
  /* Add spacing between menu and content */
  .content {
    flex: 1;
    padding: 30px;
    text-align: left;
    margin-left: 20px;
  }
  
  .content h3 {
    color: #0b0b44;
  }
  
  /* Table Styling */
  .table-container {
    width: 100%;
    margin-top: 20px;
  }
  
  .custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    border: 1px solid black;
  }
  
  .custom-table th, .custom-table td {
    border: 1px solid black;
    padding: 5px;
  }
  
  .custom-table th {
    background-color: #d3d3d3;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 1200px) {
    .main-container {
      width: 90%;
      margin-left: auto;
      margin-right: auto;
    }
  
    .menu {
      width: 250px;
    }
  
    .menu button {
      width: 100%;
    }
  }
  
  @media screen and (max-width: 992px) {
    .main-container {
      flex-direction: column;
      width: 95%;
    }
  
    .menu {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      padding: 10px;
    }
  
    .menu button {
      flex: 1;
      min-width: 150px;
      text-align: center;
    }
  
    .content {
      margin-left: 0;
      padding: 20px;
    }
  }
  
  
                                   /* Team Section */
     
   /* Keyframes for down to up animation */
@keyframes downToUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team {
  border: 2px hidden red;
  background-color: #f5f5f5; /* Light gray professional background */
  padding-top: 30px;
  padding-bottom: 100px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When section is visible */
.team.show {
  opacity: 1;
  transform: translateY(0);
}

/* Container Styling */
.team-container {
  max-width: 1300px;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}

/* Faculty Members Heading */
h2 {
  font-size: 40px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

h2::before,
h2::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 4px;
  background-color: #f49d1a;
}

h2::before {
  top: -5px;
  left: 0;
}

h2::after {
  bottom: -5px;
  right: 0;
}

/* Team Member Box */
.team-member {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When members become visible */
.team-member.show {
  opacity: 1;
  transform: translateY(0);
}

/* Team Member Image */
.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #FFA500;
  object-fit: cover;
  margin-right: 15px;
}

/* Team Member Info */
.team-member .info {
  text-align: left;
  padding-left: 10px;
}

.team-member .info h5 {
  margin: 0;
  font-weight: bold;
}

.team-member .info p {
  margin: 0;
  font-size: 14px;
}

/* Adjustments for specific images */
.team-member img[alt="Maira Waseem"] {
  margin-left: -5px;
}
.team-member img[alt="Ammara latif"] {
  margin-left: 10px;
}
.team-member img[alt="Zainab Raheem"] {
  margin-left: -10px;
}
.team-member img[alt="Bushra Qaiser"] {
  margin-left: 15px;
}
.team-member img[alt="Mubeen Latif"] {
  margin-left: 10px;
}
.team-member img[alt="Rukhsana Manzoor"] {
  margin-left: 20px;
}
.team-member img[alt="Haleema Sadia"] {
  margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .team-member img {
    margin-right: 0;
    margin-bottom: 10px;
    margin-left: 0 !important;
  }

  .team-member .info {
    text-align: center;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .team-container {
    padding-top: 30px;
  }

  h2 {
    font-size: 32px;
  }

  .team-member {
    margin-top: 30px;
  }

  .team-member img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 576px) {
  .team {
    padding-top: 20px;
  }

  h2 {
    font-size: 28px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }
}
