/* -------------------------------------------------- */
/* 🌐 GLOBAL RESET + BASE STYLES                      */
/* -----------------WORKING CSS--------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdf6ec;
  color: #333;
  line-height: 1.6;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- BANNER ----------*/
.banner img {
  width: 100%;
  height: 450px;
  /* Set your desired height */
  object-fit: cover;
  /* Keeps image filling the space and crops excess */
}

/* -------------------------------------------------- */
/* 🔗 MAIN NAVIGATION (Header, Nav, Dropdowns)        */
/* -------------------------------------------------- */
.navbar {
  background-color: #000;
  display: flex; /* ✅ Hide by default */
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex; /* ✅ Make visible on desktop */
  width: 100%;
  justify-content: center;
  flex-direction: row;
  transition: max-height 0.3s ease;
}

.nav-menu>li {
  position: relative;
}

.nav-menu a {
  display: block;
  color: #D4A017;
  padding: 1rem 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
}

.menu-toggle {
  display: block; /* ✅ FIXED: Make sure it's visible */
  background: none;
  border: none;
  color: #D4A017;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.2rem;
  z-index: 1000;
}

.menu-toggle i {
  font-size: 1.5rem;
  display: inline-block;
  color: #D4A017;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000;
  min-width: 200px;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  list-style: none;     
  padding-left: 0;   
}

.dropdown-menu li a {
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.dropdown.open .dropdown-toggle {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ✅ ONLY affect mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #000;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;

  /* ✅ Allow scrolling when expanded */
  overflow-y: auto;
  overscroll-behavior: contain;
}

  .nav-menu.active {
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav-menu > li {
    text-align: center;
  }

  .dropdown > a {
    padding: 1rem;
    display: inline-block;
    width: 100%;
  }

  .dropdown-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #D4A017;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .dropdown.open .dropdown-toggle {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    display: none;
    background-color: #000;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #D4A017;
  }

  .dropdown-menu li a:hover {
    background-color: #222;
    color: #fff;
  }
}

/* ✅ DESKTOP: hide hamburger and dropdown toggle */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .dropdown-toggle {
    display: none !important;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 200px;
    z-index: 10;
  }
}

/* -------------------------------------------------- */
/* ✅ MOBILE HEADER ALIGNMENT FIX                    */
/* -------------------------------------------------- */
@media (max-width: 768px) {
  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
  }

  .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.dropdown.open .dropdown-menu {
  max-height: 500px; /* Adjust based on your submenu length */
}


.dropdown.open .dropdown-menu {
  background-color: #222; /* Darker shade for contrast */
}

.site-logo {
    height: 50px;
  }

  .site-title {
    text-align: center;
    justify-self: center;
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .menu-toggle {
    justify-self: end;
  }
}

/* -------------------------------------------------- */
/* 🐝 SITE HEADER + LOGO STYLES                       */
/* -------------------------------------------------- */
.site-header {
  background-color: #000;
  padding: 1rem 2rem;
  color: white;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  position: relative;
  padding: 0 1rem; /* ✅ Moved here from the deleted block */
}

.site-logo {
  height: 60px;
  width: auto;
}

.site-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  font-weight: bold;
  color: #D4A017;
}

/* -------------------------------------------------- */
/* 🎞️ CAROUSEL STYLES                                */
/* -------------------------------------------------- */
.carousel-caption {
  position: absolute;
  bottom: 160px;
  /* ⬆ Push it up slightly */
  left: 30px;
  /* Fine-tune for padding from edge */
  transform: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 90%;
  text-align: left;
  z-index: 2;
}

.carousel-caption h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.5vw + 1rem, 2rem);
  color: #D4A017;
}

.carousel-caption p {
  margin-top: 0.25rem;
  font-size: clamp(0.875rem, 1vw, 1.125rem);
}

/* -------------------------------------------------- */
/* 📦 CONTENT CONTAINERS + LAYOUTS                   */
/* -------------------------------------------------- */

.content {
  padding: 2rem;
}

.content h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
}

.content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 2rem);
}

