body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.home-btn {
    text-decoration: none;
    color: black;
    font-size: 1.5em;
    background: #6aa386;
    border-radius: 7px;
    padding: 5px 8px;
}

.navbar {
    margin-top: 2%;
    padding-left: 4%;
}

/* IIT Jodhpur Header */
.iit-header {
    background-color: rgb(106, 163, 134);
    /* Matching background color */
    color: rgb(12, 11, 11);
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid white;
}

.iit-header img {
    width: 125px;
    margin-right: 30px;
}

.iit-header h1 {
    margin: 30;
    font-size: 2.5em;
    line-height: 1.2;
    color: rgb(8, 8, 8);
}

.iit-header h1:first-child {
    font-size: 1.8em;
    /* Slightly smaller font for Hindi text */
}

/* Faculty Advisors Subheading */
.faculty-advisors-heading {
    background-color: rgb(21, 52, 36);
    padding: 10px;
    text-align: center;
    margin-top: 20px;
}

.faculty-advisors-heading h2 {
    font-size: 2em;
    color: #fffbfb;
}

/* Faculty Cards */
.faculty-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Faculty rows with two faculty per row */
.faculty-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.faculty-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: scale(1.05);
}

.faculty-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.faculty-card h2 {
    margin: 10px 0;
    color: #333;
}

.designation {
    font-style: italic;
    color: #555;
}

.faculty-card p {
    margin: 5px 0;
    color: #666;
}

.faculty-card a {
    color: #007BFF;
    text-decoration: none;
}

.area {
    margin-top: 10px;
    color: #333;
}

/* Highlighted Faculty (Heads of the Project) */
.highlighted {
    background-color: rgb(181, 218, 199);
    border: 2px solid #163c2e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.highlighted h2 {
    color: #163c2e;
    font-size: 1.5em;
}

@media(max-width:1000px) {
    .faculty-row {
        display: unset;
    }

    .faculty-card {
        width: 100%;
        padding: 7px;
        margin-bottom: 5%;
    }

    .iit-header {
        display: block;
    }

    .iit-header h1:first-child {
        font-size: 3em;
    }

    .iit-header h1 {
        font-size: 2em;
    }

    .navbar {
        text-align: -webkit-center;
        padding: 0;
        font-size: 1.5em;
    }

}
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
  }
  
  .home-btn {
    text-decoration: none;
    color: black;
    font-size: 1.5em;
    background: #6aa386;
    border-radius: 7px;
    padding: 5px 8px;
  }
  
  .navbar {
    margin-top: 2%;
    padding-left: 4%;
  }
  
  /* Header Section */
  header {
    text-align: center;
    padding: 50px 20px;
    background-color: rgb(106, 163, 134);
    background-size: cover;
    background-position: center;
    color: #020202;
  }
  
  header h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  header p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
  }
  
  /* Filter Buttons */
  .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
  }
  
  .filter-btn {
    padding: 10px 25px;
    border: 1px solid #f4f5f7;
    border-radius: 20px;
    background-color: rgb(106, 163, 134);
    color: #0c0c0c;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background-color: rgb(21, 52, 36);
    color: #fff;
    transform: translateY(-2px);
  }
  
  /* Gallery Container */
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
  }
  
  .lecture-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    padding: 0 20px;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item img,
  .gallery-item video {
    width: 100%;
    /* Full width of the container */
    height: auto;
    /* Height adjusts automatically */
    aspect-ratio: 16 / 9;
    /* Set aspect ratio to 16:9 */
    border-radius: 8px;
    display: block;
    object-fit: cover;
  }
  
  .video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
  }
  
  /* Video element styling */
  .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the entire video is visible */
    border-radius: 8px;
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .caption {
    font-size: 0.9em;
    color: rgb(21, 52, 36);
    text-align: center;
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.4;
  }
  
  .captionheader {
    font-size: 0.9em;
    background-color: rgb(21, 52, 36);
    color: rgb(252, 252, 252);
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    line-height: 2.4;
  }
  
  .captionpadding {
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 0);
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    line-height: 1;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  .modal-content {
    max-width: 80%;
    margin: 20px;
    text-align: center;
  }
  
  #modal-image,
  #modal-video {
    width: 100%;
    border-radius: 8px;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
  }
  
  /* Responsive styling for larger screens */
  @media (min-width: 768px) {
    header h1 {
      font-size: 3em;
    }
  
    .filter-buttons {
      gap: 15px;
    }
  
    .gallery-container {
      padding: 0 40px;
    }
  }
  
  @media(max-width:1000px) {
  
    .lecture-container {
      display: unset;
    }
  
    .navbar {
      text-align: -webkit-center;
      padding: 0;
      font-size: 1.5em;
    }
  
    .filter-btn {
      font-size: 100%;
    }
  
  }