* {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;

  animation: fadeInPage 0.6s ease-in;

  
}

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

/* headings */
h1, h2, h3 {
  letter-spacing: 0.5px;
}

h1 {
  font-weight: 700;
}


.page-subtitle {
  text-align: center;
  margin: 8px auto 25px;
  max-width: 600px;
  font-size: 1rem;
  opacity: 0.75;
  color: #333;
}


/* spacing */
section {
  margin-bottom: 30px;
}


/* ================= General Page Layout - all pages ================= */

.page-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  text-align: center;
}

.page-bg {
   background: #f5f7f6;
}


/* Frosted container */
.frosted-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;

  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;

  /* Frosted glass effect */
  background: #ffffff;

  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ================= Navigation ================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #eee;

  box-sizing: border-box;
}

.main-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Logo + Site Name */
.main-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 38px; /* adjust size */
  width: auto;
}

.main-nav .logo h2 {
  font-size: 1.2rem;
  color: #3f8d86;
  margin: 0;
}

/* Nav links container */
.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

/* Nav buttons (pill style) */
.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav .nav-links li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;

  background: #a0a64a;
  color: white;
  text-decoration: none;

  font-size: 0.85rem;
  font-weight: 500;

  transition: all 0.25s ease;
  white-space: nowrap;
}

.main-nav .nav-links li a:hover {
  background: #f4978e;
  transform: translateY(-2px);
}

.main-nav .nav-links li a.active {
  background: #f4978e;
}


/* ================= Landing Page Hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 90px 20px 40px; /* space for nav + breathing room */
  box-sizing: border-box;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;

  text-align: center;
  color: white;

  width: min(900px, 92%);  /* key improvement */
  padding: clamp(18px, 3vw, 32px);

  background: #a8b9a8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);

  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
  margin-bottom: 22px;
}

/* landing page button */

.btn-primary {
  display: inline-block;
  background-color: #f4978e;
  color: white;
  text-decoration: none;

  padding: clamp(10px, 2vw, 15px) clamp(18px, 3vw, 30px);
  border-radius: 10px;

  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);

  transition: all 0.25s ease;
}

.btn-primary:hover {
   background-color: #e06b5a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.logo-img {
  height: 30px;
}

/* ================= Hero Animations ================= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= Explore Page Grid ================= */
.frosted-container h1 {
  font-size: 1.8rem;
  color: #222;
  margin: 0;
}

.page-header .page-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 500px;
  line-height: 1.5;
}


/* ================= State Page================= */

/* ================= Individual States Page================= */
.page-header {
  text-align: center;
  color: #222;

  margin: 0px auto 10px;;
  padding: 10px 20px;

  max-width: 750px;

  background: transparent;
  

  border-radius: 16px;
  border: none;

  box-shadow: none;
}

.page-header h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.page-header::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 15px auto 0;
  background: #a0a64a;
  border-radius: 10px;
  opacity: 0.7;
}


.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 5px;
}


.empty-state {
  color: #a0a64a;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

/* ================= State Search Bar ================= */
.state-search {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.state-search input {
  width: 100%;
  max-width: 900px;
  padding: 14px 18px;
  border-radius: 999px; /* pill shape */
  border: 1px solid #ddd;

  font-size: 1rem;
  color: #333;

  background: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);

  transition: all 0.3s ease;
}

.state-search input::placeholder {
  color: #999;
}

.state-search input:focus {
  outline: none;
  border-color: #a0a64a;
  box-shadow: 0 0 12px rgba(160, 166, 74, 0.6);
  transform: translateY(-1px);
}


/* ================= States Grid ================= */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  width: 100%;
}


/* ================= State Cards ================= */
.state-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;

  background: #ffffff;
  border-radius: 10px;


  border: 1px solid rgba(255, 255, 255, 0.15);

  color: white;

  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

 
