/* ==========================================================================
   MIAMI TRAILS & ORCHARD HEIGHTS - COMMUNITY PORTAL STYLESHEET
   Borrowing typography & layout system with versatile civic palette & mobile-first touch ergonomics
   ========================================================================== */
:root {
  /* Civic Community Theme Palette */
  --civic-navy: #063B81;
  --civic-navy-dark: #042552;
  --community-green: #1B5E20;
  --community-green-light: #E8F5E9;
  --crimson: #B82638;
  --crimson-hover: #9C1F2F;
  --accent-gold: #E2AD36;
  --accent-gold-light: #FEF9E7;
  --text-dark: #1C1C1C;
  --text-muted: #5F6368;
  --text-light: #F9F9F9;
  --bg-white: #FFFFFF;
  --bg-sandstone: #F8F9FA;
  --bg-card: #FFFFFF;
  --border-light: rgba(0, 0, 0, 0.12);
  --border-card: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Typography */
  --font-archivo: 'Archivo', sans-serif;
  --font-archivo-black: 'Archivo Black', 'Archivo', sans-serif;
  --font-great-vibes: 'Great Vibes', cursive;
  --font-roboto: 'Roboto', 'Google Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-sandstone);
  color: var(--text-dark);
  font-family: var(--font-archivo), var(--font-roboto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--civic-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--crimson);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-archivo);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

.font-archivo-black {
  font-family: var(--font-archivo-black) !important;
}

.font-great-vibes {
  font-family: var(--font-great-vibes) !important;
}

/* ==========================================================================
   Header & Navigation (Google Sites Clean Style)
   ========================================================================== */
.gs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  height: 64px;
  box-shadow: var(--shadow-sm);
}

.gs-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gs-site-title {
  font-family: var(--font-archivo-black);
  font-size: 18px;
  color: var(--civic-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.gs-site-badge {
  background-color: var(--civic-navy);
  color: #FFF;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-archivo);
  font-weight: 700;
}

.gs-nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  height: 100%;
}

.gs-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gs-nav-link {
  font-family: var(--font-archivo);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.15s ease;
}

.gs-nav-link:hover {
  color: var(--civic-navy);
  background-color: rgba(6, 59, 129, 0.04);
}

.gs-nav-link.active {
  font-weight: 700;
  color: var(--civic-navy);
}

.gs-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--civic-navy);
  border-radius: 3px 3px 0 0;
}

/* Nav Dropdown */
.gs-dropdown {
  position: relative;
}

.gs-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  z-index: 1010;
}

.gs-dropdown:hover .gs-dropdown-menu {
  display: block;
}

.gs-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.gs-dropdown-item a:hover {
  background: var(--bg-sandstone);
  color: var(--civic-navy);
}

/* Mobile Hamburger Toggle */
.gs-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.gs-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1090;
}

.gs-mobile-backdrop.open {
  display: block;
}

.gs-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.gs-mobile-drawer.open {
  right: 0;
}

.gs-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.gs-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gs-drawer-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  min-height: 48px;
}

.gs-drawer-link:hover, .gs-drawer-link.active {
  background: var(--bg-sandstone);
  color: var(--civic-navy);
}

/* ==========================================================================
   Seasonal Alert Banner
   ========================================================================== */
