/* ================================
   GOOGLE FONT IMPORT
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* ================================
   COLOR PALETTE
   ================================ */
:root {
  --sage: #6B8F71;
  --sage-dark: #4E6E54;
  --sand: #E1C699;
  --bluegray: #AFCBFF;
  --dark: #2F4444;
  --text: #1A1A1A;
  --white: #ffffff;
}

/* ================================
   GLOBAL STYLES
   ================================ */
body {
  padding-top: 115px;
  margin: 0;
  font-family: "Lato", sans-serif;
  background-color: var(--sand);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

footer h2,
footer h3 {
  color: var(--sand);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* HERO SECTION FOR GET INVOLVED PAGE */
.hero-section {
  position: relative;
  width: 100%;
  height: 120vh; /* reduced height to minimize cropping */
  min-height: 400px; /* lower min-height for better mobile fit */
  background-size: cover; /* fill the hero area without distortion */
  background-position: center 22%; /* anchor to top to show important content */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volunteer-hero {
  background-image: url(media-potts-website/running_1280.jpg);
}

.hero-text-box h1,
.hero-text-box h2,
.hero-text-box p {
  margin: 0.25rem;
}

.hero-text-box {
  display: inline-block;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.85)
  );
  padding: 1.25rem 1.25rem;
  line-height: 1;
  border-radius: 0.35rem;
  text-align: center;
  backdrop-filter: blur(2px); /* optional: adds a polished glassy feel */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 1rem 2rem;
  z-index: 2; /* sit above overlay */
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* responsive tweaks for hero section */
@media (max-width: 700px) {
  .hero-section {
    height: 30vh; /* further reduce height on smaller screens */
    min-height: 200px;
    padding: 4rem 1rem;
  }

  .hero-text h2 {
    font-size: 1.7rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
}

/* HEADER BACKGROUND (green) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--sage);
  border-bottom: none;
}

header .site-title {
  color: var(--white);
}

/* NAVIGATION BAR (sand) */
.main-nav {
  background-color: var(--white);
  border-top: 4px solid var(--sand);
  padding: 0.3rem 0;
}

/* ================================
   BOOTSTRAP CAROUSEL HERO
   ================================ */

/* Carousel container sets the height */
.carousel-item {
  position: relative;
  height: 60vh;      /* reduced to lessen vertical cropping */
  min-height: 420px; /* lower min-height for smaller viewports */
  overflow: hidden;
}

.carousel-item.bg-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Image stays fully visible */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 0;
}

/* Background-image slides: use when you want per-slide focal control
   Add the class `bg-slide` to the `.carousel-item` and set
   `style="background-image: url('...')"` on the element. Keep an
   inline <img> for accessibility if desired (it will be hidden).
*/
.carousel-item.bg-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* ensure caption and overlay still position correctly */
  display: block;
}

.carousel-item.bg-slide img {
  display: none;
  width: 0;
  height: 0;
  visibility: hidden;
}

/* Per-slide focal adjustments: tweak the Y (second) value to bring important
   content into view. Increase the second value to move the image down, or
   use `top`/`center` keywords for quick presets. */
.carousel-item.bg-slide.slide-1 {
  background-position: center 14%; /* shift image down to reveal top subjects */
  background-size: cover;       /* fill without letterbox */
  background-repeat: no-repeat;
}
.carousel-item.bg-slide.slide-2 {
  background-position: center 60%; /* adjust focal point */
  background-size: cover;       /* fill without letterbox */
  background-repeat: no-repeat;
}
.carousel-item.bg-slide.slide-3 {
  background-position: 20% 30%; /* position at top when using contain */
  background-size: cover;       /* show the whole image without cropping */
  background-repeat: no-repeat;
  background-color: var(--white); /* fills gaps created by contain */
}
.carousel-item.bg-slide {
  position: relative;
  overflow: hidden;   /* hide any overflow from background */
}

/* Base caption styles */
.carousel-caption {
  position: absolute;
  z-index: 2;        /* stacked above overlay */
  bottom: 60px;      /* shared default position */
}

/* Bottom-centered variant: only add what's different */
.carousel-caption.bottom-center {
  text-align: center;
}

.caption-text h2,
.caption-text p {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin: 0.2rem 0;             
}

.carousel-caption {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.carousel-caption a.btn {
  display: inline-block;
  margin: 0.75rem;
}

.carousel-caption .caption-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  margin: 0 auto;
}

.carousel-caption .caption-text h2,
.carousel-caption .caption-text p {
  text-align: center;
}

/* Smaller screens: reduce carousel height to avoid heavy cropping */
@media (max-width: 800px) {
  .carousel-item {
    height: 50vh;
    min-height: 300px;
  }
}

/* Tablets and smaller: adjust background position to keep important content visible */
@media (max-width: 992px) {
  .carousel-item.bg-slide.slide-1 {
    background-position: center 20%;
  }
  .carousel-item.bg-slide.slide-2 {
    background-position: center 70%;
  }
  .carousel-item.bg-slide.slide-3 {
    background-position: center 30%;
  }
}

/* Mobile: further adjust background position for very small screens */
@media (max-width: 600px) {
  .carousel-item.bg-slide {
    aspect-ratio: 4/5; /* taller aspect ratio to show more vertical content */
  }
  .carousel-item.bg-slide.slide-1 {
    background-position: center 30%;
  }
  .carousel-item.bg-slide.slide-2 {
    background-position: center 80%;
  }
  .carousel-item.bg-slide.slide-3 {
    background-position: center 40%;
  }
}

/* Mobile adjustments */
@media (max-width: 800px) {
  .carousel-caption.bottom-center {
    bottom: 30px;
  }

  .carousel-caption h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  /* Third slide image slightly smaller */
  #aboutCarousel .carousel-inner .carousel-item:nth-child(3) img {
    max-width: 70%;  /* adjust size */
    margin: 0 auto;  /* center it */
  }
}