/* IMAGE */
.state-card img {
   width: 100%;
  height: 110px;        
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* TITLE */
.state-card span {
  padding: 10px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
  color: #333;
}

/* HOVER EFFECT */
.state-card:hover {
  transform: translateY(-4px);
  background: rgba(160,166,74,0.18);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* IMAGE ZOOM ON HOVER */
.state-card:hover img {
  transform: scale(1.08);
}

/* ================= State Page Container ================= */
.state-frosted-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-width: 1400px;
  margin: 10px;

  height: auto;          /* let it expand naturally */
  min-height: calc(100vh - 80px); /* optional to fill viewport */
  overflow: visible;     /* allow page scrolling */
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ================= Breadcrumb ================= */
.breadcrumb {
  align-self: flex-start;
  width: 100%;
  text-align: left;
  font-size: 14px;
  margin: 0px 0 20px;
  color: #333;
}

.breadcrumb a {
  color: #333; 
  text-decoration: none;
}

.breadcrumb span {
  color: #333;
}

.crumb-sep {
  margin: 0 6px;
  color: #333;
}

/* ================= Content Wrapper: Sidebar + Grid ================= */
.content-wrapper {
  display: flex;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
}

/* ================= Sidebar ================= */
.state-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding-right: 15px;
  border-right: 1px solid rgba(255,255,255,0.2);

  position: sticky;
  top: 20px; /* matches navbar height */
  align-self: stretch;
  height: auto;
  max-height: calc(100vh - 100px);
  overflow-y: auto;

  background: #e7efe7;
  border-radius: 10px;
  border: none;
}

.state-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.state-sidebar ul li {
  margin-bottom: 10px;
}

.state-sidebar ul li a {
  text-decoration: none;
  color: #333;;
  font-weight: 500;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.state-sidebar ul li a:hover,
.state-sidebar ul li a.active {
  background: rgba(160, 166, 74, 0.8);
  color: white;
}

.state-sidebar ul li a:hover {
  padding-left: 12px;
  background: #a0a64a;
  color: white;
}

.sidebar-title {
  color: #a0a64a;
  margin-bottom: 10px;
  margin-top: 10px;
  padding-left: 8px;
  font-size: 0.9rem;
}


.state-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= CATEGORY GROUPING ================= */
.category-section h2 {
  margin: 0;
  padding-left: 2px;
  color: #a0a64a;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: stretch;
  align-items: start;
}

/* ================= CITY PAGE ================= */
.city-page .frosted-container {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  max-width: 1300px;
}

.city-header {
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;

  padding: 30px 20px;
  border-radius: 16px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.city-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
 
}

.city-header::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin: 12px auto 0;
  background: #a0a64a;
  border-radius: 10px;
}

.city-container {
  gap: 25px;
}

.city-main {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ================= city save button ================= */
.city-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #a0a64a, #f4978e);
  color: white;
  border: none;

  padding: 12px 22px;
  border-radius: 999px;

  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  filter: brightness(1.05);
}

/* ================= City Cards Grid ================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  align-items: stretch; 

  grid-auto-rows: 1fr;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔥 FIXES uneven layout */

  height: 100%; /* ensures equal height in grid */
  min-height: 100%;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border-radius: 16px;
  padding: 18px;

  text-align: center;
  color: white;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s ease;
}

.category-section > h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  letter-spacing: 0.3px;

  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: black;
}

.category-section > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 8px;
  background: #a0a64a;
  border-radius: 10px;
}

.category-card h3 {
  min-height: 2.6em;
  font-size: 0.60rem; 
  margin-bottom: 8px;
}

.category-card p {
  min-height: 4em;
  font-size: 0.80rem;
  opacity: 0.75;
  margin-bottom: 15px;
}

.category-card span {
  margin-top: auto;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #a0a64a;
  font-size: 0.8rem;
}

.category-card:hover {
  transform: translateY(-4px);
  background: rgba(160,166,74,0.18);
  border-color: rgba(160,166,74,0.4);
}

.category-card::before {
  content: "";
  width: 40px;
  height: 3px;
  background: #a0a64a;
  border-radius: 10px;
  margin: 0 auto 10px;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 25px;
  border-radius: 18px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);

}

.category-section:not(:last-child) {
  position: relative;
}

.category-section:not(:last-child)::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 30px;
  background: rgba(255,255,255,0.08);
}



/* =================  ================= */

.states-grid::-webkit-scrollbar {
  width: 6px;
}

.states-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}


/* ================= CATEGORY and EXPLORE background generic css ================= */
.explore-page,
.city-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ================= subcategory card page ================= */

.subcategory-page .page-layout {
   max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

body.subcategory-page .frosted-container {
  max-width: 1300px;
  min-height: 70vh;
  margin: 80px auto 30px;
  padding: 30px;

  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  text-align: left;
  align-items: stretch;
}

body.subcategory-page {
  background: #f5f7f6; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.subcategory-page main {
  flex: 1;
}

#subcategoryContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 5px;
  grid-auto-rows: 1fr;
}

.subcategory-header {
  text-align: center;
  margin-bottom: 10px;
}

/* ================= subcategory detail cards ================= */
.details-list {
   display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-card {
  display: flex;
  flex-direction: column; 
  height: 100%;  
  border-radius: 14px;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #eee;

  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}



.detail-card h3 {
  color: #222;
  margin: 0;
  font-size: 1.05rem;
}

.detail-card p {
  color: #555;
  margin: 4px 0;
  line-height: 1.4;
}

.detail-card a {
  margin-top: 6px;
  display: inline-block;
  color: #3f8d86;
  text-decoration: none;
  font-weight: 500;
}

.detail-card a:hover {
  text-decoration: underline;
}

.detail-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  flex: 1;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}



