/* Font Awesome Pro 5.15.4 — local installation */
@import url("../fonts/fontawesome-pro-5.15.4-web/css/all.min.css");

/* Theme Colors
.theme-colors{
color: #FF8F8F;
color: #90D5FF;
color: #E8E66D;
color: #939376;
color: #262626;
}

*/
/* ==============================================================
   RESET & BASE
   ============================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* was 14px */
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size:14px;
}

/* ==============================================================
   Vars
   ============================================================== */

:root {
  --theme-color-coral: #ff8f8f;
  --theme-color-blue: #41aff8;
  --theme-color-yellow: #e8e66d;
  --theme-color-tan: #939376;
  --theme-color-gray: #262626;
}

[class*="-event"] {
  /* 1. Define the Math (The Palette) */
  --color-dark-3: oklch(from var(--base-color) calc(l - 0.3) c h);
  --color-dark-2: oklch(from var(--base-color) calc(l - 0.2) c h);
  --color-dark-1: oklch(from var(--base-color) calc(l - 0.1) c h);
  --color-main: var(--base-color);
  --color-light-1: oklch(from var(--base-color) calc(l + 0.15) c h);
  --color-light-2: oklch(from var(--base-color) calc(l + 0.4) c h);
}

.high-school-sports-event {
  --base-color: #65b93e; /* Blue palette */
}

.default-event {
  --base-color: #883eb9; /* Blue palette */
}

.walkersville-library-event{
  --base-color: #3e88b9; /* Blue palette */
}

.walkersville-town-event{
  --base-color: #b9613e; /* Blue palette */
}

.walkersville-southern-railroad-event{
  --base-color: #b1a468; /* Blue palette */
}

.gvaa-sports-event{
  --base-color: #6f68b1; /* Blue palette */
}

.walkersville-fire-co-event{
  --base-color: #b16868; /* Blue palette */
}

.admin-manual-event{
  --base-color: #a3508a; /* Blue palette */
}

.glade-valley-community-services-event{
  --base-color: #50a39c; /* Blue palette */
}

.special-events-event{
  --base-color: #8950a3; /* Blue palette */
}

.fountain-rock-nature-center-event{
  --base-color: #53a350; /* Blue palette */
}

/* ==============================================================
   Fonts
   ============================================================== */

