/* ==========================================================================
   Republic of Cameroon — Tubah Sub-Division Public Portal
   Facebook-Style Civic Gazette & Community Feed
   ========================================================================== */

:root {
  --fb-bg: #F0F2F5;
  --fb-card-bg: #FFFFFF;
  --fb-primary: #1877F2;
  --fb-primary-hover: #166FE5;
  --fb-primary-light: #E7F3FF;
  --fb-text-primary: #050505;
  --fb-text-secondary: #65676B;
  --fb-divider: #CED0D4;
  --fb-border: #E4E6EB;
  --fb-hover: #F2F2F2;
  --fb-comment-bg: #F0F2F5;
  --fb-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  --fb-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Base Body Background for Gazette Feed */
.fb-feed-page {
  background-color: var(--fb-bg);
  min-height: calc(100vh - 140px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--fb-text-primary);
}

/* Main Layout Grid (Facebook 3-Column Desktop Architecture) */
.fb-main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 12px;
}

/* ==========================================================================
   LEFT SIDEBAR (Navigation & Administrative Shortcuts)
   ========================================================================== */
.fb-left-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.fb-left-sidebar::-webkit-scrollbar {
  width: 6px;
}
.fb-left-sidebar::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 4px;
}

/* User / Authority Identity Bar */
.fb-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fb-text-primary);
  transition: background-color 0.15s ease;
  margin-bottom: 6px;
}
.fb-sidebar-profile:hover {
  background-color: var(--fb-border);
  color: var(--fb-text-primary);
}
.fb-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fb-border);
  flex-shrink: 0;
}
.fb-profile-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}
.fb-profile-sub {
  font-size: 0.75rem;
  color: var(--fb-text-secondary);
}

/* Left Sidebar Menu Links */
.fb-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fb-nav-item {
  margin-bottom: 2px;
}
.fb-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fb-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.90rem;
  transition: background-color 0.15s ease;
}
.fb-nav-link:hover {
  background-color: var(--fb-border);
  color: var(--fb-text-primary);
}
.fb-nav-link.active {
  background-color: var(--fb-primary-light);
  color: var(--fb-primary);
}
.fb-nav-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background-color: #E4E6EB;
  color: var(--fb-text-primary);
}
.fb-nav-link.active .fb-nav-icon-box {
  background-color: var(--fb-primary);
  color: #FFFFFF;
}

.fb-sidebar-divider {
  border-top: 1px solid var(--fb-border);
  margin: 12px 10px;
}

.fb-sidebar-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fb-text-secondary);
  padding: 6px 10px;
  margin: 0;
}

.fb-footer-legal {
  padding: 12px 10px;
  font-size: 0.72rem;
  color: var(--fb-text-secondary);
  line-height: 1.5;
}
.fb-footer-legal a {
  color: inherit;
  text-decoration: none;
}
.fb-footer-legal a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CENTER FEED (Stories, Composer, Posts Feed)
   ========================================================================== */
.fb-center-feed {
  max-width: 680px;
  margin: 0 auto;
}

/* Facebook Stories / Official Highlights Carousel */
.fb-stories-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fb-stories-strip::-webkit-scrollbar {
  display: none;
}

.fb-story-card {
  width: 112px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--fb-shadow);
  background-color: #1E293B;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fb-shadow-hover);
}
.fb-story-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.fb-story-card:hover .fb-story-bg {
  transform: scale(1.05);
}
.fb-story-avatar {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3.5px solid var(--fb-primary);
  background-color: #FFFFFF;
  object-fit: cover;
  z-index: 2;
}
.fb-story-title {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  z-index: 2;
}
.fb-story-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

/* "Create Inquiry" 1st Story Card */
.fb-story-card.create-story {
  background-color: var(--fb-card-bg);
  border: 1px solid var(--fb-border);
  display: flex;
  flex-direction: column;
}
.fb-create-story-top {
  height: 125px;
  overflow: hidden;
  position: relative;
}
.fb-create-story-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-create-story-btn-circle {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--fb-primary);
  border: 3px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 3;
}
.fb-create-story-bottom {
  flex-grow: 1;
  background-color: #FFFFFF;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 4px 8px;
}
.fb-create-story-bottom span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--fb-text-primary);
  text-align: center;
}

