/* -------------------------------------------------------------
 * Custom Stylesheet for Explore Andhra Pradesh Mobile Homepage
 * Designed to accurately replicate the reference screenshot.
 * ------------------------------------------------------------- */

/* Font & Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f3f6f8; /* Soft background on desktop to frame the app wrapper */
  color: #102942;
  min-height: 100vh;
}

/* App Wrapper: Restricts width on desktop to mimic mobile screen */
.app-wrapper {
  max-width: 800px; /* standard desktop-first boundary for optimal screenshot matching */
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Hiding utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* -------------------------------------------------------------
 * Color Variables & Utilities
 * ------------------------------------------------------------- */
:root {
  --primary-green: #078346;
  --dark-green: #096b3d;
  --navy: #102942;
  --blue: #102942;
  --purple: #673ab7;
  --orange: #ef9800;
  --yellow: #ffc739;
  
  /* Light Theme Card BG Colors */
  --light-green: #f4fbf6;
  --light-blue: #f4f8fd;
  --light-purple: #f8f6fc;
  --light-yellow: #fffaf0;
  --light-gray: #f8f9fa;
  
  --border: #e4e7e8;
  --text-muted: #5f6670;
  --white: #ffffff;
}

.text-green { color: var(--primary-green) !important; }
.text-green-dark { color: var(--dark-green) !important; }
.text-blue { color: var(--blue) !important; }
.text-blue-dark { color: #0d4b91 !important; }
.text-purple { color: var(--purple) !important; }
.text-orange { color: var(--orange) !important; }
.text-orange-dark { color: #cc6a00 !important; }

.bg-light-green { background-color: var(--light-green) !important; }
.bg-light-blue { background-color: var(--light-blue) !important; }
.bg-light-purple { background-color: var(--light-purple) !important; }
.bg-light-yellow { background-color: var(--light-yellow) !important; }

/* -------------------------------------------------------------
 * 1. Top Header Component
 * ------------------------------------------------------------- */
.app-header {
  padding: 14px 20px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

.header-icon-btn {
  color: var(--navy);
  font-size: 26px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.header-icon-btn:hover {
  opacity: 0.7;
}

.header-title-container {
  flex-grow: 1;
}

.explore-tag {
  color: var(--primary-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.brand-title {
  color: var(--navy);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 3px !important;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #dc3545;
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------
 * 2. Main Hero Banner
 * ------------------------------------------------------------- */
.hero-banner-container {
  padding: 16px;
}

.hero-banner {
  border-radius: 20px;
  padding: 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  height: 250px;
  display: flex;
  justify-content: space-between;
}

/* Hero Carousel & Overlay Styles */
.hero-carousel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide-text {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 65%;
  z-index: 2;
  color: var(--white);
  text-align: left;
}

.hero-left-content {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Static concepts go to the bottom */
  z-index: 2;
  position: relative;
}

.hero-build-text {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  display: block;
}

.hero-swarna-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-year-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.2;
}

.hero-vision-text {
  font-size: 9px;
  font-weight: 500;
  margin: 6px 0 12px 0;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Hero Concepts Grid */
.hero-concepts {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.concept-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.concept-icon-wrapper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.concept-label {
  font-size: 7px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.9;
}

.hero-right-content {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
  position: relative;
  padding-bottom: 8px;
}

.leader-portraits-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.leader-portraits-container .leader-portrait-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #102942;
}

.leader-portraits-container .leader-portrait-wrapper:not(:first-child) {
  margin-left: 10px;
}

.leader-portrait-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  margin-bottom: 8px;
}

.leader-portrait-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.leader-portrait-svg.bg-deputy {
  background-color: #ef9800;
}

.leader-portrait-svg.bg-minister {
  background-color: #078346;
}

.leader-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-message {
  text-align: center;
  width: 100%;
}

.lead-transform {
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
}

.inspire-text {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--yellow);
}

/* -------------------------------------------------------------
 * 3. Floating Quick Access Card
 * ------------------------------------------------------------- */
.quick-access-panel {
  padding: 0 16px;
  position: relative;
  z-index: 10;
  margin-top: -36px; /* float effect overlap onto hero */
}

.quick-menu-grid {
  background-color: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(16, 41, 66, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 16px 10px 18px 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #111827;
  text-align: center;
  padding: 0 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quick-item:hover {
  transform: translateY(-2px);
  color: #111827;
}

.quick-item:active {
  transform: scale(0.96);
}

.quick-icon-box {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quick-label {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  text-align: center;
}

.quick-divider {
  width: 1px;
  height: 52px;
  background-color: #eef2f6;
  align-self: center;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
 * 4. Latest Update Bar
 * ------------------------------------------------------------- */
.update-strip-container {
  padding: 14px 16px 6px 16px;
}

.update-strip {
  background: linear-gradient(90deg, #e8f8f0 0%, #edf9f2 100%);
  border: 1px solid #c9ebd7;
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow: 0 2px 6px rgba(0, 135, 90, 0.04);
}

.update-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00875a;
  font-size: 17px;
  flex-shrink: 0;
}

.update-title {
  color: #006b3e;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.update-separator {
  display: inline-block;
  width: 1px;
  height: 22px;
  background-color: #b0e0c5;
  margin: 0 14px;
  flex-shrink: 0;
}

.update-text-wrapper {
  overflow: hidden;
  height: 32px;
  position: relative;
  flex-grow: 1;
}

.update-news-list {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-news-item {
  flex-shrink: 0;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  line-height: 1.25;
}

.update-text {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-chevron-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #bfe8d1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 10px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.update-chevron-circle:hover {
  background-color: #aae0c2;
  color: #005634;
  transform: scale(1.05);
}

/* -------------------------------------------------------------
 * Section Global Styles
 * ------------------------------------------------------------- */
.section-container {
  padding: 16px;
}

.section-header {
  margin-bottom: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0a1931;
  letter-spacing: -0.3px;
}

.view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: #00875a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s;
}

.view-all-link:hover {
  color: #006b43;
  opacity: 0.9;
}

/* -------------------------------------------------------------
 * 5. Opportunities for You - 4 Cards in a Row
 * ------------------------------------------------------------- */
.opportunities-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.opportunity-card-link {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.opportunity-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.opportunity-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Opportunities Pagination Indicator Dots */
.opt-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.opt-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
}

.opt-dot.active {
  width: 18px;
  border-radius: 10px;
  background-color: #00965e;
}

@media (max-width: 576px) {
  .opportunities-cards-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .quick-menu-grid {
    padding: 12px 6px 14px 6px;
    border-radius: 18px;
  }
  .quick-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }
  .quick-label {
    font-size: 9.5px;
    min-height: 22px;
  }
  .quick-divider {
    height: 38px;
  }
}

/* -------------------------------------------------------------
 * 6. Andhra Pradesh at a Glance Statistics
 * ------------------------------------------------------------- */
.stats-panel-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 12px;
}

.stats-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
}

.stat-icon-wrapper {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.stat-label {
  font-size: 7.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
}

/* -------------------------------------------------------------
 * 7. Trending in AP Section
 * ------------------------------------------------------------- */
.trending-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.trending-scroll-container::-webkit-scrollbar {
  display: none;
}
.trending-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.trending-card {
  flex: 0 0 115px;
  height: 145px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.trending-card-title {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
}

/* -------------------------------------------------------------
 * 8. Fixed Bottom Navigation
 * ------------------------------------------------------------- */
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  background-color: var(--white);
  box-shadow: 0 -4px 20px rgba(16, 41, 66, 0.08);
  border-top: 1px solid var(--border);
  height: 72px;
  z-index: 999;
  border-radius: 18px 18px 0 0;
  display: none;
}

.nav-menu {
  height: 100%;
  padding: 0 8px;
  position: relative;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  width: 18%;
  transition: color 0.2s;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary-green);
}

/* Center Floating Map Button */
.center-nav-action-wrapper {
  position: relative;
  width: 22%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-nav-action {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #096b3d 0%, #078346 50%, #1769c2 100%);
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(9, 107, 61, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -24px; /* overlap upwards */
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 8px;
}

.center-nav-action:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(9, 107, 61, 0.2);
}

.ap-map-nav-icon {
  width: 60px;
  height: 60px;
  /*object-fit: contain;*/
  /*filter: brightness(0) invert(1);*/
}

/* -------------------------------------------------------------
 * Responsive Layout / Tablet & Desktop scaling
 * ------------------------------------------------------------- */
@media (min-width: 576px) {
  .hero-banner {
    height: 300px;
  }
  .hero-swarna-text, .hero-year-text {
    font-size: 30px;
  }
  .hero-build-text {
    font-size: 15px;
  }
  .hero-vision-text {
    font-size: 12px;
  }
  .concept-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .concept-label {
    font-size: 9px;
  }
  .leader-portrait-wrapper {
    width: 84px;
    height: 84px;
  }
  .lead-transform {
    font-size: 11px;
  }
  .inspire-text {
    font-size: 13px;
  }
  .quick-label {
    font-size: 11px;
  }
  .quick-icon-box {
    font-size: 26px;
    height: 34px;
  }
  .stat-value {
    font-size: 15px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .opportunities-row-scroll {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .opportunity-card {
    flex: none;
    height: 160px;
  }
  .trending-scroll-container {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .trending-card {
    flex: none;
    height: 180px;
  }
}

@media (min-width: 801px) {
  /* Give body a clean presentation environment for desktop */
  body {
    padding: 30px 0;
  }
  .app-wrapper {
    border-radius: 20px;
    height: 92vh;
    min-height: 800px;
  }
  .bottom-navigation {
    position: absolute; /* Stick to bottom of .app-wrapper rather than viewport */
    border-radius: 18px 18px 20px 20px;
  }
}
.footer-section {
    background-color: #102942;
}
.footer-section .update-strip-container {
    padding: 0;
}


@media (max-width: 768px) {

.bottom-navigation {
    display: block;
}

}

/* -------------------------------------------------------------
 * 9. Custom Sidebar Offcanvas Menu & Notification Popup Styles
 * ------------------------------------------------------------- */

/* Scroll lock */
body.scroll-locked {
  overflow: hidden !important;
  height: 100vh;
}
.app-wrapper.scroll-locked {
  overflow: hidden !important;
  height: 92vh;
}
@media (max-width: 800px) {
  .app-wrapper.scroll-locked {
    height: 100vh;
  }
}

/* Sidebar Overlay */
.custom-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(16, 41, 66, 0.55);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Sidebar Menu */
.custom-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1060;
  box-shadow: 6px 0 24px rgba(16, 41, 66, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.custom-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-sidebar.active {
  transform: translateX(0);
}

/* Sidebar Styling Details */
.custom-sidebar .sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background-color: var(--white);
  height: 72px;
}

.custom-sidebar .sidebar-header .brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.custom-sidebar .sidebar-header .btn-close {
  box-shadow: none;
}

.custom-sidebar .sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.custom-sidebar .sidebar-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-sidebar .sidebar-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.custom-sidebar .sidebar-menu-item:hover,
.custom-sidebar .sidebar-menu-item.active {
  background-color: var(--light-green);
  color: var(--primary-green);
  border-left-color: var(--primary-green);
}

.custom-sidebar .sidebar-menu-item i {
  font-size: 18px;
}

.custom-sidebar .sidebar-menu-item .sidebar-badge {
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.custom-sidebar .sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  background-color: var(--light-gray);
  color: var(--text-muted);
}

/* Desktop-specific placement inside app-wrapper boundary */
@media (min-width: 801px) {
  .custom-sidebar-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
  }
  
  .custom-sidebar {
    position: absolute;
    width: 320px;
    height: 100%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
}

/* Notification Popup Styles */
.notification-popup {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 320px;
  background-color: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 41, 66, 0.15);
  border: 1px solid var(--border);
  z-index: 1070;
  display: none;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.notification-popup.active {
  display: flex;
}

.notification-popup .popup-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background-color: var(--white);
}

.notification-popup .popup-header h6 {
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  margin: 0;
}

.notification-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background-color: var(--light-gray);
  color: inherit;
}

.notification-item.unread {
  background-color: var(--light-blue);
}

.notification-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.notification-item-content {
  flex: 1;
}

.notification-item-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.3;
}

.notification-item-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.notification-item-time {
  font-size: 8.5px;
  color: #a0a6b0;
  font-weight: 600;
}

.unread-badge-dot {
  width: 6px;
  height: 6px;
  background-color: #dc3545;
  border-radius: 50%;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.notification-popup .popup-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid var(--border);
  background-color: var(--light-gray);
}

.notification-popup .popup-footer a {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.notification-popup .popup-footer a:hover {
  color: var(--navy);
}

/* Responsive adjustment for small Viewports */
@media (max-width: 360px) {
  .notification-popup {
    width: 290px;
    right: -10px;
  }
}

/* Notifications Page Styles */
.notifications-page-container {
  padding: 16px;
  flex: 1;
  margin-bottom: 80px; /* Space for bottom nav */
}

.notifications-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
}

.notifications-page-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notifications-page-list .notification-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
}

.notifications-page-list .notification-item.unread {
  background-color: var(--light-blue);
}
.trending-card-body h3.trending-card-title {
    position: unset;
    color: #000;
    font-weight: 400;
    font-size: 14px;
}