/* INNER HEADER: LOGO LEFT, TITLE CENTERED */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 1rem; /* reduced vertical padding */
  position: relative;
}

/* SITE BRAND (logo + optional text together) */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;   /* space between logo and title */
  text-decoration: none;
}

/* LOGO */
.site-logo {
  height: 70px;   /* reduced to shorten header and free vertical space */
  width: auto;
}

/* TITLE */
.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark);
  text-align: center;
  position: absolute;  /* allows exact centering */
  left: 50%;
  transform: translateX(-50%);
}

/* NAV LINKS */
.main-nav ul {
  display: flex;
  justify-content: left;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* NAV LINKS */
.main-nav a {
  color: var(--dark);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--bluegray);
  color: var(--dark);
}


/* ================================
   PAGE HEADERS
   ================================ */
.page-header {
  background-color: var(--bluegray);
  padding: 2rem;
  text-align: center;
  color: var(--dark);
  border-bottom: 4px solid var(--sage);
}

.page-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* ================================
   CONTENT SECTIONS
   ================================ */
section {
  padding: 0;
}

.about-section,
.contact-section,
.regulations,
.volunteer-section {
  background-color: var(--white);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.regulations ul {
  margin-bottom: 2.5rem;
  list-style: none;
  padding-left: 1.2rem;
}

.regulations ul li::before {
  content: "🐾";
  margin-right: 0.5rem;
  clear: both;
}

.regulations-image,
.list-break-image {
  width: 180px;
  float: right;
  margin: 0 0 1.2rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Left-floating variant */
.list-break-image.left {
  float: left;
  margin: 0 1.2rem 1.2rem 0;
}

.regulations-divider {
  border: none;
  border-top: 2px solid var(--sage);
  width: 100%;
  margin: 3rem auto 2rem;
}

.closing-note {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  color: #444;
}
/* Full-bleed variant for the Mission section */
.about-section.mission-fullwidth {
  /* span full viewport */
  width: 100vw;
  max-width: none;
  margin: 0; /* remove auto centering */
  padding: 2rem 1rem; /* keep comfortable side padding */
  border-radius: 0; /* flush to edges */
  box-shadow: none; /* optional: remove shadow for full-bleed */
  box-sizing: border-box;
  background-color: var(--white);
}

/* keep inner text readable on large screens by constraining content width */
.about-section.mission-fullwidth > * {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section h3,
.contact-section h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.donation-flex {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.donation-text {
  flex: 1;
}

.donation-image {
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dr-potts-photo-left {
  float: left;
  width: 220px;          /* adjust size as needed */
  margin: 0 1.5rem 1rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.quote {
  font-style: italic;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--sage);
  background: #f9f9f9;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.donation-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.donation-wrapper dbox-widget {
  max-width: 500px;
  width: 100%;
}

/* CONTACT FORM STYLING */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: bold;
  color: var(--dark);
}

.contact-image {
  flex: 1 1 45%; /* image takes less space than the form */
  position: relative;
}

.contact-form-wrapper {
  flex: 1 1 55%; /* form gets more space than the image */
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid var(--dark);
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
}

.contact-form select {
  padding: 0.7rem;
  border: 1px solid var(--dark);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
  width: 100%;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bluegray);
  box-shadow: 0 0 4px rgba(175, 203, 255, 0.8);
}

.contact-form button {
  display: block;
  margin: 1.5rem auto 0;
  width: 200px;
  padding: 0.7rem 1.4rem;
}

.contact-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-image img {
    width: 100%;
    height: auto;
  }

  .contact-form-wrapper {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ================================
   BUTTONS
   ================================ */
.btn,
button {
  display: inline-block;
  background-color: var(--sage-dark);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  text-shadow:0 1px 3px rgba(0,0,0,0.45);
}

.btn:hover,
button:hover {
  text-decoration: underline;
  color: var(--white);
  background-color: var(--dark);
}

.btn:focus,
button:focus {
  outline: 3px solid var(--bluegray);
  outline-offset: 3px;
}


/* Mission section video styling */
.mission-video-container {
  max-width: 700px; /* was 700px*/
  margin: 0 auto; /* centers the video */
  text-align: center;
}

.mission-video-container video {
  width: 100%;
 /*height: 100%;*/
 border-radius: 8px;
  max-height: 600px; /* limit height to prevent excessive cropping */
  object-fit: cover; /* fill the container while maintaining aspect ratio */
  /*height: auto;*/
  display: block;
}

.video-caption {
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.85;
  margin-top: 0.6rem;
  font-style: italic;
  line-height: 1.4;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   Section dividers (green lines)
   ================================ */
.about-section {
  border-top: 4px solid var(--sage);

}

.regulations {
  border-top: 4px solid var(--sage);
}

@media (max-width: 700px) {
  .regulations-image,
  .list-break-image {
    float: none;
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 1.5rem auto;
  }
}
.contact-section {
  border-top: 4px solid var(--sage);
}

/* ================================
   SOCIAL LINKS
   ================================ */
.social-links a {
  font-weight: 600;
  color: var(--dark);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.05);
}

.hashtags {
  margin-top: 1rem;
  font-style: italic;
  color: var(--dark);
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.social-link {
  color: var(--bluegray);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ================================
   FOOTER
   ================================ */
footer {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 0; /* reduced vertical padding */
  margin-top: 0.3rem; /* minimal gap between carousel and footer */
}

footer a {
  color: var(--bluegray);
}

.footer-links {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

/* FOOTER LAYOUT */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; /* tighter gap */
  text-align: left;
  padding-bottom: 0.6rem;
}

.footer-column h4 {
  color: var(--sand);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-column p {
  margin: 0.2rem 0 0.6rem 0;
  font-size: 0.88rem; /* slightly smaller */
  opacity: 0.9;
}

footer a {
  color: var(--bluegray);
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--sand);
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  font-size: 1.05rem;
  background: rgba(255,255,255,0.08);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.25);
  color: var(--sand);
}

/* BOTTOM COPYRIGHT LINE */
.footer-bottom {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Smaller hero for interior pages */
.small-hero {
  height: 35vh;
  min-height: 260px;
  background-image: url('media-potts-website/potts_park.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* solid-ish black */
  /* optional: add a slight gradient for style */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.8)
  );
}

.small-hero h1 {
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 2.6rem;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.small-hero img {
  filter: brightness(70%);
}

/* Outer spacing around the container */
.content-outer {
  padding: 3rem 1rem;
  background-color: var(--sand); /* soft neutral backdrop */
}

/* White content container */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Headings inside the container */
.content-container h2 {
  margin-top: 2rem;
  color: #2f4444; /* dark sage */
}

/* Paragraphs */
.content-container p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Universal accent bar */
.accent-bar {
  width: 100%;
  height: 6px;
  background-color: var(--sage-dark);
  margin: 2.5rem 0;
  border-radius: 4px;
}

/* ============================================
   MOBILE OPTIMIZATION — Potts Dog Sanctuary
   ============================================ */
@media (max-width: 800px) {

 
  /* HEADER */
  .site-logo {
    height: 70px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  /* FOOTER */
  footer {
    margin-top: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links li {
    margin: 0.3rem 0;
  }

  .footer-links a {
    color: var(--bluegray);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: var(--sand);
  }

  .footer-column h4 {
    margin-bottom: 0.3rem;
  }

  .footer-column p {
    margin-bottom: 0.8rem;
  }

  .footer-social {
    justify-content: center;
    gap: 1.2rem;
  }

  .footer-social a {
    font-size: 1.3rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Even smaller screens */
@media (max-width: 500px) {

  .footer-social a {
    font-size: 1.2rem;
  }
}

@media (max-width: 800px) {
  .donation-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .donation-image {
    margin-top: 1rem;
  }
}

@media (max-width: 800px) {
  .dr-potts-photo-left {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 800px) {
  .regulations {
    display: block;
  }
}

@media (max-width: 800px) {
  .regulations-image {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}
/* MOBILE NAVIGATION */
@media (max-width: 800px) {

  /* Hide only the UL, not the entire nav */
  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    padding: 1rem;
    border-top: 4px solid var(--sand);
  }

  /* When nav has .open, show the UL */
  .main-nav.open ul {
    display: flex;
  }

  /* Hamburger button on the right */
  .hamburger {
    display: block;
    background-color: rgb(107, 143, 113); /* your green */
    color: #ffffff;                        /* high contrast white text */
    border: none;
    font-size: 2rem;
    cursor: pointer;
    justify-self: end;
    margin-right: 1rem;
  }
}

/* Desktop: hide hamburger */
@media (min-width: 801px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 600px) {
  .small-hero h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .content-wrapper {
    padding: 2rem 1.2rem;
  }
}

/* ================================
   EVENT CALENDAR
   ================================ */
.events-calendar {
  margin: 1.5rem 0;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background-color: #f0f0f0;
  border-radius: 6px;
}

#monthDisplay {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--dark);
  text-align: center;
  flex: 1;
}

.btn-nav {
  background-color: #4F6B50;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.btn-nav:hover {
  background-color: #3E553E; /* darker on hover */
}

.btn-nav:disabled {
  background-color: #999; /* better contrast for disabled state */
  color: #555;
  cursor: not-allowed;
}

.calendar-month h4 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #bbb; /* more visible border */
}

.calendar-header {
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
  background-color: #557A5B;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

.calendar-day {
  text-align: center;
  padding: 0.8rem 0.5rem;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #333; /* default text color for days without events stronger contrast */
}

.calendar-day.event-day {
  background-color: #ffed99;
  border-color: #ffbf00;
  font-weight: bold;
}

.calendar-day.event-day a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.event-day a:hover {
  color: #1f4d2f;
  text-decoration: underline;
}

/* =======================
   Checkbox Labels
   ======================= */
.checkbox-label {
  display: flex;          /* horizontal layout */
  align-items: center;    /* vertically center text with checkbox */
  gap: 0.5rem;            /* space between checkbox and text */
  line-height: 1.4;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;        /* makes the label clickable */
}

/* Only underline the links permanently */
.important-link {
    text-decoration: underline;  /* always underlined */
    font-weight: bold;           /* optional: makes it stand out */
    color: var(--dark);          /* ensures strong contrast */
}

.important-link:hover {
    color: #1f4d2f;              /* subtle hover color change */
    text-decoration: underline;  /* stays underlined */
}

input[type="checkbox"] {
  width: 1.2rem;          /* slightly larger checkbox for visibility */
  height: 1.2rem;
  cursor: pointer;        /* pointer when hovering */
}

/* Mobile: reduce calendar size */
@media (max-width: 600px) {
  .calendar-grid {
    gap: 0.25rem;
    padding: 0.5rem;
  }
  .calendar-day {
    padding: 0.4rem 0.2rem;
    min-height: 32px;
    font-size: 0.8rem;
  }
  .calendar-header {
    padding: 0.3rem;
    font-size: 0.75rem;
  }
}

/* ---------------------------- */
/* Event List Container Styling */
/* ---------------------------- */
#events-list .events-list {
  list-style: none;          /* removes bullets */
  padding: 0;
  margin: 1rem 0 0;
  max-width: 850px;
}

/* Space between cards */
#events-list .events-list li + li {
  margin-top: 0.75rem;
}

/* ---------------------------- */
/* Event Card Styling */
/* ---------------------------- */
#events-list .events-list li {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid #2c5e3f;
  border-radius: 0.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ---------------------------- */
/* Event Title Styling */
/* ---------------------------- */
#events-list .events-list li .event-title,
#events-list .events-list li h3,
#events-list .events-list li strong.title {
  font-weight: 700;         /* bold */
  color: #1f4d34;
  font-size: 1.1rem;        /* adjust as needed */
  margin: 0 0 0.5rem 0;     /* spacing below title */
  display: inline-block;
}

/* ---------------------------- */
/* Event Date Styling */
/* ---------------------------- */
#events-list .events-list li .event-date,
#events-list .events-list li strong.date {
  font-weight: 600;
  color: #1f4d34;
}

/* ---------------------------- */
/* Event Time + Clock Icon Styling */
/* ---------------------------- */
#events-list .events-list li .event-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  color: #2c5e3f;
  font-weight: 500;
}

/* Remove default list bullets (modern browsers) */
#events-list .events-list li::marker {
  content: none;
}

.event-time {
  display: inline-block;
  margin-left: 0;
  padding-left: 0;
}

/* Back button styling */
.btn-back {
  display: inline-block;      /* fits text only */
  width: auto;                /* prevents stretching */
  padding: 0.7rem 1.4rem;
  margin: 1rem auto 0;
  background-color: #555;     /* dark gray */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.btn-back:hover {
  background-color: #444;
  color: #fff;
}