    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px; /* Base font size */
    }

    /* Responsive font sizing */
    @media screen and (min-width: 768px) {
      html {
        font-size: 18px;
      }
    }

    @media screen and (min-width: 1200px) {
      html {
        font-size: 20px;
      }
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        font-size: 1rem;
        line-height: 1.6;
        color: white;
        position: relative;  /* allow positioning of ::before */
        overflow-x: hidden;
        transition: background-color 0.5s ease, color 0.5s ease;
    }

    /* Daylight mode text color */
    body.daylight-mode {
        color: #222;
    }

    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: transparent;
    }

    /* 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.95);
      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) {
      html {
        font-size: 14px;
      }

      body {
        font-size: 1rem;
      }

      .sidebar {
        transform: translateX(-100%);
      }

      .sidebar.active {
        transform: translateX(0);
      }

      .content {
        margin-left: 0;
        padding: 0.5rem;
      }

      .hamburger {
        display: block;
      }

      /* Mobile submenu adjustments */
      .submenu {
        padding: 1.25rem;
        max-width: 100%;
        margin: 0.75rem auto;
        border-radius: 10px;
      }

      .submenu h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
      }

      .submenu p {
        font-size: 1rem;
        line-height: 1.6;
      }

      /* Mobile section adjustments */
      .history-section,
      .vision-mission-section,
      .programs-section,
      .financial-services-section,
      .agro-enterprise-section,
      .partnership-section,
      .program-section,
      .tourism-section,
      .social-services-section,
      .staff-management-section,
      .gallery-section,
      .officers-section {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        margin: 0.75rem auto;
        border-radius: 10px;
      }

      /* Mobile typography */
      .history-section h1,
      .vision-mission-section h1,
      .programs-section h1,
      .financial-services-section h1,
      .agro-enterprise-section h1,
      .staff-management-section h1,
      .gallery-section h1,
      .officers-section h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
      }

      .history-section h2,
      .vision-mission-section h2,
      .programs-section h2,
      .partnership-section h2,
      .program-section h2,
      .tourism-section h2,
      .social-services-section h2,
      .offices-section h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.75rem;
      }

      .history-section h3,
      .agro-enterprise-section h3,
      .partnership-section h3,
      .program-section h3,
      .tourism-section h3 {
        font-size: 1.2rem !important;
      }

      .history-section p,
      .vision-mission-section p,
      .programs-section p,
      .financial-services-section p,
      .agro-enterprise-section p,
      .partnership-section p,
      .program-section p,
      .tourism-section p,
      .social-services-section p,
      .staff-management-section p,
      .offices-section p {
        font-size: 1rem !important;
        line-height: 1.7;
        margin-bottom: 1rem;
      }

      /* Lists on mobile */
      .fs-list,
      .program-list,
      .tourism-section ul,
      .social-services-section ul,
      .partnership-section ul,
      .program-section ul {
        font-size: 1rem !important;
        line-height: 1.7;
      }

      /* Mobile hamburger and mode toggle */
      .hamburger {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 1.4rem;
        padding: 0.5rem 0.7rem;
      }

      .mode-toggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
      }
    }

.slider-container {
  max-width: 97%;
  height: 80vh;            /* 80% of viewport height */
  /* margin: 20px auto; */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  background: rgba(30, 30, 47, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .slider-container {
    height: 45vh;
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5rem auto;
  }

  .slide img {
    object-fit: contain;
  }

  .thumbnails {
    padding: 0.5rem;
    gap: 4px;
  }

  .thumbnails img {
    width: 50px;
    height: 35px;
  }

  /* Fact and staff items mobile */
  .fact-item,
  .staff-item {
    max-width: 100% !important;
    width: 100%;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
  }

  .fact-letter,
  .staff-img {
    font-size: 1.1rem !important;
  }

  /* Core values mobile */
  .core-values-flip {
    padding: 1.5rem 1rem;
  }

  .core-group {
    gap: 8px;
  }

  .flip-card {
    width: 70px;
    height: 70px;
  }

  .flip-front,
  .flip-back {
    font-size: 1.8rem;
  }

  .flip-back {
    font-size: 0.75rem;
    padding: 0.4rem;
  }

  /* Hotel cards mobile */
  .tourism-section .hotel-card,
  .social-services-section .award-list {
    padding: 1rem 1.25rem !important;
  }

  .tourism-section .hotel-card h4 {
    font-size: 1.15rem !important;
  }

  /* Office list mobile - already handled but ensure spacing */
  .office-list div {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  /* Contact info mobile */
  .contact-info {
    font-size: 0.95rem;
    padding: 1.25rem 1rem;
  }
}

.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.95);
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 97%;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.7;
    font-size: 1rem;
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    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;
}