/* ==========================================================================
   "WHAT'S ON YOUR MIND?" CITIZEN INQUIRY COMPOSER CARD
   ========================================================================== */
.fb-composer-card {
  background: var(--fb-card-bg);
  border-radius: 8px;
  box-shadow: var(--fb-shadow);
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--fb-border);
}
.fb-composer-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fb-composer-input-btn {
  flex-grow: 1;
  background-color: var(--fb-comment-bg);
  border-radius: 20px;
  padding: 9px 16px;
  color: var(--fb-text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}
.fb-composer-input-btn:hover {
  background-color: var(--fb-border);
}
.fb-composer-divider {
  border-top: 1px solid var(--fb-border);
  margin: 10px 0 6px;
}
.fb-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.fb-composer-action-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fb-text-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fb-composer-action-btn:hover {
  background-color: var(--fb-hover);
  color: var(--fb-text-primary);
}
.fb-composer-action-btn i {
  font-size: 1.25rem;
}

/* Category Filter Pills Bar */
.fb-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fb-filter-bar::-webkit-scrollbar {
  display: none;
}
.fb-filter-pill {
  padding: 6px 14px;
  border-radius: 18px;
  background-color: #E4E6EB;
  color: var(--fb-text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.fb-filter-pill:hover {
  background-color: #D8DADF;
  color: var(--fb-text-primary);
}
.fb-filter-pill.active {
  background-color: var(--fb-primary-light);
  color: var(--fb-primary);
  box-shadow: 0 1px 2px rgba(24, 119, 242, 0.15);
}

/* ==========================================================================
   FACEBOOK POST CARD
   ========================================================================== */
.fb-post-card {
  background: var(--fb-card-bg);
  border-radius: 8px;
  box-shadow: var(--fb-shadow);
  border: 1px solid var(--fb-border);
  margin-bottom: 16px;
  overflow: visible;
  transition: box-shadow 0.2s ease;
}

/* Post Header */
.fb-post-header {
  padding: 12px 16px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.fb-post-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.fb-post-author-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--fb-text-primary);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fb-verified-badge {
  color: var(--fb-primary);
  font-size: 0.95rem;
}
.fb-post-meta-sub {
  font-size: 0.76rem;
  color: var(--fb-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.fb-post-meta-sub i {
  font-size: 0.72rem;
}
.fb-post-author-role {
  font-size: 0.74rem;
  color: var(--fb-text-secondary);
  line-height: 1.2;
  margin-top: 2px;
}

/* Top-Right Menu & Controls */
.fb-post-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fb-btn-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fb-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fb-btn-icon-circle:hover {
  background-color: var(--fb-hover);
  color: var(--fb-text-primary);
}

/* Post Body Content */
.fb-post-body {
  padding: 4px 16px 10px;
}
.fb-post-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fb-text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  font-family: 'Outfit', -apple-system, sans-serif;
}
.fb-post-text {
  font-size: 0.92rem;
  color: var(--fb-text-primary);
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 8px;
}
.fb-btn-see-more {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--fb-primary);
  font-weight: 700;
  cursor: pointer;
}
.fb-btn-see-more:hover {
  text-decoration: underline;
}

/* Rich Content Prose Styling */
.fb-rich-content {
  color: var(--fb-text-primary);
  font-size: 0.93rem;
  line-height: 1.6;
  word-break: break-word;
}
.fb-rich-content p {
  margin-bottom: 0.65rem;
}
.fb-rich-content p:last-child {
  margin-bottom: 0;
}
.fb-rich-content h1, .fb-rich-content h2, .fb-rich-content h3 {
  font-weight: 700;
  color: var(--fb-text-primary);
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.fb-rich-content h1 { font-size: 1.25rem; }
.fb-rich-content h2 { font-size: 1.12rem; }
.fb-rich-content h3 { font-size: 1.02rem; }
.fb-rich-content ul, .fb-rich-content ol {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}
.fb-rich-content li {
  margin-bottom: 0.25rem;
}
.fb-rich-content blockquote {
  border-left: 3px solid var(--fb-primary);
  background: rgba(24, 119, 242, 0.04);
  padding: 0.5rem 0.85rem;
  margin: 0.75rem 0;
  border-radius: 0 6px 6px 0;
  color: var(--fb-text-secondary);
  font-style: italic;
}
.fb-rich-content code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.fb-rich-content a {
  color: var(--fb-primary);
  text-decoration: underline;
}
.fb-rich-content.fb-content-collapsed {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.fb-rich-content.fb-content-expanded {
  max-height: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Video Card & Player Styling */
.fb-media-videos-container {
  margin-bottom: 12px;
}
.fb-video-card {
  border-radius: 10px;
  overflow: hidden;
  background-color: #000000;
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-card-shadow);
}
.fb-video-player {
  width: 100%;
  display: block;
  max-height: 480px;
  background-color: #000000;
  outline: none;
}
.fb-video-caption {
  background-color: #1a1a1a;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.fb-tag-pill {
  color: var(--fb-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.fb-tag-pill:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FACEBOOK MULTI-IMAGE COLLAGE GRID SYSTEM
   ========================================================================== */
.fb-media-collage {
  display: grid;
  gap: 2px;
  background-color: #000000;
  cursor: pointer;
  overflow: hidden;
}
.fb-media-item {
  position: relative;
  overflow: hidden;
  background-color: #1E293B;
}
.fb-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.fb-media-item:hover img {
  transform: scale(1.02);
}

.fb-grid-single {
  grid-template-columns: 1fr;
  max-height: 480px;
}
.fb-grid-single .fb-media-item {
  max-height: 480px;
}

.fb-grid-two {
  grid-template-columns: repeat(2, 1fr);
  height: 320px;
}

.fb-grid-three {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 160px);
  height: 324px;
}
.fb-grid-three .fb-media-item:first-child {
  grid-row: span 2;
}

.fb-grid-four {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 160px);
  height: 324px;
}

.fb-media-overlay-more {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  user-select: none;
}
.fb-media-overlay-more span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Caption bar under photo */
.fb-photo-caption-bar {
  padding: 6px 16px;
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--fb-border);
  font-size: 0.78rem;
  color: var(--fb-text-secondary);
}

/* ==========================================================================
   FACEBOOK ENGAGEMENT & REACTIONS BAR
   ========================================================================== */
.fb-engagement-bar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--fb-text-secondary);
}
.fb-reaction-icons-group {
  display: flex;
  align-items: center;
}
.fb-reaction-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #FFFFFF;
  margin-right: -4px;
  border: 1.5px solid #FFFFFF;
  z-index: 2;
}
.fb-reaction-icon.like { background-color: #1877F2; }
.fb-reaction-icon.love { background-color: #FA383E; z-index: 3; }
.fb-reaction-icon.care { background-color: #F7B125; z-index: 1; }

.fb-reaction-count-text {
  margin-left: 8px;
  font-weight: 600;
  color: var(--fb-text-secondary);
}
.fb-counts-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FACEBOOK ACTION BAR (Like, Comment, Share) WITH REACTION POPOVER
   ========================================================================== */
.fb-action-bar-container {
  position: relative;
  margin: 0 16px;
  border-top: 1px solid var(--fb-border);
  border-bottom: 1px solid var(--fb-border);
  padding: 3px 0;
}
.fb-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.fb-btn-action {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--fb-text-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
  position: relative;
}
.fb-btn-action:hover {
  background-color: var(--fb-hover);
  color: var(--fb-text-primary);
}
.fb-btn-action i {
  font-size: 1.15rem;
}
.fb-btn-action.active-like {
  color: var(--fb-primary) !important;
  font-weight: 700;
}

/* Facebook Reaction Popover (👍 ❤️ 🥰 😆 😮 😢 😡) */
.fb-reactions-popover {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  background: #FFFFFF;
  border-radius: 30px;
  padding: 4px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fb-border);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 100;
}
.fb-action-like-wrapper {
  flex: 1;
  position: relative;
  display: flex;
}
.fb-action-like-wrapper:hover .fb-reactions-popover,
.fb-reactions-popover.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fb-reaction-emoji-btn {
  background: transparent;
  border: none;
  padding: 2px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fb-reaction-emoji-btn:hover {
  transform: scale(1.35) translateY(-4px);
}

/* ==========================================================================
   FACEBOOK COMMENTS DRAWER & BUBBLE LIST
   ========================================================================== */
.fb-comments-section {
  padding: 12px 16px 16px;
}

/* Sort dropdown */
.fb-comments-filter-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.fb-comments-sort-btn {
  background: transparent;
  border: none;
  color: var(--fb-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fb-comments-sort-btn:hover {
  text-decoration: underline;
}

/* Comment Input Composer */
.fb-comment-composer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.fb-comment-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fb-comment-input-pill {
  flex-grow: 1;
  background-color: var(--fb-comment-bg);
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fb-comment-input-pill:focus-within {
  background-color: #FFFFFF;
  border-color: var(--fb-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.fb-comment-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--fb-text-primary);
  resize: none;
  min-height: 20px;
  max-height: 120px;
  line-height: 1.4;
}
.fb-comment-textarea::placeholder {
  color: var(--fb-text-secondary);
}
.fb-comment-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 4px;
}
.fb-composer-tool-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fb-text-secondary);
  font-size: 0.95rem;
}
.fb-btn-comment-submit {
  background: var(--fb-primary);
  color: #FFFFFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fb-btn-comment-submit:hover {
  background-color: var(--fb-primary-hover);
}

/* Comments List */
.fb-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fb-comment-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fb-comment-item-body {
  flex-grow: 1;
}

/* Facebook Comment Bubble */
.fb-comment-bubble {
  background-color: var(--fb-comment-bg);
  border-radius: 18px;
  padding: 8px 14px;
  max-width: fit-content;
  position: relative;
}
.fb-comment-bubble.official-comment {
  background-color: var(--fb-primary-light);
  border: 1px solid #DBEAFE;
}
.fb-comment-bubble-author {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--fb-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}
.fb-comment-badge-admin {
  background-color: var(--fb-primary);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.fb-comment-bubble-role {
  font-size: 0.72rem;
  color: var(--fb-text-secondary);
  margin-bottom: 2px;
}
.fb-comment-bubble-text {
  font-size: 0.88rem;
  color: var(--fb-text-primary);
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

/* Reaction pill stuck to bottom-right of bubble */
.fb-comment-reaction-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 1px 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--fb-text-secondary);
}

/* Under-Bubble Actions (Like • Reply • Time) */
.fb-comment-actions-bar {
  margin-left: 12px;
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--fb-text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.fb-btn-comment-action {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 700;
  color: var(--fb-text-secondary);
  cursor: pointer;
  font-size: inherit;
}
.fb-btn-comment-action:hover {
  text-decoration: underline;
  color: var(--fb-text-primary);
}
.fb-btn-comment-action.active-like {
  color: var(--fb-primary);
}

/* Threaded Nested Replies */
.fb-nested-replies-thread {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--fb-border);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-nested-reply-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.fb-nested-reply-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fb-nested-reply-bubble {
  background-color: var(--fb-comment-bg);
  border-radius: 16px;
  padding: 6px 12px;
  max-width: fit-content;
}
.fb-nested-reply-bubble.official-comment {
  background-color: var(--fb-primary-light);
  border: 1px solid #DBEAFE;
}

/* Inline Reply Composer Form */
.fb-inline-reply-box {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--fb-primary);
  margin-top: 8px;
  display: none;
}
.fb-inline-reply-box.show {
  display: block;
}
.fb-inline-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-reply-input-pill {
  flex-grow: 1;
  background-color: var(--fb-comment-bg);
  border-radius: 18px;
  padding: 6px 12px;
  border: 1px solid var(--fb-border);
  font-size: 0.82rem;
  outline: none;
}
.fb-reply-input-pill:focus {
  background-color: #FFFFFF;
  border-color: var(--fb-primary);
}

/* ==========================================================================
   RIGHT SIDEBAR (Event Cards, Dossier Tracking, Secretariat)
   ========================================================================== */
.fb-right-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.fb-right-sidebar::-webkit-scrollbar {
  width: 6px;
}
.fb-right-sidebar::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 4px;
}

.fb-widget-card {
  background: var(--fb-card-bg);
  border-radius: 8px;
  box-shadow: var(--fb-shadow);
  border: 1px solid var(--fb-border);
  padding: 16px;
  margin-bottom: 16px;
}
.fb-widget-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fb-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Audience Schedule Widget */
.fb-audience-box {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--fb-border);
  margin-bottom: 12px;
}
.fb-btn-blue-primary {
  background-color: var(--fb-primary);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
  transition: background-color 0.15s ease;
}
.fb-btn-blue-primary:hover {
  background-color: var(--fb-primary-hover);
  color: #FFFFFF;
}

/* Quick Tracking Input */
.fb-tracking-input-group {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--fb-border);
}
.fb-tracking-input {
  border: none;
  padding: 8px 12px;
  font-size: 0.84rem;
  flex-grow: 1;
  outline: none;
}
.fb-tracking-btn {
  background-color: var(--fb-primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* Contact List */
.fb-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--fb-text-primary);
  font-size: 0.84rem;
  text-decoration: none;
}
.fb-contact-row:hover {
  color: var(--fb-primary);
}

/* ==========================================================================
   FACEBOOK THEATRE MODE LIGHTBOX
   ========================================================================== */
.fb-theatre-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 2500;
  align-items: center;
  justify-content: center;
}
.fb-theatre-modal.show {
  display: flex;
}
.fb-theatre-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
}
.fb-theatre-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}
.fb-theatre-btn-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  z-index: 20;
}
.fb-theatre-btn-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.fb-theatre-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  z-index: 20;
}
.fb-theatre-btn-nav:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
.fb-theatre-btn-prev { left: 16px; }
.fb-theatre-btn-next { right: 16px; }

