@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --blue: #061b55;
  --royal: #0757ff;
  --text: #071d56;
  --line: #dbe4f4;
  --soft: #f4f8ff;
  --gray: #7b8aae;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.wrap {
  max-width: 1280px;
  margin: auto;
  padding: 0 28px;
  width: 100%;
}

/* Header */
.site-header {
  background: #fff;
  /* position: sticky;*/
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eef2f7;
}

.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 59px;
  /*max-width: 240px;*/
  object-fit: contain;
  vertical-align: middle;
  /*margin-top: 28px;*/
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
}

.nav a {
  padding: 8px 0;
  color: var(--text);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--royal);
}

/* Hamburger & menu icon */
.hamb {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 20px;
  color: var(--blue);
  display: none;
  align-items: center;
  transition: color 0.2s;
}

.hamb:hover {
  color: var(--royal);
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--royal);
  color: #fff;
  border-radius: 4px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 87, 255, 0.2);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  background: #0047e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(7, 87, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Hero Section with Background Carousel */
.hero {
  position: relative;
  height: 400px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 5px solid var(--blue);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Background image inside slides */
.carousel-slide img {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 38%,
      rgba(255, 255, 255, .7) 48%,
      rgba(255, 255, 255, 0) 70%);
  z-index: 2;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 19px;
  line-height: 1.7;
  width: 440px;
  margin: 0;
  color: var(--gray);
  font-weight: 500;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  color: var(--blue);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0;
}

.hero:hover .carousel-control {
  opacity: 1;
}

.carousel-control:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-control:active {
  transform: translateY(-50%) scale(0.98);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-control svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(6, 27, 85, 0.25);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot:hover {
  background-color: rgba(6, 27, 85, 0.5);
}

.carousel-dots .dot.active {
  background-color: var(--royal);
  transform: scale(1.2);
}

/* Tax Row / Banner */
.tax-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--soft);
  border: 1.5px solid var(--royal);
  border-radius: 8px;
  padding: 16px 28px;
  max-width: 1124px;
  margin: 10px auto;
  box-shadow: 0 4px 12px rgba(7, 87, 255, 0.03);
}

