/* CSS Variables */
:root {
  --primary-color: #097c09;

  --background: #ffffff;
  --surface: #f8f9fa;
  --text-primary: #1d1d1f;
  --text-secondary: #5d5d5d;
  --border-color: #d2d2d7;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --blur-bg: rgb(255, 255, 255);
  --max-width: 1200px;
  --border-radius: 12px;
  --back: #dadada;
  --tableShadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

h1 {
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.3rem, 1.8vw + 0.5rem, 1.7rem);
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.22;
}

h4 {
  font-size: clamp(1.1rem, 1.2vw + 0.5rem, 1.3rem);
  line-height: 1.25;
}

h5 {
  font-size: clamp(1rem, 1vw + 0.4rem, 1.15rem);
  line-height: 1.28;
}

h6 {
  font-size: clamp(0.9rem, 0.8vw + 0.4rem, 1rem);
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 300;
  line-height: 1.4;
}

a {
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.navbar {
  background: var(--blur-bg);
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  border-top: 3px solid var(--primary-color);

  margin-bottom: 1em;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  width: 150px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;

  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);

  transform-origin: center;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.social-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 5px;
  max-width: 800px;
  margin: auto;
}

.share-btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  min-width: 130px;
  text-align: center;
  cursor: pointer;
}

.share-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.share-btn span {
  display: inline-block;
  font-weight: 500;
}

.facebook {
  background-color: #3b5998;
}
.twitter {
  background-color: #1da1f2;
}
.whatsapp {
  background-color: #25d366;
}
.telegram {
  background-color: #0088cc;
}

.native {
  background-color: #65035a;
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.footer {
  background-color: #f9f9f9;
  color: #333;
  padding: 40px 0 20px;
  margin-top: 1em;
  border-top: 1px solid #ddd;
}

.footer a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-left {
  flex: 1;
  max-width: 400px;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;

  gap: 8px 25px;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #393939;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.paragraph a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 2em;
}

.archive-links a {
  display: block;
  padding: 10px 5px;
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 15px;
}

.archive-links a:hover {
  background-color: #e0e0e0;
}

.sidebar_heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
}

.m_headeing {
  font-size: 18px;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
}
.poupHeading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-modal {
  background: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f20000;
  border: none;
  font-size: 25px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-btn {
  background: #eaeaea;
  color: #000;
  border: 1px solid #d2d2d7;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view_content {
  display: flex;
  gap: 20px;
  margin-block: 1em;
}

.view_main {
  flex: 1;
  width: 70%;
}

.view_sidebar {
  width: 30%;
  position: sticky;
  top: 80px;
  height: fit-content;
  margin-top: 1em;
}

.post_list {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 5px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  color: #000;
}

.post_list:hover {
  border: 1px solid var(--primary-color);
}

.post_list img {
  display: block;
  width: 80px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}

/* 1. Reset the link style so it doesn't look like a blue underlined text */
.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 20px;
  /* Space between items */
}

/* 2. Container: Acts like the ".row" */
.post-card {
  display: flex;
  /* Enables side-by-side layout */
  align-items: flex-start;
  /* Aligns content to the top */
  gap: 20px;
  /* Space between image and text */
  padding: 15px;
  border: 1px solid #dadada22;
  /* Optional: adds a slight card border */
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* Optional: Hover effect */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 3. Image Container: Acts like ".col-sm-4" */
.post-media {
  flex: 0 0 33%;
  /* Fix width to 33% */
  max-width: 33%;
}

/* 4. The Image: Acts like ".rounded" + responsive fix */
.post-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  /* Replaces bootstrap .rounded */
  object-fit: cover;
  /* Ensures image doesn't stretch weirdly */
  display: block;
}

.post-content {
  flex: 1;
  /* Takes up the remaining space */
}

/* 6. Title Styling */
.post-title {
  margin: 0 0 10px 0;
  /* Remove top margin, add bottom */
  font-size: 1.5rem;
  line-height: 1.2;
}

