:root {
    --dark-green: #1a3c34;
    --light-green: #4a7043;
    --white: #ffffff;
}

.tablemod {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--bs-emphasis-color); /* let text color inherit */
  vertical-align: top;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: transparent; /* NO bg */
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
}

/* Remove Bootstrap background colors from head & body */
.tablemod thead th {
  background-color: #004d40; /* your green header */
  color: white;
  border-bottom: 2px solid var(--bs-border-color);
  padding: 0.75rem;
  text-align: left;
}

.tablemod tbody td {
  padding: 0.75rem;
  border-top: 1px solid var(--bs-border-color);
  text-align: left;
  vertical-align: middle;
}

/* Remove Bootstrap's hover and striped backgrounds */
.tablemod tbody tr:hover {
  background-color: #e0f7fa !important; /* your hover color */
  transition: background-color 0.3s ease;
}

.tablemod tbody tr:nth-child(even) {
  background-color: transparent !important; /* disable default striping */
}

/* Now your month classes can control the backgrounds */
table.tablemod tbody tr.month-a {
  background-color: #f0fff4 !important; /* light green */
}

table.tablemod tbody tr.month-b {
  background-color: #fff5e6 !important;
}

table.tablemod tbody tr.month-a-header {
  background-color: #d0f0d9 !important; /* slightly darker */
}
table.tablemod tbody tr.month-b-header {
  background-color: #ffe0b3  !important;
}

/* Disable hover override on month colored rows */
.tablemod tbody tr.month-a:hover,
.tablemod tbody tr.month-b:hover,
.tablemod tbody tr.month-a-header:hover,
.tablemod tbody tr.month-b-header:hover {
  background-color: inherit !important;
}


/* Alternate month backgrounds */
.competition-table tbody tr.month-a {
  background-color: #f0fff4 !important; /* light green */
}
.competition-table tbody tr.month-b {
  background-color: #ffffff !important;
}

/* Month header rows */
.competition-table tbody tr.month-a-header {
  background-color: #d0f0d9 !important; /* slightly darker */
}
.competition-table tbody tr.month-b-header {
  background-color: #e6e6e6 !important;
}
.month-header {
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

/* Prevent hover from overriding month background */
.competition-table tbody tr.month-a:hover,
.competition-table tbody tr.month-b:hover,
.competition-table tbody tr.month-a-header:hover,
.competition-table tbody tr.month-b-header:hover {
  background-color: inherit !important;
}

/* Highlight today’s row */
table.tablemod tbody tr.today-row {
  outline: 2px solid #388e3c;
  box-shadow: 0 0 8px rgba(56, 142, 60, 0.5);
  background-color: #d9f0ff !important;
}

/* Expand/collapse icon */
.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.arrow-icon.collapsed {
  transform: rotate(-90deg);
}

.competition-wrapper {
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.competition-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.table-container {
  overflow-x: auto;
}

.competition-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #fff;
  overflow: hidden;
}

.competition-table thead {
  background-color: #004d40;
  color: #ffffff;
}

.competition-table th,
.competition-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ccc;
}

.competition-table tbody tr:nth-child(even) {
  /* Disabled striping since we're controlling background by month */
  background-color: transparent;
}

.competition-table tbody tr:hover {
  background-color: #e0f7fa !important;
  transition: background-color 0.3s ease;
}

.table thead.table-success {
  background-color: #a5d6a7; /* Lighter green */
}

.table td, .table th {
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
  .competition-table {
    font-size: 0.875rem;
    min-width: 100%;
  }

  .competition-wrapper h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .col-lg-8, .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-style {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {

  .tablemod {
    font-size: 0.8rem; 
  }
}

.main_content a{
	text-decoration: none !important;
	color: black;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-green);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.bg-dark-green {
    background-color: var(--dark-green);
}

.bg-light-green {
    background-color: var(--light-green);
}

.section {
    padding: 60px 0;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 400;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #d4a373;
}

.nav-link.active {
  color: #a66e39 !important;
}

.text-white a {
    text-decoration: none;
    color: var(--white);
}

.text-white a:hover {
    color: var(--white);
}

.animate-slide-left {
    animation: slideInLeft 1s ease-out;
}

.animate-slide-right {
    animation: slideInRight 1s ease-out;
}

.animate-slide-up {
    animation: slideInUp 1s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

@media (max-width: 767px) {
    .navbar-nav {
        background-color: var(--dark-green);
        padding: 10px;
    }
    .section {
        padding: 30px 0;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}