.tax-content {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.tax-shield {
  flex-shrink: 0;
  color: var(--royal);
}

.tax-banner .btn {
  flex-shrink: 0;
}

/* Regular Tax Row for inner pages */
.tax-row {
  max-width: 1124px;
  margin: 20px auto 0;
  padding: 0 28px;
}

.taxbox {
  background: var(--soft);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sections */
.section {
  padding: 20px 0;
}

.grid-left {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.side-title {
  padding: 10px 0;
}

.eyebrow {
  color: var(--royal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.side-title h2 {
  font-size: 38px;
  line-height: 1.15;
  margin: 12px 0 16px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.side-title p {
  line-height: 1.6;
  color: var(--gray);
  font-size: 15px;
  margin: 0 0 30px;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(6, 27, 85, 0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(6, 27, 85, 0.08);
}

/* News Cards */
.news-card {
  /*padding: 24px 4px;*/
  border-bottom: 4px solid var(--royal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  text-align: center;
}

.circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.circle-blue {
  background: #eaf3ff;
  color: var(--royal);
}

.circle-green {
  background: #e8f7ec;
  color: #2e7d32;
}

.circle-orange {
  background: #fff0eb;
  color: #e65100;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 4px;
  font-weight: 500;
}

.date {
  border-top: 1px solid #e2e8f5;
  padding: 12px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Story Cards */
.storycards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photo {
  height: 230px;
  background: #ddd center/cover no-repeat;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 230px);
  min-height: 160px;
}

.card-body p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
}

.read {
  color: var(--royal);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.read:hover {
  gap: 8px;
  color: #0047e0;
}

/* Programs Section */
.programs {
  background: #fff;
  padding: 10px 0px 40px 0px;
}

.center {
  text-align: center;
  margin-bottom: 20px;
}

.center h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.center p {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.card.program {
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.program .photo {
  height: 150px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.program .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px 0 12px 18px;
  position: relative;
  color: var(--royal);
  font-size: 20px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(7, 87, 255, 0.1);
}

.program .card-body {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: auto;
  min-height: 0;
}

.program h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 8px;
}

.program p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0 0 16px;
  flex-grow: 1;
}

/* CTA Section */
.cta {
  margin-top: 0;
  padding: 60px 0;
  background: linear-gradient(90deg, rgba(6, 27, 85, 0.96) 0%, rgba(6, 27, 85, 0.85) 45%, rgba(6, 27, 85, 0.1) 100%), url('assets/cta-crop.jpg') center/cover no-repeat;
  color: #fff;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.cta h2 {
  font-size: 30px;
  margin: 0 0 8px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* Inner Page Hero & Content */
.page-hero {
  padding: 48px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  text-align: center;

}

.page-hero h1 {
  font-size: 44px;
  margin: 0;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
}

.content {
  padding: 60px 0;
  background: #fff;
}

.prose {
  max-width: 850px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.prose p {
  margin: 0 0 24px;
}

/* Form Styling */
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(6, 27, 85, 0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field,
select,
textarea,
input[type="text"] {
  border: 1px solid #cfd9ea;
  border-radius: 6px;
  padding: 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus,
select:focus,
textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(7, 87, 255, 0.1);
}

label {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin: 14px 0 7px;
  color: var(--blue);
}

/* Footer */

.footer {
  width: 100%;
  background: #07143d;
  padding: 22px 40px;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  color: #b8c0d4;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  display: inline-block;
  margin-left: 22px;

  color: #8d95ad;
  text-decoration: none;
  text-transform: uppercase;

  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;

  transition: color .25s ease;
}

.footer-right a:first-child {
  margin-left: 0;
}

.footer-right a:hover,
.footer-right a.active {
  color: #ffffff;
}

/* Mobile */

@media screen and (max-width:768px) {

  .footer {
    padding: 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left {
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
  }

  .footer-right a {
    width: 48%;
    margin: 6px 0;
    text-align: center;
    box-sizing: border-box;
  }

}

/* Mobile Donate / live note - hidden by default */
.mobile-donate {
  display: none;
}

.live-logo-note {
  display: none;
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
  .carousel-slide img {
    object-position: 70% center top;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: 76px;
  }

  .brand img {
    height: 52px;
  }


  /* Mobile */
  @media (max-width: 768px) {
    .hamb {
      display: block !important;
    }

    .hamb svg {
      display: block;
    }
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 15px 25px rgba(0, 26, 79, 0.1);
    z-index: 100;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 16px 28px;
    border-bottom: 1px solid #eef2f7;
  }

  .hero {
    height: 380px;
    padding: 0;
    background: none;
  }

  .hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 17px;
    width: auto;
    max-width: 440px;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    left: 0;
    right: auto;
  }

  .slide-gradient {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.3) 100%);
  }

  .carousel-control {
    opacity: 0.85;
    width: 36px;
    height: 36px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  .tax-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px;
    margin: 30px auto;
  }

  .tax-content {
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
  }

  .tax-banner .btn {
    width: 100%;
  }

  .grid-left {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .side-title {
    text-align: center;
  }

  .side-title h2 {
    font-size: 34px;
  }

  .side-title p {
    max-width: 500px;
    margin: 0 auto 24px;
  }

  .cards,
  .storycards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cta .wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 24px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .cta .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .brand img {
    height: 54px;
    /* max-width: 180px;*/
  }

  .hero {
    height: 340px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .side-title h2 {
    font-size: 28px;
  }

  .cards,
  .storycards,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .photo {
    height: 240px;
  }

  .page-hero {
    padding: 50px 0;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .panel {
    padding: 20px;
  }

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

/* Donation Page Specific Styles */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
}

.toggle-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.toggle-btn.active {
  background: var(--royal);
  color: #fff;
  border: 1.5px solid var(--royal);
}

.toggle-btn.inactive {
  background: #fff;
  color: var(--royal);
  border: 1.5px solid var(--royal);
}

.toggle-btn.inactive:hover {
  background: var(--soft);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.amount-btn {
  background: #fff;
  border: 1.5px solid #e2e8f5;
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.amount-btn:hover {
  border-color: var(--royal);
  background: var(--soft);
}

.amount-btn.active {
  background: var(--royal);
  color: #fff;
  border-color: var(--royal);
}

.amount-grid select,
.amount-grid input {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border: 1.5px solid #cfd9ea;
  border-radius: 6px;
  background: #fff;
  width: 100%;
}

.amount-grid select:focus,
.amount-grid input:focus {
  border-color: var(--royal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 87, 255, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin: 16px 0;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}

.field-desc {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
  margin-bottom: 0;
  font-weight: 500;
}

.add-apt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--royal);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  user-select: none;
}

.add-apt:hover {
  color: #0047e0;
}

.info-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cfd9ea;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(7, 87, 255, 0.1);
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  border-right: 1.5px solid #cfd9ea;
  padding-right: 10px;
  margin-right: 10px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.phone-input-wrapper input {
  border: none !important;
  padding: 14px 0 !important;
  flex: 1;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  box-shadow: none !important;
}

.char-counter {
  font-size: 11px;
  color: var(--gray);
  text-align: right;
  margin-top: 4px;
  font-weight: 500;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.summary-row.total {
  font-size: 16px;
  font-weight: 800;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.summary-row .total-amount {
  font-size: 26px;
  color: var(--royal);
  font-weight: 900;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.secure-note-box {
  background: var(--soft);
  border: 1px solid #cbdcfd;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--blue);
  font-weight: 600;
}

.secure-note-box svg {
  flex-shrink: 0;
  color: var(--royal);
}

.accept-heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 28px;
  margin-bottom: 12px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.payment-badge {
  background: #fff;
  border: 1px solid #e2e8f5;
  border-radius: 6px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 4px rgba(6, 27, 85, 0.02);
}

.payment-badge svg {
  max-height: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .donate-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.marquee-text p {
  margin: 0px;
}


.marquee-text p strong {
  display: inline-block !important;
  color: #C4840C !important;
  /* Overrides the inline rgb(0, 0, 128) */
  font-size: 22px !important;
  /* Secures your text size */
  margin: 10px;
}

/* Outer box containing the scrolling text */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Horizontally centers the text during the static phase */
  display: flex;
  justify-content: center;
}

/* The moving text block */
.marquee-text {
  display: inline-block;
  flex-shrink: 0;
  /* Keeps text from squeezing or wrapping */

  /* Applied your requested amber-gold color */
  color: #C4840C !important;
  font-weight: 600;
  font-size: 1.1rem;

  /* Animation settings */
  animation-name: center-to-left-marquee;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  /* Holds text static in center for 3 seconds before moving */
  animation-delay: 3s;
  animation-fill-mode: backwards;
}

/* Stops the marquee when a user hovers their mouse over it */
.marquee-container:hover .marquee-text {
  animation-play-state: paused;
}

/* Moves the text smoothly out of view to the left */
@keyframes center-to-left-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    /* Math calculation to pull text completely off-screen from center */
    transform: translate3d(calc(-50vw - 50%), 0, 0);
  }
}

/* Disables motion for users with motion sensitivities */
@media (prefers-reduced-motion: reduce) {
  .marquee-text {
    animation: none;
    white-space: normal;
  }
}

.news-name {
  margin: 0 0 8px;
  min-height: 58px;
  text-align: center;
}

.news-name strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* --- Admin CSS starts below --- */

:is(.admin-body, .sidebar-frame, .login-page, .search-body) {
  --lte-primary: #0d6efd;
  --lte-primary-rgb: 13, 110, 253;
  --lte-secondary: #6c757d;
  --lte-success: #198754;
  --lte-danger: #dc3545;
  --lte-warning: #ffc107;
  --lte-info: #0dcaf0;
  --lte-light: #f8f9fa;
  --lte-dark: #212529;
  --lte-sidebar-bg: #343a40;
  --lte-sidebar-color: #c2c7d0;
  --lte-sidebar-hover-bg: rgba(255, 255, 255, 0.1);
  --lte-sidebar-hover-color: #ffffff;
  --lte-sidebar-active-bg: #0d6efd;
  --lte-sidebar-active-color: #ffffff;
  --lte-body-bg: #f4f6f9;
  --lte-text: #212529;
  --lte-border-color: #dee2e6;
  --lte-card-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  --lte-font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body:is(.admin-body, .sidebar-frame, .login-page, .search-body) {
  margin: 0;
  padding: 15px;
  font-family: var(--lte-font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lte-text);
  background-color: var(--lte-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  min-height: 100vh;
  box-sizing: border-box;
}

body:is(.admin-body, .sidebar-frame, .login-page, .search-body):has(.admin-shell),
body:is(.admin-body, .sidebar-frame, .login-page, .search-body):has(.sub-layout) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) *,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) *::before,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) *::after {
  box-sizing: border-box;
}

/* Sidebar Theme override */
body.sidebar-frame {
  background-color: var(--lte-sidebar-bg);
  color: var(--lte-sidebar-color);
  padding: 0;
  overflow: hidden;
}

body.sidebar-frame #left {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Common Layout Wrapper as AdminLTE Card */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) #wrap {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  box-shadow: var(--lte-card-shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Headings */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) h1,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) h2,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) h3,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--lte-text);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) h3 {
  font-size: 1.25rem;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) h4 {
  font-size: 1.1rem;
}

/* Links */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) a {
  color: var(--lte-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Tiny legacy links */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .tinylink,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) a.tinylink:link,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) a.tinylink:visited {
  font-size: 0.875rem;
  color: var(--lte-primary);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) .tinylink:hover {
  color: #0a58ca;
}

/* Form inputs matching Bootstrap 5 */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="text"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="password"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="file"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) select,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  outline: none;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="text"]:focus,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="password"]:focus,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="file"]:focus,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) select:focus,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) textarea:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) select {
  word-wrap: normal;
  height: calc(2.25rem + 2px);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) textarea {
  resize: vertical;
}

/* Redesigned AdminLTE Buttons */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="submit"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="button"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) button,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Primary Button Modifier */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="submit"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) button:not(.menu-toggle),
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .btn-primary {
  color: #fff;
  background-color: var(--lte-primary);
  border-color: var(--lte-primary);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="submit"]:hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) button:not(.menu-toggle):hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
  text-decoration: none;
}

/* Cancel Button Modifier */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="button"][value="Cancel"],
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .btn-secondary {
  color: #fff;
  background-color: var(--lte-secondary);
  border-color: var(--lte-secondary);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) input[type="button"][value="Cancel"]:hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) .btn-secondary:hover {
  color: #fff;
  background-color: #5c636a;
  border-color: #565e64;
  text-decoration: none;
}