/* 7. Paragraph Styling: Acts like ".small" */
.post-excerpt {
  font-size: 0.9rem;
  /* Equivalent to 'small' */
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.sidebar_heading {
  margin-top: 1em;
  font-size: 20px;
  padding: 10px;
  border-bottom: 1px solid rgba(122, 122, 122, 0.352);
  margin-bottom: 10px;
  text-align: center;
}

.thumb169 {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* --- Base Container --- */
.content {
  width: 100%;
  line-height: 1.6;
  word-wrap: break-word;
  /* Prevents long words from breaking mobile layout */
}

/* --- Paragraphs & Text --- */
.content p {
  margin-bottom: 1.25em;
  font-size: 1rem;
  /* approx 16px */
}

.content strong {
  font-weight: 700;
}

.content em {
  font-style: italic;
}

/* --- Links --- */
.content a {
  color: var(--primary-color);
  /* Change this to your brand color */
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.content a:hover {
  text-decoration: none;
  color: #0056b3;
}

/* --- Lists --- */
.content ul,
.content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  /* Ensures bullets are visible on mobile */
}

.content li {
  margin-bottom: 0.5em;
}

/* Nested Lists */
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* --- Images (Crucial for Mobile) --- */
.content img {
  max-width: 100%;
  /* Prevents image from overflowing screen */
  height: auto;
  /* Maintains aspect ratio */
  display: block;
  /* Removes bottom gap */
  margin: 1.5em 0;
  border-radius: 4px;
}

/* --- Blockquotes --- */
.content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #ddd;
  background-color: var(--back);
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Code Blocks --- */
.content pre {
  background-color: var(--back);
  padding: 1em;
  overflow-x: auto;
  /* Allows horizontal scroll for code on mobile */
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.content code {
  background-color: var(--back);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.content pre code {
  padding: 0;
  background: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.content th,
.content td {
  padding: 0.75em;
  border: 1px solid var(--border-color);
  text-align: left;
}

.content th {
  background-color: var(--surface);
  font-weight: 600;
}

.content tr:nth-child(even) {
  background-color: var(--background);
}

/* --- Horizontal Rule --- */
.content hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: 0;
  cursor: pointer;
  border: 0;
}

#goToTopBtn svg {
  fill: var(--primary-color);
  background-color: #fff;
  border-radius: 50%;
  padding: 1px;
}

#goToTopBtn svg:hover {
  fill: #000;
}

.pagination-text {
  text-align: center;
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination {
  margin-top: 5px;
  margin-bottom: 1em;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #222;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  height: 40px;
  min-width: 40px;
  font-weight: 600;
}

.pagination a.active,
.pagination a.disabled {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  cursor: default;
  pointer-events: none;
}

.pagination a:hover {
  background: #e8e8e8;
}

.not-found {
  padding: 40px;
  text-align: center;
}

.not-found h1 {
  font-size: 80px;
  margin: 0 0 20px;
  color: #e74c3c;
  font-weight: bold;
}

.not-found .lead {
  font-size: 28px;
  margin: 0 0 20px;
  color: #2c3e50;
  font-weight: 600;
}

.not-found p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.not-found a {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.not-found a:hover {
  background-color: #000;
}

.rate-up {
  color: #d32f2f; /* red */
  font-weight: 600;
}

.rate-down {
  color: #2e7d32; /* green */
  font-weight: 600;
}

.rate-same {
  color: inherit;
  font-weight: 600;
}

.gold-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: space-between;
  margin-bottom: 2em;
}

.gold-scroll::-webkit-scrollbar {
  display: none;
}

.gold-card {
  flex: 0 0 auto;
  min-width: 240px;
  position: relative;
  background: linear-gradient(135deg, #fff8e1, #ffffff);
  border-radius: 14px;
  padding: 18px 20px 28px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  scroll-snap-align: start;
}

/* Keep previous styles */
.gold-title {
  font-size: 14px;
  font-weight: 600;
  color: #8d6e63;
  text-transform: uppercase;
}

.gold-price span {
  font-size: 14px;
  display: block;
  font-weight: 500;
  color: #4f4f4f;
  margin-top: 10px;
}

.gold-price div {
  margin-top: -8px;
  font-size: 35px;
  font-weight: 700;
  color: #3b1b00;
}

.gold-diff {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 14px;
}

.diff {
  font-size: 12px;
  margin-top: 2px;
}

.content h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3em;
}

.citySearch {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.cityLink {
  color: #000 !important;
  text-decoration: none !important;
}

.cityLink:hover {
  color: var(--primary-color) !important;
}

.tableContents {
  padding: 1em;
  margin-bottom: 1em;

  background: #f5f5f5;
  border-radius: 8px;
}
.tableContents h2 {
  margin-top: 0;
}

.top_cities_sidebar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.top_cities_sidebar a {
  margin-inline: 1em;
  display: block;
  padding: 6px 4px;
  border: 1px solid #e0e0e0;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 8px;
  color: #000 !important;
  text-decoration: none !important;
}

.top_cities_sidebar a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
}

#citySearch {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
}

#SearchResult {
  background: #fff;
  border: 1px solid #ddd;

  display: none;
  z-index: 1000;
}

#SearchResult a {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

#SearchResult a:hover {
  background: #f5f5f5;
}

