/* Hides the useless content from the Home page */
.home #t3-content {
    display: none !important;
}

/* Hide off-canvas toggle by default */
.btn.btn-default.off-canvas-toggle {
  display: none !important;
}

/* Show only on mobile & tablet (max 991px wide) */
@media (max-width: 991px) {
  .btn.btn-default.off-canvas-toggle {
    display: inline-block !important;
  }
}

/* Carousel Base with 16:9 aspect ratio */
.ece-carousel {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: #f9f9f9;

  /* 16:9 aspect ratio */
  padding-top: 56.25%; /* 1080 / 1920 = 0.5625 */
  height: 0; /* Makes height come from padding-top */
}

/* Force content to fill the ratio container */
.ece-carousel .carousel-inner,
.ece-carousel .carousel-inner .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Image Sizing Fix */
.force-fixed-slide > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: inline-block;
  vertical-align: middle;
}

/* Slideshow side buttons font */
@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('custom/glyphicons-halflings-regular.woff') format('woff');
}

/* Image Grids for displaying data in multiple columns */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Displaying lab images */
.lab-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

.lab-image-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lab-image-grid img:hover {
  transform: scale(1.03);
}

/* Lightbox modal */
.lab-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

.lab-image-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lab-image-grid img:hover {
  transform: scale(1.03);
}

/* Lightbox modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px;
  background-color: rgba(0,0,0,0.8);
  top: 0; left: 0; width: 100%; height: 100%;
  text-align: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px;
  background-color: rgba(0,0,0,0.4);
  border-radius: 6px;
}

.lightbox .close {
  top: 20px;
  right: 30px;
  transform: none;
  font-size: 30px;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
  background-color: rgba(0,0,0,0.7);
  cursor: pointer;
}

/* General Table fixes */

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}
th, td {
  border: 1px solid #000;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}
h2, h3 {
  font-family: Arial, sans-serif;
}

table.events {
  border-collapse: collapse;
  width: 100%;
  font-family: Arial, sans-serif;
  margin-bottom: 30px;
}
table.events th, table.events td {
  border: 1px solid #333;
  padding: 8px 12px;
  vertical-align: top;
}
table.events th {
  background-color: #f2f2f2;
  text-align: center;
}
table.events td:first-child {
  text-align: center;
  font-weight: bold;
  width: 60px;
}
.year-row {
  background-color: #e0e0e0;
  font-weight: bold;
  text-align: center;
  font-size: 14pt;
}

/* Minimalist Styling for Notices */

/* Container for all notices */
.notices-container {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  padding: 0 10px;
}

/* Year heading (e.g., 2025) */
.notices-container h2 {
  font-size: 28px;
  font-weight: bold;
  color: #275496;
}

/* Each month's collapsible section */
.notices-container details {
  margin-left: 15px;
  margin-bottom: 10px;
}

/* Month title (e.g., February 2025) */
.notices-container summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: normal;
  color: #0047ab;
  text-decoration: none;
}

/* List of notices */
.notices-container ul {
  margin-left: 25px;
  margin-top: 5px;
  list-style-type: disc;
  padding-left: 0;
}

/* Each notice item */
.notices-container li {
  margin-bottom: 4px;
}

/* Notice link styling */
.notices-container a {
  color: #0066cc;
  text-decoration: none;
  font-size: 15px;
}

.notices-container a:hover {
  text-decoration: none;
}

/* Article count in black */
.notices-container .article-count {
  color: #000;
  font-size: 18px;
  font-weight: normal;
  margin-left: 5px;
}

/* Faculty List */
/* --- Faculty Search Bar --- */
.faculty-search-container {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.faculty-search-bar {
  width: 600px;
  max-width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
}

.faculty-search-bar:focus {
  border-color: #0066cc;
  outline: none;
}

/* --- Faculty Cards Grid --- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 30px 10px;
}

/* --- Faculty Card Styling --- */
.faculty-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
}

.faculty-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* --- Faculty Image --- */
.faculty-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #eee;
}

/* --- Text Styling --- */
.faculty-card h3 {
  font-size: 20px;
  margin: 10px 0 5px;
  color: #333;
}

.faculty-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.faculty-card a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

.faculty-card a:hover {
  text-decoration: underline;
}

/* --- Responsive Fixes --- */
@media (max-width: 600px) {
  .faculty-search-bar {
    width: 90%;
  }
}