* { box-sizing: border-box; }
body { margin:0; font-family: Arial, sans-serif; background:#f6f7fb; color:#111; }
.container { width:min(1100px, 92%); margin: 0 auto; }
.topbar { background:#fff; border-bottom:1px solid #e8e8ee; position: sticky; top:0; z-index:10; }
.row { display:flex; align-items:center; }
.space { justify-content: space-between; }
.gap { gap:10px; }
.brand { font-weight:700; padding:14px 0; }
.nav a { margin-left:12px; text-decoration:none; color:#111; }
.nav .btn { margin-left:12px; }


.btn { display:inline-block; background:#111; color:#fff; padding:10px 14px; border-radius:8px; text-decoration:none; border:1px solid #111; cursor:pointer; }
.btn:hover { opacity: .92; }
.btn-outline { background:transparent; color:#111; }
.btn-small { padding:6px 10px; border-radius:8px; }
.btn-danger { background:#b00020; border-color:#b00020; }

.card { background:#fff; border:1px solid #ececf3; border-radius:12px; padding:14px; margin: 10px 0; }
label { display:block; margin: 10px 0 6px; font-weight:600; }
input, textarea, select { width:100%; padding:10px; border:1px solid #dadbe7; border-radius:10px; outline:none; }
input:focus, textarea:focus, select:focus { border-color:#111; }

.table-wrap { overflow:auto; border-radius:12px; border:1px solid #ececf3; background:#fff; }
table { width:100%; border-collapse: collapse; }
th, td { padding:10px; border-bottom:1px solid #f0f0f6; text-align:left; white-space:nowrap; }
th { background:#fafafe; }
.actions { display:flex; gap:8px; }

.alert { padding:10px 12px; border-radius:10px; margin: 10px 0; }
.alert.success { background:#e7f7ee; border:1px solid #bde7cd; }
.alert.danger { background:#fdeaea; border:1px solid #f3b9b9; }

.muted { color:#555; }
.small { font-size: 12px; }
.chip { background:#f0f0f6; border-radius:999px; padding:6px 10px; margin-left:12px; }

.hero { padding: 18px 0; }
.hero-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap:16px; align-items:center; }
.hero-image img { width:100%; border-radius:12px; border:1px solid #ececf3; }
.placeholder { height:260px; border:1px dashed #c9cada; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#666; background:#fff; }

.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }

.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }

@media (max-width: 768px) {
  .grid2 {
    gap: 0;
  }
}


.footer { padding:18px 0; border-top:1px solid #e8e8ee; background:#fff; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .nav a, .nav .chip { display:none; }
}


/* ===== Flyer Theme (Landing Page) ===== */
.flyer-wrap {
  padding: 16px 0 40px;
}

.flyer-page {
  border-radius: 18px;
  padding: 26px 18px;
  margin: 14px auto;
  border: 1px solid #e8e0b8;

  /* warm yellow paper look */
  background: radial-gradient(circle at top, #f6f0bf 0%, #f7f2c7 18%, #f7f7f7 55%, #f7f7f7 100%);
}

.flyer-top-title {
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  color: #a23b8f; /* purple-like */
  margin-bottom: 16px;
}

.flyer-patrons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  justify-items: center;
  margin-bottom: 16px;
}

.patron-circle {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 8px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.patron-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patron-placeholder {
  font-weight: 700;
  color: #666;
}

.patron-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-align: center;
  max-width: 160px;
}

.flyer-main-title {
  text-align: center;
  font-size: 64px;
  line-height: 1;
  margin: 10px 0 14px;
  color: #d12b2b; /* big red */
  letter-spacing: 0.5px;
}

.flyer-ribbon {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}
.flyer-ribbon span {
  background: #1e1e1e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.flyer-slogans {
  text-align: center;
  margin: 10px 0 18px;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.2;
}
.flyer-slogans .slogan {
  margin: 6px 0;
}
.flyer-slogans .s1 { color: #1b76d1; }
.flyer-slogans .s2 { color: #b040d1; }
.flyer-slogans .s3 { color: #d18a1b; }

.flyer-cta {
  display: flex;
  justify-content: center;
  margin: 22px 0 10px;
}
.cta-circle {
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: #c42028;
  box-shadow: 0 18px 30px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cta-text {
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.15;
}

.flyer-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* Page 2 look */
.flyer-page-2 {
  background: radial-gradient(circle at top, #f6f0bf 0%, #f7f2c7 18%, #f7f7f7 55%, #f7f7f7 100%);
}

.flyer-letter {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 10px 14px;
}

.letter-title {
  color: #c42028;
  font-weight: 900;
  font-size: 22px;
  margin: 10px 0 10px;
}

.letter-body {
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

.flyer-info-box {
  max-width: 920px;
  margin: 16px auto 8px;
  border: 2px solid #bfbfbf;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  padding: 14px 16px;
}

.info-title {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  color: #c42028;
  margin-bottom: 10px;
}

.info-body {
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}

.flyer-footer-line {
  text-align: center;
  margin-top: 14px;
  font-weight: 700;
  color: #333;
  font-size: 13px;
}

@media (max-width: 900px) {
  .flyer-main-title { font-size: 44px; }
  .flyer-slogans { font-size: 26px; }
  .cta-circle { width: 260px; height: 260px; }
  .cta-text { font-size: 26px; }
  .patron-circle { width: 110px; height: 110px; }
}

@media (max-width: 560px) {
  .flyer-patrons { grid-template-columns: 1fr; }
  .flyer-main-title { font-size: 38px; }
}


/* Landing page = 5 images stacked */
.landing-image-pages {
  padding: 0px 0 30px;
}

.landing-page-img {
  margin: 12px auto;
  margin-top: 0px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9e9ef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.landing-page-img img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-login-btn {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.preview {
  margin-top: 8px;
}
.preview img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid #ececf3;
  display: block;
}

/* =========================================================
   FLYER THEME (Inspired by your provided images)
   Applies across Admin + User + Login pages
   ========================================================= */

body.theme-flyer {
  background: radial-gradient(circle at top, #f6f0bf 0%, #f7f2c7 22%, #f7f7f7 60%, #f7f7f7 100%);
  color: #141414;
}

/* Topbar */
body.theme-flyer .topbar {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid #e8e0b8;
  backdrop-filter: blur(8px);
}
body.theme-flyer .brand {
  color: #c42028; /* flyer red */
  font-weight: 900;
}

/* Links */
body.theme-flyer .nav a {
  color: #1c1c1c;
  font-weight: 700;
}
body.theme-flyer .nav a:hover {
  opacity: 0.85;
}

/* Cards look like poster panels */
body.theme-flyer .card,
body.theme-flyer .table-wrap {
  border: 1px solid #e8e0b8;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Headings */
body.theme-flyer h1,
body.theme-flyer h2 {
  color: #c42028;
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Section ribbon style helper */
.ribbon-title {
  display: inline-block;
  background: #1e1e1e;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin: 8px 0 12px;
}

/* Buttons */
body.theme-flyer .btn {
  background: #c42028; /* flyer red */
  border-color: #c42028;
  font-weight: 800;
  border-radius: 10px;
  color: #fff;
}
body.theme-flyer .btn:hover { opacity: 0.92; }

body.theme-flyer .btn-outline {
  background: transparent;
  color: #1e1e1e;
  border-color: #1e1e1e;
}
body.theme-flyer .btn-outline:hover {
  background: rgba(30,30,30,0.06);
}

body.theme-flyer .btn-danger {
  background: #8b1218;
  border-color: #8b1218;
}

/* Inputs */
body.theme-flyer input,
body.theme-flyer textarea,
body.theme-flyer select {
  border: 1px solid #d9cf9f;
  background: rgba(255,255,255,0.95);
}
body.theme-flyer input:focus,
body.theme-flyer textarea:focus,
body.theme-flyer select:focus {
  border-color: #c42028;
}

/* Tables */
body.theme-flyer table th {
  background: rgba(255,255,255,0.65);
  color: #1b1b1b;
  font-weight: 900;
}
body.theme-flyer table td {
  color: #222;
}

/* Alerts */
body.theme-flyer .alert.success {
  background: rgba(231, 247, 238, 0.90);
  border: 1px solid #bde7cd;
}
body.theme-flyer .alert.danger {
  background: rgba(253, 234, 234, 0.92);
  border: 1px solid #f3b9b9;
}

/* Footer */
body.theme-flyer .footer {
  border-top: 1px solid #e8e0b8;
  background: rgba(255,255,255,0.86);
}

/* Smaller screens */
@media (max-width: 900px) {
  body.theme-flyer .nav a, body.theme-flyer .nav .chip { display: none; }
}

body.layout-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.layout-root main {
  flex: 1 0 auto;
}

body.layout-root footer.footer {
  flex-shrink: 0;
}

/* ===== Proper spacing for buttons in forms ===== */

form .btn,
form .btn-outline {
  margin-top: 14px;
}

/* spacing when multiple buttons are in one line */
form .row .btn,
form .row .btn-outline {
  margin-top: 0;
}

/* extra safety so inputs and buttons never touch */
form input,
form textarea,
form select {
  margin-bottom: 6px;
}



.topbar { position: relative; }

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Make sure logo doesn’t push menu */
.brand { flex: 0 0 auto; }
.brand-logo{ height:40px; width:auto; display:block; object-fit:contain; }

/* Toggle button */
.nav-toggle{
  display:none;
  border:1px solid rgba(0,0,0,0.2);
  background:#fff;
  padding:8px 10px;
  border-radius:8px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

/* Desktop nav */
.site-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* MOBILE */
@media (max-width: 768px){

  /* show hamburger */
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* hide nav in top row */
  .site-nav{
    display:none !important;
  }

  /* dropdown panel when opened */
  .site-nav.open{
    display:flex !important;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border:1px solid rgba(0,0,0,0.12);
    border-radius:12px;
    padding:12px;
    margin:10px 12px;
    z-index:9999;

    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .site-nav.open a{
    width:100%;
    display:block;
  }

  .site-nav.open a.btn{
    width:100%;
    text-align:center;
  }

  .site-nav.open .chip{
    width:100%;
  }
}

/* ===== Mobile menu polish (dropdown look) ===== */

.site-nav.open{
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Make links look like menu items (not blue underlined) */
.site-nav a{
  text-decoration: none;
  color: inherit;
}

/* Mobile menu item style */
@media (max-width: 768px){

  /* each link becomes a clean row */
  .site-nav.open a:not(.btn){
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    font-weight: 600;
  }

  .site-nav.open a:not(.btn):active{
    background: rgba(0,0,0,0.07);
  }

  /* Login button: make it normal size for dropdown */
  .site-nav.open a.btn{
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
  }

  /* Reduce huge button height if your .btn is big globally */
  .site-nav.open a.btn,
  .site-nav.open a.btn-outline{
    min-height: auto;
    line-height: 1.2;
  }

  /* spacing between items */
  .site-nav.open{
    gap: 10px;
  }
}

.table-wrap input[type="checkbox"]{
  width: 18px;
  height: 18px;
  cursor: pointer;
}
/* 1) Desktop: hide the outside Search (keep nav Search as-is) */
.header-search {
  display: none;
}

/* 2) Mobile: show outside Search + hide Search inside sidebar/nav */
@media (max-width: 768px) {
  .header-search {
    display: inline-flex; /* or inline-block */
    align-items: center;
    margin-left: auto;
  }

  /* hide Search link inside sidebar menu to avoid duplicate */
  .site-nav .nav-search {
    display: none !important;
  }
}

.instruction-box{
  margin: 12px 0 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-left: 5px solid rgba(0,0,0,0.35);
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  line-height: 1.55;
}

.instruction-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.instruction-text{
  font-size: 15px;
  word-break: break-word;
}

/* Mobile friendly */
@media (max-width: 600px){
  .instruction-box{
    padding: 10px 12px;
    border-radius: 10px;
  }
  .instruction-text{
    font-size: 14px;
  }
}
td.td-address{
  white-space: normal;
  word-break: break-word;
  max-width: 320px;  /* adjust if needed */
  min-width: 225px;
}

.xscroll-top{
   overflow-x: scroll;
  overflow-y:scroll;
  height:14px;
  margin-bottom:6px;
}
.xscroll-top-inner{
  height:1px;
}
.table-wrap{
  overflow-x:scroll;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  /*background-color: #f8d7da;        Light red background – change as needed */
  color: #721c24;                  /* Dark red text – adjust colors */
  font-weight: bold;
  font-size: 1.1rem;               /* Adjust size */
  padding: 5px 0;
  white-space: nowrap;
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional shadow */
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;              /* Start off-screen to the right */
  animation: scroll-left 25s linear infinite; /* 25s = speed, change to make faster/slower */
}

/* For right-to-left scrolling */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause on hover (good accessibility & UX) */
.marquee-container:hover .marquee-text {
  animation-play-state: paused;
}

/* Respect reduced motion preference (accessibility) */
@media (prefers-reduced-motion: reduce) {
  .marquee-text {
    animation: none;
  }
}


/* Mobile */
@media (max-width: 576px) {
  
  .desktopBtn{
      display:none !important;
  }
  .mobileBtn{
    display: flex !important;
}
}

.mobileBtn{
    display: none;
}

.video-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.video-title {
  margin-bottom: 24px;
  color: #c00;
  text-align: center;
}

/* GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}

/* ITEM */
.video-item {
  width: 100%;
  max-width: 260px;
}

/* 9:16 FRAME */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* NAME */
.video-name {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

/* Tablet */
@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-item {
    max-width: 100%;
  }
}


@media (max-width: 576px) {

  .video-item {
    padding-bottom: 22px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 22px;
  }

  .video-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .video-name {
    font-size: 16px;
    margin-top: 12px;
  }
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  background: #fff;
}

.page-btn:hover {
  background: #f3f3f3;
}

.page-btn.active {
  background: #c00;
  color: #fff;
  border-color: #c00;
  font-weight: 600;
}

.page-btn.nav {
  font-weight: 600;
  padding: 0 14px;
}

.page-dots {
  padding: 0 6px;
  color: #888;
  font-weight: 600;
}
@media (max-width: 576px) {
  .page-btn.nav {
    padding: 0 10px;
    font-size: 13px;
  }
}

.badge-count {
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}
/* Make table container scroll vertically + horizontally */
.table-wrap{
  max-height: 70vh;      /* adjust: 60vh/75vh as you like */
  overflow: auto;        /* enables both x and y scrolling */
  position: relative;    /* needed for sticky header */
}
/* Sticky header */
#resultTable thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafafe;   /* same as your current th background */
}

/* first checkbox header also sticky */
#resultTable thead th:first-child{
  left: 0;               /* optional, only if you want first column sticky too */
}


