/* ==========================================================================
   NewsN Premium AI News Aggregator UI Style System
   ========================================================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Color Variables and Theme Setup */
:root {
  --accent: #2E5BFF;
  --accent-hover: #1E4AE6;
  --accent-tint: rgba(46, 91, 255, 0.08);
  --accent-tint-subtle: rgba(46, 91, 255, 0.03);
  --accent-text: #FFFFFF;
  
  /* Light Mode Variables (FT-Style hairline dividers, no shadow) */
  --bg-color: #F6F7FB;
  --card-bg: #FFFFFF;
  --circle-bg: #EEF2FF;
  --heading: #0F1729;
  --body: #4A5160;
  --border: #E6E1D7;
  --shadow: none;
  --shadow-hover: none;
  --radius-card: 8px;
  --radius-thumb: 6px;
  --radius-pill: 999px;
  --font: 'Inter', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --pill-bg: #F7F9FA;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-color: #0D0F14;
  --card-bg: #171A21;
  --circle-bg: #1F232D;
  --heading: #FFFFFF;
  --body: #9BA1AC;
  --border: #242832;
  --shadow: none;
  --shadow-hover: none;
  --pill-bg: var(--card-bg);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body {
  font-family: var(--font);
  background-color: var(--bg-color);
  color: var(--body);
  min-height: 100vh;
  padding-bottom: 74px; /* Space for bottom nav on mobile */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.container {
  width: 100%;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.app-view-section {
  display: none;
}

.app-view-section.active-view {
  display: block;
}

/* ==========================================================================
   STICKY HEADER & TOP BAR
   ========================================================================== */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.main-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-greeting-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.header-greeting {
  font-size: 11px;
  font-weight: 500;
  color: var(--body);
  opacity: 0.85;
}

.main-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  box-shadow: var(--shadow);
}

.header-icon-btn:hover {
  background-color: var(--border);
}

.notification-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 1.5px solid var(--card-bg);
}

.profile-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-link.active .profile-avatar-circle {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Search Bar Row */
.search-bar-row {
  padding: 4px 20px;
}

.search-pill-container {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  height: 38px;
  box-shadow: var(--shadow);
}

.search-pill-container:focus-within {
  border-color: var(--accent);
}

.search-icon {
  color: var(--body);
  font-size: 15px;
  margin-right: 12px;
}

.search-pill-container input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--heading);
}

.search-pill-container input::placeholder {
  color: var(--body);
}

.search-filter-btn {
  color: var(--accent);
  font-size: 15px;
  padding: 4px;
}

/* Category Pill Row */
.pill-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border);
}

.pill-row.open {
  max-height: 48px;
  opacity: 1;
  padding: 12px 20px;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

@keyframes fadeInPill {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeInPill 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(46, 91, 255, 0.2);
}

/* ==========================================================================
   BREAKING TICKER TAPE
   ========================================================================== */
.ticker-container {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  height: 38px;
  overflow: hidden;
  padding: 0 20px;
  margin-bottom: 12px;
}

.ticker-title-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-title-badge i {
  animation: flash 1.5s infinite;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-tape {
  display: flex;
  white-space: nowrap;
  animation: scroll-tape 35s linear infinite;
}

.ticker-tape:hover {
  animation-play-state: paused;
}

.ticker-news-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--heading);
  padding-right: 42px;
  cursor: pointer;
}

.ticker-news-link:hover {
  color: var(--accent);
}

@keyframes scroll-tape {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   CAROUSEL HERO STORY SECTION
   ========================================================================== */
.top-stories-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 16px 0 12px;
}

.hero-carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.hero-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Unified Article Card System */
.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding: 16px;
  gap: 12px;
  box-sizing: border-box;
}

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

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  margin-bottom: 4px;
  flex-shrink: 0;
}

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

.card-cat-pill {
  display: inline-block;
  background-color: var(--accent-tint);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  align-self: flex-start;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.card-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin: 0;
}

