    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        color: white;
        position: relative;  /* allow positioning of ::before */
        overflow-x: hidden;
        transition: background-color 0.5s ease, color 0.5s ease;
    }

    body::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: url('../images/fed.png') no-repeat center center;
        background-size: cover;
        filter: blur(10px);
        transform: scale(1.05); /* prevents edge blur cut-off */
        z-index: -2;  /* behind your dark overlay */
        transition: filter 0.5s ease;
    }

    body::after {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5); /* optional dark overlay */
        z-index: -1;
        transition: background 0.5s ease;
    }

    /* Daylight mode background adjustments */
    body.daylight-mode::before {
        filter: blur(5px) brightness(1.2);
    }

    body.daylight-mode::after {
        background: rgba(255,255,255,0.85);
    }

    body.daylight-mode .mode-toggle {
      color: #222;
    }
    
    body.sidebar-open .content {
    margin-left: 250px;
    }

    body:not(.sidebar-open) .content {
        margin-left: 0;
    }
    /* Sidebar Styles */
    .sidebar {
      width: 250px;
      background: rgba(30,30,47,0.95);
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      padding-top: 1rem;
      overflow-y: auto;
      z-index: 1000;
      transform: translateX(-100%);
      transition: transform 0.3s ease, background 0.5s ease;
  }

  .sidebar.active {
    transform: translateX(0);
  }
    .sidebar h2 {
      text-align: center;
      color: #f43f5e;
      margin-bottom: 2rem;
    }

    .sidebar ul {
      list-style: none;
      padding: 0;
    }

    .sidebar ul li {
      position: relative;
    }

    .sidebar ul li a {
      display: flex;
      align-items: center;
      padding: 0.9rem 1.5rem;
      color: white;
      text-decoration: none;
      transition: background 0.2s, color 0.5s ease;
    }

    .sidebar ul li a i {
      width: 25px;
      text-align: center;
      margin-right: 10px;
    }

    .sidebar ul li a:hover,
    .sidebar ul li a.active {
      background: #27293d;
    }

    .submenu {
      background: rgba(30,30,47,.02);
    }

    .sidemenu {
      display: none;
      background: rgba(30,30,47,.02);
    }

    .sidemenu a {
      padding-left: 50px;
      font-size: 0.9rem;
    }

    .sidebar ul li.open .sidemenu {
      display: block;
    }

    .toggle-icon {
      margin-left: auto;
      transition: transform 0.2s;
    }

    .sidebar ul li.open .toggle-icon {
      transform: rotate(90deg);
    }

    .content {
      margin-left: 250px;
      padding: 2rem;
      flex: 1;
      transition: margin-left 0.3s, background 0.5s ease;
      background: rgba(30,30,47,.10);
    }

    /* Hamburger Button */
    .hamburger {
      display: block;                  /* Show always or remove if mobile-only */
      position: fixed;
      top: 1rem;
      left: 1rem;
      z-index: 1100;
      font-size: 1.5rem;
      background: #1e1e2f;
      border: none;
      color: white;
      padding: 0.5rem 0.7rem;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      cursor: pointer;
      transition: background 0.5s ease, color 0.5s ease, box-shadow 0.3s ease;
    }

    .hamburger:hover {
      box-shadow: 0 0 15px rgba(244, 63, 94, 0.8);
      transform: scale(1.05);
    }

    body.daylight-mode .hamburger {
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }
    
    .mode-toggle {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 1100;
      font-size: 1.8rem;
      background: rgba(30, 30, 47, 0.8);
      border: 2px solid rgba(244, 63, 94, 0.5);
      color: white;
      cursor: pointer;
      padding: 0.5rem 0.7rem;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      transition: all 0.3s ease;
    }

    .mode-toggle:hover {
      transform: rotate(180deg) scale(1.1);
      box-shadow: 0 0 20px rgba(244, 63, 94, 0.8);
      border-color: #f43f5e;
    }

    body.daylight-mode .mode-toggle {
      background: rgba(255, 255, 255, 0.9);
      border-color: rgba(215, 38, 56, 0.5);
    }

    body.daylight-mode .mode-toggle:hover {
      border-color: #d72638;
      box-shadow: 0 0 20px rgba(215, 38, 56, 0.6);
    }

    /* Responsive Rules */
    @media (max-width: 768px) {
      .sidebar {
        transform: translateX(-100%);
      }

      .sidebar.active {
        transform: translateX(0);
      }

      .content {
        margin-left: 0;
      }

      .hamburger {
        display: block;
      }
    }