.fb-theatre-caption {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  color: #E2E8F0;
  text-align: center;
  font-size: 0.90rem;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 8px 16px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   TOAST NOTIFICATION (Facebook Style)
   ========================================================================== */
.fb-toast-alert {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #242526;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.25s ease;
}
.fb-toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Tablet: < 1200px and Mobile: < 768px)
   ========================================================================== */
@media (max-width: 1200px) {
  .fb-right-sidebar {
    display: none;
  }
}

@media (max-width: 992px) {
  .fb-left-sidebar {
    display: none;
  }
  .fb-main-container {
    padding: 10px 8px;
  }
}

@media (max-width: 768px) {
  .fb-feed-page {
    background-color: #E4E6EB;
  }
  .fb-main-container {
    padding: 0 0 16px 0;
  }
  .fb-center-feed {
    max-width: 100%;
  }

  /* Story Cards on Mobile */
  .fb-stories-strip {
    padding: 8px 10px;
    margin-bottom: 8px;
    background-color: #FFFFFF;
  }
  .fb-story-card {
    width: 96px;
    height: 150px;
  }
  .fb-story-avatar {
    width: 30px;
    height: 30px;
    top: 6px;
    left: 6px;
  }
  .fb-story-title {
    font-size: 0.72rem;
    bottom: 6px;
    left: 6px;
    right: 6px;
  }
  .fb-create-story-top {
    height: 100px;
  }

  /* Composer on Mobile */
  .fb-composer-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 8px;
    padding: 10px 12px;
  }
  .fb-composer-avatar {
    width: 36px;
    height: 36px;
  }
  .fb-composer-input-btn {
    font-size: 0.84rem;
    padding: 8px 12px;
  }
  .fb-composer-action-btn {
    font-size: 0.78rem;
    gap: 4px;
    padding: 6px 2px;
  }
  .fb-composer-action-btn i {
    font-size: 1.1rem;
  }

  /* Filters on Mobile */
  .fb-filter-bar {
    padding: 4px 10px 8px;
    margin-bottom: 8px;
    background-color: #FFFFFF;
  }

  /* Post Cards on Mobile */
  .fb-post-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 8px;
  }
  .fb-post-header {
    padding: 10px 12px 6px;
  }
  .fb-post-author-avatar {
    width: 38px;
    height: 38px;
  }
  .fb-post-author-name {
    font-size: 0.88rem;
  }
  .fb-post-title {
    font-size: 0.98rem;
  }
  .fb-post-text {
    font-size: 0.86rem;
  }

  /* Multi-image grids on mobile */
  .fb-grid-single {
    max-height: 280px;
  }
  .fb-grid-single .fb-media-item {
    max-height: 280px;
  }
  .fb-grid-two {
    height: 180px;
  }
  .fb-grid-three {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: repeat(2, 90px);
    height: 184px;
  }
  .fb-grid-four {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 90px);
    height: 184px;
  }

  /* Actions on Mobile */
  .fb-action-bar-container {
    margin: 0 8px;
  }
  .fb-btn-action {
    font-size: 0.78rem;
    gap: 4px;
    padding: 6px 2px;
  }
  .fb-btn-action i {
    font-size: 1rem;
  }

  /* Reaction Popover on Mobile */
  .fb-reactions-popover {
    padding: 3px 6px;
    gap: 4px;
  }
  .fb-reaction-emoji-btn {
    font-size: 1.3rem;
  }

  /* Comments on Mobile */
  .fb-comments-section {
    padding: 10px 12px 12px;
  }
  .fb-comment-bubble {
    padding: 6px 10px;
  }
  .fb-comment-bubble-author {
    font-size: 0.78rem;
  }
  .fb-comment-bubble-text {
    font-size: 0.82rem;
  }
  .fb-nested-replies-thread {
    margin-left: 10px;
    padding-left: 8px;
  }

  /* Theatre Lightbox on Mobile */
  .fb-theatre-stage {
    padding: 20px 10px;
  }
  .fb-theatre-btn-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .fb-theatre-btn-prev { left: 8px; }
  .fb-theatre-btn-next { right: 8px; }
  .fb-theatre-caption {
    font-size: 0.78rem;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
  /* Comments Discussion Modal on Mobile */
  .fb-comments-modal .modal-dialog {
    margin: 8px;
    max-width: calc(100% - 16px);
  }
  .fb-comments-modal .modal-body {
    padding: 12px !important;
  }
  .fb-comments-modal .modal-footer {
    padding: 10px 12px !important;
  }
}