/* AdminLTE Styled Tables */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) table {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 1rem;
  color: var(--lte-text);
  vertical-align: top;
  border-color: var(--lte-border-color);
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid var(--lte-border-color);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--lte-border-color);
  background-color: #ffffff !important;
  color: #212529 !important;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-top: 1px solid var(--lte-border-color);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) td {
  padding: 0.75rem;
  vertical-align: middle;
  border-top: 1px solid var(--lte-border-color);
  background-color: transparent;
  transition: background-color 0.15s ease-in-out;
}

/* Stripe zebra colors override */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) tr:is([bgcolor="#f9efd0"], [bgcolor="##f9efd0"], [bgcolor="#F9EFD0"], [bgcolor="##F9EFD0"]) td {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) tr:hover td {
  background-color: rgba(0, 0, 0, 0.075);
}

/* Sidebar Menu Design */
#left {
  background-color: transparent;
  color: var(--lte-sidebar-color);
}

.sidebar-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 1rem 0.5rem;
}

#left h3 {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d !important;
  border-bottom: none;
  height: auto;
  line-height: inherit;
  letter-spacing: 0.05em;
}

#left ul {
  padding: 0 0.5rem;
  margin: 0;
  list-style: none;
}

#left li {
  margin-bottom: 0.125rem;
}

