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

.carousel-inner img {
  border-radius: 0.5rem; /* match or slightly smaller than outer container */
  object-fit: cover;
  width: 100%;
  height: auto;
}

.test {
	margin-top: 15px !important;
}

.card-style {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  width: 100%;               /* Reduce size slightly */
  max-width: 850px;         /* Prevent it from going too wide on large screens */
  box-sizing: border-box;   /* Ensure padding is included in width */
}

.card-style h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2e5133; /* dark green for golf theme */
}

table.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  table-layout: fixed; /* Prevent cells from expanding beyond card */
  word-wrap: break-word; /* Handle any long content */
}

table.scorecard th,
table.scorecard td {
  border: 1px solid #000;
  padding: 8px;
  max-width: 120px;
  overflow-wrap: break-word;
}

table.scorecard th {
  background-color: #2e5133;
  color: white;
  font-weight: bold;
}

td.ladies-bg {
  background-color: rgba(255, 0, 0, 0.5);
  color: #000;
}

td.juniors-bg {
  background-color: rgba(0, 0, 255, 0.5);
  color: #000;
}

td.mens-bg {
  background-color: rgba(255, 255, 0, 0.5);
  color: #000;
}

td.mens-column-b9 {
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
}

td.ladies-b9 {
  background-color: rgba(200, 162, 200, 0.7);
  color: black;
}

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

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

.info-section {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.info-section a {
  color: inherit;
  text-decoration: none;
}

/* Column background colors */
.mens-bg {
  background-color: #fffacc;
}

.ladies-bg {
  background-color: #ffe5e5;
}

.juniors-bg {
  background-color: #e6f4ff;
}

@media (max-width: 768px) {
  .card-style {
    padding: 1rem;
  }

  table.scorecard th,
  table.scorecard td {
    padding: 6px;
    font-size: 0.7rem;
	}
}
	
.carousel img {
  height: auto; /* Adjust as needed */
  object-fit:cover;
  width: 100% !important;
}

.carousel-caption-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.85);
  padding: 1rem;
  box-sizing: border-box;
  z-index: 10;
}

.carousel-item { 
  overflow: visible; 
}

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

#emergencyBanner {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  z-index: 1055;
  background-color: #BBE179;
  color: #774015;
  padding: 1rem;
  text-align: center;
  font-size: 1.7rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#emergencyBanner.fade-out {
  opacity: 0;
  pointer-events: none;
}

.slide-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 0; /* no gap below the image itself */
}

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

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

  @media (max-width: 768px) {
    #gmap_canvas {
      height: 300px;
	  width: 100%;
    }
	  
  .carousel img {
  height: 150px !important;
}
	  
  .carousel-caption-bottom {
 font-size: 0.4rem !important;
}
	  
 .imagetext {
	font-size: 0.9rem !important;
}
 .imagetexth {
  font-size: 1.1rem !important;
}	  
  }

.poster {
  width: 100%;
  height: 500px;
  object-fit: cover;
  margin-top: 1rem;
}

.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;
}

.emergency-banner {
    background-color: white;
    color: red;
    text-align: center;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.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;
    }
}