.highlight-amount {
    color: #ff6b35;
    font-weight: 600;
}

/* Text formatting styles */
.text-bold {
    font-weight: 700;
}

.text-italic {
    font-style: italic;
}

.text-underline {
    text-decoration: underline;
}

/* Font sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

/* Font families */
.font-serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.font-sans {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

.font-cursive {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
}

/* Daylight mode overrides */
body.daylight-mode .history-section {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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;
}

body.daylight-mode .highlight-amount {
    color: #dc2f02;
}

/* vission mission */
.vision-mission-section {
    background: rgba(30, 30, 47, 0.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.7;
    font-size: 1rem;
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    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;
}

@media (max-width: 768px) {
    .vision-mission-section .core-values {
        grid-template-columns: 1fr;
    }
}

.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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    margin-bottom: 1rem;
    text-align: justify;
}

.agro-enterprise-section p {
    font-size: 1rem;
    color: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    margin-bottom: 1rem;
    text-align: justify;
}

.partnership-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #999;
}

.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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    margin-bottom: 1rem;
    text-align: justify;
}

.program-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #999;
}

.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: #999;
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    margin-bottom: 1rem;
    text-align: justify;
}

.tourism-section ul {
    list-style: decimal inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
    color: #999;
}

.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: #999;
    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: #999;
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 950px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    margin-bottom: 1rem;
    text-align: justify;
}

.social-services-section ul {
    list-style: disc inside;
    margin-left: 1rem;
    color: #999;
    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: #999;
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
}

.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: #999;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .office-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.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: #999;
    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.95);
    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.95);
    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.95);
    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.95);
  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.95);
}

body.daylight-mode .submenu {
  background: rgba(255, 255, 255, 0.95);
}

body.daylight-mode .slider-container {
  background: rgba(255, 255, 255, 0.95);
}

body.daylight-mode .slide {
  background: rgba(255, 255, 255, 0.95);
}

body.daylight-mode .thumbnails {
  background: rgba(255, 255, 255, 0.95);
}

body.daylight-mode .hamburger {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
}
/* Unified style for submenu sections */
.submenu {
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;
  max-width: 90%;
  border-radius: 15px;
  background: rgba(30, 30, 47, 0.95); /* More solid dark */
  color: #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* Daylight mode override */
body.daylight-mode .submenu {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 97%;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: 2rem;
  width: 300px;
  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);
}

@media (max-width: 768px) {
  .officer-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }

  .officer-card img {
    width: 120px;
    height: 120px;
  }

  .officer-name {
    font-size: 1.1rem !important;
  }

  .officer-role {
    font-size: 0.95rem !important;
  }

  .officer-achievements {
    font-size: 0.9rem !important;
  }

  .org-level {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
}

.officer-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #f43f5e;
  object-fit: cover;
  margin-bottom: 1rem;
}

.officer-name {
  font-weight: 800;
  font-size: 1.3rem;
}

.officer-role {
  font-weight: 700;
  color: #f43f5e;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.officer-achievements {
  font-size: 0.95rem;
  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: 600px;
  width: 90%;
  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;
  margin: auto;
  position: relative;
}

@keyframes scaleUp {
  from {transform: scale(0.9);}
  to {transform: scale(1);}
}