#left li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--lte-sidebar-color);
  font-size: 0.938rem;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  text-decoration: none;
}

#left li a:hover {
  color: var(--lte-sidebar-hover-color);
  background-color: var(--lte-sidebar-hover-bg);
  text-decoration: none;
}

#left li a.active {
  color: var(--lte-sidebar-active-color) !important;
  background-color: var(--lte-sidebar-active-bg) !important;
  font-weight: 400;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

#left li a.active::before {
  display: none;
}

/* AdminLTE Card-Outline primary centering Login Box */
.box400 {
  background-color: #ffffff;
  border-radius: 0.25rem;
  box-shadow: var(--lte-card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.125) !important;
  border-top: 3px solid var(--lte-primary) !important;
  width: 360px;
  max-width: 95%;
  margin: 40px auto;
  padding: 1.5rem !important;
}

.box400 h1 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--lte-text);
}

.box400 table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.box400 td {
  padding: 0.5rem 0;
  border: none;
  background: transparent !important;
}

.box400 td:first-child {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--lte-text);
  width: 30%;
}

.box400 input[type="text"],
.box400 input[type="password"] {
  width: 100%;
}

.box400 input[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

/* Alerts / Warnings */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) font[color="red"] {
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 400;
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--lte-danger);
  border: 1px solid var(--lte-danger);
  border-radius: 0.25rem;
  text-align: center;
}

