/* ---------------------------
   Base / Typography
---------------------------- */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

a:link,
a:visited {
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  margin: 0 auto;
  padding: 10px;
}

h1 { color: #0066cc; }

.main-wrapper {
    background: #f4f4f4 url("images/wthdbg.png");
    background-repeat: repeat;   /* puts equal space between tiles */
}

/* ---------------------------
   Navigation / Header
---------------------------- */
.container-top {
  background-color: #000;
  box-shadow: 0 3px 4px 0 rgba(0,0,0,.2);
}

.navbar a {
  color: #fff;
  text-decoration: none;
}

.navbar-brand img {
  max-height: 100px;
}

.navbar-nav .nav-link {
  margin-right: auto;
  margin-left: auto;
}

/* ---------------------------
   Badges / Chips
---------------------------- */
.badge {
  border-radius: 0;
  background-color: #ff0000;
  font-family: "Caveat", cursive;
  font-size: 25px;
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------------------------
   Offcanvas
---------------------------- */
.offcanvas-body {
  font-size: 25px;
}

/* ---------------------------
   Carousel
---------------------------- */
.carousel-item {
  max-height: 500px;
  transition: transform 0.5s ease;
}
.carousel-item img {
  max-height: 500px;
  max-width: 1100px;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  transition: transform 0.5s ease;
}

/* ---------------------------
   Utilities
---------------------------- */
.search-input {
  max-width: 500px;
  width: 100%;
}

.bg-custom-top { background-color: #FF0000; }

.center-image {
  text-align: center;
  width: 100%;
}

/* ---------------------------
   DJ Schedule / “On Air” Card
---------------------------- */
#djSchedule .list-group-item.active {
  background-color: #ff0000 !important;
  color: #fff !important;
  font-weight: bold;
}
#djSchedule .list-group-item.active .text-muted {
  color: #f8f9fa !important;
}
.live-badge {
  background-color: #fff;
  color: #ff0000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
/* Remove Bootstrap focus/active glow */
#djSchedule .list-group-item,
#djSchedule .list-group-item:focus,
#djSchedule .list-group-item.active,
#djSchedule .list-group-item.active:focus,
#djSchedule .list-group-item.active:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ffffff !important;
}
#djSchedule .card-body { padding: 1rem; }
#djSchedule small {
  font-weight: 600;
  letter-spacing: 0.5px;
}
#djSchedule a { color: inherit; }
#djSchedule a:hover { text-decoration: none; }