.slider-container {
  max-width: 97%;
  height: 80vh;            /* 40% of viewport height */
  /* margin: 20px auto; */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: rgba(30,30,47,.02);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease, box-shadow 0.3s ease;
}

.slider {
    border-radius: 12px;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
    will-change: transform; /* improve GPU acceleration */
}

.slide {
    flex: 0 0 100%;  /* each slide takes 100% width */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px;
    box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 6px;
}

.thumbnails img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 4px;
  transition: opacity 0.3s, transform 0.3s;
}

.thumbnails img:hover,
.thumbnails img.active-thumb {
  opacity: 1;
  transform: scale(1.05);
}

/* history */
.history-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 97%;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    line-height: 1.7;
    font-size: 1rem;
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.3s ease;
}

.history-section h1 {
    text-align: center;
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.history-section .quote {
    font-style: italic;
    color: #ddd;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f43f5e;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
}

.history-section .quote-author {
    text-align: right;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.history-section ol {
    padding-left: 1.5rem;
}

.history-section ol li {
    margin-bottom: 0.8rem;
}

.history-section ol li strong {
    color: #f43f5e;
}

/* Highlight styles for important names, dates, events */
.highlight-name {
    color: #f43f5e;
    font-weight: 600;
    font-size: 1.1rem;
}

.highlight-date {
    color: #ffb703;
    font-weight: 600;
}

.highlight-event {
    color: #4cc9f0;
    font-weight: 600;
}

.highlight-org {
    color: #90be6d;
    font-weight: 600;
}

/* Daylight mode overrides */
body.daylight-mode .history-section {
    background: rgba(255, 255, 255, 0.15);
    color: #222;
}

body.daylight-mode .history-section h1 {
    color: #d72638;
}

body.daylight-mode .history-section .quote {
    background: rgba(0,0,0,0.05);
    color: #333;
    border-left-color: #d72638;
}

body.daylight-mode .history-section .quote-author {
    color: #555;
}

body.daylight-mode .history-section ol li strong {
    color: #d72638;
}

body.daylight-mode .highlight-name {
    color: #d72638;
}

body.daylight-mode .highlight-date {
    color: #fb8500;
}

body.daylight-mode .highlight-event {
    color: #219ebc;
}

body.daylight-mode .highlight-org {
    color: #588157;
}

/* vission mission */
.vision-mission-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    line-height: 1.7;
    font-size: 1rem;
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.vision-mission-section h1 {
    text-align: center;
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vision-mission-section .highlight-text {
    font-weight: 600;
    color: #ddd;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.vision-mission-section .highlight-accent {
    color: #f43f5e;
    font-weight: 700;
}

.vision-mission-section .core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.vision-mission-section .core-values p {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: #eee;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.vision-mission-section .core-values p:hover {
    background: rgba(244, 63, 94, 0.7);
    transform: scale(1.05);
}

.vision-mission-section .letter-highlight {
    color: #f43f5e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 6px;
}
.core-values-flip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.core-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    
}

.flip-card {
    background: transparent;
    width: 80px;
    height: 80px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
    transform: rotateY(180deg) scale(1.15);
    z-index: 10;
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #d72638;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.flip-back {
    transform: rotateY(180deg);
    font-size: 0.8rem;
    padding: 0.5rem;
    text-align: center;
}

.flip-card:hover .flip-front,
.flip-card:focus-within .flip-front {
    background: #f43f5e;
}

.flip-card:hover .flip-back,
.flip-card:focus-within .flip-back {
    background: #1e1e2f;;
    color: #f0f0f0;
}

/* Daylight mode support */
body.daylight-mode .flip-front,
body.daylight-mode .flip-back {
    background: rgb(255, 255, 255);
    color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.daylight-mode .flip-card:hover .flip-front,
body.daylight-mode .flip-card:focus-within .flip-front {
    background: #d72638;
}

body.daylight-mode .flip-card:hover .flip-back,
body.daylight-mode .flip-card:focus-within .flip-back {
    background: #1e1e2f;
    color: #ffffff;
}

/* Daylight mode overrides */
body.daylight-mode .core-values-flip {
    background: rgb(255, 255, 255);
}

body.daylight-mode .flip-front {
    background: rgba(215, 38, 56, 0.8);
    color: white;
}

body.daylight-mode .flip-back {
    background: rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
}


body.daylight-mode .vision-mission-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .vision-mission-section h1 {
    color: #d72638;
}

body.daylight-mode .vision-mission-section .highlight-text {
    color: #333;
}

body.daylight-mode .vision-mission-section .highlight-accent {
    color: #d72638;
}

body.daylight-mode .vision-mission-section .core-values p {
    background: rgb(255, 255, 255);
    color: #333;
}

body.daylight-mode .vision-mission-section .core-values p:hover {
    background: rgba(215, 38, 56, 0.7);
    color: #fff;
}

body.daylight-mode .vision-mission-section .letter-highlight {
    color: #d72638;
}

/* PROGRAMS SECTION */
.programs-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    text-align: center;
    line-height: 1.7;
}

.programs-section h1 {
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.programs-section p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.programs-section .highlight-accent {
    color: #f43f5e;
    font-weight: 700;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.fact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: #eee;
    font-size: 1rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.fact-item:hover {
    background: rgba(244, 63, 94, 0.7);
    transform: scale(1.05);
}

.fact-letter {
    color: #f43f5e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Daylight mode overrides */
body.daylight-mode .programs-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .programs-section h1 {
    color: #d72638;
}

body.daylight-mode .programs-section p {
    color: #333;
}

body.daylight-mode .programs-section .highlight-accent {
    color: #d72638;
}

body.daylight-mode .fact-item {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.daylight-mode .fact-item:hover {
    background: rgba(215, 38, 56, 0.7);
    color: #fff;
}

body.daylight-mode .fact-letter {
    color: #d72638;
}
/* financial */
.financial-services-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    line-height: 1.7;
}

.financial-services-section h1 {
    color: #f43f5e;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.financial-services-section .section-description {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.fs-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #eee;
}

.fs-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: justify;
}

.fs-list li strong {
    color: #f43f5e;
    font-weight: 600;
}

.highlight-performance {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-left: 4px solid #f43f5e;
    border-radius: 6px;
    font-size: 1rem;
    color: #ddd;
    text-align: justify;
}

.highlight-performance strong {
    color: #f43f5e;
}

.highlight-amount {
    color: #ffb703;
    font-weight: 600;
}

/* Daylight Mode Overrides */
body.daylight-mode .financial-services-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .financial-services-section h1 {
    color: #d72638;
}

body.daylight-mode .financial-services-section .section-description {
    color: #333;
}

body.daylight-mode .fs-list {
    color: #333;
}

body.daylight-mode .fs-list li strong {
    color: #d72638;
}

body.daylight-mode .highlight-performance {
    background: rgb(255, 255, 255);
    color: #333;
    border-left-color: #d72638;
}

body.daylight-mode .highlight-performance strong {
    color: #d72638;
}

body.daylight-mode .highlight-amount {
    color: #fb8500;
}
/* agri and marketing */
.agro-enterprise-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    line-height: 1.7;
}

.agro-enterprise-section h1 {
    color: #f43f5e;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agro-enterprise-section h2,
.agro-enterprise-section h3 {
    color: #ffb703;
    margin-top: 1.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3rem;
}

.agro-enterprise-section .section-description {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1rem;
    text-align: justify;
}

.agro-enterprise-section p {
    font-size: 1rem;
    color: #ddd;
    text-align: justify;
    margin-bottom: 1rem;
}

.program-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #eee;
    margin-bottom: 1rem;
}

.program-list li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    text-align: justify;
}

.program-list li strong {
    color: #f43f5e;
    font-weight: 600;
}

/* Daylight Mode Overrides */
body.daylight-mode .agro-enterprise-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .agro-enterprise-section h1 {
    color: #d72638;
}

body.daylight-mode .agro-enterprise-section h2,
body.daylight-mode .agro-enterprise-section h3 {
    color: #fb8500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

body.daylight-mode .agro-enterprise-section .section-description,
body.daylight-mode .agro-enterprise-section p {
    color: #333;
}

body.daylight-mode .program-list {
    color: #333;
}

body.daylight-mode .program-list li strong {
    color: #d72638;
}
/* capacity and training */
/* PARTNERSHIP SECTIONS */
.partnership-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.partnership-section h2 {
    color: #f43f5e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partnership-section h3 {
    color: #f43f5e;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.partnership-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
    text-align: justify;
}

.partnership-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.partnership-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.partnership-section .highlight-note {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-left: 4px solid #f43f5e;
    border-radius: 6px;
    font-style: italic;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Daylight mode overrides */
body.daylight-mode .partnership-section {
    background: rgba(255, 255, 255, 0.966);
    color: #222;
}

body.daylight-mode .partnership-section h2,
body.daylight-mode .partnership-section h3 {
    color: #d72638;
}

body.daylight-mode .partnership-section p,
body.daylight-mode .partnership-section ul,
body.daylight-mode .partnership-section ul li {
    color: #333;
}

body.daylight-mode .partnership-section .highlight-note {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #d72638;
    color: #333;
}
/* capacity and training 2 */
/* FARMERS TRAINING, MARKETING, CAPABILITY BUILDING SECTIONS */
.program-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.program-section h2 {
    color: #f43f5e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-section h3 {
    color: #f43f5e;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.program-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
    text-align: justify;
}

.program-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.program-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.program-section .highlight-note {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-left: 4px solid #f43f5e;
    border-radius: 6px;
    font-style: italic;
    color: #ddd;
    margin-bottom: 1rem;
}

/* for key figure stats if needed */
.program-section .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.program-section .stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: #f43f5e;
    font-size: 1.5rem;
    font-weight: 600;
    min-width: 120px;
}

.program-section .stat-card small {
    display: block;
    color: #ddd;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 0.3rem;
}

/* DAYLIGHT MODE OVERRIDES */
body.daylight-mode .program-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .program-section h2,
body.daylight-mode .program-section h3 {
    color: #d72638;
}

body.daylight-mode .program-section p,
body.daylight-mode .program-section ul,
body.daylight-mode .program-section ul li {
    color: #333;
}

body.daylight-mode .program-section .highlight-note {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #d72638;
    color: #333;
}

body.daylight-mode .program-section .stat-card {
    background: rgba(0, 0, 0, 0.05);
    color: #d72638;
}

body.daylight-mode .program-section .stat-card small {
    color: #555;
}
/* tourism */
/* TOURISM SERVICES SECTION */
.tourism-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.tourism-section h2 {
    color: #f43f5e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tourism-section h3 {
    color: #f43f5e;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.tourism-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
    text-align: justify;
}

.tourism-section ul {
    list-style: decimal inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.tourism-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tourism-section .highlight-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-left: 4px solid #f43f5e;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #ddd;
    font-style: italic;
}

.tourism-section .hotel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tourism-section .hotel-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.tourism-section .hotel-card:hover {
    transform: translateY(-5px);
}

.tourism-section .hotel-card h4 {
    color: #f43f5e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tourism-section .hotel-card p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
    margin: 0;
}

/* DAYLIGHT MODE */
body.daylight-mode .tourism-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .tourism-section h2,
body.daylight-mode .tourism-section h3,
body.daylight-mode .tourism-section .hotel-card h4 {
    color: #d72638;
}

body.daylight-mode .tourism-section p,
body.daylight-mode .tourism-section ul,
body.daylight-mode .tourism-section ul li,
body.daylight-mode .tourism-section .hotel-card p {
    color: #333;
}

body.daylight-mode .tourism-section .highlight-box {
    background: rgb(255, 255, 255);
    border-left-color: #d72638;
    color: #333;
}

body.daylight-mode .tourism-section .hotel-card {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* SOCIAL SERVICES SECTION */
.social-services-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.social-services-section h2 {
    color: #f43f5e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-services-section h3 {
    color: #f43f5e;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-services-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
    text-align: justify;
}

.social-services-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.social-services-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.social-services-section .highlight-block {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-left: 4px solid #f43f5e;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #ddd;
    font-style: italic;
}

.social-services-section .award-list {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.social-services-section .award-list h4 {
    color: #f43f5e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-services-section .award-list ul {
    list-style: decimal inside;
    margin-left: 1rem;
    color: #ddd;
    margin-bottom: 0;
}

.social-services-section .award-list ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* DAYLIGHT MODE */
body.daylight-mode .social-services-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .social-services-section h2,
body.daylight-mode .social-services-section h3,
body.daylight-mode .social-services-section .award-list h4 {
    color: #d72638;
}

body.daylight-mode .social-services-section p,
body.daylight-mode .social-services-section ul,
body.daylight-mode .social-services-section ul li {
    color: #333;
}

body.daylight-mode .social-services-section .highlight-block,
body.daylight-mode .social-services-section .award-list {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #d72638;
    color: #333;
}

/* OFFICES AND CONTACT SECTION */
.offices-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
}

.offices-section h2 {
    color: #f43f5e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.office-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.office-list div {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.contact-info {
    text-align: center;
    font-size: 1rem;
    color: #ddd;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.contact-info a {
    color: #f43f5e;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* DAYLIGHT MODE */
body.daylight-mode .offices-section {
    background: rgba(255, 255, 255, 0.15);
    color: #222;
}

body.daylight-mode .offices-section h2 {
    color: #d72638;
}

body.daylight-mode .office-list div,
body.daylight-mode .contact-info {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.daylight-mode .contact-info a {
    color: #d72638;
}

/* DASHBOARD SUBMENU STYLING */
.submenu#dashboard {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    text-align: center;
}

.submenu#dashboard h1 {
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submenu#dashboard p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgb(255, 255, 255);
    max-width: 600px;
    margin: 0 auto;
}

/* DAYLIGHT MODE */
body.daylight-mode .submenu#dashboard {
    background: rgba(255, 255, 255, 0.15);
    color: #222;
}

body.daylight-mode .submenu#dashboard h1 {
    color: #d72638;
}

body.daylight-mode .submenu#dashboard p {
    color: #333;
}

/* daylight mode css */
body.daylight-mode {
  background: rgb(255, 255, 255);
  color: #222;
}

/* Global text color fixes for better contrast in daylight mode */
body.daylight-mode .history-section .quote,
body.daylight-mode .vision-mission-section .highlight-text,
body.daylight-mode .programs-section p,
body.daylight-mode .financial-services-section .section-description,
body.daylight-mode .agro-enterprise-section .section-description,
body.daylight-mode .agro-enterprise-section p,
body.daylight-mode .partnership-section p,
body.daylight-mode .program-section p,
body.daylight-mode .tourism-section p,
body.daylight-mode .social-services-section p,
body.daylight-mode .staff-management-section p,
body.daylight-mode .gallery-section p {
  color: #333 !important;
}

body.daylight-mode .sidebar {
  background: rgba(255, 255, 255, 0.15);
  color: #222;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

body.daylight-mode .sidebar h2 {
  color: #f43f5e;
}

body.daylight-mode .sidebar ul li a {
  color: #222;
}

body.daylight-mode .sidebar ul li a:hover,
body.daylight-mode .sidebar ul li a.active {
  background: rgba(255, 255, 255, 0.15);
}

body.daylight-mode .submenu {
  background: rgba(255, 255, 255, 0.15);
}

body.daylight-mode .slider-container {
  background: rgba(255, 255, 255, 0.15);
}

body.daylight-mode .slide {
  background: rgba(255, 255, 255, 0.15);
}

body.daylight-mode .thumbnails {
  background: rgba(255, 255, 255, 0.15);
}

body.daylight-mode .hamburger {
  background: rgba(255, 255, 255, 0.15);
  color: #222;
}
/* Unified style for submenu sections */
.submenu {
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;
  max-width: 90%;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3); /* translucent dark */
  color: #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Daylight mode override */
body.daylight-mode .submenu {
  background: rgba(255, 255, 255, 0.3);
  color: #222;
}

/* Section heading inside submenu */
.submenu h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f43f5e;
  margin-bottom: 1rem;
}

/* Paragraph inside submenu */
.submenu p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* List styling inside submenu */
.submenu ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.submenu ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modal content */
/* Modal content */
.modal-content {
  margin: 6% auto;
  padding: 2.5rem 3rem;
  width: 90%;
  max-width: 480px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f1f1f, #272727);
  color: #eee;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* Heading */
.modal-content h2 {
  color: #ff577f;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* Description paragraph */
.modal-content p {
  color: #ccc;
  margin-bottom: 1.8rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Inputs */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #2b2b2b;
  color: #eee;
  box-shadow: inset 2px 2px 5px #1a1a1a,
              inset -2px -2px 5px #3c3c3c;
  transition: background 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.modal-content input[type="text"]::placeholder,
.modal-content input[type="email"]::placeholder,
.modal-content input[type="password"]::placeholder {
  color: #999;
}

/* Input focus */
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus {
  outline: none;
  background: #3a3a3a;
  box-shadow:
    0 0 8px #ff577f,
    inset 2px 2px 5px #282828,
    inset -2px -2px 5px #454545;
  color: #fff;
}

/* Login Button */
.modal-content button {
  background: #ff577f;
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(255, 87, 127, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content button:hover,
.modal-content button:focus {
  background: #ff2d5c;
  box-shadow: 0 8px 20px rgba(255, 45, 92, 0.8);
  outline: none;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  color: #ff577f;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.25s ease;
  user-select: none;
}

.close-btn:hover,
.close-btn:focus {
  color: #ff2d5c;
  outline: none;
  transform: scale(1.1);
  transition: color 0.15s ease, transform 0.15s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  color: #ff577f;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.25s ease;
  user-select: none;
}

.close-btn:hover,
.close-btn:focus {
  color: #ff2d5c;
  outline: none;
  transform: scale(1.1);
  transition: color 0.15s ease, transform 0.15s ease;
}

/* Daylight Mode Adjustments */
body.daylight-mode .modal-content {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  color: #222;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 0 10px rgba(0, 0, 0, 0.05);
}

body.daylight-mode .close-btn {
  color: #d6336c;
}

body.daylight-mode .close-btn:hover,
body.daylight-mode .close-btn:focus {
  color: #b02048;
}

/* officers */
.officers-section {
  background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    text-align: center;
    line-height: 1.7;
}

.officers-section h1 {
  color: #f43f5e;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: 800;
}

/* Org Chart Layout */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Card */
.officer-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  width: 220px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(244,63,94,0.8);
}

.officer-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #f43f5e;
  object-fit: cover;
  margin-bottom: 1rem;
}

.officer-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.officer-role {
  font-weight: 700;
  color: #f43f5e;
  margin-bottom: 0.5rem;
}

.officer-achievements {
  font-size: 0.85rem;
  color: #ccc;
}

/* Lines between levels */
.org-level::before {
  content: "";
  width: 100%;
  height: 20px;
  border-bottom: 2px solid rgba(244,63,94,0.6);
  position: relative;
  top: -1rem;
}
.org-level:first-child::before {
  display: none;
}

/* Officer Modal */
.officer-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,10,20,0.95);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.officer-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.officer-modal-content {
  background: #1c1c2e;
  padding: 2rem;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 30px rgba(244,63,94,0.9);
  animation: scaleUp 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;
  position: relative;
}

@keyframes scaleUp {
  from {transform: scale(0.9);}
  to {transform: scale(1);}
}

.officer-modal-content img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #f43f5e;
  margin-bottom: 1rem;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-role {
  color: #f43f5e;
  font-weight: 700;
  margin-bottom: 1rem;
}

.modal-achievements {
  font-size: 1rem;
  color: #ddd;
  text-align: justify;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
.close-btn:hover { color: #f43f5e; }

/* Daylight mode overrides */
body.daylight-mode .officers-section {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
}

body.daylight-mode .officers-section h1 {
    color: #d72638;
}

body.daylight-mode .officers-section p {
    color: #333;
}

body.daylight-mode .officer-name {
    color: #222;
}

body.daylight-mode .officer-role {
    color: #d72638;
}

body.daylight-mode .officer-achievements {
    color: #555;
}

body.daylight-mode .officer-card {
    background: rgba(0, 0, 0, 0.05);
}

body.daylight-mode .officer-card:hover {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 15px rgba(215, 38, 56, 0.6);
}

body.daylight-mode .officers-section .highlight-accent {
    color: #d72638;
}

body.daylight-mode .potion-item {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.daylight-mode .potion-item:hover {
    background: rgba(215, 38, 56, 0.7);
    color: #fff;
}

body.daylight-mode .officer-img {
    color: #d72638;
}

/* officers */

/* staff-management */
.staff-management-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    text-align: center;
    line-height: 1.7;
}

.staff-management-section h1 {
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.staff-management-section p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.staff-management-section .highlight-accent {
    color: #f43f5e;
    font-weight: 700;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.staff-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: #eee;
    font-size: 1rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.staff-item:hover {
    background: rgba(244, 63, 94, 0.7);
    transform: scale(1.05);
}

.staff-img {
    color: #f43f5e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Daylight mode overrides */
body.daylight-mode .staff-management-section {
    background: rgb(255, 255, 255);
    color: #222;
}

body.daylight-mode .staff-management-section h1 {
    color: #d72638;
}

body.daylight-mode .staff-management-section p {
    color: #333;
}

body.daylight-mode .staff-management-section .highlight-accent {
    color: #d72638;
}

body.daylight-mode .staff-item {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.daylight-mode .staff-item:hover {
    background: rgba(215, 38, 56, 0.7);
    color: #fff;
}

body.daylight-mode .staff-img {
    color: #d72638;
}


/* staff-management */
/* Gallery Section */
/* Gallery Styling */
.gallery-section {
    background: rgba(30, 30, 47, 0.8);
    padding: 2rem;
    border-radius: 12px;
    max-width: 1100px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    color: #f0f0f0;
    backdrop-filter: blur(5px);
    text-align: center;
}

.gallery-section h1 {
    color: #f43f5e;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-section p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #f0f0f0;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}
.lazy-bg {
  background-size: cover;
  background-position: center;
}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
}

.lightbox img {
    max-width: 70vw;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    object-fit: contain;
}

#lightbox-caption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 90%;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Mobile tweak */
@media (max-width: 600px) {
    .lightbox img {
        max-width: 90vw;
        max-height: 50vh;
    }
}

/* Daylight Mode */
body.daylight-mode .gallery-section {
    background: #fff;
    color: #222;
}
body.daylight-mode .gallery-section h1 {
    color: #d72638;
}
body.daylight-mode .gallery-section p {
    color: #333;
}
body.daylight-mode .gallery-caption {
    background: rgba(255, 255, 255, 0.6);
    color: #222;
}

/* gallery */