.figtree-400 {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.figtree-600 {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.figtree-800 {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

h1 {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

p {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ==============================================================
   CONTAINER SYSTEM
   ============================================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.container-sm {
  max-width: 600px;
}
.container-lg {
  max-width: 1000px;
}
.container-xl {
  max-width: 1200px;
}

/* Admin pages shift container margin/padding */
.admin-page .container {
  margin: 20px auto;
  padding: 0 20px;
}

/* ==============================================================
   PUBLIC PAGE — HEADER & LAYOUT
   ============================================================== */
.page-layout {
  display: flex;
  min-height: calc(100vh - 132px); /* subtract header height */
}

.homepage-body {
  background:url("../../assets/img/we-background-image.jpg");
  background-color:#000;
  background-size: cover;
  background-attachment: fixed;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #1f1f21;
  padding: 0px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  box-sizing: border-box;
  transition:
    width 0.2s ease,
    padding 0.2s ease;
  border-top-right-radius: 10px;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding-bottom: 5px;
  font-size: 1.008rem;
  color: #888;
  border-bottom: 1px solid #333;
  margin-bottom: 10px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  justify-content: center;
  padding-top: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom:1px solid #ffffff88;
  background: color-mix(in srgb, var(--theme-color-blue), #ffffff 20%);
  color: #ffffffe5;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.sidebar-toggle:hover {
  color: #ffffffd0;
}
.sidebar.collapsed {
  width: 36px;
}
.sidebar.collapsed .controls {
  display: none;
}
.sidebar.collapsed .sidebar-toggle {
  border-bottom: none;
  margin-bottom: 0;
  padding: 7px;
  justify-content: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-left: -2px;
  color: #ffffff93;
}
.sidebar.collapsed .sidebar-toggle-label {
  display: none;
}
.events-area {
  flex: 1;
  background: transparent; /* #000; */
  padding: 20px;
  min-width: 0; /* prevent flex overflow */
  padding-top: 0px;
}

.header-logo{
  width:350px;
  fill:#ffffff;
}

header {
  background-image: radial-gradient(circle at top left, rgba(0, 0, 0, 0.75) 0%, transparent 30%);
  color: white;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  width: auto;
  flex-shrink: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items:flex-start;
  padding-left:50px;
}

.header-branding{
  text-align:center;
}

.header-branding p{
  padding-top:15px;
}

.header-right {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left:15px;
}

header h1 {
  font-size: 4.2rem;
  margin-bottom: 10px;
  font-weight: 800;
  color:var(--theme-color-blue);
  text-transform: uppercase;
  text-shadow: 1px 1px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%),
               1px 2px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%),
               1px 3px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%),
               1px 4px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%),

               1px 10px 5px rgba(16, 16, 16, 0.5),
               1px 15px 10px rgba(16, 16, 16, 0.4),
               1px 20px 30px rgba(16, 16, 16, 0.3),
               1px 25px 50px rgba(16, 16, 16, 0.2);
}

header p {
  font-size: 1.6002rem;
  opacity: 0.9;
  margin: 0 0 12px 0;
}
.header-info-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding-top:12px;
}
.header-info-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
}
.header-info-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.sidebar .controls {
  padding: 20px;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  color: #ccc;
}
.controls input[type="checkbox"] {
  cursor: pointer;
}
.filter-days {
  display: none;
  gap: 10px;
  align-items: center;
}
.filter-days label {
  margin: 0;
}
.filter-days input {
  width: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.date-section {
  background-color: var(--theme-color-gray);
  /* background-color: color-mix(in srgb, var(--theme-color-gray), transparent 15%); */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232c2c2c' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.75) 0px 3px 10px;
  border-top: 1px solid #807f7f;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #4d4d4d;

  font-size: 2.3996rem;

  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}

.date-icon {
  display: inline-block;
  padding-right: 5px;
  font-size: 18px;
}

.date-header {
  background: transparent;
  color: white;
  padding: 7px 25px 0px 25px;
}
.date-header .day-name {
  font-size: 1.4rem;
  opacity: 0.9;
  text-transform: uppercase;

  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.events {
  padding: 10px;
}
.event {
  border: 1px solid #383838;
  padding: 0px;
  background: #1f1f1f;
  border-radius: 0px 0px 10px 10px;
  width: 300px;
  display: inline-block;
  text-align: center;
  overflow: hidden;
  vertical-align: top;
  box-shadow: rgba(0, 0, 0, 0.75) 0px 3px 10px;
  border-top: 1px solid #5e5e5e;
  margin: 8px;
  /* transform: scale(0.8); */
}

.sponsored-header {
  display: inline-block;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding-bottom: 8px;
  text-align:right;
}

.sponsored-header h2{
  font-size:1.2em;
  margin:0px 8px;
}

.sponsored-header .event {
  flex: 0 0 auto;
  border-radius: 10px;
}

.event-footer {
  display: none;
  background: rgb(40, 30, 53);
  margin: 0px;
}

.event-footer.open {
  display: flex !important;
}

.event-more-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 1.008rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  user-select: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.event-more-info-bar:hover {
  opacity: 1;
}
.more-info-caret {
  position: absolute;
  right: 12px;
}

.event-footer-icon {
  width: 51px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  color: white;
  background-color: #00000079;
}
.event-footer-content {
  flex: 1;
  min-width: 0;
}
.event-footer-row {
  padding: 10px 15px 0px 15px;
}
.event-footer-row--audience {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.event-audience {
  font-size: 1.1998rem;
  white-space: nowrap;
  background-color: #15c794;
  color: #065f46;
  display: inline-block;
  display: block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 5px;
}

.all-ages .event-audience {
  background-color: #15c794;
  color: #065f46;
}

.event-footer-row--location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-location-icon {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.4rem;
  margin-top: 10px;
  flex-shrink: 0;
}

.event-location-text {
  flex: 1;
}

.card-map-link{
  text-decoration:none;
}

.card-map-link:hover > .event-location-main{
  color:var(--theme-color-yellow) !important;
}

.event-location-main {
  font-size: 1.3rem;
  color: white;
  text-align: left;

  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  padding-top: 6px;
  padding-bottom: 3px;
  text-transform: none;
}

.event-location-detail {
  font-size: 1.1998rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  text-transform: none;
}
.event:hover {
}
.event.featured {
}

#cardPreview .event-title,
.event-title {
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 2.31rem;
  margin-bottom: 0px;
  color: #ffffff;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  text-align: center;
  padding-bottom: 3px;
  background-color: #0000008c;
  padding: 5px;
      padding: 10px 8px 10px 8px;
    border-radius: 0px;
    margin-top: -4px;
    margin-left: -11px;
    margin-bottom:11px;
    text-transform: none;
    width: calc(100% + 21px);
    border-bottom: 1px solid var(--color-main);
}

.event-body {
  padding: 4px 10px 10px 10px;;
  position: relative;
  overflow: hidden;
}

.event-time-header{
  font-weight: 800;
  font-size: 1.6rem;
  padding:5px 0px;
  color:#fff!important;
  width:100%;
  color: var(--color-dark-2);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.event-body-bg-icon {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 9.8rem;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.event-subtitle {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0px;
  color: #ffffff;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  text-align: center;
  padding: 0px 3px 5px 8px;
  text-transform:none;
  margin-top:-2px;
}

.featured-badge,
.sponsored-badge {
  padding: 2px 6px;
  border-radius: 3px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  font-size: 1.1004rem;
  font-weight: 600;
  opacity: 0.6;
  background-color: #000000ad;
  color: #fff;
}

.sponsored-badge {
  background-color: #ffffffbd;
  color: #000;
}

.locked-badge {
  background: #ef4444;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 1.1004rem;
  font-weight: 600;
  margin-left: 8px;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.sync-info .sync-meta {
  font-size: 1.3006rem;
  color: #6b7280;
  padding: 6px 0;
}

.event-categories {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  text-align: center;
  font-size: 1.3rem;
  background-color: #000;
  border-radius: 7px;
  padding: 6px 30px;
  display: block;
  width: fit-content;
  margin: 4px auto;
  background: var(--color-light-1);
  border: 1px solid var(--color-light-2);
  color: var(--color-dark-2);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.event-time {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  font-size: 2.1rem;
  display: block;
  width: fit-content;
  margin: 1px auto 0;
  color: #fff;
  padding:6px;

}

.event-time::before {
  content: "\f017";
  font-family: "Font Awesome 5 Pro";
  margin-right: 4px;
}

.event-meta {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 8px;
}
.event-meta strong {
  color: var(--theme-color-gray);
}
.event-description {
  font-size: 1.3006rem;
  color: #555;
  margin: 8px 0;
  line-height: 1.5;
}

.admin-page .event-tags .tag {
  display: inline-block;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: #fff;
  background-color: color-mix(in srgb, var(--theme-color-gray), white 50%);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 1.1998rem;
}

.event-footer-row .event-tags {
  text-align: left;
}

.event-footer-row .event-tags .tag {
  display: inline-block;
  margin-top: 5px;
  color: color-mix(in srgb, var(--theme-color-gray), #fff 10%);
  background-color: color-mix(in srgb, var(--theme-color-gray), white 70%);
  text-align: left;
  margin-right: 4px;
  font-weight: 600;
}

.event-footer-row--links {
  text-align: left;
  padding-bottom: 10px;
}

.event-more-info,
.event-external-link {
  display: inline-block;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.45rem;
  font-style: normal;
  text-align: left;
  color: #fff;
  background-color: #0000006e;
  text-transform: none;
  padding: 8px 15px;
  border-radius: 8px;
  border:0px;
  cursor:pointer;
  transition: background-color 0.8s ease;
}

.event-more-info:hover,
.event-external-link:hover {
  background-color: #000000;
}

.event-footer-row .tag {
  background: #b6b6b6;
  color: #414141;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 1.12rem;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
.empty-state p {
  font-size: 1.6002rem;
  margin-bottom: 10px;
}
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.error {
  background: #fee;
  color: #c33;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #c33;
  margin-bottom: 20px;
}

[class*="-event"] .event-audience {
  background-color: var(--color-light-2);
  color: var(--color-main);
}

[class*="-event"] .event-footer {
  background-color: var(--color-main);
  background: linear-gradient(135deg, var(--color-main), var(--color-dark-3));
}

[class*="-event"] {
  background: linear-gradient(135deg, var(--color-main), var(--color-dark-3));
  border-top: 1px solid var(--color-main);
}

.special-events-event [class*="-event"] {
  background: none;
  border-top: none;
}

[class*="-event"] .event-more-info-bar{
  border-top: 1px var(--color-light-1) solid;
  border-bottom: 1px var(--color-light-1) solid;
  background: var(--color-main);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

[class*="-event"] .event-time-header{
  background: var(--color-dark-1);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.sponsored-header [class*="-event"] .event-more-info-bar{
  background-color:var(--color-dark-3);
  background-image:none;
  border:0px;
}

/* ==============================================================
   ADMIN BASE — header, inputs, labels, overrides
   ============================================================== */
.admin-page {
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fefeff' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.admin-page header {
  background-color: var(--theme-color-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232c2c2c' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--theme-color-blue);
  padding: 20px;
  border-bottom: 1px solid #ffffff23;
}
.admin-page header h1 {
  font-size: 2.3996rem;
}

/* Flex header variant used on dashboard & scraper-logs */
.admin-page header.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header action buttons (logout / back) */
.header-btn,
.header-btn.header-blue-btn {
  background: var(--theme-color-coral);
  color: var(--theme-color-gray);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, var(--theme-color-coral), rgb(0, 0, 0) 40%));
  transition: transform 0.1s ease;
  display: inline-block;
}

.header-btn:hover {
  background: color-mix(in srgb, var(--theme-color-coral), white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

.header-btn.header-blue-btn {
  background: var(--theme-color-blue);
  color: var(--theme-color-gray);
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%));
}

.header-btn.header-blue-btn:hover {
  background: color-mix(in srgb, var(--theme-color-blue), white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

.alert-success {
  color: #72f3ca;
}

/* Admin controls bar (dashboard) */
.admin-page .controls {
  background: var(--theme-color-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-page .controls button {
  background: var(--theme-color-blue);
  color: color-mix(in srgb, var(--theme-color-blue), #000 60%);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, var(--theme-color-blue), rgb(0, 0, 0) 40%));
  transition: transform 0.1s ease; /* Controls the speed and feel */
}
.admin-page .controls button:hover {
  background: color-mix(in srgb, var(--theme-color-blue), white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

.admin-page .controls .delete-btn{
    background: #ef4444;
  color: white;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, #ef4444, rgb(0, 0, 0) 20%));
  transition: transform 0.1s ease;
}

.admin-page .controls .delete-btn:hover{
  background: color-mix(in srgb, #ef4444, white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

/* Admin empty state (smaller padding than public) */
.admin-page .empty-state {
  padding: 40px 20px;
}

/* Admin error (smaller than public) */
.admin-page .error {
  padding: 12px;
  border-radius: 4px;
}

/* Admin form labels */
.admin-page label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.4rem;
}
/* Checkbox label override — no extra margin, normal weight */
.admin-page .checkbox-group label {
  margin: 0;
  font-weight: normal;
}

/* Admin form inputs */
.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.4rem;
  font-family: inherit;
}

.admin-page select{
  padding:6px;
}

.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.admin-page input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.admin-page textarea {
  resize: vertical;
  min-height: 100px;
}

/* Admin overrides for shared class names used on both public & dashboard */
.admin-page .event-title {
  font-weight: 600;
  font-size: 1.6002rem;
  margin-bottom: 5px;
  color: var(--theme-color-gray);
  font-weight: 600;
  text-align: left;
  font-size: 2.0006rem;
  border-radius:10px;
  color:#fff;
}
.admin-page .event-meta {
  font-size: 1.3006rem;
  color: #666;
}
.admin-page .event-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ==============================================================
   LOGIN PAGE
   ============================================================== */
body.login-page {
  background-color: var(--theme-color-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232c2c2c' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-container {
  background: var(--theme-color-blue);
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fefeff' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 2.2);
  width: 100%;
  max-width: 400px;

  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  border: 1px solid #fff;
}
.login-page h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: var(--theme-color-gray);
  text-align: center;

  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}
.login-page .form-group {
  margin-bottom: 20px;
}
.login-page label {
  display: block;
  margin-bottom: 8px;
  color: var(--theme-color-gray);
  font-weight: 500;
}
.login-page input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.6002rem;
}
.login-page input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.login-page button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(348deg, var(--theme-color-gray) 0%, #4b4a4a 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.6002rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.login-page button:hover {
  transform: translateY(-2px);
}
.login-page .error {
  padding: 12px;
  border-radius: 4px;
}

.login-page p{
  background-color:#000000;
  border-radius:10px;
  color: #41aff8;
  padding: 7px;
  text-align:center; 
  margin-bottom:20px;
}

/* ==============================================================
   ADMIN FORMS — create-event & edit-event
   ============================================================== */
.form-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 20px;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.tag-input-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.tag-input-group input {
  flex: 1;
  width: auto;
  margin: 0;
}
.tag-input-group button {
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  white-space: nowrap;
}
.tag-input-group button:hover {
  background: #5568d3;
}
.tags-display {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Form tag pills are larger than list tags */
.tags-display .tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1.3006rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background-color: var(--theme-color-tan);
}
.tags-display .tag button {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 0;
  font-size: 1.6002rem;
  width: auto;
  font-weight: bold;
}
.icon-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-input-group input {
  flex: 1;
  width: auto;
}
.icon-preview {
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.0006rem;
  color: #667eea;
  background: #f9fafb;
  flex-shrink: 0;
}
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}
.button-group button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
}
.save-btn {
  background: #10b981;
  color: white;
}
.save-btn:hover {
  background: #059669;
}
.cancel-btn {
  background: #e5e7eb;
  color: #374151;
}
.cancel-btn:hover {
  background: #d1d5db;
}
.readonly {
  background: #f3f4f6;
  color: #666;
}
.admin-page .readonly:focus {
  border-color: #ddd;
  box-shadow: none;
}

/* ==============================================================
   DASHBOARD
   ============================================================== */
.events-list {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23eaeaea' fill-opacity='0.8' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
.event-row {
  padding: 15px 20px;
  border-bottom: 2px dashed #cecece;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.event-row:last-child {
  border-bottom: none;
}
.event-info {
  flex: 1;
}
.tag.featured {
  background: #fef3c7;
  color: #b45309;
}
.event-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.row-checkbox {
  display: flex;
  align-items: center;
  padding-left: 10px;
}
.row-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.edit-btn,
.duplicate-btn,
.delete-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.3006rem;
}
.edit-btn {
  background: #10b981;
  color: white;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, #10b981, rgb(0, 0, 0) 20%));
  transition: transform 0.1s ease;
}
.duplicate-btn {
  background: #3b82f6;
  color: white;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, #3b82f6, rgb(0, 0, 0) 20%));
  transition: transform 0.1s ease;
}
.duplicate-btn:hover {
  background: color-mix(in srgb, #3b82f6, white 20%);
  filter: none;
  transform: translate(1px, 2px);
}
.edit-btn:hover {
  background: color-mix(in srgb, #10b981, white 20%);
  filter: none;
  transform: translate(1px, 2px);
}
.delete-btn {
  background: #ef4444;
  color: white;
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, #ef4444, rgb(0, 0, 0) 20%));
  transition: transform 0.1s ease;
}
.delete-btn:hover {
  background: color-mix(in srgb, #ef4444, white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

.event-actions .delete-btn{
  width:100%;
}

/* ==============================================================
   SCRAPER LOGS
   ============================================================== */
.logs-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: #f3f4f6;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 1.3006rem;
  border-bottom: 1px solid #e5e7eb;
}
td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.3006rem;
}
tr:hover {
  background: #f9fafb;
}
.status {
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1.1998rem;
}
.status.success {
  background: #d1fae5;
  color: #065f46;
}
.status.error {
  background: #fee2e2;
  color: #7f1d1d;
}

/* ── Approval / event-status badges ─────────────────────────── */
.pending-badge {
  background: #fef3c7;
  color: #000000;
  border: 1px solid #3d2700;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 1.1004rem;
  font-weight: 600;
  margin-left: 8px;
}

.cancelled-badge {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #ef4444;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 1.1004rem;
  font-weight: 600;
  margin-left: 8px;
}

/* Row color-coding on admin dashboard */
.event-row.row-pending {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.event-row.row-cancelled {
  background: #fff5f5;
  border-left: 4px solid #ef4444;
  opacity: 0.85;
}

.title-cancelled {
  text-decoration: line-through;
  color: #9ca3af;
}

/* ── Filter tabs ─────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.3006rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--theme-color-gray);
  background: #f3f4f6;
  filter: drop-shadow(1px 3px 0px #9a9b9c);
  border: none;
  transition: transform 0.1s ease;
}

.filter-tab:hover {
  background: #e5e7eb;
  filter: none;
  transform: translate(1px, 2px);
}

.filter-tab.active {
  background: color-mix(in srgb, var(--theme-color-gray), white 40%);
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, var(--theme-color-gray), white 20%));
  color: #fff;
  border: none;
  transition: transform 0.1s ease;
}

.filter-tab.active:hover {
  filter: none;
  transform: translate(1px, 2px);
}

.filter-tab-pending.active {
  background: var(--theme-color-coral);
  filter: drop-shadow(1px 3px 0px color-mix(in srgb, var(--theme-color-coral), rgb(0, 0, 0) 40%));
  color: #fff;
  border: none;
  transition: transform 0.1s ease;
}

.filter-tab-cancelled.active {
  background: color-mix(in srgb, var(--theme-color-coral), white 20%);
  filter: none;
  transform: translate(1px, 2px);
}

.admin-search-input {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  font-size: 1.3rem;
  font-family: inherit;
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s;
  margin-top:10px;
}

.admin-search-input:focus {
  border-color: var(--theme-color-blue);
}

.admin-search-input::placeholder {
  color: #9ca3af;
}

.tab-count {
  display: inline-block;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 1.1004rem;
  margin-left: 3px;
  background-color: red;
  color: #fff;
}

/* ── Form hints ──────────────────────────────────────────────── */
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 1.1998rem;
  color: #6b7280;
}

/* ── Edit form two-column layout ─────────────────────────────── */
.edit-page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.edit-page-form {
  flex: 1;
  min-width: 0;
  max-width: 640px;
}

.edit-page-preview {
  width: 500px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.preview-panel-label {
  font-size: 1.1998rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 8px;
}


/* ==============================================================
   SIDEBAR — content wrapper (hides on collapse)
   ============================================================== */
.sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
  padding-top:0px;
}
.sidebar.collapsed .sidebar-content {
  display: none;
}

/* ==============================================================
   SIDEBAR — search input
   ============================================================== */
.sidebar-search-wrap {
  padding: 12px 8px 8px;
}
.sidebar-search-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--theme-color-blue);
  background: #2a2a2c;
  color: #e0e0e0;
  font-size: 1.4rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background-color: var(--theme-color-gray);
  /* background-color: color-mix(in srgb, var(--theme-color-gray), transparent 15%); */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  
}
.sidebar-search-input::placeholder {
  color: var(--theme-color-blue);
}
.sidebar-search-input:focus {
  border-color: var(--theme-color-blue);
}

/* ==============================================================
   SIDEBAR — filter button + pills
   ============================================================== */
.sidebar-filter-wrap {
  padding: 0 8px 10px;
}
.sidebar-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-color-blue);
  border: 1px solid rgb(from var(--theme-color-blue) r g b / 60%);
  color: var(--theme-color-gray);
  padding: 6px 14px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 1.3006rem;
  font-family: inherit;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.sidebar-filter-btn:hover {
  background: #fff;
}
.sidebar-filter-btn.has-filters {
  border-color: var(--theme-color-blue);
  
}
.filter-count {
  background: #fff;
  color: var(--theme-color-blue);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 1.1004rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  line-height: 18px;
  padding-top:1px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2a2a2c;
  border: 1px solid #444;
  color: #ccc;
  padding: 3px 8px 3px 10px;
  border-radius: 12px;
  font-size: 1.1998rem;
}
.filter-pill--tag {
  border-color: var(--theme-color-coral);
  color: var(--theme-color-coral);
}
.pill-remove {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 1.4994rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.pill-remove:hover {
  color: #fff;
}

/* ==============================================================
   SIDEBAR — sponsored / featured sections
   ============================================================== */
.sidebar-section {
  margin-bottom: 2px;
  border-radius:12px;
  overflow:hidden;
}
.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.1004rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  user-select: none;
  border-top: 1px solid #2c2c2e;
  border-bottom: 1px solid #2c2c2e;
  transition: color 0.15s;
}
.sidebar-section-header:hover {
  color: #bbb;
}
.sidebar-section-body {
  overflow: hidden;
}
.sidebar-section-body.collapsed {
  display: none;
}

/* Sidebar event mini-cards */
.sidebar-event-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #252527;
  transition: background 0.25s;
}
.sidebar-event-card:last-child {
  border-bottom: none;
}
.sidebar-event-card:hover {
  background: #000000;
}

.sidebar-event-card:hover > .sidebar-event-info .sidebar-event-meta {
  color: #fff;
}
.sidebar-event-info {
  flex: 1;
  min-width: 0;
}
.sidebar-event-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #d0d0d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}
.sidebar-event-meta {
  font-size: 1.26rem;
  color: #b3b3b3;
  margin-top: 2px;
  font-weight: 400;
  text-transform: none;
  transition: color 0.25s;
}
.sidebar-scroll-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3a3a3c;
  background: none;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3006rem;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.sidebar-scroll-btn:hover {
  border-color: var(--theme-color-blue);
  color: var(--theme-color-blue);
  background: rgba(144, 213, 255, 0.08);
}

#sponsoredSection {
  background-color: #0000006e;
  margin-bottom: 10px;
  border:1px solid #333;
}

#sponsoredSection .sidebar-section-header {
  background: color-mix(in srgb, var(--theme-color-blue), #000000 40%);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");

}

#sponsoredSection{
  background-color: rgb(from var(--theme-color-blue) r g b / 10%);
}

#sponsoredSection .sidebar-scroll-btn{
  color: rgb(from var(--theme-color-blue) r g b / 80%);
  border-color: rgb(from var(--theme-color-blue) r g b / 50%);
}

#featuredSection {
  background-color: #0000006e;
  margin-bottom: 10px;
}

#featuredSection .sidebar-section-header {
  background: color-mix(in srgb, var(--theme-color-coral), #000000 40%);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

#featuredSection{
  background-color: rgb(from var(--theme-color-coral) r g b / 10%);
}

#featuredSection .sidebar-scroll-btn{
  color: rgb(from var(--theme-color-coral) r g b / 80%);
  border-color: rgb(from var(--theme-color-coral) r g b / 50%);
}

/* ==============================================================
   FILTER MODAL
   ============================================================== */
.filter-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.filter-modal-overlay.open {
  display: flex;
}
.filter-modal {
  background: #1f1f21;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  width: 360px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2c2c2e;
}
.filter-modal-header h3 {
  font-size: 1.3006rem;
  font-weight: 700;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.filter-modal-close {
  background: none;
  border: none;
  color: #777;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.filter-modal-close:hover {
  color: #fff;
}
.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.filter-section {
  margin-bottom: 20px;
}
.filter-section:last-child {
  margin-bottom: 0;
}
.filter-section h4 {
  font-size: 1.1004rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 10px;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: #ccc;
  padding: 5px 0;
  cursor: pointer;
  user-select: none;
  font-weight: 400;
  text-transform: none;
}
.filter-checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--theme-color-blue);
  flex-shrink: 0;
}
.filter-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #2c2c2e;
}
.filter-modal-footer button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: inherit;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.filter-clear-btn {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
}
.filter-clear-btn:hover {
  border-color: #777;
  color: #ddd;
}
.filter-apply-btn {
  background: var(--theme-color-blue);
  border: 1px solid var(--theme-color-blue);
  color: #000;
}
.filter-apply-btn:hover {
  background: color-mix(in srgb, var(--theme-color-blue), white 20%);
}

/* DESCRIPTION MODAL
   ============================================================== */
.desc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  
}
.desc-modal-overlay.open {
  display: flex;
}
.desc-modal {
  border-radius: 10px;
  width: 100%;
  max-width: 620px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
   background-color: var(--theme-color-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232c2c2c' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.75) 0px 3px 10px;
  border-top: 1px solid #5e5e5e;
  border: 1px solid var(--theme-color-blue);
  color:#fff;
  overflow:hidden;
}
.desc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 5px;
  background: color-mix(in srgb, var(--theme-color-blue), #000000 40%);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.desc-modal-title {
  font-weight: 600;
    font-size: 2.1rem;
    line-height: 2.31rem;
    color: #ffffff;
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    text-align: center;
    padding-bottom: 9px;
    text-transform: uppercase;
}
.desc-modal-close {
  background: transparent;
  border: none;
  font-size: 1.54rem;
  color: #fff;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.desc-modal-close:hover {
  color: #000;
}
.desc-modal-meta {
  padding: 10px 20px;
  font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0px;
    color: #ffffff;
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-align: left;
    padding-bottom: 10px;
}
.desc-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #fff;
  background-color:#000000b6;
}
.desc-modal-body p { 
  margin: 0 0 0.8em; color:#fff;
}

.desc-modal-body p:last-child { margin-bottom: 0; }
.desc-modal-body ul,
.desc-modal-body ol { margin: 0 0 0.75em 1.4em; padding: 0; }
.desc-modal-body li { margin-bottom: 0.25em; }
.desc-modal-body strong { font-weight: 700; }
.desc-modal-body a { color: var(--theme-color-blue); text-decoration: underline; }
.desc-modal-body h1,
.desc-modal-body h2 { font-weight: 700; margin: 0 0 0.5em; line-height: 1.2; }
.desc-modal-body h1 { font-size: 1.82rem; }
.desc-modal-body h2 { font-size: 1.54rem; }

body.modal-open { overflow: hidden; }

hr {
  box-sizing: content-box; /* Ensures height behaves predictably across browsers */
  height: 0;              /* Eliminates default height settings */
  margin: 0;              /* Removes default top/bottom vertical spacing */
  padding: 0;             /* Clear any accidental default padding */
  border: 0;              /* Strips out the default 'inset' border style */
  border-top:1px solid #636363;
  margin-bottom:10px;
  overflow: visible;      /* Allows modern CSS pseudo-element designs to render correctly */
}

/* ==============================================================
   SCROLL-TO highlight pulse
   ============================================================== */
@keyframes event-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(144, 213, 255, 0.7);
    outline: 1px solid #e8e66d00;
  }
  40% {
    outline: 1px solid #e8e66d;
  }
  60% {
    box-shadow: 0 0 0 12px rgba(144, 213, 255, 0);
  }
  80% {
    outline: 1px solid #e8e66d;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(144, 213, 255, 0);
    outline: 1px solid #e8e66d00;
  }
}

.event.scroll-highlight {
  animation: event-highlight-pulse 2s ease-out;
}

.tox-statusbar__branding{
  display:none;
}

.jump-container{
  display:none;
}

.sponsored-placement-card{
  width:298px;
  height:180px;
  background-color:transparent;
  border:2px dashed #ffffff86;
  border-radius:10px;
  display: flex;
  align-items: center;
  justify-content: center;
  float:right;
  cursor:pointer;
}

.sponsored-placement-card:hover{
  background-color:#ffffff21;
}

.sponsored-placement-card p{
  text-align: center;
  margin: 0;
}

@media (max-width: 1200px) {
  .edit-page-layout {
    flex-direction: column;
  }
  .edit-page-form {
    max-width: 100%;
  }
  .edit-page-preview {
    width: 100%;
    position: static;
    max-height: none;
  }
}

@media (max-width: 675px) {
  html{
    font-size:60%;
  }
  
  #sidebar, .sidebar{
    width:100%;
    height:auto;
    display:inline-block;
    position:relative;
    border-radius:15px;
    height: max-content;
    margin-bottom:10px;
  }

  .sidebar-search-wrap, .sidebar-filter-wrap{
    width: 70%;
    display:block;
    margin:0 auto;
  }

  .sidebar-filter-btn{
    display:block;
    margin:0 auto;
  }


  .sidebar-toggle, .sidebar .controls{
    display:none;
  }

  .sidebar-content{
    padding-bottom:0px;
    display:block;
  }

  .sidebar-section{
    margin-bottom:0px;
  }

  .page-layout{
    display:block;
    width:96%;
    margin: 0 2%;
  }

  .events-area{
    padding:0px;
    width: 100%
  }

  .events-container{
    width:100%;
    margin: 0 auto;
  }

  .event{
    width:48%;
  }

  .admin-page .container{
    padding:5px;
    margin:5px;
  }

  .admin-page .controls{
    padding:10px;
    align-items: center;
  justify-content: center;
  }

  .admin-page .controls form{
    margin-left:0px;
  }

  .admin-page button{
    font-size:1.2rem !important;
  }

  .admin-page .event-row{
    display:block;
  }

  .event-actions{
    margin-top:15px;
  }

  header p{
    text-shadow: 0px 0px 8px #000000;
  }

  .admin-page .flex-header{

  }

  header{
    display:block;
  }

  .header-left, .header-right{
    display:block;
    width:100%;
  }

  .header-left{
    padding-left:0px;
  }

  .sponsored-header {
    display: flex;
  }

  .header-info-buttons{
    display:block;
    text-align:center;
  }

}

@media (max-width: 550px) {
  html{
    font-size:70%;
  }
  .event{
    width:96%;
    margin: 5px 2%;
  }

  .admin-page{
    .header-blue-btn{
      font-size:1.2rem;
    }
  }

  .admin-page .controls{
    align-items:self-start;
    justify-content:left;
  }

  .admin-page .event-row{
    border-bottom:5px solid #444444;
  }

  .admin-page .event-actions{
    flex-direction:row;
  }

  .admin-page .row-checkbox {
    padding-left:0px;
    padding-top:15px;
  }

  header{
    display:block;
  }

  .header-left, .header-right{
    display:block;
    width:100%;
  }

  .header-left{
    padding-left:0px;
  }

  .sponsored-header {
    display: flex;
    padding-top:30px;
    text-align:center;
    padding-left:0px;
  }

  .jump-container{
    width:100%;
    text-align:center;
    padding-bottom:10px;
    display:block;
  }

  .sponsored-header h2{
    width:100%;
    padding:10px;
    margin:0px;
    background-color:#00000070;
    border-radius:10px;
    margin-bottom:7px;
  }

  .jump-to{
    font-size:.8em !important;
  }

  .header-branding img{
    width:100%;
  }

  .header-info-btn{
    font-size:1em;
  }

  .sponsored-placement-card{
    width:100%;
    height:75px;
    background-color:transparent;
    border:2px dashed #ffffff86;
    border-radius:10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
  }
}