.content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 1.25vw + 0.5rem, 1.5rem);
}

.content p {
  margin-bottom: 1rem;
  /* Adjust to control the spacing */
}

/* --- ADDING AN IMAGE IN MAIN CONTENT AREA (LEFT) --- */
.content img.float-left-img {
  float: left;
  max-width: 500px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* --- ADDING AN IMAGE IN MAIN CONTENT AREA (RIGHT) --- */
.content img.float-right-img {
  float: right;
  max-width: 500px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* 📱 Donation QR Code Resize */
.qr-code {
  max-width: 250px;
  /* You can adjust this value */
  height: auto;
  display: block;
}

/* 📱 OPTIONAL QR RESPONSIVE TWEAK FOR MOBILE */
@media (max-width: 600px) {
  .qr-code {
    margin: 0 auto;
  }
}

/* ---------- MAIN LAYOUT WRAPPERS FOR PAGE STRUCTURE---------- */
.container {
  max-width: 1200px;
  /* Keeps content from stretching too wide on large screens */
  margin: 0 auto;
  /* Horizontally centers the container */
  padding: 0 1rem;
  /* Adds horizontal padding inside */
}

/* Grid layout inside the centered container */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  /* Responsive cards */
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Individual card styling */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  /* Hover effect */
}

.card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Read more link */
.read-more {
  text-align: right;
  margin-top: 1rem;
  color: #D4A017;
  font-weight: bold;
  font-size: clamp(0.9rem, 1vw, 1.125rem);
}

/* ---------- CLEAN 50/50 IMAGE + TEXT LAYOUT SIDE BY SIDE---------- */
.row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2rem;
  /* Space between the two boxes */
  margin: 2rem 0;
}

/* Optional: reverse the layout */
.row.reverse {
  flex-direction: row-reverse;
}

.img-box,
.text-box {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* Stretch to match row height */
}

/* ✅ Image box styles */
.img-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.img-box img {
  width: 100%;
  height: auto; /* NEW: allows image to resize naturally */
  object-fit: cover;
  display: block;
}

/* ✅ Text box styles */
.text-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- RESPONSIVE STACKING ON MOBILE ---------- */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    /* 🔁 Fixes image stacking on mobile */
  }

  .row.reverse {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .img-box,
  .text-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .img-box img {
    height: auto;
  }

  .img-box {
    margin-bottom: 1rem; /* ✅ adds space between image and text */
  }
}

@media (max-width: 600px) {
  .text-box {
    padding: 1rem; /* 🔁 Reduced padding */
    margin: 0 0.5rem; /* ➕ Small margin to center */
    box-sizing: border-box;
    align-items: center;
    text-align: center;
  }

  .text-box h1,
  .text-box h2,
  .text-box h3 {
    text-align: center;
  }

  .container {
    padding: 0; /* 🔁 Remove default side padding */
  }

/* ---------- FLOATING IMAGES: MOBILE FIRST ---------- */
.content img.float-left-img,
.content img.float-right-img {
  display: block;
  max-width: 100%;
  height: auto;
  float: none;
  margin: 1rem auto;
  border-radius: 8px;
}

}

/* -------------------------------------------------- */
/* 📹 VIDEO SECTION (Video Page Only)                */
/* -------------------------------------------------- */
.video {
  max-width: 960px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff8e1;
  border: 2px solid #f4ca64;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(244, 202, 100, 0.3);
  text-align: center;
}

.video:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(244, 202, 100, 0.45);
}

.video h2 {
  font-family: 'Georgia', serif;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  color: #5a420d;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px #fff3b0;
}

.video iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------- */
/* ❓ 404 PAGE STYLES (Not Found)                    */
/* -------------------------------------------------- */
.not-found {
  padding-top: 0.25rem;
  text-align: center;
}

main.not-found {
  padding: 200px 0;
}

/* -------------------------------------------------- */
/* 📃 INDENTED LISTS                                 */
/* -------------------------------------------------- */
.indented-list {
  margin-left: 2em;
  padding-left: 1em;
  list-style-type: disc;
}