.officer-modal-content img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 5px solid #f43f5e;
  margin: 0 auto 1rem auto;
  display: block;
  object-fit: cover;
  animation: playfulBounce 2s ease-in-out infinite;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.officer-modal-content img:hover {
  animation: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(3.5);
  width: 280px;
  height: 280px;
  border-radius: 20px;
  z-index: 10000;
  box-shadow: 0 0 150px rgba(244, 63, 94, 1);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.modal-name.name-hover-active {
  position: fixed !important;
  top: calc(50% + 500px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10001 !important;
  font-size: 3rem !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
  width: 100% !important;
  text-align: center !important;
}

@keyframes playfulBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-2deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.modal-role {
  color: #f43f5e;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-achievements {
  font-size: 1rem;
  color: #999;
  text-align: center;
  line-height: 1.5;
}

.modal-department {
  text-align: center;
}

.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;
}

/* Day mode modal styling */
body.daylight-mode .officer-modal,
body.daylight-mode #staffModal,
body.daylight-mode #committeeModal {
    background: rgba(255, 255, 255, 0.95);
}

body.daylight-mode .officer-modal-content {
    background: #ffffff;
    color: #222;
    box-shadow: 0 0 30px rgba(215, 38, 56, 0.3);
}

body.daylight-mode .modal-name {
    color: #222;
}

body.daylight-mode .modal-role {
    color: #d72638;
}

body.daylight-mode .modal-achievements {
    color: #555;
}

body.daylight-mode .close-btn {
    color: #222;
}

body.daylight-mode .close-btn:hover {
    color: #d72638;
}

body.daylight-mode .modal-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.daylight-mode .modal-department {
    color: #555;
}

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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    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.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 1100px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #f0f0f0;
    backdrop-filter: blur(10px);
    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: #999;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.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;
}
/* Professional Carousel Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

/* Lightbox Header */
.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lightbox-counter {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}

.lightbox-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(244, 63, 94, 1);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}

/* Lightbox Main Container */
.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 2rem 0;
}

/* Carousel Container with Stacking Effect */
.lightbox-carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    cursor: grab;
    user-select: none;
    perspective: 1200px;
    position: relative;
}

.lightbox-carousel {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.lightbox-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Multi-level Stacking Effect - 3 images per side */
.lightbox-slide.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
    filter: blur(0);
}

/* Left side - Level 1 (12% visible from left, 85% size) */
.lightbox-slide.prev-1 {
    transform: translateX(-12%) scale(0.85);
    opacity: 0.9;
    z-index: 9;
    filter: blur(0);
}

/* Left side - Level 2 (6% visible, 72% size) */
.lightbox-slide.prev-2 {
    transform: translateX(-18%) scale(0.72);
    opacity: 0.8;
    z-index: 8;
    filter: blur(0);
}

/* Left side - Level 3 (4% visible, 60% size) */
.lightbox-slide.prev-3 {
    transform: translateX(-22%) scale(0.60);
    opacity: 0.7;
    z-index: 7;
    filter: blur(0);
}

/* Left side - Level 4 (3% visible, 50% size) */
.lightbox-slide.prev-4 {
    transform: translateX(-25%) scale(0.50);
    opacity: 0.6;
    z-index: 6;
    filter: blur(0);
}

/* Left side - Level 5 (2% visible, 42% size) */
.lightbox-slide.prev-5 {
    transform: translateX(-27%) scale(0.42);
    opacity: 0.5;
    z-index: 5;
    filter: blur(0);
}

/* Right side - Level 1 (12% visible from right, 85% size) */
.lightbox-slide.next-1 {
    transform: translateX(12%) scale(0.85);
    opacity: 0.9;
    z-index: 9;
    filter: blur(0);
}

/* Right side - Level 2 (6% visible, 72% size) */
.lightbox-slide.next-2 {
    transform: translateX(18%) scale(0.72);
    opacity: 0.8;
    z-index: 8;
    filter: blur(0);
}

/* Right side - Level 3 (4% visible, 60% size) */
.lightbox-slide.next-3 {
    transform: translateX(22%) scale(0.60);
    opacity: 0.7;
    z-index: 7;
    filter: blur(0);
}

/* Right side - Level 4 (3% visible, 50% size) */
.lightbox-slide.next-4 {
    transform: translateX(25%) scale(0.50);
    opacity: 0.6;
    z-index: 6;
    filter: blur(0);
}

