/* style.css */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #ffffff, #009900);
}

/* Navigation */
.navbar-logo {
  height: 40px;
  width: auto;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #4caf50;
  color: white;
}

nav a.active {
  background-color: #4caf50;
  color: white;
}

/* Make navbar smaller and sticky */
.navbar {
  min-height: 44px !important;
  height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar .container {
  min-height: 44px !important;
  height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-brand,
.navbar-nav .nav-link {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  font-size: 1.05rem !important;
}

.navbar .navbar-toggler {
  padding: 0.15rem 0.5rem !important;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/background.avif") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 0;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Introduction Section */
.intro-section {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}




.why-choose-us h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

/* Catchy Hover for Events for Every Interest Title */
.events-interest-title {
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.events-interest-title:hover {
  color: #fff;
  text-shadow: 0 0 10px #14bfdd, 0 0 20px #009900;
  transform: scale(1.08) rotate(-2deg);
}

/* Responsive Adjustments */
/* @media (max-width: 768px) {
  .why-choose-us {
    padding: 3rem 0;
  }

  .feature-box {
    padding: 1.5rem;
  } */
/* } */

/* Carousel Section */
/* .carousel {
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  border-radius: 15px;
}

.carousel-item {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-inner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(76, 175, 80, 0.9);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(76, 175, 80, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  text-align: center;
}

/* Responsive Adjustments */
/* @media (max-width: 768px) {
  .carousel-item {
    height: 200px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  } */

/* .carousel-caption {
    bottom: 10%;
    padding: 1rem;
    width: 90%;
  }
} */

.testimonials .card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.testimonials .card:hover {
  transform: translateY(-5px);
}

.testimonials .blockquote-footer {
  background: transparent;
  color: #6c757d !important;
  font-size: 0.9em;
  padding-top: 1rem;
}
*/

/* Community Spotlights */
/* maje a gradient color background*/
.community-spotlights {
  background: linear-gradient(120deg, #14bfdd, #009900);
  color: white;
  padding: 100px 0;
}
.community-spotlights .blockquote {
  border-left: 3px solid #4c6baf;
  padding-left: 1.5rem;
}

.community-spotlights .carousel-control-prev {
  left: 5%;
}

.community-spotlights .carousel-control-next {
  right: 5%;
}

/* Events Page Specific */
.events-list .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.events-list .card-img-top {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
  display: block;
}

.events-list .card-body {
  padding: 1.25rem;
  flex: 1;
}

.events-list .row > * {
  margin-bottom: 2rem;
}

/* This ensures all cards in the same row have equal height */
.events-list .row {
  display: flex;
  flex-wrap: wrap;
}

.events-list .col {
  display: flex;
}

/* Networking Resources */
.networking-tools .border {
  transition: all 0.3s ease;
}

.networking-tools .border:hover {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

/* feedback form */
#feedbackForm {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.rating label {
  display: inline-block;
  cursor: pointer;
}

.rating input {
  display: none;
}

.rating label::before {
  content: "\2605";
  color: #ddd;
}

.rating input:checked ~ label::before {
  color: #fd4;
}

/* Feedback Section */
.user-name {
  background-color: #f8f9fa; /* Lighter background color */
  font-family: "Georgia", serif; /* Nicer font for user name */
  font-style: italic;
  padding: 10px;
  border-radius: 5px;
}

/* Rating Stars */
.rating-stars {
  color: #ffc107; /* Gold color for stars */
}

/* Footer */
footer {
  background-color: #393bce;
  color: rgb(20, 19, 19);
  padding: 20px 0;
  margin-top: auto;
}

footer p {
  margin: 0;
  text-align: center;
}

/* Admin Dashboard Styles */
#admin-dashboard {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
}
#admin-dashboard section {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
#admin-dashboard h2 {
  color: #009900;
  margin-bottom: 12px;
}
#admin-dashboard button {
  background: #009900;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
#admin-dashboard button:hover {
  background: #007700;
}
#admin-login-section {
  max-width: 400px;
  margin: 60px auto 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  text-align: center;
}
#admin-login-section input[type="password"] {
  width: 70%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
#admin-login-section button {
  background: #009900;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
#admin-login-section button:hover {
  background: #007700;
}

/* Admin Form Enhancements */
.admin-form .input-group .form-control-lg,
.admin-form .form-control-lg,
.admin-form textarea.form-control-lg {
  font-size: 1.15rem;
  min-height: 48px;
  padding: 12px 16px;
}
.admin-form .input-group .form-control-lg {
  min-width: 180px;
}
.admin-form .input-group input[type="email"],
.admin-form .input-group input[type="text"] {
  min-width: 220px;
}
.admin-form .input-group input[type="password"] {
  min-width: 180px;
}
.admin-form .input-group input[type="number"] {
  min-width: 120px;
}
.admin-form .input-group input[type="date"] {
  min-width: 160px;
}
.admin-form .input-group select.form-control-lg {
  min-width: 160px;
}
.admin-form textarea.form-control-lg {
  min-width: 100%;
  min-height: 80px;
  resize: vertical;
}
@media (max-width: 991px) {
  .admin-form .input-group .form-control-lg,
  .admin-form .form-control-lg {
    min-width: 100%;
  }
}