.indented-list li {
  line-height: 1.6;
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .indented-list {
    margin-left: 1em;
    padding-left: 0.5em;
    list-style-position: outside; /* 🔁 ensures the dot is outside */
  }

  .indented-list li {
    padding-left: 0;
  }
}

/* ---------- DESKTOP FLOATS: LEFT / RIGHT IMAGE WRAP ---------- */
@media (min-width: 769px) {
  .content img.float-left-img {
    float: left;
    margin-right: 1.5rem;
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .content img.float-right-img {
    float: right;
    margin-left: 1.5rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* 📞 CONTACT CONTAINER                               */
/* -------------------------------------------------- */
/* Contact Form Wrapper */
.contact-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Contact Form Styling */
.contact-container {
  background-color: #fffdf4;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
  /* Space between form and footer */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Structure */
.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Labels */
.contact-container label {
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Inputs and Textareas */
.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}

/* Send Button */
.contact-container button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: #D4A017;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-container button:hover {
  background-color: #b88c14;
}

/* Accessibility: Hide bot field */
.contact-container .hidden {
  display: none;
}

/* Responsive Improvements */
@media (max-width: 600px) {
  .contact-container {
    padding: 1.5rem;
  }

  .contact-container button {
    width: 100%;
    text-align: center;
  }
}

/* ==== 📞 FOOTER ==== */
.site-footer {
  background-color: #000;
  color: #D4A017;
  padding: 2rem 1rem 0;
  font-size: 0.95rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1rem;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h3 {
  color: #D4A017;
  font-size: clamp(1rem, 1.25vw + 0.5rem, 1.2rem);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #D4A017;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  background-color: #000;
  color: #D4A017;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  border-top: 1px solid #000;
}

address {
  font-style: normal;
}

/* -------------------------------------------------- */
/* 📱 Responsive Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #D4A017;
    cursor: pointer;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    max-height: 0;          /* ✅ FIXED */
    overflow-y: hidden;          /* ✅ FIXED */
    background-color: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .dropdown-menu {
  flex-direction: column;
  background-color: #000;
  max-height: none;              /* ✅ Allow it to grow as needed */
  overflow-y: auto;              /* ✅ Enable scrolling */
  position: relative;            /* ✅ Ensure stacking works */
}

  .nav-menu.active {
  max-height: none;
  height: auto;
  display: flex;
  overflow-y: auto;
}

  .dropdown.open .dropdown-menu {
    display: block;            /* ✅ FIX */
  }

  .dropdown-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: #D4A017;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #D4A017;
    text-align: center;
  }

  .dropdown-menu li a:hover {
    background-color: #222;
    color: #fff;
  }
}

/* ✅ Allow scrolling when mobile menu is open */
body.menu-open,
html.menu-open {
  overflow-y: scroll;
  height: auto;
}

/* -------------------------------------------------- */
/* ♿ ACCESSIBILITY                                   */
/* -------------------------------------------------- */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------- */
/* ✨ ACCESSIBILITY: Focus Outlines   */
/* ---------------------------------- */

a:focus,
button:focus,
.menu-toggle:focus,
.nav-menu a:focus {
  outline: 2px dashed #D4A017;
  outline-offset: 4px;
  background-color: rgba(212, 160, 23, 0.15);
  border-radius: 4px;
}

/* ==== 🍪 Cookie Consent Styles ====*/
.cookie-popup {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  margin: auto;
  background: #fffbea;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  z-index: 9999;
  border-radius: 12px;
  display: none;
  font-family: system-ui, sans-serif;
}

.cookie-popup h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.cookie-popup p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.cookie-popup label {
  display: block;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.cookie-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  background: #D4A017;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-buttons button:hover {
  background: #C4970B;
}

/* ==== 🎨 VISUAL UTILITIES / BUTTONS ====*/
/* ==== 🔝 BACK TO TOP BUTTON ====*/
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: none;
  background-color: #f4b400;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out;
}

#backToTop:hover {
  background-color: #e09f00;
}