/* ==========================================================================
   FEED COMMENTS PREVIEW & DISCUSSION MODAL STYLES
   ========================================================================== */
.fb-comments-feed-preview {
  background-color: #FAFAFC;
}

.fb-teaser-bubble {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  border-color: #E2E8F0 !important;
}

.fb-teaser-bubble:hover {
  background-color: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  transform: translateY(-1px);
}

.btn-view-all-comments {
  color: #475569 !important;
  transition: color 0.15s ease;
}

.btn-view-all-comments:hover {
  color: #1877F2 !important;
  text-decoration: underline !important;
}

.btn-open-modal-count:hover span {
  text-decoration: underline;
  color: #1877F2;
}

/* Comments & Discussion Modal */
.fb-comments-modal .modal-content {
  border-radius: 18px !important;
}

.fb-comments-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.fb-comments-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.fb-comments-modal .modal-body::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 4px;
}

.fb-comments-modal .modal-footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.nested-reply-item {
  border-color: #E2E8F0 !important;
  background-color: #F8FAFC !important;
}

.inline-reply-box {
  animation: fadeInReply 0.2s ease-in-out;
}

@keyframes fadeInReply {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Comment Vertical Thread & Replies Dropdown */
.fb-modal-comment-thread {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.fb-comment-bubble-box {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.fb-modal-comment-thread .fb-comment-bubble {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}

.btn-toggle-replies-thread {
  background-color: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #1877F2 !important;
  font-size: 0.76rem !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none !important;
  user-select: none;
}

.btn-toggle-replies-thread:hover {
  background-color: #E2E8F0 !important;
  color: #0C63D4 !important;
  border-color: #CBD5E1 !important;
}

.btn-toggle-replies-thread .toggle-chevron {
  transition: transform 0.2s ease;
}

.nested-reply-item {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 10px !important;
}

/* Integrated Comment Composer Box */
.fb-composer-box {
  border: 1px solid #CBD5E1 !important;
  background-color: #F8FAFC !important;
  border-radius: 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.fb-composer-box:focus-within {
  border-color: #1877F2 !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14) !important;
  background-color: #FFFFFF !important;
}

.fb-composer-box .comment-textarea:focus,
.fb-composer-box .comment-author-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 576px) {
  .fb-comments-modal .modal-dialog {
    margin: 0.5rem;
  }
  .fb-comments-modal .modal-body {
    padding: 1rem !important;
  }
  .fb-modal-comment-thread .comment-replies-thread {
    margin-left: 0.75rem !important;
    padding-left: 0.5rem !important;
  }
}