.card-meta {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--body);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.card-source .source-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-source .source-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
}

.card-source i {
  font-size: 14px;
  cursor: pointer;
  color: var(--body);
  transition: color 0.2s ease;
  padding: 4px;
}

.card-source i:hover, .card-source i.active {
  color: var(--accent);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-story-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
}

/* ==========================================================================
   LATEST FEED SECTION
   ========================================================================== */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.section-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.latest-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-article-row {
  display: flex;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px;
  gap: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  align-items: center;
}

.feed-article-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feed-thumbnail-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  flex-shrink: 0;
}

.feed-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90px;
  padding: 2px 0;
}

.feed-category-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-tint);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.feed-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--body);
}

.feed-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
}

.feed-bookmark-btn {
  color: var(--body);
  font-size: 14px;
  padding: 4px;
  z-index: 10;
}

.feed-bookmark-btn:hover {
  color: var(--accent);
}

.feed-bookmark-btn.active {
  color: var(--accent);
}

/* ==========================================================================
   DISCOVER GRID PAGE
   ========================================================================== */
.discover-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 10px 0;
}

.discover-tile-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}

.discover-tile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.discover-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #FFFFFF;
}

.discover-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.discover-tile-count {
  font-size: 11px;
  color: var(--body);
  font-weight: 500;
}

/* Tile color variants */
.tile-blue { background-color: rgba(46, 91, 255, 0.05); }
.tile-blue .discover-icon-box { background-color: #2E5BFF; }

.tile-green { background-color: rgba(16, 185, 129, 0.05); }
.tile-green .discover-icon-box { background-color: #10B981; }

.tile-purple { background-color: rgba(139, 92, 246, 0.05); }
.tile-purple .discover-icon-box { background-color: #8B5CF6; }

.tile-orange { background-color: rgba(245, 158, 11, 0.05); }
.tile-orange .discover-icon-box { background-color: #F59E0B; }

.tile-red { background-color: rgba(239, 68, 68, 0.05); }
.tile-red .discover-icon-box { background-color: #EF4444; }

.tile-teal { background-color: rgba(20, 184, 166, 0.05); }
.tile-teal .discover-icon-box { background-color: #20B2AA; }

.tile-pink { background-color: rgba(236, 72, 153, 0.05); }
.tile-pink .discover-icon-box { background-color: #EC4899; }

/* ==========================================================================
   SAVED BOOKMARKS PAGE
   ========================================================================== */
.saved-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 16px;
}

.saved-header-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
}

.saved-header-clear {
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}

.saved-stacked-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

/* ==========================================================================
   USER PROFILE PAGE
   ========================================================================== */
.profile-card-header {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.profile-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.profile-email {
  font-size: 13px;
  color: var(--body);
}

.profile-follow-count {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin: 24px 0 12px;
}

.profile-settings-list {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.setting-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.setting-item-row:last-child {
  border-bottom: none;
}

.setting-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
}

.setting-item-left i {
  color: var(--accent);
  font-size: 15px;
}

/* Switch styling */
.toggle-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch-wrapper input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch-wrapper input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   ARTICLE DETAILS PAGE
   ========================================================================== */
.article-detail-wrap {
  padding: 10px 0;
}

.detail-headline {
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
  margin: 10px 0 16px;
}

.detail-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.detail-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-author-meta {
  display: flex;
  flex-direction: column;
}

.detail-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
}

.detail-publish-date {
  font-size: 11px;
  color: var(--body);
}

.detail-follow-btn {
  background-color: var(--accent-tint);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.detail-follow-btn.followed {
  background-color: var(--border);
  color: var(--heading);
}

.detail-featured-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.detail-featured-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.long-form-article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--heading);
}

.long-form-article-body p {
  margin-bottom: 18px;
}

.long-form-article-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
  margin: 28px 0 12px;
}

/* Floating Bottom Share/Action Bar on Detail Page */
.detail-floating-bottom {
  position: fixed;
  bottom: 80px;
  left: 20px;
  right: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  height: 52px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 990;
}

.floating-action-btn {
  color: var(--heading);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.floating-action-btn i {
  color: var(--body);
}

.floating-action-btn.active i {
  color: var(--accent);
}

.floating-action-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--heading);
}

/* ==========================================================================
   LISTEN TO THIS ARTICLE PLAYER
   ========================================================================== */
.listen-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.listen-play {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(46, 91, 255, 0.25);
}

.listen-play:hover {
  background-color: var(--accent-hover);
}

.listen-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listen-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.listen-label i {
  color: var(--accent);
}

.listen-bar {
  height: 5px;
  background-color: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.listen-progress {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  border-radius: var(--radius-pill);
}

.listen-time {
  font-size: 11px;
  color: var(--body);
  font-weight: 500;
}

.listen-dur {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-tint);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
}

.listen-card.listen-disabled {
  opacity: 0.6;
}

.listen-card.listen-disabled .listen-play {
  background-color: var(--border);
  color: var(--body);
  box-shadow: none;
  cursor: not-allowed;
}

.listen-card.listen-disabled .listen-progress {
  background-color: var(--border);
}

/* ==========================================================================
   APP BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(15, 23, 41, 0.04);
  z-index: 1000;
  padding: 0 10px;
}

.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--body);
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
}

.bottom-nav-tab i {
  font-size: 18px;
}

.bottom-nav-tab.active {
  color: var(--accent);
}

/* Add post middle elevated button */
.add-post-tab-btn {
  position: relative;
  top: -12px;
  flex: 0 0 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-post-btn-inner {
  width: 52px;
  height: 52px;
  background-color: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(46, 91, 255, 0.35);
  border: 3px solid var(--card-bg);
}

.add-post-btn-inner:hover {
  background-color: var(--accent-hover);
}

/* ==========================================================================
   POST CREATION SCREEN
   ========================================================================== */
.create-screen-wrap {
  padding: 10px 0;
}

.create-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.create-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
}

.create-input {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--heading);
  outline: none;
}

.create-input:focus {
  border-color: var(--accent);
}

.create-textarea {
  height: 160px;
  resize: vertical;
}

.btn-create-submit {
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-pill);
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(46, 91, 255, 0.2);
}

