/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f7fa;
  --fg: #0f1a2b;
  --card: #ffffff;
  --card-fg: #0f1a2b;
  --primary: #0380c4;
  --primary-fg: #ffffff;
  --secondary: #eef1f5;
  --secondary-fg: #1a2940;
  --muted: #e8ecf0;
  --muted-fg: #6b7a8d;
  --accent: #e89b1c;
  --border: #dfe4ea;
  --radius: 0.75rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTAINER ===== */
.container,
.mtr-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container,
  .mtr-container {
    padding: 0 1.5rem;
  }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo,
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-icon,
.logo-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 0.5rem;
}

.logo-icon svg,
.logo-icon-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--primary-fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.logo-text span {
  color: var(--primary);
}

/* Desktop Nav */
.main-nav,
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a,
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.main-nav a:hover,
.desktop-nav a:hover {
  background: var(--secondary);
  color: var(--fg);
}

.main-nav a svg,
.desktop-nav a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .main-nav,
  .desktop-nav {
    display: flex;
  }
  .mobile-toggle {
    display: none !important;
  }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--fg);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: var(--secondary);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 1rem 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: var(--secondary);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .section-title svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== CURRENT WEATHER ===== */
.current-section {
  margin-top: 2rem;
}

.current-section .page-title,
.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.current-section .page-date,
.page-date {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

@media (min-width: 768px) {
  .current-section .page-title,
  .page-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .current-section .page-title,
  .page-title {
    font-size: 3rem;
  }
}

.weather-card {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.weather-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .weather-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }
}

.weather-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.weather-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  background: var(--secondary);
  flex-shrink: 0;
}

.weather-icon-box img {
  width: 56px;
  height: 56px;
}

.weather-temp {
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}

.weather-temp .unit {
  font-size: 1.875rem;
  color: var(--muted-fg);
}

@media (min-width: 768px) {
  .weather-temp {
    font-size: 4.5rem;
  }
  .weather-temp .unit {
    font-size: 2.25rem;
  }
}

.weather-desc {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--muted-fg);
  text-transform: capitalize;
}

.weather-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(238, 241, 245, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
}

.weather-right .divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.temp-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.temp-group svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.temp-group svg.icon-red {
  stroke: #ef4444;
}

.temp-group svg.icon-blue {
  stroke: #0ea5e9;
}

.temp-group .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}

.temp-group .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon,
.stat-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.stat-icon svg,
.stat-icon-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon svg.icon-amber,
.stat-icon-box svg.icon-amber {
  stroke: #f59e0b;
}

.stat-icon svg.icon-orange,
.stat-icon-box svg.icon-orange {
  stroke: #f97316;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}

/* ===== HOURLY FORECAST ===== */
.hourly-section {
  margin-top: 2.5rem;
}

.hourly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.scroll-btns {
  display: flex;
  gap: 0.375rem;
}

.scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.2s;
}

.scroll-btn:hover {
  background: var(--secondary);
  color: var(--fg);
}

.scroll-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hourly-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 122, 141, 0.3) transparent;
}

.hourly-slider::-webkit-scrollbar {
  height: 6px;
}

.hourly-slider::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-slider::-webkit-scrollbar-thumb {
  background: rgba(107, 122, 141, 0.3);
  border-radius: 3px;
}

.hourly-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  min-width: 110px;
  flex-shrink: 0;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.hourly-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hourly card inner elements - support both koy.php and index.php class names */
.hourly-card .time,
.hourly-card .h-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
}

.hourly-card .day-label,
.hourly-card .h-day {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.hourly-card .temp,
.hourly-card .h-temp {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
}

.hourly-card img {
  width: 36px;
  height: 36px;
}

/* ===== DAILY FORECAST ===== */
.daily-section {
  margin-top: 2.5rem;
}

.daily-list {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.daily-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  transition: background 0.2s;
}

.daily-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.daily-row:hover {
  background: rgba(238, 241, 245, 0.5);
}

@media (min-width: 768px) {
  .daily-row {
    padding: 0.875rem 1.5rem;
  }
}

/* Day column - support both class naming conventions */
.daily-day,
.daily-day-col {
  min-width: 100px;
}

.daily-day .name,
.daily-day-col .d-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.daily-day .date,
.daily-day-col .d-date {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (min-width: 768px) {
  .daily-day,
  .daily-day-col {
    min-width: 140px;
  }
}

/* Icon column */
.daily-icon,
.daily-icon-col {
  flex-shrink: 0;
}

.daily-icon img,
.daily-icon-col img {
  width: 28px;
  height: 28px;
}

/* Temps column */
.daily-temps,
.daily-temps-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .daily-temps,
  .daily-temps-col {
    gap: 1rem;
  }
}

.daily-temps .high,
.daily-temps-col .high {
  font-size: 0.875rem;
  font-weight: 700;
  color: #dc2626;
}

.daily-temps .low,
.daily-temps-col .low {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0284c7;
}

/* Bar column */
.daily-bar,
.daily-bar-col {
  display: none;
  flex: 1;
}

@media (min-width: 768px) {
  .daily-bar,
  .daily-bar-col {
    display: block;
  }
}

.daily-bar-track,
.bar-track {
  position: relative;
  height: 6px;
  width: 100%;
  background: var(--secondary);
  border-radius: 999px;
}

.daily-bar-fill,
.bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #e89b1c, #ef4444);
}

/* Description column */
.daily-desc,
.daily-desc-col {
  margin-left: auto;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .daily-desc,
  .daily-desc-col {
    min-width: 140px;
    font-size: 0.875rem;
  }
}

/* ===== CITIES CLOUD ===== */
.cities-section {
  margin-top: 2.5rem;
}

.cities-box {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cities-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-tag {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-fg);
  background: rgba(238, 241, 245, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.city-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(3, 128, 196, 0.3);
  background: rgba(3, 128, 196, 0.1);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  margin-top: 2.5rem;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary);
}

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

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

.blog-card .content {
  padding: 1.25rem;
}

.blog-card .meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.blog-card h3 {
  margin-top: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  text-wrap: balance;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.blog-card .read-more:hover {
  color: #026a9e;
}

.blog-card .read-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

    .site-footer {
        margin-top: 3rem;
        border-top: 1px solid var(--border);
        background: var(--card);
    }
    .footer-inner {
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    @media (min-width: 768px) {
        .footer-inner {
            flex-direction: row;
            align-items: flex-start;
            justify-content: space-between;
        }
    }
    .footer-brand { max-width: 280px; }
    .footer-brand p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
    .footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
    .footer-nav a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
    .footer-nav a:hover { color: var(--fg); }
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border);
        text-align: center;
        font-size: 0.75rem;
        color: var(--muted-fg);
    }
	
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
