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

html, body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  padding-top: 100px;
}

/* Twemoji styling for consistent emoji display across all platforms */
img.emoji {
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.05em 0 0.1em !important;
  vertical-align: -0.1em !important;
  display: inline-block !important;
  max-width: 1em !important;
  max-height: 1em !important;
}

/* Larger emoji for flag display in country cards */
.country-card .flag img.emoji,
.flag img.emoji {
  height: 3rem !important;
  width: 3rem !important;
  margin: 0 !important;
  vertical-align: middle !important;
  max-width: 3rem !important;
  max-height: 3rem !important;
}

a {
  color: #ff8c00;
  text-decoration: none;
}

a:hover {
  color: #ff7700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #2c3e50;
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

header h1 a {
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 50%, #ffb84d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header h1 a:hover {
  filter: brightness(1.2);
}

header h1 img {
  height: 40px;
  width: auto;
  display: block;
}

header .logo {
  height: 40px;
  width: auto;
  display: block;
}

header .tagline {
  display: none;
}

/* Main Content */
main {
  padding: 2rem 0 2rem 0;
  min-height: calc(100vh - 200px);
}

main h1 {
  margin-bottom: 1rem;
}

main h1 + p {
  margin-bottom: 2rem;
}

main h1 + .filter-section,
main h1 + div:not(p) {
  margin-top: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
  color: #666;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Comparison Selector */
.comparison-selector {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.comparison-selector h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.selector-form {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.select-group {
  flex: 1;
  min-width: min(250px, 100%);
}

.select-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.select-group select,
#compareCountry {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.select-group select:focus,
#compareCountry:focus {
  outline: none;
  border-color: #ff8c00;
}

.vs-divider {
  font-weight: bold;
  font-size: 1.5rem;
  color: #ff8c00;
  padding: 0 1rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
  color: white;
}

/* Country Grid */
.country-grid {
  margin-bottom: 3rem;
}

.country-grid h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.country-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.country-card .flag {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.country-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.country-card p {
  color: #ff8c00;
  font-size: 0.9rem;
}

.hide-mobile {
  display: block;
}

/* Popular Comparisons */
.popular-comparisons,
.other-comparisons,
.suggested-comparisons {
  margin-bottom: 3rem;
}

.popular-comparisons h2,
.other-comparisons h2,
.suggested-comparisons h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.comparison-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.comparison-link {
  background: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-link:hover {
  background: #ff8c00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Comparison Header */
.comparison-header,
.country-header {
  text-align: center;
  margin-bottom: 2rem;
}

.comparison-header h1,
.country-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Category Section */
.category-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ff8c00;
  border-bottom: 3px solid #ff8c00;
  padding-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.table-header {
  background: #f5f7fa;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.table-row {
  border-bottom: 1px solid #e1e8ed;
}

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

.table-row:hover {
  background: #f9fafb;
}

.item-name {
  font-weight: 500;
}

.country-col,
.diff-col {
  text-align: center;
  font-weight: 600;
}

/* Percentage difference color gradient: gray -> yellow -> orange -> red */
.diff-col.diff-tiny {
  color: #95a5a6 !important; /* 0-5%: same as 0% gray */
}

.diff-col.diff-small {
  color: #ffbf00 !important; /* 5-15%: brighter yellow */
}

.diff-col.diff-medium {
  color: #f7ad00 !important; /* 15-25%: orange */
}

.diff-col.diff-large {
  color: #ef4444 !important; /* 25%+: original red */
}

.diff-col.same {
  color: #95a5a6;
}

/* Data Table (Single Country) */
.data-table {
  width: 100%;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #e1e8ed;
}

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

.data-row:hover {
  background: #f9fafb;
}

.item-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 150px;
  max-width: 150px;
}

.item-price {
  font-weight: 600;
  color: #10b981;
  font-size: 1.1rem;
}

.item-range {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-range-bar {
  position: relative;
  height: 6px;
  background: linear-gradient(to right, #10b981, #fbbf24, #ef4444);
  border-radius: 3px;
  width: 100%;
}

.item-range-fill {
  position: absolute;
  height: 100%;
  border-radius: 3px;
}

.item-range-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 14px;
  background: #1f2937;
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.item-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
}

.range-low {
  color: #10b981;
  font-weight: 500;
}

.range-high {
  color: #ef4444;
  font-weight: 500;
}

/* Comparison price container and styling */
.comparison-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.comparison-price {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  color: #333;
}

/* Prices: cheaper is green, more expensive is red */
.comparison-price.price-lower {
  color: #22c55e !important; /* green for cheaper */
}

.comparison-price.price-higher {
  color: #ef4444 !important; /* red for more expensive */
}

/* Percentage difference gradients for cheaper locations (green) */
.diff-col.diff-cheaper-tiny {
  color: #95a5a6 !important; /* 0-5%: gray */
}

.diff-col.diff-cheaper-small {
  color: #84cc16 !important; /* 5-15%: yellow-green (lime) */
}

.diff-col.diff-cheaper-medium {
  color: #22c55e !important; /* 15-25%: green */
}

.diff-col.diff-cheaper-large {
  color: #16a34a !important; /* 25%+: dark green */
}

/* Percentage difference gradients for more expensive locations (red) */
.diff-col.diff-expensive-tiny {
  color: #95a5a6 !important; /* 0-5%: gray */
}

.diff-col.diff-expensive-small {
  color: #ffbf00 !important; /* 5-15%: yellow */
}

.diff-col.diff-expensive-medium {
  color: #f7ad00 !important; /* 15-25%: orange */
}

.diff-col.diff-expensive-large {
  color: #ef4444 !important; /* 25%+: red */
}

.mobile-country-label {
  display: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

/* Inline range sliders for comparison table */
.item-range-inline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.item-range-bar-inline {
  position: relative;
  height: 4px;
  background: linear-gradient(to right, #10b981, #fbbf24, #ef4444);
  border-radius: 2px;
  width: 100%;
}

.item-range-fill-inline {
  position: absolute;
  height: 100%;
  border-radius: 2px;
}

.item-range-marker-inline {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  background: #1f2937;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.item-range-labels-inline {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #64748b;
}

.item-range-labels-inline span:first-child {
  color: #10b981;
  font-weight: 500;
}

.item-range-labels-inline span:last-child {
  color: #ef4444;
  font-weight: 500;
}

/* Compare Selector on Country Page */
.compare-selector {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.compare-selector h3 {
  margin: 0;
  color: #333;
}

.compare-selector select {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
}

.compare-selector .searchable-select-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

/* Price Range Section */
.price-range-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.price-range-section h3 {
  margin: 0 0 1.5rem 0;
  color: #334155;
  font-size: 1.25rem;
}

.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.range-label-low,
.range-label-high {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.range-label-low {
  color: #10b981;
  text-align: left;
}

.range-label-high {
  color: #ef4444;
  text-align: right;
}

.range-label-low strong,
.range-label-high strong {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.range-index {
  font-size: 0.85rem;
  opacity: 0.8;
}

.range-slider-wrapper {
  padding: 0 1rem;
}

.range-slider {
  position: relative;
  height: 20px;
  background: linear-gradient(to right, #10b981, #fbbf24, #ef4444);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.range-fill {
  position: absolute;
  height: 100%;
  border-radius: 10px;
}

.range-markers {
  position: relative;
  height: 100%;
}

.range-marker {
  display: none;
}

.range-description {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: 6rem;
  color: #ff8c00;
  margin-bottom: 1rem;
}

.error-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.error-page p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1.5rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ff8c00;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ff8c00;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.footer-disclaimer p {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Content Pages */
.content-page {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
}

.content-page h1 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.content-page h2 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #ff8c00;
  padding-bottom: 0.5rem;
}

.content-page h3 {
  color: #34495e;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.content-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-page ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.content-page ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.content-page em {
  color: #7f8c8d;
}

.content-page .lead {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.about-intro, .contact-intro {
  margin-bottom: 2rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ff8c00;
}

.contact-method h2 {
  margin-top: 0;
  border: none;
  padding: 0;
  font-size: 1.3rem;
}

.contact-method p {
  margin-bottom: 0.75rem;
}

.contact-method ul {
  margin-top: 0.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-style: italic;
}

.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #ff8c00;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: #ff8c00;
}

.faq-item p {
  padding: 0 0 1.25rem 0;
  margin: 0;
  line-height: 1.7;
  color: #555;
}

.response-disclaimer {
  background: #fff3cd;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin-top: 2rem;
}

/* About Page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid #ff8c00;
}

.feature-box h3 {
  margin-top: 0;
  color: #2c3e50;
}

.disclaimer-box {
  background: #fff3cd;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin: 1.5rem 0;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.cta-box {
  background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  color: white;
  margin-top: 0;
}

.cta-box p {
  margin-bottom: 1rem;
}

.cta-box .btn-primary {
  background: white;
  color: #ff8c00;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #ff6600;
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .selector-form {
    flex-direction: column;
    gap: 1rem;
  }

  .vs-divider {
    transform: rotate(90deg);
    padding: 0;
  }

  .table-header {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .table-row > div {
    text-align: left !important;
  }

  .table-row > .diff-col {
    text-align: center !important;
  }

  .mobile-country-label {
    display: block;
  }

  .item-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .country-col::before {
    font-weight: 600;
    margin-right: 0.5rem;
  }

  .diff-col {
    margin-top: 1rem !important;
    padding: 0.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  .diff-col::before {
    display: none !important;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .comparison-header h1,
  .country-header h1 {
    font-size: 1.5rem;
  }

  .compare-selector {
    flex-direction: column;
    align-items: center;
  }

  .compare-selector h3 {
    text-align: center;
  }

  .compare-selector .searchable-select-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .compare-selector .btn-primary {
    width: 100%;
  }
}

/* Navigation */
header nav {
  margin: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 0.95rem;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

header nav a.active {
  color: #ff8c00;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* City and Country Metadata */
.city-meta,
.country-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
}

.city-meta span,
.country-meta span {
  background: white;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 0.85rem;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-section label {
  font-weight: 600;
  color: #555;
}

.filter-section select {
  flex: 1;
  max-width: 300px;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* City Listing */
.city-listing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.city-list-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.city-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.city-info h3 {
  margin-bottom: 0.25rem;
  color: #ff8c00;
}

.city-info p {
  color: #666;
  font-size: 0.9rem;
}

.city-meta {
  display: flex;
  gap: 1rem;
  color: #888;
  font-size: 0.85rem;
}

/* City Grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.city-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-color: #ff8c00;
}

.city-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.city-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.related-cities {
  margin-top: 3rem;
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
}

.related-cities h2 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.5rem;
}

/* Quality of Life Comparison */
.quality-comparison,
.salary-comparison {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.quality-comparison h2,
.salary-comparison h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.metrics-grid {
  display: grid;
  gap: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric label {
  font-weight: 600;
  color: #555;
}

.metric-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-bar-labeled {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.country-label {
  min-width: 140px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.metric-bar {
  background: linear-gradient(90deg, #ff8c00 0%, #ff7700 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: right;
  transition: width 0.5s ease;
  min-width: 60px;
  flex: 1;
}

.metric-bar.danger {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.metric-bar-full {
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: right;
  transition: width 0.5s ease;
  min-width: 60px;
}

.metric-bar-full.good {
  background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
}

.metric-bar-full.medium {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.metric-bar-full.poor {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

/* Salary Comparison */
.salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.salary-column {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
}

.salary-column h3 {
  margin-bottom: 1rem;
  color: #ff8c00;
}

.salary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1e8ed;
}

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

.salary-item.highlight {
  background: white;
  padding: 0.75rem 1rem;
  margin: 0.5rem -1rem 0;
  border-radius: 5px;
  font-weight: 600;
  color: #27ae60;
}

.salary-item label {
  color: #666;
}

/* Calculator */
.calculator-container {
  max-width: 900px;
  margin: 0 auto;
}

.calculator-form {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #ff8c00;
}

.form-group .searchable-select-wrapper {
  width: 100%;
  max-width: 100%;
}

.form-group .searchable-select-wrapper input[type="text"] {
  width: 100%;
}

.calculator-results {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.calculator-results h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.result-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e1e8ed;
  font-size: 1.1rem;
}

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

.result-item.highlight {
  background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  margin: 1rem -1rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
}

.result-item label,
.result-item .result-label {
  color: #666;
}

.result-item.highlight label,
.result-item.highlight .result-label {
  color: rgba(255, 255, 255, 0.9);
}

.result-item span {
  font-weight: 600;
  color: #ff8c00;
}

.result-item.highlight span {
  color: white;
}

/* Salary Table */
.salary-table-container,
.quality-table-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.salary-table,
.quality-table {
  width: 100%;
  border-collapse: collapse;
}

.salary-table thead,
.quality-table thead {
  background: #f9fafb;
}

.salary-table th,
.quality-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e1e8ed;
}

.salary-table td,
.quality-table td {
  padding: 1rem;
  border-bottom: 1px solid #e1e8ed;
}

.salary-table tr:hover,
.quality-table tr:hover {
  background: #f9fafb;
}

.salary-table td a,
.quality-table td a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.salary-table td a:hover,
.quality-table td a:hover {
  color: #ff8c00;
  text-decoration: underline;
}

.salary-table td.highlight {
  font-weight: 600;
  color: #27ae60;
}

/* Mobile Salary Cards */
.salary-cards {
  display: none;
}

.salary-card {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.salary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.salary-card-country {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.salary-card-average {
  font-size: 1.2rem;
  font-weight: 700;
  color: #27ae60;
}

.salary-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.salary-detail {
  display: flex;
  flex-direction: column;
}

.salary-detail-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.salary-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Quality Table Color Coding */
.quality-table td.good {
  color: #27ae60;
  font-weight: 600;
}

.quality-table td.medium {
  color: #f39c12;
  font-weight: 600;
}

.quality-table td.poor {
  color: #e74c3c;
  font-weight: 600;
}

/* Mobile Quality Cards */
.quality-cards {
  display: none;
}

.quality-card {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.quality-card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.quality-card-country {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.quality-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quality-detail {
  display: flex;
  flex-direction: column;
}

.quality-detail-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.quality-detail-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.quality-detail-value.good {
  color: #27ae60;
}

.quality-detail-value.medium {
  color: #f39c12;
}

.quality-detail-value.poor {
  color: #e74c3c;
}

/* Insights and Legend */
.salary-insights,
.quality-legend {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.salary-insights h2,
.quality-legend h2 {
  margin-bottom: 1rem;
  color: #333;
}

.salary-insights ul {
  list-style-position: inside;
  color: #666;
}

.salary-insights li {
  margin-bottom: 0.75rem;
}

.salary-insights a {
  color: #ff8c00;
  text-decoration: none;
}

.salary-insights a:hover {
  text-decoration: underline;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legend-item {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
}

.legend-item h3 {
  color: #ff8c00;
  margin-bottom: 0.5rem;
}

.legend-item p {
  color: #666;
  font-size: 0.95rem;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  header nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #2c3e50;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  header nav.active {
    max-height: 400px;
    padding: 1rem 0;
  }

  header nav a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: block;
    width: 100%;
    text-align: left;
  }

  header nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .content-page {
    padding: 1.5rem;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  .content-page h2 {
    font-size: 1.5rem;
  }

  .contact-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hide-mobile {
    display: none !important;
  }

  .city-meta,
  .country-meta {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .city-meta span,
  .country-meta span {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .city-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .metrics-grid {
    gap: 1rem;
  }

  .metric-bar {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .calculator-form,
  .calculator-results {
    padding: 1.5rem;
  }

  .salary-table-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .salary-table {
    display: none !important;
  }

  .salary-cards {
    display: block !important;
  }

  .quality-table-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .quality-table {
    display: none !important;
  }

  .quality-cards {
    display: block !important;
  }

  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .filter-section label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .filter-section select {
    width: 100%;
    max-width: 100%;
  }

  .filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .filters input,
  .filters select {
    width: 100% !important;
    margin-left: 0 !important;
  }

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

  .data-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }

  .item-name {
    font-size: 0.95rem;
    width: 100%;
  }

  .item-price-container {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
  }

  .item-price {
    font-size: 1.3rem;
  }

  .item-range {
    width: 100%;
  }

  .item-range-bar,
  .item-range-bar-inline {
    width: 100%;
  }

  .metric-bar-labeled {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .metric-bar-full {
    width: 100% !important;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
  }

  .country-label {
    min-width: auto;
    width: 100%;
  }
}

/* Region Sections */
.region-section {
  margin-bottom: 3rem;
}

.region-section h3 {
  color: #000;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.view-all {
  display: inline-block;
  margin-top: 1rem;
  color: #ff8c00;
  text-decoration: none;
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

/* Features Grid */
.features-section {
  margin: 3rem 0;
}

.features-section h2 {
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(255, 140, 0, 0.2);
  color: #333;
}

.feature-card h3 {
  color: #ff8c00;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.feature-card:hover h3 {
  color: #ff8c00;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-card:hover p {
  color: #666;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin: 3rem 0;
}

.stats-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
  border-radius: 10px;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.popular-cities {
  margin: 3rem 0;
}

.popular-cities h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

/* Recent Price Updates Section */
.recent-updates {
  margin: 3rem 0;
  padding: 0;
  background: transparent;
}

.recent-updates h2 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.updates-list {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.update-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  flex: 1;
  min-width: 280px;
  max-width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.update-card:hover {
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.update-country {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.update-time {
  font-size: 0.8rem;
  color: #999;
}

.update-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.update-item {
  color: #555;
  font-size: 0.9rem;
  flex: 1;
}

.update-price {
  font-weight: 700;
  color: #10b981;
  font-size: 1.1rem;
}

.update-city {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
  padding: 0.625rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
  min-width: 44px;
  text-align: center;
}

.pagination-btn:hover,
.pagination-number:hover {
  background: #ff8c00;
  color: white;
  border-color: #ff8c00;
  transform: translateY(-2px);
}

.pagination-number.active {
  background: #ff8c00;
  color: white;
  border-color: #ff8c00;
  font-weight: 600;
}

.pagination-ellipsis {
  color: #666;
  padding: 0.625rem 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pagination {
    gap: 0.25rem;
  }

  .pagination-btn,
  .pagination-number {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 38px;
  }

  .updates-list {
    flex-direction: column;
    gap: 1rem;
  }

  .update-card {
    min-width: 0;
    width: 100%;
  }

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

/* Searchable Select Dropdown */
.searchable-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.searchable-select-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.searchable-select-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -8px;
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item.no-results {
  cursor: default;
  color: #999;
  text-align: center;
}

.search-result-item.no-results:hover {
  background-color: white;
}

@media (max-width: 768px) {
  .searchable-select-wrapper {
    max-width: 100%;
  }

  .search-results {
    max-height: 250px;
  }
}

/* Currency Selector Styles */
.currency-selector-container {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-selector label {
  font-weight: 400;
  color: #666;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.6;
}

.currency-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  line-height: 1.6;
}

.currency-select:hover {
  border-color: #ff8c00;
}

.currency-select:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

@media (max-width: 768px) {
  .currency-selector-container {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .currency-selector label {
    font-size: 0.85rem;
  }

  .currency-select {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .city-meta,
  .country-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .city-meta span,
  .country-meta span {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
  }
}

/* Informational Content Sections */
.info-content {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin: 3rem 0;
}

.info-content h2 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #ff8c00;
  padding-bottom: 1rem;
}

.info-content h3 {
  color: #ff8c00;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.info-content h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-content .content-block {
  margin-bottom: 2.5rem;
}

.info-content .content-block:last-child {
  margin-bottom: 0;
}

.info-content p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.info-content li {
  margin-bottom: 0.75rem;
  color: #333;
}

.info-content strong {
  color: #2c3e50;
  font-weight: 600;
}

.info-content a {
  color: #ff8c00;
  text-decoration: underline;
}

.info-content a:hover {
  color: #ff7700;
}

@media (max-width: 768px) {
  .info-content {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }

  .info-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .info-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .info-content h4 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
  }

  .info-content p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .info-content .content-block {
    margin-bottom: 2rem;
  }
}


/* Info Cards */
.info-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid #ff8c00;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  line-height: 1.7;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .info-card {
    padding: 1.25rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }
}

/* Sector grid for Industry Sectors Explained */
.sector-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}

@media (max-width: 768px) {
  .sector-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.2);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f5f7fa;
  flex-shrink: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.5rem;
}

.blog-card-tags .tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-readmore {
  color: #ff8c00;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s;
  margin-top: auto;
}

.blog-card:hover .blog-card-readmore {
  transform: translateX(5px);
}

/* Blog Post Page */
.blog-post {
  max-width: 850px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-post-title-section {
  padding: 2rem 2rem 1.5rem 2rem;
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-post-category {
  background: #ff8c00;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

.blog-post h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-post-tags .tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-post-image {
  width: 100%;
  margin: 0 0 2rem 0;
  padding: 0 2rem;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  padding: 0 2rem 2rem 2rem;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content a {
  color: #ff8c00;
  text-decoration: underline;
}

.blog-post-content a:hover {
  color: #ff7700;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}


@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-image {
    height: 250px;
  }

  main.blog-page:has(.blog-post) {
    padding: 0;
  }

  .blog-post {
    padding: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .blog-post-title-section {
    padding: 1rem;
    margin: 0;
    background: white;
  }

  .blog-post-image {
    margin: 0;
    padding: 0;
  }

  .blog-post-image img {
    border-radius: 0;
  }

  .blog-post h1 {
    font-size: 1.5rem;
  }

  .blog-post-content {
    font-size: 1rem;
    padding: 1rem;
    margin: 0;
    background: white;
  }

  .blog-post-content h2 {
    font-size: 1.4rem;
  }

  .blog-post-content h3 {
    font-size: 1.2rem;
  }

  main.blog-page:has(.blog-post) .breadcrumb {
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .blog-post + div {
    padding: 0 1rem;
  }
}
