@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.body-bg{
    background-color: white;
    font-family: 'Montserrat';
}
/* Banner section styling */
.banner {
    display: flex;
    width: 100%;
    height: 60vh; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* Overlay styling */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

/* Text styling */
.banner h1 {
    font-size: 3rem;
    font-family: 'Montserrat';
    z-index: 2;
    margin: 0;
}

/* Faculty Information Section Styling */
.faculty-info {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
}

.faculty-info h2 {
    font-size: 2.5rem;
    color: #003366; /* Dark blue color */
    margin-bottom: 20px;
    font-family: 'Montserrat';
}

.faculty-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #636363;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Montserrat';
}



.faculty-section {
    text-align: center;
    padding: 50px 20px;
  }

  
  .profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller min-width for smaller cards */
    gap: 20px;
  }
  
  .profile-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
  }
  
  .profile-image {
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px; /* Smaller padding for smaller profile images */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .profile-image svg {
    width: 60%; /* Smaller width for icons */
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s, color 0.3s;
    color: #333;
  }
  
  .profile-card:hover .profile-image svg {
    filter: grayscale(0%);
    color: #800000; /* Maroon color on hover */
  }
  
  .profile-info {
    background-color: #fff;
    padding: 15px; /* Adjusted padding */
  }
  
  .profile-info h3 {
    color: #003366;
    font-size: 1em; /* Smaller font size */
    margin-bottom: 5px;
  }
  
  .specialization-label {
    font-weight: bold;
    color: #800000; /* Customize this color */
}

/* Smaller font size for specialization text */
.profile-info p {
    color: #555;
    font-size: 0.8em; /* Adjusted to be smaller */
    margin-bottom: 10px;
}
  .profile-info a {
    color: #e55318;
    text-decoration: none;
    font-size: 0.8em;
  }
  
  .profile-info a:hover {
    text-decoration: underline;
  }
  
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
/* Responsive adjustments */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .faculty-info h2 {
        font-size: 2rem;
    }

    .faculty-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 2rem;
    }

    .faculty-info h2 {
        font-size: 1.8rem;
    }

    .faculty-info p {
        font-size: 0.85rem;
    }
}