.btn-create-submit:hover {
  background-color: var(--accent-hover);
}

/* ==========================================================================
   FLOATING AUDIO WIDGET & SIMULATED MUSIC PLAYERS
   ========================================================================== */
.floating-audio-widget {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 900;
  background-color: var(--heading);
  color: var(--card-bg);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.audio-pulse-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
}

.audio-label-text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.audio-player-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px;
  z-index: 1020;
  border: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-player-drawer.drawer-active {
  transform: translateY(0);
}

.audio-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.audio-drawer-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-drawer-title i {
  color: var(--accent);
}

.btn-close-audio {
  color: var(--body);
  font-size: 18px;
}

.audio-track-details {
  text-align: center;
  margin-bottom: 16px;
}

.audio-track-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.audio-track-status {
  font-size: 11px;
  color: var(--body);
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.audio-btn {
  color: var(--heading);
  font-size: 16px;
}

.audio-btn.play-pause {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(46, 91, 255, 0.2);
}

.audio-progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
}

/* ==========================================================================
   DRAWER OVERLAYS & MODALS SYSTEM
   ========================================================================== */
.fullscreen-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border);
  z-index: 1030;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  box-shadow: var(--shadow);
}

.fullscreen-nav-drawer.drawer-active {
  transform: translateX(0);
}

.drawer-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.drawer-close-btn {
  color: var(--body);
  font-size: 18px;
}

.drawer-section-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.drawer-categories-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-cat-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.drawer-cat-link.active, .drawer-cat-link:hover {
  background-color: var(--accent-tint);
  color: var(--accent);
}