.warning {
  font-size: 0.875rem;
  color: var(--lte-danger);
  font-weight: 600;
}

/* Detail Form Table Resets */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) form table,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0.5rem 0 !important;
  max-width: 650px;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) form table th,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table th {
  background-color: transparent !important;
  color: var(--lte-text) !important;
  padding: 0.5rem 1rem 0.5rem 0 !important;
  font-size: 0.938rem !important;
  font-weight: 600 !important;
  width: 150px !important;
  text-align: left !important;
  border: none !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) form table td,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table td {
  padding: 0.5rem 0 !important;
  border-bottom: none !important;
  background: transparent !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) form table tr:hover td,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table tr:hover td {
  background-color: transparent !important;
}

/* Login/Forgot Authentication Pages */
body.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 15px;
  background-color: #e9ecef;
}

body.login-page .login-logo {
  font-size: 2.1rem;
  font-weight: 300;
  margin-bottom: 0.9rem;
  text-align: center;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.login-page h1 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--lte-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

body.login-page p {
  color: #6c757d;
  font-size: 0.938rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

body.login-page .box400 {
  margin: 0 auto;
}

/* Main Responsive Layout shell */
.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.mobile-header {
  display: none;
}

.sidebar-wrapper {
  background-color: var(--lte-sidebar-bg);
  height: 100%;
  border-right: 1px solid #4b545c;
  z-index: 1000;
}

.sidebar-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.content-wrapper {
  height: 100%;
  width: 100%;
  background-color: var(--lte-body-bg);
}

.content-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Management Page Layout */
.sub-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--lte-body-bg);
}

.search-iframe {
  flex: 0 0 95px;
  width: 100%;
  height: 95px;
  border: none;
  border-bottom: 1px solid var(--lte-border-color) !important;
  overflow: hidden;
  display: block;
  z-index: 10;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.results-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100vh - 95px);
  border: none;
  display: block;
}

/* Search Page Layout Styles */
body.search-body {
  padding: 15px;
  background-color: var(--lte-body-bg);
  overflow: hidden;
}

body.search-body #wrap {
  background-color: #ffffff;
  border: 1px solid var(--lte-border-color);
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--lte-card-shadow);
  max-width: 100%;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
}

body.search-body cfform,
body.search-body form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  flex-wrap: wrap;
}

body.search-body table {
  width: auto !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: transparent !important;
  display: inline-flex;
}

body.search-body tbody,
body.search-body tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  width: 100%;
}

body.search-body td {
  display: inline-flex;
  align-items: center;
  padding: 4px 0 !important;
  border: none !important;
  background: transparent !important;
  width: auto !important;
  white-space: nowrap;
  gap: 0.5rem;
}

body.search-body td:not(:has(input)):not(:has(select)):not(:has(a)) {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--lte-text);
}

body.search-body input[type="text"],
body.search-body select {
  width: 150px !important;
  height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.938rem;
}

body.search-body input[type="submit"] {
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  margin: 0;
}

/* Primary Action Buttons in Search */
body.search-body a,
body.search-body a:link,
body.search-body a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lte-primary);
  color: #ffffff;
  padding: 0.375rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
  height: 38px;
  box-shadow: none;
}

body.search-body a:hover {
  background-color: #0b5ed7;
  color: #ffffff;
  text-decoration: none;
}

/* List Page Header Grid */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0 !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type tr,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type tbody {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.75rem;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type td {
  border: none !important;
  padding: 0.5rem 0 !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  background: transparent !important;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--lte-text);
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lte-primary);
  color: #ffffff;
  padding: 0.375rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.938rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.15s ease;
  height: 38px;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type a:hover {
  background-color: #0b5ed7;
  color: #ffffff;
  text-decoration: none;
}

/* Action Links inside Tables */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink:link,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink:visited {
  font-size: 0.813rem;
  color: var(--lte-primary);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: #f8f9fa;
  border-radius: 0.2rem;
  border: 1px solid var(--lte-border-color);
  text-decoration: none;
  transition: all 0.15s ease;
}

:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink:hover {
  background: var(--lte-primary);
  color: #fff;
  border-color: var(--lte-primary);
  text-decoration: none;
}

