body {
    transition: all 0.3s ease;
}
body.light-mode {
    background-color: #fff;
    color: #333;
}
body.dark-mode {
    background-color: #333;
    color: #fff;
}
.carousel-item img {
    object-fit: cover;
    height: 500px;
}
.news-ticker {
    overflow: hidden;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.font-sm {
    font-size: 0.9rem;
}
.font-lg {
    font-size: 1.2rem;
}



/* Team Card Styling */
.team-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; /* Fallback background color */
}

.card-img-top {
    width: 100px;
    height: 100px;
    object-fit: cover; /* Ensures image covers the container without distortion */
    object-position: center; /* Centers the image */
}

.card-body {
    text-align: center;
    padding: 15px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-text {
    font-size: 1rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .image-container {
        height: 200px; /* Smaller height for mobile */
    }
}

/* SCROLL CSS */

  .scroll-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }

  .scroll-track {
    display: flex;
    flex-direction: column;
    animation: verticalLoop 20s linear infinite;
  }

  .scroll-paused {
    animation-play-state: paused !important;
  }

  @keyframes verticalLoop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
  }

  .scroll-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .scroll-card .card {
    margin: 0.5rem;
  }
/* SCROLL CSS */
   .thumb-grid img {
    height: 180px;
    width: 100%;
    object-fit: cover;
  }

  .overlay-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 12px;
    border: 1px solid #fff;
    border-radius: 20px;
    transition: background-color 0.3s;
  }

  .overlay-btn:hover {
    background-color: rgba(255,255,255,0.85);
    color: #000;
    text-decoration: none;
  }

  .card-img-box {
    position: relative;
    overflow: hidden;
  }
  
   .gallery-img {
      height: 200px;
      object-fit: cover;
      border-radius: 0.5rem;
    }
    .caption-text {
      font-size: 0.8rem;
      color: #555;
      margin-top: 0.3rem;
    }
    .gallery-card {
      transition: transform 0.3s ease;
    }
    .gallery-card:hover {
      transform: scale(1.03);
    }
    
     .main-image {
      max-height: 70vh;
      object-fit: contain;
      border-radius: 10px;
    }
    .thumb-img {
      height: 100px;
      object-fit: cover;
      border-radius: 5px;
      transition: 0.3s;
    }
    .thumb-img:hover {
      transform: scale(1.05);
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    
     .dataTables_wrapper .form-control {
      display: inline-block;
      width: auto;
    }
    .btn-view {
      font-size: 0.875rem;
    }