.MainPhoto-Set {
  width: 100%;
  height: 300px;
  object-fit: cover; /* Ensures the image scales proportionally without distortion */
}

.registration-date {
  font-size: 0.9rem;
  border-left: 4px solid #17a2b8; /* Modern accent in teal */
  padding-left: 10px;
  color: #f8f9fa; /* Light text for dark background */
}

a {
  position: relative;
  z-index: 10;
}
#map {
  height: 300px; /* Ensure the map has a height */
  width: 100%; /* Ensure the map takes up the full width */
  background-color: #e0e0e0; /* Fallback background color */
}

.event-category {
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  background-color: #343a40; /* Dark grey badge background */
  color: #f8f9fa; /* Light text for visibility */
  padding: 4px 8px; /* Adjust padding for a neat look */
}

.col-lg-3 {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1);
}

.col-lg-3.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: block; /* Maintain layout flow */
}

.custom-hover-effect {
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.custom-hover-effect.active {
  color: white !important;
  background-color: #007bff;
  border-radius: 5px;
}
/* South African Flag Colors with Modern Gradients */
.red-tab {
  background: linear-gradient(135deg, #d71920, #a6141a);
  box-shadow: 0 4px 6px rgba(215, 25, 32, 0.4);
}

.blue-tab {
  background: linear-gradient(135deg, #1c75bc, #165c96);
  box-shadow: 0 4px 6px rgba(28, 117, 188, 0.4);
}

.green-tab {
  background: linear-gradient(135deg, #007847, #005c34);
  box-shadow: 0 4px 6px rgba(0, 120, 71, 0.4);
}

.yellow-tab {
  background: linear-gradient(135deg, #ffb612, #d89e0e);
  box-shadow: 0 4px 6px rgba(255, 182, 18, 0.4);
}

.black-tab {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.section .col-sm-6.col-lg-2 {
  height: auto;
  padding: 0; /* remove extra spacing */
}

.custom-hover-effect {
  padding: 15px 0; /* reduce vertical padding */
  font-size: 1rem; /* adjust font size for proportional scaling */
  line-height: 1.4; /* maintain good text spacing */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.white-tab {
  background: linear-gradient(
    135deg,
    #f0f0f0,
    #cccccc
  ); /* light grey for better visibility */
  color: #222; /* darker text for contrast */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* add subtle shadow for depth */
}

.white-tab:hover {
  background: linear-gradient(
    135deg,
    #e5e5e5,
    #b3b3b3
  ); /* darker hover gradient */
}

.section .row {
  margin: 0; /* remove extra margins to optimize spacing */
}

.custom-hover-effect i {
  margin-right: 8px; /* adjust icon spacing */
  font-size: 1.2rem; /* slightly larger icons for balance */
}

/* Active Tab Style */
.tab.active {
  border: 3px solid #000;
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  box-shadow: 0 6px 8px rgba(51, 51, 51, 0.6);
}

/* Hover Effect for Modern Feel */
.tab:hover {
  opacity: 0.9;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Add Padding for a Modern Look */
.tab {
  border-radius: 2px;
  margin: 1px;
  padding: 16px 0;
}

:root {
  --dark: #121212;
  --light: #ffffff;
  --accent: #03dac6;
  --highlight: #ffb74d;
}

/* General Page Styles */

.event-container {
  background: linear-gradient(135deg, #1a1a1a, #232323);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  animation: fadeIn 1s ease-in-out;
}

.event-image-wrapper {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Centers the div horizontally */
}

.event-image {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.event-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.text-accent {
  color: var(--accent);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.text-highlight {
  color: var(--highlight);
}

.event-description {
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: center;
}

/* Discipline List Styling */
.list-group-item {
  background: #1e1e1e;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.list-group-item:hover {
  background: #292929;
  transform: translateY(-3px);
}

.badge-accent {
  background-color: var(--accent);
  color: var(--dark);
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 20px;
}
.textdisccolor {
  color: darkgrey;
}

/* Button Styling */
.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-accent:hover {
  background-color: #018786;
  transform: scale(1.1);
}

.btn-animated {
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.event-name {
  text-transform: capitalize; /* Capitalizes the first letter of each word */
  text-transform: uppercase; /* Makes the entire text uppercase */
}