/* Live Stream overlay */
.live-stream-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 41, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
}

.live-stream-overlay.active {
  display: flex;
}

.live-stream-container {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.live-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.live-stream-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
}

.live-tv-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #EF4444;
  border-radius: 50%;
  animation: flash 1s infinite;
}

.live-stream-close {
  color: var(--body);
  font-size: 18px;
}

.live-stream-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.live-stream-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.live-stream-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 12px;
}

.live-play-circle {
  width: 58px;
  height: 58px;
  background-color: #EF4444;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.live-status-label {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   SITE FOOTER (Aggregator Style)
   ========================================================================== */
.site-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 40px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}

.footer-about-p {
  color: var(--body);
  line-height: 1.6;
}

.footer-social-row {
  display: flex;
  gap: 10px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 1px solid var(--border);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.footer-social-icon:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.footer-cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
}

.footer-cat-list a {
  color: var(--body);
}

.footer-cat-list a:hover {
  color: var(--accent);
}

.footer-app-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-color);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--heading);
}

.footer-app-btn i {
  font-size: 18px;
  color: var(--accent);
}

.footer-app-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-app-subtitle {
  font-size: 8px;
  color: var(--body);
  text-transform: uppercase;
}

.footer-app-title {
  font-size: 11px;
  font-weight: 700;
}

.footer-bottom-strip {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--body);
  font-size: 11px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT SCALING UP (BREAKPOINTS)
   ========================================================================== */

.logo-tagline {
  display: none !important;
}

/* Breakpoint 1: Tablet Devices (>= 768px) */
@media (min-width: 768px) {
  .logo-tagline {
    display: inline-block !important;
  }

  .container {
    max-width: 720px;
  }
  
  .hero-story-card {
    flex: 0 0 48%;
  }
  
  .latest-feed-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .discover-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-cat-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Breakpoint 2: Desktop Devices (>= 1024px) */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0; /* Bottom nav becomes top header */
  }

  .container {
    max-width: 1100px;
  }

  /* Bottom nav conversion: hide bottom, render header options */
  .bottom-nav-bar {
    display: none !important;
  }

  .main-header-bar {
    padding: 16px 0;
    max-width: 1100px;
    margin: 0 auto;
  }

  /* Add desktop navigation inside header */
  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .desktop-nav-menu {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--body);
  }

  .desktop-nav-menu a:hover, .desktop-nav-menu a.active {
    color: var(--accent);
  }

  .search-bar-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0;
  }

  .pill-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0;
  }

  .ticker-container {
    max-width: 1100px;
    margin: 0 auto 16px;
    padding: 0;
  }

  /* Desktop Layout Split */
  .desktop-layout-split {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 32px;
  }

  .desktop-sticky-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-self: start;
  }

  .hero-carousel-container {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 16px;
  }

  .hero-story-card {
    flex: none;
    width: 100%;
  }

  .latest-feed-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
  }

  .footer-col {
    flex: 1;
  }

  .detail-floating-bottom {
    bottom: 24px;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Progress Toast Overlay */
.toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 41, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.toast-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.toast-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.toast-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  transition: all 0.2s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ==========================================================================
   MAIN NAVIGATION TABS (NEWS / OPINION)
   ========================================================================== */
/* Main Tabs Row (FT-style) */
.main-tabs-row {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0 20px;
  gap: 28px;
}

.main-tab {
  background: none;
  border: none;
  padding: 12px 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--body);
  cursor: pointer;
  outline: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  position: relative;
  top: 1px; /* Align active underline exactly overlapping the row's bottom border */
}

.main-tab .tab-indicator {
  font-size: 10px;
  margin-left: 3px;
  opacity: 0.7;
}

.main-tab:hover {
  color: var(--heading);
  border-bottom-color: var(--border);
}

.main-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sub-category links (FT-style) */
.subcat-link {
  background: none;
  border: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--body);
  cursor: pointer;
  padding: 0 2px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.subcat-link:hover {
  color: var(--accent);
}