/* ================= subcategory intro css ================= */

.intro-section {
   width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-card {
   width: 100%;
  background: #ffffff;

  border-radius: 12px;
  border: 1px solid #eee;

  padding: 18px 20px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro-card h2 {
  margin-bottom: 8px;
  color: #a0a64a;
}


/* ================= Scrollbar ================= */
/* Chrome, Edge, Safari */
.state-sidebar::-webkit-scrollbar {
  width: 6px;
}
.state-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* Firefox */
.state-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}


/* ================= LOCAL INSIGHTS ================= */


.insights-header {
  text-align: center;
  margin-bottom: 30px;
}

/* ================= local insights page hero image ================= */

.insights-hero {
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  margin-bottom: 10px;
  position: relative;
}

.insights-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.insights-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  color: white;
}

.insights-hero-overlay h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.insights-hero-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ================= local insights page content and layout ================= */

.insights-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

.insights-page {
  max-width: 1200px;
  margin: 100px auto 60px; /* centers page + pushes below nav */
  padding: 0 20px;
  background: transparent;
}

.insights-section {
  background: rgba(255,255,255,0.01);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.insights-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-right::before {
  content: "Community Feed";
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #a0a64a;
}

.page-intro {
  text-align: center;
  color: black;
  margin: 10px auto 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 700px;
}


.info-box { /* how it works section */
  background: #a0a64a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-box h3 {
  margin-bottom: 12px;
  color: white;
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  font-size: 0.95rem;
}

.info-box ul li {
  text-align: center;
}



/* Form + section layout */
#community-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: black;

  background: rgba(255,255,255,0.1); /* optional but improves readability */
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#community-tips h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.form-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

#tipForm button {
  width: 100%;
}

/* Inputs + selects */
#community-tips textarea,
#community-tips select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
  color: #333;
  backdrop-filter: blur(8px);
  font-size: 1rem;
}

/* Button styling */
#community-tips button {
  padding: 10px;
  border-radius: 10px;
  background-color: #a0a64a;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: none;
   margin-top: 6px;
}

#community-tips button:hover {
  background-color: #f4978e;
}

#tipForm {
  background: rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

#tipsList {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 15px;
  background: white;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tip-content p {
  margin: 5px 0;
}

.tip-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #a0a64a;
}

.tip-card button.delete-btn {
  background: #f4978e;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.tip-card button.delete-btn:hover {
  background: #e06b5a;
}

#filterState,
#filterCategory {
  width: 100%;
  padding: 10px 12px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(0,0,0,0.25);
  color: white;

  backdrop-filter: blur(8px);
  font-size: 0.95rem;

  transition: all 0.25s ease;
}

#filterState:hover,
#filterCategory:hover {
  border-color: #a0a64a;
}

/* ================= voting ================= */
.vote-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-column button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.vote-column div {
  font-weight: bold;
}



/* ================= about page ================= */

.hero-about {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('Images/abouthero.webp') center/cover no-repeat; /* replace with your hero image */
    color: white;
    text-align: center;
    padding-top: 60px; 
}

.hero-about-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 100%;
  transform: translateY(10%);
}

.hero-about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.2)
    );
    
}


.hero-about h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-about-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ================= Main About Container ================= */
.about-container {
    max-width: 1000px;
    margin: 40px auto 80px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Sections */
.about-container section {
    padding: 24px;
    background: rgba(160,166,74,0.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.about-container section:first-child {
  background: linear-gradient(
    135deg,
    rgba(160,166,74,0.25),
    rgba(142, 204, 185, 0.25)
  );
  border-left: 4px solid #f4978e;
}

.about-container h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #3f8d86;
}

.about-container p {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 15px;
}

/* Lists */
.about-container ul {
    list-style: disc;
    padding-left: 20px;
}

.about-container li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: white;
}

/* readability*/
.about-container p,
.about-container li {
  color: black;
}


/* Hover effect for section */
.about-container section:hover {
    background: rgba(160,166,74,0.25);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* section separation */
.about-container section:not(:last-child)::after {
  content: "";
  display: block;
  margin-top: 20px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ================= Main About Cards ================= */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.about-card {
  background: #a8b9a8;
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 20px;

  border: 1px solid rgba(255,255,255,0.15);

  transition: all 0.25s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.about-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* call to action button */
.about-cta {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(244,151,142,0.25),
    rgba(160,166,74,0.25)
  );
  border: 1px solid rgba(255,255,255,0.2);
}

.about-cta h2 {
  font-size: 2rem;
}

/* ================= Profile Container ================= */
.profile-container {
    max-width: 1000px;
    margin: 100px auto 60px auto; /* push below nav */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: rgba(255,255,255,0.1); /* frosted container */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.profile-container section {
  background: rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 25px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-container section p,
.profile-container section h2 {
  color: #333;
}


/* ================= Profile Header ================= */
.profile-header {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(160,166,74,0.3),
    rgba(255,255,255,0.4)
  );
  color: #333;
  border-radius: 14px;
  padding: 30px 20px;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #a0a64a;
    margin-bottom: 10px;
}

.profile-header p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
}

.profile-main {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 30px;
}

/* ================= Profile Stats ================= */

.profile-stats {
    display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;  
    
}

.stat-card {
    background: #a0a64a;
    border-radius: 15px;
    padding: 20px 30px;
    min-width: 150px;
    text-align: center;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;

    flex: 1 1 220px;   
    max-width: 300px;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
    background: #f4978e;
    transform: translateY(-3px);
}

/* Stat text */
.stat-card p {
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 5px;
}

/* ================= Quick Actions ================= */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  text-align: center;
  background: rgba(255,255,255,0.7);
}

.quick-actions h2 {
    font-size: 1.8rem;
    color: #a0a64a;
    margin-bottom: 10px;
}

.quick-actions button {
    padding: 14px;
    background: #a0a64a;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    font-size: 1rem;
}

.quick-actions button:hover {
    background: #f4978e;
    transform: translateY(-2px);
}

/* ================= Saved Locations ================= */
.saved-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,255,255,0.7);
}

