:root {
  --primary: #7540bf;
  --background: #f8f6fc;
  --card-bg: rgba(250, 249, 248, 0.84);
  --text: #333333;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --header-bg: rgba(242, 236, 250, 0.8);
  --footer-bg: rgba(255, 255, 255, 0.584);
  --shadow: rgba(0, 0, 0, 0.05);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --nav-height: 70px;
  --bg-dark: #080814;
  --bg1: #fffcfc;
  --back: rgba(230, 220, 245);
}

[data-theme="dark"] {
  --background: #111121;
  --card-bg: rgba(0, 0, 0, 0.392);
  --text: #f1f1f1;
  --text-secondary: #cccccc;
  --border: #333333;
  --header-bg: rgba(0, 0, 0, 0.466);
  --footer-bg: rgba(0, 0, 0, 0.586);
  --shadow: rgba(0, 0, 0, 0.2);
  --menu-bg: rgba(0, 0, 0, 0.95);
  --bg1: #1c10316c;
  --back: rgb(37, 31, 52);
}

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.75rem);
  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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: var(--nav-height);
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  display: flex;
  gap: 2px;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.3s ease;
  font-size: 22px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--text);
  font-size: 22px;
}

.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;
}

.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 var(--border);
  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: #fff;
  border-color: var(--primary);
  cursor: default;
  pointer-events: none;
}

.pagination a:hover {
  background: var(--card-bg);
  color: var(--text);
}

.itsflex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mtop {
  margin-top: 10px;
}

.itsflex2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.itsflex3 {
  display: flex;
  align-items: center;
  gap: 5px;
}

.smallimg img {
  width: 24px;
  height: 24px;
}

.midimg img {
  width: 80px;
  height: 80px;
}

.temp {
  font-size: 55px;
  font-weight: bold;
}

.temp span {
  font-size: 20px;
  font-weight: bold;
}

.hideonpc {
  display: none;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: 0;
  cursor: pointer;
  border: 0;
}

#goToTopBtn svg {
  fill: var(--primary);
  background-color: #fff;
  border-radius: 50%;
  padding: 1px;
}

#goToTopBtn svg:hover {
  fill: var(--bg-dark);
}

footer {
  margin-top: 3em;
}

.footer_info {
  text-align: center;
  color: var(--text-secondary);
  display: none;
}

.footer_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 1em;
  gap: 1em;
  width: 100%;
}

.footer_social,
.footer_pages {
  display: flex;
  align-items: center;
  gap: 1em;
  width: 100%;
}

.footer_pages {
  justify-content: flex-end;
}

.footer_social a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer_pages a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer_copyright {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1em;
  padding-bottom: 1em;
}

.heading {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding: 10px;
}

/* --- Base Container --- */
.content {
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
  /* Prevents long words from breaking mobile layout */
}

/* --- Headings --- */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

.content h1 {
  font-size: 2.5rem;
}

.content h2 {
  font-size: 2rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3em;
}

.content h3 {
  font-size: 1.75rem;
}

.content h4 {
  font-size: 1.5rem;
}

.content h5 {
  font-size: 1.25rem;
}

.content h6 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #666;
}

/* --- 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: #007bff;
  /* 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;
}

/* --- Tables (Mobile Friendly) --- */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  display: block;
  /* Makes table scrollable on strictly mobile views if needed */
  overflow-x: auto;
  /* Adds scrollbar if table is too wide */
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on iOS */
}

.content th,
.content td {
  padding: 0.75em;
  border: 1px solid var(--border);
  text-align: left;
}

.content th {
  background-color: var(--back);
  font-weight: 600;
}

.content tr:nth-child(even) {
  background-color: var(--bg1);
}

/* --- Horizontal Rule --- */
.content hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

.post_list {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 5px;
  background-color: var(--bg1);
}

.post_list:hover {
  border: 1px solid var(--primary);
}

.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 var(--border);
  /* Optional: adds a slight card border */
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--bg1);
}