/* Right side - Level 5 (2% visible, 42% size) */
.lightbox-slide.next-5 {
    transform: translateX(27%) scale(0.42);
    opacity: 0.5;
    z-index: 5;
    filter: blur(0);
}

/* Legacy support for prev/next */
.lightbox-slide.prev {
    transform: translateX(-12%) scale(0.85);
    opacity: 0.9;
    z-index: 9;
    filter: blur(0);
}

.lightbox-slide.next {
    transform: translateX(12%) scale(0.85);
    opacity: 0.9;
    z-index: 9;
    filter: blur(0);
}

.lightbox-image-wrapper {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.lightbox-slide.active .lightbox-image {
    animation: imageSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes imageSlideIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Swipe Indicator */
.swipe-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 1;
    z-index: 5;
}

/* Hide far slides to improve performance */
.lightbox-slide.far-prev,
.lightbox-slide.far-next {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7);
}

/* Lightbox Footer */
.lightbox-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.3s ease;
    min-height: 2.5rem;
}

/* Thumbnails - Hidden (swipe-only navigation) */
.lightbox-thumbnails {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-header {
        padding: 1rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
    }

    .lightbox-main {
        padding: 1rem 0;
        overflow: visible;
    }

    .lightbox-carousel-container {
        perspective: 800px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 50vh;
    }

    /* Mobile stacking - emphasize center with dramatic scaling */
    .lightbox-slide.prev-1 {
        transform: translateX(-10%) scale(0.85);
        opacity: 0.9;
    }

    .lightbox-slide.prev-2 {
        transform: translateX(-16%) scale(0.72);
        opacity: 0.8;
    }

    .lightbox-slide.prev-3 {
        transform: translateX(-20%) scale(0.60);
        opacity: 0.7;
    }

    .lightbox-slide.prev-4 {
        transform: translateX(-23%) scale(0.50);
        opacity: 0.6;
    }

    .lightbox-slide.prev-5 {
        transform: translateX(-25%) scale(0.42);
        opacity: 0.5;
    }

    .lightbox-slide.next-1 {
        transform: translateX(10%) scale(0.85);
        opacity: 0.9;
    }

    .lightbox-slide.next-2 {
        transform: translateX(16%) scale(0.72);
        opacity: 0.8;
    }

    .lightbox-slide.next-3 {
        transform: translateX(20%) scale(0.60);
        opacity: 0.7;
    }

    .lightbox-slide.next-4 {
        transform: translateX(23%) scale(0.50);
        opacity: 0.6;
    }

    .lightbox-slide.next-5 {
        transform: translateX(25%) scale(0.42);
        opacity: 0.5;
    }

    .swipe-indicator {
        bottom: 1rem;
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }

    .lightbox-footer {
        padding: 1rem;
    }

    .lightbox-caption {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        min-height: 2rem;
    }
}

/* Day Mode */
body.daylight-mode .lightbox {
    background: rgba(255, 255, 255, 0.98);
}

body.daylight-mode .lightbox-header,
body.daylight-mode .lightbox-footer {
    background: rgba(0, 0, 0, 0.05);
}

body.daylight-mode .lightbox-counter {
    color: #222;
}

body.daylight-mode .lightbox-caption {
    color: #222;
}

body.daylight-mode .lightbox-close {
    color: #222;
    background: rgba(0, 0, 0, 0.05);
}

body.daylight-mode .lightbox-close:hover {
    background: rgba(215, 38, 56, 1);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(215, 38, 56, 0.4);
}

body.daylight-mode .lightbox-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.daylight-mode .swipe-indicator {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.8);
}

/* 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 */
/* Responsive Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Day/Night mode text color inheritance */
body.daylight-mode h1,
body.daylight-mode h2,
body.daylight-mode h3,
body.daylight-mode p,
body.daylight-mode .submenu,
body.daylight-mode .officers-section {
    color: #222;
}

body.daylight-mode a {
    color: #0066cc;
}

body.daylight-mode a:hover {
    color: #004499;
}