.saved-section h2 {
    font-size: 1.8rem;
    color: #a0a64a;
    margin-bottom: 15px;
}

#savedLocationsList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Individual saved location card */
.saved-card {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.saved-card:hover {
    background: rgba(160,166,74,0.15);
    transform: translateY(-4px) scale(1.02);
}


/* ================= Footer ================= */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 40px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #2f6f68;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.70rem;
  line-height: 1.4;
  box-sizing: border-box;

  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.site-footer a {
  text-decoration: none;
  color: #2f6f68;
  margin-left: 15px;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-footer a:hover {
  color: #f4978e;
  transform: translateY(-1px);
}

.footer-left img {
  width: 20px; /* icon size */
  height: 20px;
  margin-right: 10px;
}

.footer-left a {
  display: inline-block;
}

.footer-center {
  text-align: center;
  flex: 1;
  opacity: 0.85;
  font-weight: 500;
}

.footer-right {
  display: flex;
  gap: 16px;
}

/* ================= Mobile Responsive ================= */


/* ================= GLOBAL SAFETY ================= */
img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

/* ================= HAMBURGER (DESKTOP HIDDEN) ================= */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* ================= NAV RESPONSIVENESS ================= */
@media (max-width: 768px) {

  .main-nav {
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
  }

    .main-nav .nav-links {
    display: none;
    flex-direction: column;

    position: absolute;
    top: 70px;
    left: 0;
    right: 0;

    width: 100%;
    padding: 20px;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eee;
  }

  .main-nav .nav-links.active {
    display: flex;
  }


  /* HERO */
  .hero {
    min-height: 85vh;
    padding: 100px 16px 30px;
  }

  .hero-content {
    width: 95%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }


  .insights-layout {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 16px;
  }

  .footer-right {
    flex-direction: column;
  }

  /* STATE PAGE */
  .state-search input {
    width: 90%;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .state-sidebar {
    width: 100%;
    position: relative;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
  }

  /* SUBCATEGORY PAGE */

  .detail-card img {
    width: 100%;
    height: 180px;
  }
}

  /* PROFILE */


  .quick-actions button {
    min-width: 180px;
  }

/* PROFILE DESKTOP */
  @media (min-width: 900px) {
  .profile-main {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }

}


/* ================= TABLET BREAKPOINT ================= */
@media (max-width: 1024px) {

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

  .content-wrapper {
    flex-direction: column;
  }

  .state-sidebar {
    width: 100%;
    position: relative;
  }
}

body.subcategory-page .frosted-container {
    margin: 80px 16px 40px;
    padding: 18px;
  }

  /* Stack card layout vertically */
  .detail-card {
    text-align: left;
    gap: 12px;
  }

  .detail-card img {
    width: 100%;
    border-radius: 12px;
  }

  .detail-info {
    width: 100%;
  }

  .detail-card h3 {
    font-size: 1rem;
  }

  .detail-card p {
    font-size: 0.9rem;
  }

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }

    .state-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        max-height: 250px; /* small scrollable box for mobile */
        position: relative; /* sticky not needed */
        top: 0;
        margin-bottom: 20px;
        overflow-y: auto; /* enable scroll */
    }
}
/* ================= MOBILE SMALL ================= */
@media (max-width: 500px) {

  .category-grid {
    grid-template-columns: 1fr;
  }

.hero {
    min-height: 80vh;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}