/* 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;
  color: var(--text);
}

/* 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;
}

.flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.imflex {
  display: flex;
  align-items: center;
  gap: 10px;
}

ul {
  margin-left: 1em;
}

.hero h1 {
  margin-bottom: 1em;
}

.category_view {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.category_view a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.iscenter {
  text-align: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 300px;
  margin: auto;
  margin-top: -30px;
}

.useful_links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.useful_links h2 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.22;
}

.useful_links a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}

.useful_links a:hover {
  color: var(--primary);
}

.cta_btn {
  display: flex;
  gap: 10px;
  background-color: var(--back);
  padding: 10px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}

.cta_btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.card {
  background: var(--bg1);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card small {
  color: var(--text-secondary);
}

.card h3 {
  margin: 6px 0;
  font-size: 20px;
}

.section {
  background: var(--bg1);
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

canvas {
  max-height: 300px;
}

.daily {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.daily .card h3 {
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
}

@media (max-width: 600px) {
  .view_content {
    flex-direction: column;
  }

  .view_main,
  .view_sidebar {
    flex: 1;
    width: 100%;
  }

  .post-card {
    flex-direction: column;
    /* Stack image on top of text */
  }

  .post-media {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
}

/* Mobile Adjustments for Headings */
@media (max-width: 768px) {
  .content h1 {
    font-size: 2rem;
  }

  .content h2 {
    font-size: 1.75rem;
  }

  .content h3 {
    font-size: 1.5rem;
  }

  .center {
    margin-top: -50px;
  }

  .container {
    width: 100%;
    padding: 0 1em;
  }

  .hideonmobile {
    display: none;
  }

  .footer_flex {
    flex-direction: column;
  }

  .footer_social {
    justify-content: space-around;
  }

  .footer_pages {
    flex-wrap: wrap;
    justify-content: center;
  }

  .textlimit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .content ul.ulflex {
    margin-bottom: -10px;
  }
}

@media (max-width: 991px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--menu-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .nav-link:hover {
    background-color: var(--primary);
    color: white;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

.moon-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.moon-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffe066, #f1c40f);
}

.hero {
  background-image: linear-gradient(
      17deg,
      rgba(41, 41, 41, 0.02) 0%,
      rgba(41, 41, 41, 0.02) 48%,
      rgba(10, 10, 10, 0.02) 48%,
      rgba(10, 10, 10, 0.02) 59%,
      rgba(164, 164, 164, 0.02) 59%,
      rgba(164, 164, 164, 0.02) 73%,
      rgba(79, 79, 79, 0.02) 73%,
      rgba(79, 79, 79, 0.02) 93%,
      rgba(42, 42, 42, 0.02) 93%,
      rgba(42, 42, 42, 0.02) 100%
    ),
    linear-gradient(
      42deg,
      rgba(124, 124, 124, 0.02) 0%,
      rgba(124, 124, 124, 0.02) 15%,
      rgba(116, 116, 116, 0.02) 15%,
      rgba(116, 116, 116, 0.02) 23%,
      rgba(41, 41, 41, 0.02) 23%,
      rgba(41, 41, 41, 0.02) 44%,
      rgba(196, 196, 196, 0.02) 44%,
      rgba(196, 196, 196, 0.02) 54%,
      rgba(145, 145, 145, 0.02) 54%,
      rgba(145, 145, 145, 0.02) 100%
    ),
    linear-gradient(
      151deg,
      rgba(85, 85, 85, 0.02) 0%,
      rgba(85, 85, 85, 0.02) 12%,
      rgba(72, 72, 72, 0.02) 12%,
      rgba(72, 72, 72, 0.02) 28%,
      rgba(156, 156, 156, 0.02) 28%,
      rgba(156, 156, 156, 0.02) 33%,
      rgba(230, 230, 230, 0.02) 33%,
      rgba(230, 230, 230, 0.02) 50%,
      rgba(13, 13, 13, 0.02) 50%,
      rgba(13, 13, 13, 0.02) 100%
    ),
    linear-gradient(
      76deg,
      rgba(25, 25, 25, 0.02) 0%,
      rgba(25, 25, 25, 0.02) 9%,
      rgba(183, 183, 183, 0.02) 9%,
      rgba(183, 183, 183, 0.02) 32%,
      rgba(19, 19, 19, 0.02) 32%,
      rgba(19, 19, 19, 0.02) 86%,
      rgba(129, 129, 129, 0.02) 86%,
      rgba(129, 129, 129, 0.02) 88%,
      rgba(174, 174, 174, 0.02) 88%,
      rgba(174, 174, 174, 0.02) 100%
    ),
    linear-gradient(90deg, rgb(4, 11, 32), rgb(15, 0, 22));

  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  color: #fff;
  /* Animation properties */
  background-size: 400% 400%;
  animation: gradientPulse 35s ease infinite;
}

@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5em;
}

.gc-main-card {
  background: var(--back);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 1145px;
  width: 100%;
  margin-bottom: 30px;
}