/* Enhanced Task Table Styles */
#task-list-table,
#task-list,
.table {
  font-size: 0.85em !important; /* Smaller font for all task tables */
  font-family: "Segoe UI", Arial, sans-serif;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

#task-list-table th,
#task-list-table td,
#task-list th,
#task-list td,
.table th,
.table td {
  padding: 8px 10px !important;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
}

#task-list-table th,
#task-list th,
.table th {
  background: linear-gradient(90deg, #007bff 60%, #14bfdd 100%);
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #009900;
  letter-spacing: 0.5px;
  text-align: center !important;
}

#task-list-table td:last-child,
#task-list td:last-child,
.table td:last-child {
  border-right: none;
  padding-right: 10px;
}

#task-list-table tbody tr,
#task-list tbody tr,
.table tbody tr {
  transition: background 0.2s;
}

#task-list-table tbody tr:hover,
#task-list tbody tr:hover,
.table tbody tr:hover {
  background-color: #e6f7ff !important;
}

#task-list-table td.actions,
#task-list td.actions,
.table td.actions {
  display: flex !important;
  gap: 0.5rem;
}

#task-list-table .badge,
#task-list .badge,
.table .badge {
  font-size: 0.85em;
  padding: 0.35em 0.7em;
  border-radius: 6px;
}

/* Responsive table: allow horizontal scroll on small screens */
.table-container,
.card-body#task-table {
  overflow-x: auto;
}

/* Wrap long text in table cells but keep ellipsis for single line */
#task-list-table td,
#task-list td,
.table td {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;
}

/* Add subtle row separation */
#task-list-table tbody tr,
#task-list tbody tr,
.table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

/* Enhance table header shadow */
#task-list-table thead,
#task-list thead,
.table thead {
  box-shadow: 0 2px 6px rgba(20, 191, 221, 0.08);
}

/* Card style for dashboard table */
.card-body#task-table {
  background: #f8fafd;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 1rem;
}

/* Three-dot menu for table actions */
.three-dots {
  color: #555;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: color 0.2s;
}
.three-dots:focus {
  outline: none;
  box-shadow: none;
}
.three-dots:hover {
  color: #007bff;
}

/* Make table row look clickable */
.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}
.clickable-row:hover {
  background: #e6f7ff !important;
}

/* Ensure dropdown menu is above other content */
.dropdown-menu {
  z-index: 1050;
}

/* Dashboard filter card enhancements */
.card.filter-card,
.dashboard-filters {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8fafd;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e0e0e0;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}
.card.filter-card .card-header,
.dashboard-filters .card-header {
  background: linear-gradient(90deg, #007bff 60%, #14bfdd 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 10px 10px 0 0;
  padding: 1rem 1.2rem;
}
.card.filter-card .form-select,
.dashboard-filters .form-select,
.card.filter-card input,
.dashboard-filters input {
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #b0c4de;
  margin-bottom: 0.5rem;
}
.card.filter-card .btn,
.dashboard-filters .btn {
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: #fff;
}

/* Center table headers for all tables */
table th,
.table th {
  text-align: center !important;
  vertical-align: middle;
}

/* Modern dashboard filter card styling */
.dashboard-filter-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 24px 28px 18px 28px;
  margin-bottom: 24px;
  font-family: "Segoe UI", "Arial", sans-serif;
  font-size: 1rem;
}
.dashboard-filter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a237e;
  letter-spacing: 0.5px;
}
.dashboard-filter-form label {
  font-weight: 500;
  color: #333;
}
.dashboard-filter-form input,
.dashboard-filter-form select {
  border-radius: 6px;
  border: 1px solid #cfd8dc;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.dashboard-filter-form button,
.dashboard-filter-form input[type="submit"] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-weight: 500;
  transition: background 0.2s;
}
.dashboard-filter-form button:hover,
.dashboard-filter-form input[type="submit"]:hover {
  background: #1565c0;
}

.filter-button {
  white-space: nowrap;
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  width: 45%; /* Adjust as needed */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.apply-filters-btn {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.apply-filters-btn:hover {
  background-color: #0069d9;
  border-color: #0062cc;
  color: #fff;
}

.clear-filters-btn {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.clear-filters-btn:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: #fff;
}

.clear-filters-icon {
  margin-right: 0.3em;
}

/* Ensure full width for container-fluid */
.container-fluid {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Fix for user dropdown: remove background/hover/active for nav a inside dropdown */
.navbar-nav .dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu .dropdown-item:active,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background: none !important;
  background-color: transparent !important;
  color: #212529 !important;
}

/* Ensure dropdown-toggle is styled like a button only if not inside dropdown-menu */
.navbar-nav .nav-link.dropdown-toggle {
  background: none !important;
  color: #fff !important;
  border: none;
}

.container {
  max-width: 1320px; /* Or adjust as needed */
}

/* Center table data */
.table td {
  text-align: center;
}

/* Truncate comment and expand on click */
.comment-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Adjust as needed */
  display: inline-block; /* Required for text-overflow to work */
}

.comment-content.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}