.dj-photo {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;          /* Rounded corners */
  border: none !important;     /* Remove red outline */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Optional legacy scheduleItem formatting (kept for safety) */
.scheduleItem {
  font-size: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scheduleItem div { margin-top: 5px; }

/* ---------------------------
   Unified Section Header Bar
---------------------------- */
/* ---------------------------
   Section Headers: Left Accent Bar
---------------------------- */
/* Header A: gradient underline */
.section-grad {
  display:flex; align-items:center; gap:.75rem;
  margin:1rem 0 .75rem;
}
.section-grad h2 {
  margin:0; font-size:1.15rem; font-weight:800; color:#111;
  position:relative; padding-bottom:.25rem;
}
.section-grad h2::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px;
  background: linear-gradient(90deg, #ff0000, rgba(255,0,0,0));
  border-radius:3px;
}
.section-grad .cta { margin-left:auto; font-size:.85rem; color:#666; text-decoration:none; }
.section-grad .cta:hover { color:#ff0000; }

/* Tight CTA buttons */
.section-bar .btn{
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .5rem;
  --bs-btn-font-size: .8rem;
}

/* ---------------------------
   Community Events: Calendar Date Pill
   (used in events_list_widget.php)
---------------------------- */
.event-datebox {
  width: 48px;
  min-width: 48px;
  border: 1px solid #e5e7eb;    /* light gray */
  border-radius: 8px;
  overflow: hidden;              /* rounds the red top band cleanly */
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.event-month {
  display: block;
  font-weight: 700;
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 0 4px;
  background: #ff0000;           /* Bootstrap danger to match brand red family */
  color: #fff;
}

.event-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}
.event-date {
  font-size: 0.6rem;
  color: #666;     /* softer than the title */
  line-height: 1.2;
  margin-top: 2px;
}

.event-day {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  padding: 6px 0 8px;
  color: #111;
  background: #fff;
}
/* Ensure alignment in list items */
.list-group .list-group-item .d-flex { align-items: center; }

/* Responsive tweak for the pill */
@media (max-width: 576px) {
  .event-datebox { width: 40px; min-width: 40px; }
  .event-day { font-size: 1rem; }
}

/* ---------------------------
   Footer (consolidated)
---------------------------- */
footer {
  text-align: center;
  position: relative;
  margin-top: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #222;  /* slightly softer than pure black */
  font-size: 0.9rem;
}
footer a {
  color: #ccc;             /* softer than white */
  text-decoration: none;
}
footer a:hover {
  color: #ff0000;          /* brand red on hover */
}

/* ---------------------------
   Sidebar
---------------------------- */
/* Offcanvas / Sidebar */
.offcanvas-hotfm {
  background:#141414;              /* deep charcoal */
  color:#fff;
  width: 320px;                    /* comfy tap targets */
  border-left: 1px solid #222;
}
.offcanvas-hotfm .offcanvas-header {
  border-bottom:1px solid #222;
  padding: .9rem 1rem;
}
.offcanvas-hotfm .offcanvas-title img {
  max-height: 36px;
}
.offcanvas-hotfm .btn-close,
.offcanvas-hotfm .btn-light {
  background: transparent;
  border: 1px solid #333;
  color:#fff;
}
.offcanvas-hotfm .btn-light:hover { border-color:#444; }

/* Nav list */
.sidebar-nav {
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}
.sidebar-nav .nav-link {
  display:flex; align-items:center; gap:.6rem;
  padding:.7rem .9rem;
  color:#e6e6e6;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:600;
  text-decoration:none;
  border-radius:.5rem;
}
/* Sidebar nav icons */
.sidebar-nav .nav-link i {
  width: 20px;        /* reserve horizontal space */
  min-width: 20px;
  text-align: center; /* keep icons centered in that slot */
  margin-right: 8px;  /* space between icon and text */
  font-size: 1.3rem;  /* consistent size */
}
.sidebar-nav .nav-link:hover {
  background:#424242;
  color:#fff;
}
.sidebar-nav .nav-link.active {
  background: rgba(255,0,0,.14);
  color:#fff;
  box-shadow: inset 0 0 0 1px rgba(255,0,0,.35);
}

/* Dropdown (Bootstrap 5) inside dark offcanvas */
.offcanvas-hotfm .dropdown-toggle::after { margin-left:.35rem; }
.offcanvas-hotfm .dropdown-menu {
  background:#171717;
  border:1px solid #2a2a2a;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.offcanvas-hotfm .dropdown-item {
  color:#e6e6e6;
  padding:.55rem .9rem;
}
.offcanvas-hotfm .dropdown-item:hover { background:#202020; color:#fff; }
.offcanvas-hotfm .dropdown-divider { border-top-color:#2a2a2a; }

/* Section label / divider (optional) */
.sidebar-label {
  color:#9a9a9a;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:.75rem .9rem .25rem;
}

/* Big CTA tile at bottom */
.sidebar-cta {
  display:block;
  margin: .75rem .15rem 0;
  padding:.8rem 1rem;
  background:#ff0000;
  color:#fff !important;
  font-weight:800;
  text-align:center;
  border-radius:.6rem;
  text-decoration:none;
}
.sidebar-cta:hover { filter: brightness(1.05); }

/* Small muted footer area inside offcanvas (optional) */
.offcanvas-hotfm .offcanvas-footer {
  margin-top: .75rem;
  border-top:1px solid #222;
  padding: .75rem 1rem 1rem;
  color:#9a9a9a;
  font-size:.8rem;
}
.offcanvas-hotfm .offcanvas-footer a { color:#ccc; text-decoration:none; }
.offcanvas-hotfm .offcanvas-footer a:hover { color:#ff0000; }

/* Custom Listen Live Button */
.btn-hotfm {
  background-color: #FF0000 !important;
  color: #fff !important;
  border: none;
}

.btn-hotfm:hover,
.btn-hotfm:focus {
  background-color: #8B0000 !important;
  color: #fff !important;
}

/* News widget polish */
.news-featured .card-img-top,
.object-cover { object-fit: cover; }

.news-featured-placeholder {
  background: linear-gradient(135deg, #f1f1f1, #eaeaea);
  border-bottom: 1px solid #eee;
}

.news-featured-title {
  font-size: 1.15rem;       /* modest, not huge */
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;     /* clamp to 3 lines */
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-thumb {
  width: 84px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f1f1f1;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.news-thumb--placeholder {
  background: linear-gradient(135deg, #f4f4f4, #ebebeb);
}

.news-list-item { padding: .6rem .75rem; }
.news-list-title {
  font-size: .98rem;        /* readable but compact */
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;     /* clamp to 2 lines */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111;
}

/* Meta rows — smaller than titles */
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-size: 0.8rem;   /* ↓ makes the whole line smaller */
  color: #666;         /* muted */
  line-height: 1.3;
  margin-top: .25rem;  /* tighter to the title */
}
.news-meta .badge {    /* keep NEW tag proportional */
  font-size: 0.65rem;
}
.news-meta i { opacity: .7; }

/* Optional hover pop */
.list-group .news-list-item:hover { background: #f8f9fa; }

.news-footer { margin-top: .5rem; }
.news-more-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.news-more-link:hover {
  color: #ff0000;                 /* brand red */
  border-bottom-color: #ff0000;   /* subtle underline on hover */
}