.subcat-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   INLINE COMPACT CARD AUDIO PLAYER
   ========================================================================== */
.card-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.mini-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
  outline: none;
}

.mini-play:hover {
  transform: scale(1.08);
}

.mini-play:disabled {
  background-color: var(--border);
  cursor: not-allowed;
}

.mini-bar {
  flex-grow: 1;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.mini-progress {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.mini-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-grey);
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
  font-feature-settings: "tnum";
}

/* ==========================================================================
   REDESIGNED NAVIGATION DRAWER & TRENDING SIDEBAR STYLES
   ========================================================================== */

/* Drawer backdrop blur overlay */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 41, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1025;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Redesigned Left Nav Drawer Panel */
.fullscreen-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  background-color: var(--card-bg);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  border-right: 1px solid var(--border);
  z-index: 1030;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.fullscreen-nav-drawer.drawer-open {
  transform: translateX(0);
}

/* Profile header strip */
.drawer-profile-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #4D7BFF 100%);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drawer-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.drawer-profile-name {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}

.drawer-profile-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 10.5px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  align-self: flex-start;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.drawer-profile-banner .drawer-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 16px;
}

.drawer-profile-banner .drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Scrollable list content */
.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-scroll-body::-webkit-scrollbar {
  display: none;
}

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

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.drawer-menu-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--body);
  transition: color 0.25s ease;
}

.drawer-menu-item:hover {
  background-color: var(--accent-tint);
  color: var(--accent);
}

.drawer-menu-item:hover i {
  color: var(--accent);
}

.drawer-menu-item.active {
  background-color: var(--accent-tint);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 17px;
}

.drawer-menu-item.active i {
  color: var(--accent);
}