.community-alert-banner {
  background: linear-gradient(135deg, var(--civic-navy) 0%, #0B4B9A 100%);
  color: #FFF;
  padding: 10px 16px;
  font-size: 13.5px;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.community-alert-banner a {
  color: #FFE082;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

.community-alert-banner a:hover {
  color: #FFF;
}

/* ==========================================================================
   Admin Control Bar (Visible when Logged In)
   ========================================================================== */
.admin-control-bar {
  background: #111827;
  color: #F9FAFB;
  padding: 10px 24px;
  border-bottom: 1px solid #374151;
  display: none; /* revealed via JS when authenticated */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.admin-control-bar.active {
  display: flex;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-btn {
  background: var(--civic-navy);
  color: #FFF;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  transition: all 0.15s ease;
}

.admin-btn:hover {
  background: #094EA8;
}

.admin-btn-danger {
  background: rgba(220, 38, 38, 0.2);
  color: #F87171;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.admin-btn-danger:hover {
  background: rgba(220, 38, 38, 0.3);
}

/* In-Card Admin Buttons */
.card-admin-actions {
  display: none;
  gap: 6px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.admin-mode .card-admin-actions {
  display: flex;
}

.card-admin-btn {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.card-admin-btn:hover {
  background: #111827;
  transform: scale(1.04);
}

.card-admin-btn-delete:hover {
  background: var(--crimson);
}

/* ==========================================================================
   Layout Containers & Section Headings
   ========================================================================== */
.community-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.page-hero {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px 0 10px;
}

.page-title {
  font-family: var(--font-archivo-black);
  font-size: clamp(28px, 6vw, 44px);
  color: var(--civic-navy);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Two-Column Grid on Desktop */
.community-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ==========================================================================
   Touch-Friendly Horizontal Category Filter Bar
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
  border-color: var(--civic-navy);
  color: var(--civic-navy);
}

.filter-chip.active {
  background: var(--civic-navy);
  color: #FFF;
  border-color: var(--civic-navy);
}

/* ==========================================================================
   Cards, Feed & Articles
   ========================================================================== */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero Featured Card */
.community-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #E5E7EB;
  overflow: hidden;
}

.community-card.featured .card-img-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 59, 129, 0.1);
  color: var(--civic-navy);
}

.card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.community-card.featured .card-title {
  font-size: 24px;
}

.card-title a {
  color: var(--text-dark);
}

.card-title a:hover {
  color: var(--civic-navy);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-card);
}

.read-more-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--civic-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-btn:hover {
  color: var(--crimson);
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--civic-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(6, 59, 129, 0.1);
}

.widget-event-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
}

.widget-event-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date-box {
  background: var(--civic-navy);
  color: #FFF;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
  min-width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-month {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.event-day {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.event-details {
  flex-grow: 1;
}

.event-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.event-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Business Directory Cards
   ========================================================================== */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.business-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.business-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #F3F4F6;
  border: 1px solid var(--border-card);
  flex-shrink: 0;
}

.business-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.business-perk-banner {
  background: var(--community-green-light);
  border: 1px solid rgba(27, 94, 32, 0.2);
  color: var(--community-green);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin: 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
}

.btn-contact {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-white);
  color: var(--text-dark);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-contact:hover {
  background: var(--bg-sandstone);
  color: var(--civic-navy);
}

.btn-contact-primary {
  background: var(--civic-navy);
  color: #FFF;
  border-color: var(--civic-navy);
}

.btn-contact-primary:hover {
  background: var(--civic-navy-dark);
  color: #FFF;
}

/* ==========================================================================
   Traditions Visual Cards (Events Hub)
   ========================================================================== */
.tradition-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.tradition-img-wrap {
  position: relative;
  min-height: 280px;
}

.tradition-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tradition-tag {
  display: inline-block;
  background: rgba(184, 38, 56, 0.1);
  color: var(--crimson);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.tradition-title {
  font-family: var(--font-archivo-black);
  font-size: 28px;
  color: var(--civic-navy);
  line-height: 1.15;
  margin-bottom: 12px;
}

.calendar-frame-container {
  background: #FFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.calendar-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ==========================================================================
   Social Sharing Bar
   ========================================================================== */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin: 24px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  border: none;
  min-height: 42px;
  transition: all 0.15s ease;
}

.share-fb {
  background: #1877F2;
}

.share-fb:hover {
  background: #145DBF;
  color: #FFF;
}

.share-nextdoor {
  background: #00B140;
}

.share-nextdoor:hover {
  background: #008E33;
  color: #FFF;
}

.share-copy {
  background: #4B5563;
}

.share-copy:hover {
  background: #374151;
  color: #FFF;
}

/* ==========================================================================
   Modals (Editor & Admin Controls)
   ========================================================================== */
.community-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.community-modal-backdrop.open {
  display: flex;
}

.community-modal-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--civic-navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--civic-navy);
  box-shadow: 0 0 0 3px rgba(6, 59, 129, 0.15);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {
  .community-layout-grid {
    grid-template-columns: 1fr;
  }
  .tradition-hero-card {
    grid-template-columns: 1fr;
  }
  .community-card.featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gs-nav-desktop {
    display: none;
  }
  .gs-mobile-toggle {
    display: flex;
  }
  .community-container {
    padding: 16px 14px 40px;
  }
  .page-title {
    font-size: 28px;
  }
  .tradition-body {
    padding: 20px;
  }
  .calendar-frame {
    height: 480px;
  }
}



/* ==========================================================================
   New Flow: Featured Post -> Partner Spotlight -> Filters -> All Other Posts
   ========================================================================== */

/* 1. Featured Hero Post Section */
.featured-post-section {
  margin-bottom: 24px;
}

.featured-hero-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-card, #E5E7EB);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-hero-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

.featured-hero-card .featured-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #E5E7EB;
  overflow: hidden;
}

.featured-hero-card .featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-hero-card .featured-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.featured-star-tag {
  background: #FEF3C7;
  color: #92400E;
  font-family: var(--font-archivo);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.featured-hero-card .featured-title {
  font-family: var(--font-archivo);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark, #1C1C1C);
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-hero-card .featured-title a {
  color: var(--text-dark, #1C1C1C);
  text-decoration: none;
}

.featured-hero-card .featured-title a:hover {
  color: var(--civic-navy, #063B81);
}

.featured-hero-card .featured-excerpt {
  font-size: 14.5px;
  color: var(--text-muted, #5F6368);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.featured-hero-card .featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-card, #E5E7EB);
  padding-top: 14px;
}

/* 2. Flow Partner Spotlight Banner */
.flow-partner-spotlight {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-card, #E5E7EB);
  border-left: 4px solid var(--civic-navy, #063B81);
  border-radius: var(--radius-md, 10px);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.flow-spotlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.flow-spotlight-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-card, #E5E7EB);
  background: #FFF;
  flex-shrink: 0;
}

.flow-spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flow-spotlight-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--civic-navy, #063B81);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-spotlight-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-spotlight-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #1C1C1C);
}

.flow-spotlight-perk {
  font-size: 11px;
  font-weight: 700;
  color: var(--community-green, #1B5E20);
  background: var(--community-green-light, #E8F5E9);
  padding: 2px 7px;
  border-radius: 4px;
}

.flow-spotlight-desc {
  font-size: 13px;
  color: var(--text-muted, #5F6368);
  line-height: 1.4;
}

.flow-spotlight-btn {
  background: var(--civic-navy, #063B81);
  color: #FFFFFF !important;
  font-family: var(--font-archivo);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.flow-spotlight-btn:hover {
  background: var(--crimson, #B82638);
}

@media (max-width: 900px) {
  .featured-hero-card {
    grid-template-columns: 1fr;
  }
  .featured-hero-card .featured-img-wrap {
    min-height: 200px;
    height: 220px;
  }
  .flow-partner-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }
  .flow-spotlight-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ==========================================================================
   Featured Posts Feed & Same-Size Partner Spotlight Card
   ========================================================================== */

/* Featured Posts Feed Container */
.featured-feed-section {
  margin-bottom: 28px;
}

.featured-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.featured-section-title {
  font-family: var(--font-archivo);
  font-size: 16px;
  font-weight: 700;
  color: var(--civic-navy, #063B81);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.featured-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* If only 1 featured post, make it a prominent wide card on desktop */
.featured-feed-grid.single-item {
  grid-template-columns: 1fr;
}

.featured-feed-grid.single-item .community-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.featured-feed-grid.single-item .card-img-wrap {
  aspect-ratio: auto;
  min-height: 260px;
  height: 100%;
}

@media (max-width: 900px) {
  .featured-feed-grid.single-item .community-card {
    grid-template-columns: 1fr;
  }
  .featured-feed-grid.single-item .card-img-wrap {
    aspect-ratio: 16/9;
    min-height: 200px;
    height: auto;
  }
}

/* Card Admin Control Bar */
.card-admin-actions {
  display: none;
  gap: 4px;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 16px);
}

.admin-mode .card-admin-actions {
  display: flex;
}

.card-admin-btn {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(4px);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.card-admin-btn:hover {
  background: #111827;
  transform: scale(1.04);
}

.card-admin-btn-pin {
  background: #B45309;
  border-color: #F59E0B;
}

.card-admin-btn-pin:hover {
  background: #92400E;
}

.card-admin-btn-unpin {
  background: #4B5563;
}

.card-admin-btn-unpin:hover {
  background: #374151;
}

.card-admin-btn-delete:hover {
  background: var(--crimson, #B82638);
}

/* Partner Spotlight Section (Same size as regular post card) */
.partner-spotlight-section {
  margin-bottom: 28px;
}

.partner-spotlight-card {
  max-width: 100%;
}

@media (min-width: 900px) {
  .partner-spotlight-card.single-card {
    max-width: 480px;
  }
}

/* ==========================================================================
   Skeleton Loading Cards (FIX 4 — zero blank flash on feed load)
   ========================================================================== */
.skeleton-card {
  background: #FFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-img-block {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================================
   Common Utility Classes (FIX 8 — reduce inline style clutter)
   ========================================================================== */
.section-card {
  background: #FFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--civic-navy);
  margin-bottom: 8px;
}

.section-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.flex-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .grid-2col { grid-template-columns: 1fr; }
}

.centered-container {
  max-width: 860px;
  margin: 0 auto;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-archivo);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}

.community-btn-primary {
  background: var(--civic-navy);
  color: #FFF !important;
}

.community-btn-primary:hover {
  background: var(--civic-navy-dark);
  color: #FFF;
}

.community-btn-secondary {
  background: #FFF;
  color: var(--civic-navy);
  border: 1px solid var(--border-card);
}

.community-btn-secondary:hover {
  background: var(--bg-sandstone);
}

/* Card Share to Facebook & Right Justification */
.community-card.no-img,
.community-card:not(:has(.card-img-wrap)),
.featured-feed-grid.single-item .community-card.no-img,
.featured-feed-grid.single-item .community-card:not(:has(.card-img-wrap)) {
  display: flex !important;
  flex-direction: column !important;
}

.community-card.no-img .card-body,
.community-card:not(:has(.card-img-wrap)) .card-body {
  width: 100% !important;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border-card);
  margin-top: auto;
}

.card-share-fb {
  font-size: 12.5px;
  color: #1877F2;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.card-share-fb:hover {
  color: #145DBF;
  text-decoration: underline;
}