.isgrid {
  display: flex;

  gap: 1em;
  justify-content: space-between;
}

.hero_heading {
  font-weight: 600;
  white-space: nowrap;
}

.section2 {
  margin-top: 2em;
}

/* Mobile (stacked full width) */
@media (max-width: 768px) {
  .hero {
    min-height: 300px;
    display: block;
    padding-top: 1em;
  }

  .isgrid {
    flex-direction: column;
    gap: 0em;
  }

  .gc-container {
    margin-inline: 10px;
  }

  .gc-main-card .itsflex:nth-child(1) {
    gap: 1px;
  }

  .gc-main-card .itsflex,
  .gc-main-card .itsflex3,
  .gc-main-card .itsflex2 {
    justify-content: center;
    text-align: center;
  }

  .gc-main-card {
    padding: 30px 10px;
  }

  .noflex {
    display: block;
  }

  .noflex svg {
    display: none;
  }

  .iscenterMobile {
    text-align: center;
  }
}

/* Wrapper */
.forecast {
  background: var(--bg1);
  border-radius: 10px;
  padding: 12px;
}

/* Each row */
.forecast-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.forecast-row:last-child {
  border-bottom: none;
  padding-bottom: 5px;
}
.forecast-row:first-child {
  padding-top: 5px;
}
/* Day */
.forecast-day {
  width: 50px;
  text-align: left;
  font-size: 14px;
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.forecast-day span {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Temp */
.forecast-temp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.forecast-temp span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Text */
.forecast-text {
  flex: 1;
  font-size: 14px;
}

.forecast-night {
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Rain & UV */
.forecast-rain,
.forecast-uv {
  text-align: right;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.forecastflex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.w100 {
  width: 100%;
  flex: 1;
}

.widthsmall {
  width: 100px;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .forecastflex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .forecast-row {
    gap: 8px;
    flex-direction: column;
  }

  .forecast-day {
    width: 60px;
  }

  .forecast-temp {
    width: auto;
  }
  .forecast-temp strong {
    font-size: 23px;
  }

  .forecast-rain,
  .forecast-uv {
    width: auto;
    font-size: 13px;
  }
}

.w_box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Mobile first (small screens) */
.w_box1,
.w_box2 {
  width: 100%;
  padding: 10px;
}

/* Large screens */
@media (min-width: 768px) {
  .w_box1 {
    width: 60%;
  }
  .w_box2 {
    width: 40%;
  }
}

.tabletime {
  white-space: nowrap;
}

.wind-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: default;
  position: relative;
  white-space: nowrap;
}

.wind-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid;
  transform-origin: center;
  transition: transform 0.6s ease-in-out;
}

/* Tooltip */
.wind-cell:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.temp-cell {
  font-weight: 600;
}

.temp-up {
  color: #d32f2f;
}
.temp-down {
  color: #1976d2;
}

.uv-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.uv-low {
  background: #2e7d32;
}
.uv-mod {
  background: #f9a825;
}
.uv-high {
  background: #ef6c00;
}
.uv-vhigh {
  background: #c62828;
}

/* OUTER WRAPPER */
.hourly-wrapper {
  width: 100%;
}

/* FADE CONTAINER */
.fade-wrap {
  position: relative;
}

/* LEFT & RIGHT FADES */
.fade-wrap::before,
.fade-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 2;
}

.fade-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}

.fade-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}

/* SCROLLER */
.hour-weather {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
}

.hour-weather::-webkit-scrollbar {
  display: none;
}

/* CARD */
.hour-row {
  min-width: 90px;
  background: var(--bg1);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.hour-row:last-child {
  margin-right: 2em;
}

/* NOW */
.hour-row.now {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  margin-left: 2em;
}

/* NOW BADGE */
.now-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* BOTTOM NAV */
.hour-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.hour-nav button {
  border: none;
  background: var(--card-bg);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.hour-date {
  font-weight: 400;
  font-size: 13px;
}
.hour-time {
  font-weight: 600;
}

.live {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: red;
  border-radius: 50%;
  animation: blink2 1s infinite;
}

@keyframes blink2 {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.home_heading{
  margin-top: 1em;
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text);
border-bottom: 1px solid var(--border);
padding-bottom: 10px  ;
}

/* .hour-weather {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.hour-row {
  background: var(--bg1);
  padding: 4px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.hour-temp {
  font-weight: bold;
  font-size: 30px;
}

.hour-rain {
  color: var(--text-secondary);
  font-size: 14px;
}

 */