/* Collapsible categories sub-menu list */
.drawer-sub-menu {
  list-style: none;
  padding-left: 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-sub-menu.expanded {
  max-height: 800px;
  opacity: 1;
  margin-top: 6px;
  margin-bottom: 6px;
}

.collapse-arrow {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.drawer-menu-item.expanded .collapse-arrow {
  transform: rotate(180deg);
}

.drawer-sub-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-sub-item:hover {
  background-color: var(--accent-tint);
  color: var(--accent);
}

.drawer-sub-item.active {
  color: var(--accent);
  font-weight: 700;
  background-color: var(--accent-tint);
}

/* Live TV card inside drawer */
.drawer-watch-live-box {
  padding: 0 8px;
}

.drawer-live-tv-btn {
  width: 100%;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.drawer-live-tv-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* Drawer footer theme switcher & disclaimer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-theme-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading);
}

.drawer-version-info {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--body);
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.drawer-footer-tagline {
  font-size: 11px;
  color: var(--body);
  line-height: 1.45;
  opacity: 0.8;
}

/* Entrance slide/fade animations with delay */
@keyframes slideInItem {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li {
  animation: slideInItem 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(1) { animation-delay: 0.05s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(2) { animation-delay: 0.08s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(3) { animation-delay: 0.11s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(4) { animation-delay: 0.14s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(5) { animation-delay: 0.17s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(6) { animation-delay: 0.20s; }
.fullscreen-nav-drawer.drawer-open .drawer-menu-list > li:nth-child(7) { animation-delay: 0.23s; }


/* ==========================================================================
   REDESIGNED MOST READ / TRENDING SIDEBAR STYLES
   ========================================================================== */

.trending-numbered-block {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.3s ease;
}

.trending-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.trending-header-row::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.trending-header-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-num-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-num-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  background-color: transparent;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

.trending-num-item:hover {
  transform: translateY(-2px);
  background-color: var(--accent-tint);
}

.trending-num-item:hover .trending-num-headline {
  color: var(--accent);
}

.trending-num-item.top-rank {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  background-color: var(--accent-tint-subtle);
}

.trending-num-item.top-rank .trending-rank {
  font-size: 26px;
  font-weight: 900;
}

.trending-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.55;
  flex: 0 0 32px;
  text-align: center;
}

.trending-num-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 40px;
}

.trending-num-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.trending-num-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.trending-num-headline {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.trending-divider {
  height: 1px;
  background-color: var(--border);
  opacity: 0.6;
  margin: 2px 0;
}

/* ==========================================================================
   FINANCIAL TIMES (FT) LAYOUT & TYPOGRAPHY STYLE SYSTEM OVERRIDES
   ========================================================================== */

/* Serif Headlines */
.serif-logo {
  font-family: var(--font-serif) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.card-headline, 
.trending-num-headline, 
.section-title, 
.category-banner-title, 
.mega-header,
.article-title,
.detail-title,
.related-strip-title,
.newsletter-box-title,
.profile-section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

/* Lighter card layout without card shadows, using clean 1px border */
.article-card {
  box-shadow: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
  background-color: var(--card-bg);
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.article-card:hover {
  border-color: var(--accent) !important;
}

/* FT Utility Top-Bar */
.top-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--body);
}
.utility-clock {
  font-weight: 600;
}
.logo-tagline-text {
  font-style: italic;
  font-family: var(--font-serif);
  opacity: 0.85;
}
.utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.utility-link {
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.utility-link:hover {
  color: var(--accent);
}
.utility-subscribe-btn {
  background-color: var(--accent);
  color: #FFFFFF !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.utility-subscribe-btn:hover {
  background-color: var(--accent-hover);
}

/* FT Masthead Main Row */
.masthead-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.masthead-center {
  flex: 1;
  text-align: center;
}
.masthead-center .main-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.masthead-left, .masthead-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Homepage 3-Column Editorial Grid */
.ft-homepage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.lead-col {
  display: flex;
  flex-direction: column;
}
.lead-col .article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.lead-col .card-image-box {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  margin-bottom: 14px;
}
.lead-col .card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-headline {
  font-size: 26px;
  margin: 8px 0 10px;
}
.lead-meta {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}

.secondary-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.secondary-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px !important;
  align-items: flex-start;
}
.secondary-image-box {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.secondary-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.secondary-card .card-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.secondary-headline {
  font-size: 14px;
  margin: 4px 0 6px;
  line-height: 1.35;
}

.right-rail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.right-rail-col .trending-container {
  box-shadow: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
}

/* Labeled Section Separator Rules */
.section-divider-rule {
  display: flex;
  align-items: center;
  margin: 32px 0 18px;
}
.section-divider-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
  margin-left: 12px;
}
.section-divider-rule.small-rule {
  margin: 16px 0 10px;
}
.section-kicker-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Sub-section Dense Grids */
.section-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.section-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.section-card .card-image-box {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.section-card .card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FT Slide-out Mega-Menu Drawer */
.fullscreen-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -320px;
  width: 320px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border);
  z-index: 2000;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1) !important;
}
.fullscreen-nav-drawer.drawer-open {
  transform: translateX(320px) !important;
}

.drawer-header-brand {
  padding: 16px 20px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.drawer-brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
}
.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--body);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.drawer-close-btn:hover {
  color: var(--accent);
}

.drawer-mega-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega-header {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 4px;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mega-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega-links-list a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block;
}
.mega-links-list a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Multi-column mega grid inside drawer on wide desktop viewports */
@media (min-width: 769px) {
  .fullscreen-nav-drawer {
    width: 620px;
    left: -620px;
  }
  .fullscreen-nav-drawer.drawer-open {
    transform: translateX(620px) !important;
  }
  .drawer-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
}

/* Mobile & Tablet Responsiveness overrides */
@media (max-width: 1024px) {
  .ft-homepage-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .top-utility-bar {
    display: none;
  }
  .ft-homepage-grid {
    grid-template-columns: 1fr;
  }
  .section-grid-layout {
    grid-template-columns: 1fr;
  }
  .masthead-main-row {
    padding: 10px 12px;
  }
  .masthead-center .main-logo {
    font-size: 21px;
    letter-spacing: 0.2px;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* FT-Style Breadcrumb Trail */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--body);
  margin-bottom: 14px;
}

.breadcrumb-trail .bc-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-trail .bc-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-trail .bc-separator {
  color: var(--body);
  opacity: 0.6;
  font-size: 12px;
}

.breadcrumb-trail .bc-current {
  color: var(--heading);
  font-weight: 700;
}

/* Breadcrumb active/last segment accent-blue coloring */
.breadcrumb-trail .active-crumb {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Dynamic Dropdown Select inside Breadcrumbs */
.bc-dropdown-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  background-color: var(--circle-bg);
  border-radius: 4px;
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.bc-dropdown-select {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  cursor: pointer;
  outline: none;
  padding-right: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.bc-chevron-arrow {
  font-size: 8px;
  color: var(--accent);
  position: absolute;
  right: 6px;
  pointer-events: none;
}

/* Slide-out Menu wrapping rules (2-3 columns on desktop) */
@media (min-width: 769px) {
  .opinion-mega-col {
    grid-column: span 2;
  }
  .opinion-sub-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 16px !important;
  }
}

/* Markets Ticker Bar (Dark) */
.top-markets-ticker-bar {
  background-color: #111111;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #222222;
}

.ticker-content {
  display: flex;
  gap: 20px;
  animation: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-val {
  color: #CCCCCC;
}

.ticker-change {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.ticker-change.up {
  background-color: #10B981; /* Green */
  color: #FFFFFF;
}

.ticker-change.down {
  background-color: #EF4444; /* Red */
  color: #FFFFFF;
}

/* Subscribe Strip */
.top-signin-subscribe-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-signin-subscribe-strip a {
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-signin-subscribe-strip a:hover {
  color: var(--accent);
}

.top-signin-subscribe-strip .subscribe-highlight {
  color: var(--accent);
  font-weight: 700;
}

.top-signin-subscribe-strip .strip-divider {
  margin: 0 10px;
  color: var(--border);
}

/* FT Hero Lead layout rules */
.ft-lead-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #990F3D; /* Authentic FT Magenta */
  margin-bottom: 8px;
  display: block;
}

.ft-lead-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

.ft-lead-standfirst {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.45;
  margin-bottom: 16px;
}

.ft-secondary-block {
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.ft-secondary-headline {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin: 4px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ft-secondary-headline:hover {
  color: var(--accent);
}

/* Visual Triptych featured row */
.ft-triptych-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.ft-triptych-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

/* Highlighted Essay band */
.ft-essay-band {
  background-color: var(--circle-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  margin: 24px 0;
}

.ft-essay-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #990F3D;
  margin-bottom: 8px;
  display: block;
}

.ft-essay-headline {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  max-width: 500px;
  margin: 0 auto 12px;
  cursor: pointer;
}

.ft-essay-headline:hover {
  color: var(--accent);
}

/* Editor's Picks Styles */
.editors-picks-section {
  margin-top: 24px;
}

.ft-pick-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.ft-pick-item:last-child {
  border-bottom: none;
}

.ft-quote-glyph {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 0;
  vertical-align: -4px;
  margin-right: 4px;
  font-weight: 900;
}

.ft-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ft-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.ft-author-name {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--body);
}

/* Markets Data Dashboard Grid Styles */
.markets-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.markets-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.markets-table th, .markets-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.markets-table th {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--body);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.markets-table td.val-cell {
  font-weight: 700;
  color: var(--heading);
}

.markets-table td.change-cell {
  text-align: right;
  font-weight: 800;
}

.markets-table td.change-cell.positive {
  color: #10B981;
}

.markets-table td.change-cell.negative {
  color: #EF4444;
}

/* AI Summary Block */
.ai-summary {
  background-color: var(--circle-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 18px 0;
  font-family: var(--font-sans);
}

.ai-summary-head {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-summary-head .ai-tag {
  background-color: var(--border);
  color: var(--body);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-summary-tldr {
  font-size: 14px;
  line-height: 1.5;
  color: var(--heading);
  margin-bottom: 12px;
  font-weight: 500;
}

.ai-summary-points {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-summary-points li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--body);
  list-style-type: disc;
}

/* Fullscreen Search Overlay */
.search-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg, rgba(247, 244, 239, 0.98)); /* Salmon-ish light mode */
  z-index: 2000;
  display: none;
  opacity: 0;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .search-fullscreen-overlay {
  background-color: rgba(18, 18, 18, 0.98);
}

.search-fullscreen-overlay.active {
  display: flex;
  opacity: 1;
}

.search-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--heading);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-close-btn:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.search-box-form {
  width: 100%;
  max-width: 720px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box-input:focus {
  border-color: var(--accent);
}

.search-box-helper {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Live Results Styling */
.search-live-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 10px;
}

/* Scrollbar styling for results */
.search-live-results::-webkit-scrollbar {
  width: 6px;
}
.search-live-results::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Live Result Item */
.search-result-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.search-result-thumb {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.search-result-headline {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-cat {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.search-result-source {
  font-weight: 600;
  color: var(--text-grey);
}

/* Empty State / Hint state inside modal */
.search-hint-box {
  padding: 20px;
  text-align: center;
  background-color: var(--circle-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

.search-hint-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.search-hint-text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.4;
}

.search-hint-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-hint-tag {
  background-color: var(--border);
  color: var(--body);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-hint-tag:hover {
  background-color: var(--accent);
  color: white;
}

/* Personalise Feed Overlay Modal */
.personalise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.personalise-overlay.active {
  opacity: 1;
}

.personalise-card {
  background-color: var(--card-bg, #FFF1E5);
  border: 1px solid var(--border, #CCCCCC);
  border-radius: var(--radius-card, 8px);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow, 0 12px 32px rgba(0,0,0,0.2));
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.personalise-overlay.active .personalise-card {
  transform: scale(1);
}

.personalise-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading, #1A1A1A);
  margin: 0;
}

.personalise-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--body, #333333);
  margin: 0;
  line-height: 1.45;
}

.personalise-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}

.personalise-checkbox-label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading, #1A1A1A);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  transition: background 0.2s ease;
}

.personalise-checkbox-label:hover {
  background: rgba(0, 0, 0, 0.07);
}

.personalise-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-personalise-save {
  background-color: var(--accent, #0D7680);
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.btn-personalise-cancel {
  background: transparent;
  color: var(--body, #555555);
  border: 1px solid var(--border, #CCCCCC);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   SOCIAL MEDIA FOLLOW & SHARE SYSTEM (INDIA'S PULSE)
   ========================================================================== */

/* Circular Social Follow Icon Row */
.social-follow-row, .footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-icon, .social-follow-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--circle-bg, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  color: var(--heading, #1A1A1A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-icon:hover, .social-follow-icon:hover {
  background-color: var(--accent, #0D7680);
  border-color: var(--accent, #0D7680);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 118, 128, 0.25);
}

/* Article Detail Share Row & Follow Row */
.article-share-row, .article-follow-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 12px 16px;
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 8px;
  flex-wrap: wrap;
}

.article-share-label, .article-follow-label {
  font-family: var(--font-sans, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-grey, #666666);
  margin-right: 4px;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background-color: var(--circle-bg, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border, #DDD);
  color: var(--heading, #1A1A1A);
  font-family: var(--font-sans, sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background-color: var(--accent, #0D7680);
  border-color: var(--accent, #0D7680);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.share-btn i {
  font-size: 13.5px;
}

/* Copy Link Toast Alert */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--heading, #111111);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