.nearby-cities div {
  font-size: 14px;
  color: #444;
}

/* City links */
.nearby-cities a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f8f9fa;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* Touch feedback */
.nearby-cities a:active {
  transform: scale(0.98);
}

/* Hover (desktop) */
@media (hover: hover) {
  .nearby-cities a:hover {
    background: var(--primary-color);
    color: #fff;
  }
}

/* Tablet & desktop layout */
@media (min-width: 768px) {
  .nearby-cities a {
    display: inline-block;
    margin: 6px 6px 0 0;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
    
  .post-card {
    flex-direction: column;
    gap:1px;
  }

  .post-media {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  .gold-scroll {
    justify-content: start;
  }

  .gold-price div {
    font-size: 34px;
  }

  .nav-btn {
    background: none;
    color: #000;
    border: none;
    padding: 0px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0px;
    justify-content: center;
  }

  .nav-btn span {
    display: none;
  }

  .hide_on_mobile {
    display: none;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .not_404_container {
    padding: 10px;
  }

  .not_404_title {
    font-size: 2rem;
  }

  .not_404_message {
    font-size: 1.1rem;
  }

  .not_404_links,
  .not_404_note {
    font-size: 0.95rem;
  }

  .nav-logo img {
    width: 130px;
    height: auto;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blur-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);

    opacity: 0;
    visibility: hidden;

    z-index: 500;
  }

  .nav-right {
    gap: 20px;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    background: var(--background);
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
  .view_content {
    flex-direction: column;
  }

  .view_main,
  .view_sidebar {
    flex: 1;
    width: 100%;
  }

  .content ul.ulflex {
    margin-bottom: -10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 0 6px;
  }
}

.chart-box {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
}

.chart-box canvas {
  height: 320px !important;
}
.chart-box button {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid  var(--primary-color);
  background: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  min-width:95px;
}

.chart-box button.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}
.chart-box button:disabled {
    animation: blinkingText 0.5s infinite
}
@keyframes blinkingText {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
.ch_gold_calculator {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin: 1em auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ch_gold_title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
}

.ch_gold_field {
  margin-bottom: 12px;
}

.ch_gold_field label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.ch_gold_field input,
.ch_gold_field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.ch_gold_row {
  display: flex;
  gap: 8px;
}

.ch_gold_btn {
  width: 100%;
  background: var(--primary-color);
  border: none;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.ch_gold_btn:hover {
  opacity: 0.9;
}

.ch_gold_result {
  margin-top: 15px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.flex {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-block: 5px;
}

.imflex {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mb1 {
  margin-bottom: 1em;
}


#cityTable a {
    font-weight: bold;
    color: var(--primary-color) !important;
}

#cityTable a:hover{
    color: #000000 !important;
}