/* Red Hover for Delete actions */
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink[onClick*="delete"]:hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink[onclick*="delete"]:hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink[onClick*="Delete"]:hover,
:is(.admin-body, .sidebar-frame, .login-page, .search-body) td a.tinylink[onclick*="Delete"]:hover {
  background: var(--lte-danger);
  color: #fff;
  border-color: var(--lte-danger);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 60px 1fr;
    position: relative;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    background-color: var(--lte-sidebar-bg);
    color: #fff;
    padding: 0 15px;
    height: 60px;
    box-shadow: var(--lte-card-shadow);
    z-index: 1001;
    grid-row: 1;
    width: 100%;
  }

  .menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    margin-right: 12px;
    outline: none;
  }

  .menu-toggle:hover {
    color: var(--lte-primary);
  }

  .mobile-title {
    font-size: 1.1rem;
    font-weight: 400;
  }

  .sidebar-wrapper {
    position: absolute;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    grid-row: 2;
    border-right: none;
  }

  .sidebar-wrapper.active {
    left: 0;
  }

  .content-wrapper {
    grid-row: 2;
    height: calc(100vh - 60px);
  }

  .search-iframe {
    flex: 0 0 240px;
    height: 240px;
  }

  .results-iframe {
    height: calc(100vh - 240px);
  }

  /* Mobile Search Fields Layout */
  body.search-body #wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    height: auto;
  }

  body.search-body cfform,
  body.search-body form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  body.search-body table {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
  }

  body.search-body tr,
  body.search-body tbody {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  body.search-body td {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100% !important;
    white-space: normal;
  }

  body.search-body td:not(:has(input)):not(:has(select)):not(:has(a)) {
    margin-bottom: -4px;
    margin-top: 4px;
  }

  body.search-body input[type="text"],
  body.search-body select {
    width: 100% !important;
  }

  body.search-body input[type="submit"] {
    width: 100% !important;
    margin-top: 10px;
  }

  body.search-body a,
  body.search-body a:link,
  body.search-body a:visited {
    width: 100% !important;
  }

  /* Responsive Lists and Tables */
  #wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0 10px;
  }

  table {
    min-width: 650px;
  }

  :is(.admin-body, .sidebar-frame, .login-page, .search-body) div#wrap>table:first-of-type {
    min-width: 100% !important;
  }

  /* Stack form tables vertically on mobile */
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) form table,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  :is(.admin-body, .sidebar-frame, .login-page, .search-body) form table tbody,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table tbody,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) form table tr,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table tr {
    display: block !important;
    width: 100% !important;
  }

  :is(.admin-body, .sidebar-frame, .login-page, .search-body) form table th,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table th {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 4px 0 !important;
  }

  :is(.admin-body, .sidebar-frame, .login-page, .search-body) form table td,
  :is(.admin-body, .sidebar-frame, .login-page, .search-body) cfform table td {
    display: block !important;
    width: 100% !important;
    padding: 0 0 12px 0 !important;
  }
}

/* Sub Header Bar Styles added at bottom */
.sub-header-bar {
  background-color: #002258;
  /* Exact deep blue from design */
  position: relative;
  z-index: 99;
}

.sub-header-wrap {
  display: flex;
  align-items: stretch;
  padding: 0 28px;
  height: 50px;
}

.sub-header-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(196, 132, 12);
  /* Exact orange from design */
  color: #ffffff;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.sub-header-home-btn:hover {
  background-color: rgb(196, 132, 12);
}

.sub-header-nav {
  display: flex;
  align-items: stretch;
  margin-left: 24px;
  gap: 50px;
  /* Nice wide spacing matching the design */
}

.sub-header-link {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  /* Bold uppercase style from design */
  letter-spacing: 0.05em;
  padding: 0 4px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.sub-header-link:hover {
  color: #f2994a;
  /* Nice golden hover color */
}

.sub-header-link svg.chevron {
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.85);
  /* Slightly muted white for chevron */
}

.sub-header-link:hover svg.chevron {
  color: rgb(196, 132, 12);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  .sub-header-wrap {
    height: auto;
    flex-direction: column;
    padding: 0;
  }

  .sub-header-home-btn {
    width: 100%;
    height: 44px;
  }

  .sub-header-nav {
    flex-direction: column;
    margin-left: 0;
    gap: 0;
  }

  .sub-header-link {
    width: 100%;
    height: 44px;
    padding: 0 20px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}