﻿:root {
  /* Core Brand Colors */
  --primary-color: #2f2f2f; /* Soft Charcoal */
  --secondary-highlight: #d97706; /* Accent News: Burnt Orange */

  /* Base Layout */
  --bg-color: #fafaf8; /* Warm White */
  --surface-color: #ffffff;
  --divider-color: #e5e7eb;
  --card-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --modal-overlay: rgba(0, 0, 0, 0.4);

  /* Typography */
  --text-primary: #1a1a1a; /* Almost Black */
  --text-secondary: #6b6b6b; /* Stone Gray */
  --text-muted: #6b6b6b;
  --text-disabled: #b0b0b0;
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;

  /* Interactive States */
  --btn-primary-default: #2f2f2f;
  --btn-primary-hover: #1a1a1a;
  --btn-primary-pressed: #000000;
  --btn-secondary-default: #d97706;
  --btn-secondary-hover: #b96505;
  --btn-secondary-pressed: #995404;
  --focus-outline: #6faed9;

  /* Navigation */
  --nav-top-bg: #2f2f2f;
  --nav-top-text: #ffffff;
  --nav-bottom-bg: #ffffff;
  --nav-bottom-active: #2f2f2f;
  --nav-bottom-inactive: #6b6b6b;

  /* Weather Indicators */
  --weather-sunny: #d97706;
  --weather-cloudy: #6b6b6b;
  --weather-rain: #6faed9;
  --weather-storm: #2f2f2f;
  --weather-snow: #e0f2fe;
  --weather-heat-alert: #d97706;
  --weather-cold-alert: #6faed9;

  /* Status and Feedback */
  --status-success: #27ae60;
  --status-warning: #d97706;
  --status-error: #eb5757;
  --status-info: #6faed9;

  /* Charts and Data */
  --temp-high: #d97706;
  --temp-low: #6faed9;
  --rain-prob: #6faed9;
  --wind-speed: #6b6b6b;

  /* Legacy/Refactored mappings */
  --accent-weather: #6faed9; /* Muted Blue */
  --accent-news: #d97706; /* Burnt Orange */
  --weather-text: var(--text-primary);
  --weather-accent: var(--accent-weather);
  --weather-shadow: rgba(47, 47, 47, 0.1);

  /* Global Transition */
  --theme-transition:
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(47, 47, 47, 0.1);
  --glass-blur: blur(8px);
  --weather-gradient: linear-gradient(135deg, #2f2f2f 0%, #1a1a1a 100%);
}

/* Global Selection Styling */
::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Global Link Styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-weather);
}

/* Bootstrap Overrides */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-primary {
  background-color: var(--btn-primary-default) !important;
  border-color: var(--btn-primary-default) !important;
  color: var(--text-on-primary) !important;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover) !important;
  border-color: var(--btn-primary-hover) !important;
}

.btn-primary:active {
  background-color: var(--btn-primary-pressed) !important;
  border-color: var(--btn-primary-pressed) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.bg-info {
  background-color: var(
    --accent-weather
  ) !important; /* Use Muted Blue for Info */
}

.text-info {
  color: var(--accent-weather) !important;
}

/* Specific News/Weather classes */
.bg-news {
  background-color: var(--accent-news) !important;
}

.text-news {
  color: var(--accent-news) !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: var(--theme-transition);
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

* {
  transition: var(--theme-transition);
}

/* Specific overrides for transitioning */
.navbar,
.card,
.btn,
.modal-content,
.chatbot-modal-dialog .modal-header,
.chatbot_messages,
.chatbot_form {
  transition: var(--theme-transition);
}

.card {
  background-color: var(--surface-color);
  border: 1px solid var(--divider-color);
  box-shadow: var(--card-shadow);
}

main {
  flex: 1;
}

.date_time_info {
  background-color: var(--bg-color) !important;
  color: var(--text-primary) !important;
}

.date_time_info span {
  left: 128px;
  position: relative;
  font-weight: 400;
  line-height: 100%;
  font-size: var(--fs-base);
}

.synocast_logo {
  height: auto;
  width: 150px;
}

.synocast_logo_navbar {
  position: relative;
  left: 70px !important;
}

.nav-link i,
.nav_text,
.btn_subscribe {
  font-weight: 600;
  line-height: 100%;
}

.navbar {
  background-color: var(--nav-top-bg) !important;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: var(--nav-top-text) !important;
  opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
  font-weight: 600 !important;
  color: var(--secondary-highlight) !important;
  opacity: 1;
}

.header_card {
  border: none;
  border-radius: 0%;
  background: var(--primary-color) !important;
  color: var(--bg-color) !important;
}

.home_banner_3 .icon {
  width: 30px;
  height: 30px;
  font-size: 30px;
  margin: 30px 8px;
  color: var(--bg-color) !important;
  transition: color 0.3s ease;
}

.home_banner_3 .icons {
  left: 10%;
}

.footer_item span {
  color: var(--secondary-highlight);
  font-weight: bold;
}

.footer_item p {
  color: var(--bg-color) !important;
  opacity: 0.9;
}

a.footer-text-link {
  color: var(--bg-color) !important;
  opacity: 0.8;
}

a.footer-text-link:hover {
  color: var(--secondary-highlight) !important;
  opacity: 1;
}

.banner_image {
  width: 100%;
  min-height: 500px;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

.banner_image_text {
  display: grid;
  width: 431px;
  height: 138px;
  gap: 40px !important;
  top: 32% !important;
  left: 27.5% !important;
}

.banner_image_text_news {
  left: 72.5% !important;
}

.news_sub_banner .col-8 .card,
.news_sub_banner .col-4 .card {
  width: 100%;
  border: none;
  text-align: left;
}

.news_sub_banner .col-8 .card .card-body {
  padding: 0;
}

.news_sub_banner .col-8,
.news_sub_banner .col-4 {
  padding: 5%;
}

.card .card-link {
  font-size: var(--fs-sm);
  font-weight: 400;
  text-decoration: none;
  color: var(--primary-color) !important;
}

.news_sub_banner .col-8 .card .card-body .card-title,
.news_sub_banner .col-4 .card .card-body .card-title {
  font-size: var(--fs-base);
  font-weight: 600;
}

.news_sub_banner .col-8 .card .card-body .card-text {
  font-size: large;
}

.home_banner_2.sub_heading {
  font-weight: 400;
  font-style: Regular;
  font-size: var(--fs-md);
  line-height: 100%;
  letter-spacing: 0%;
}

.home_banner_2 .sub_heading_2 {
  font-weight: 400;
  font-style: Regular;
  font-size: var(--fs-lg);
  line-height: 100%;
  letter-spacing: 0%;
}

.breaking_news_section .card,
.featured_news_section .card {
  border: none;
}

.grey_color {
  color: rgba(94, 94, 94, 1) !important;
}

.fs-7 {
  font-size: 12px !important;
}

/* Keep author name and article link on same line - Force horizontal layout */
.breaking_news_section .card-body .row,
.featured_news_section .card-body .row,
.news_sub_banner .card-body .row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.breaking_news_section .card-body .row > *,
.featured_news_section .card-body .row > *,
.news_sub_banner .card-body .row > * {
  flex: 0 0 auto !important;
  width: 50% !important;
  max-width: 50% !important;
}

/* Ensure text doesn't wrap */
.breaking_news_section .card-body .row span,
.featured_news_section .card-body .row span,
.news_sub_banner .card-body .row span,
.breaking_news_section .card-body .row a,
.featured_news_section .card-body .row a,
.news_sub_banner .card-body .row a {
  font-size: 12px !important;
  line-height: 1.2;
}

/* Override Bootstrap responsive behavior for these specific rows */
@media (max-width: 576px) {
  .breaking_news_section .card-body .row,
  .featured_news_section .card-body .row,
  .news_sub_banner .card-body .row {
    flex-direction: row !important;
  }

  .breaking_news_section .card-body .row > *,
  .featured_news_section .card-body .row > *,
  .news_sub_banner .card-body .row > * {
    width: 50% !important;
    flex: 0 0 50% !important;
  }
}

.btn_get_started,
.btn_subscribe,
.modal_primary_btn {
  border-radius: 100px;
  gap: 10px;
  opacity: 1;
  border-width: 2px;
  padding: 8px 70px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.btn_explore {
  border-radius: 100px;
  gap: 10px;
  opacity: 1;
  padding: 8px 70px;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.btn_explore:hover,
.btn_subscribe:hover {
  background-color: var(--primary-color);
  color: white !important;
  border: 2px solid var(--primary-color);
}

.btn_get_started,
.modal_primary_btn {
  background-color: var(--primary-color);
  color: white;
}

.modal_primary_btn {
  padding: 8px 36px;
  font-weight: 600;
  min-width: 140px;
  font-size: 14px;
  font-weight: 400;
}

.btn_get_started:hover {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-theme {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.btn-outline-theme:hover,
.btn-outline-theme.active,
.btn-outline-theme:active {
  background-color: var(--primary-color);
  color: white !important;
}

.btn-group .btn-outline-theme + .btn-outline-theme {
  margin-left: -2px;
}

.btn-unit {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  border-radius: 6px;
}

.btn-unit:hover,
.btn-unit.active {
  background-color: var(--primary-color);
  color: white !important;
}

.home_banner_2 img {
  align-self: flex-end;
}

.home_banner_2_row {
  height: 600px;
}

.home_banner_2_text_end {
  top: -221px;
  position: relative;
}

.home_banner_2 .card {
  border-radius: 10px;
  width: 22rem;
  top: -310px;
}

.home_banner_2 .card-title {
  width: 90px;
  height: 23px;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  margin-bottom: 2%;
  color: var(--accent-news);
  position: relative;
  left: 6rem;
}

.home_banner_2 .card-img-top-1 {
  width: 17.961814880371094px;
  height: 17.961814880371094px;
}

.chatbot_icon {
  width: 30px;
  height: 30px;
}

.btn_subscribe {
  width: 100px;
  height: 30px;
  padding: 6px 10px;
  font-weight: 500;
  font-size: 14px;
  margin-left: 8px;
  margin: 0px;
}

.navbar .btn_subscribe {
  border-color: var(--bg-color);
  color: var(--bg-color);
}

.navbar .btn_subscribe:hover {
  background-color: var(--bg-color);
  color: var(--primary-color) !important;
}

.navbar .nav-link i {
  color: var(--bg-color);
  opacity: 0.8;
}

.navbar .nav-link:hover i {
  opacity: 1;
  color: #ffffff;
}

.modal_primary_btn:hover,
.modal_primary_btn:focus {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* Ensure modal uses same font */
/* Ensure modal uses same font but allow icons */
.modal {
  font-family: inherit;
}

.material-icons {
  font-family: "Material Icons" !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Floating Chatbot Button Styles */
.floating-chat-btn-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050; /* Above most elements */
}

.floating-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 12px rgba(47, 47, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  padding: 0;
}

.floating-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(47, 47, 47, 0.6);
  background-color: var(--primary-color); /* Keep same color */
}

.floating-chat-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1); /* Default is white-ish */
}

/* Chatbot Widget Styles */
#chatbot_modal {
  pointer-events: none; /* Allow clicking outside */
}

.chatbot-modal-dialog {
  pointer-events: auto; /* Re-enable clicking inside */
  position: fixed !important;
  bottom: 110px !important; /* Positioned at the same level as the button */
  right: 30px !important; /* Align with button */
  margin: 0 !important;
  width: 380px; /* Fixed width for widget feel */
  max-width: 90vw;
}

/* Ensure floating button stays visible */
#chatbot_modal.show ~ .floating-chat-btn-container {
  display: block;
}

.chatbot-modal-dialog .modal-content {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  height: 550px; /* Fixed height */
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-modal-dialog .modal-header {
  background-color: var(--nav-top-bg);
  color: var(--nav-top-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.chatbot-modal-dialog .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.chatbot-modal-dialog .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236faed9'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border: 0;
  border-radius: 0.375rem;
  opacity: 1;
  filter: none;
}

.chatbot-modal-dialog .btn-close:hover {
  opacity: 1;
}

.chatbot-modal-dialog .modal-body {
  flex: 1;
  overflow: hidden; /* Let internal wrapper handle scroll */
  padding: 0;
  background-color: var(--bg-color);
}

/* Chatbot Internal Styles */
.chatbot_wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chatbot_messages {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--bg-color);
  border: none;
  border-radius: 0;
  max-height: none; /* Let flex handle height */
  overflow-y: auto;
}

.chatbot_messages .message {
  margin-bottom: 0.75rem;
}

.chatbot_messages .message.bot .bubble {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333;
  border-bottom-left-radius: 4px;
}

.chatbot_messages .message.user .bubble {
  background: var(--primary-color);
  box-shadow: 0 2px 5px rgba(58, 91, 160, 0.3);
  color: var(--text-on-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot_messages .bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
}

.chatbot_form {
  padding: 1rem 1.5rem 1.5rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--divider-color);
  margin-top: 0 !important;
  gap: 0.5rem;
  display: flex;
  align-items: center;
}

.chatbot_form .form-control {
  background-color: var(--bg-color);
  border: 1px solid var(--divider-color);
  color: var(--text-primary);
  padding-left: 20px;
  height: 44px;
  border-radius: 100px;
  flex-grow: 1; /* Make input take available space */
}

.chatbot_form .form-control:focus {
  background-color: var(--surface-color);
  border-color: var(--accent-weather);
  box-shadow: 0 0 0 4px var(--weather-shadow);
}

.chatbot_form .modal_primary_btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px; /* Reduced padding */
  min-width: auto; /* Reset min-width from global style */
  width: auto; /* Auto width based on content */
}

/* Hide the standard modal fade transition transform to avoid positioning issues */
#chatbot_modal.fade .modal-dialog {
  transform: translate(0, 20px);
  transition: transform 0.3s ease-out;
}

#chatbot_modal.show .modal-dialog {
  transform: none;
}

/* Dropdown & Modal Theme Support */
.dropdown-menu {
  background-color: var(--surface-color);
  border-color: var(--divider-color);
  transition: var(--theme-transition);
}

/* Premium Weather Card Styles - Light Theme */
.weather-card-container {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  color: var(--text-primary);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(58, 91, 160, 0.15);
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Glass Panels (adapted for light theme) */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.glass-btn {
  background: rgba(58, 91, 160, 0.1);
  border: 1px solid rgba(58, 91, 160, 0.2);
  color: var(--primary-color);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 91, 160, 0.3);
}

/* Typography Overrides for Light Card */
.weather-card-container .text-primary {
  color: var(--primary-color) !important;
}

.weather-card-container .text-muted {
  color: var(--text-muted) !important;
}

.weather-card-container .text-secondary {
  color: var(--text-secondary) !important;
}

/* Specific Element Styling */
.weather-temp-display {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.weather-hero-img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.weather-hero-img:hover {
  transform: scale(1.05);
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
  0% {
    background-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    background-color: rgba(255, 255, 255, 0.3);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  color: transparent !important;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.skeleton * {
  visibility: hidden;
}

.skeleton-text {
  height: 1em;
  width: 60%;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Forecast Items */
.forecast-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 5px;
  transition: all 0.2s ease;
}

.forecast-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.forecast-active {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown-item {
  color: var(--text-primary);
  transition: var(--theme-transition);
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--text-primary);
}

.modal-content {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border-color: var(--divider-color);
}

.modal-header,
.modal-footer {
  border-color: var(--divider-color);
}

.btn-close {
  filter: var(--icon-filter, none);
}

.form-control,
.form-select {
  background-color: var(--bg-color);
  border-color: var(--divider-color);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-color: var(--accent-weather);
  box-shadow: 0 0 0 0.25rem var(--weather-shadow);
}

/* Small-screen adjustments */
@media (max-width: 480px) {
  /* Removed chatbot_form mobile overrides to maintain single-row layout */
  .chatbot-modal-dialog {
    width: 100%;
    right: 0;
    bottom: 0;
    max-width: 100%;
    border-radius: 0;
  }
  .chatbot-modal-dialog .modal-content {
    border-radius: 20px 20px 0 0;
    height: 80vh;
  }
}

/* Weather Page Specific Styles */
.weather-hero-card .card-img-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-weather) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.active-forecast {
  background-color: var(--surface-color);
  box-shadow: 0 4px 15px var(--weather-shadow);
}

.forecast-scroll::-webkit-scrollbar {
  display: none;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-light {
  background-color: var(--bg-color);
  border-color: var(--divider-color);
  color: var(--text-primary);
}

.btn-light:hover {
  background-color: var(--divider-color);
  border-color: var(--divider-color);
}

.purple-icon {
  filter: invert(24%) sepia(61%) saturate(4566%) hue-rotate(253deg)
    brightness(96%) contrast(96%);
}

/* AI Suite Tabs Unification & Hover Effect */
#ai-tabs .nav-link {
  transition: all 0.3s ease !important;
  color: var(--weather-text) !important;
  border: 1px solid transparent;
}

#ai-tabs .nav-link:hover {
  background-color: var(--weather-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px var(--weather-shadow);
  border-color: var(--weather-accent);
}

#ai-tabs .nav-link.active {
  color: var(--weather-accent) !important;
  font-weight: 600 !important;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--bg-color);
    padding: 1rem 0;
    max-height: 80vh; /* Handle short devices */
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav {
    align-items: center;
    margin: 0 !important;
  }

  .navbar-nav .nav-item {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    width: 100%;
  }

  /* Center the subscribe button container */
  .navbar-nav .nav-item.d-flex {
    justify-content: center !important;
    width: 100%;
  }

  .btn_subscribe {
    margin: 0 !important; /* Override existing margins */
  }
}

/* New Home Page Weather Card Design */
.weather-card {
  width: 100%;
  max-width: 380px; /* Match the narrow card look */
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.weather-illustration {
  height: 300px; /* Taller image area */
  border-radius: 20px;
  background-color: var(--primary-color); /* Fallback to theme primary */
}

.weather-illustration img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.forecast-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  padding: 12px 5px !important;
  transition: all 0.2s ease;
}

.forecast-item.active {
  background-color: var(--accent-weather);
  color: white !important;
  box-shadow: 0 4px 12px var(--weather-shadow);
}

.forecast-item.active i,
.forecast-item.active p {
  color: white !important;
}

.bg-light-purple {
  background-color: var(--weather-snow); /* Use light blue from theme */
}

.cursor-pointer {
  cursor: pointer;
}

/* Specific font adjustments to match image */
.display-4 {
  font-weight: 500;
  letter-spacing: -1px;
}

.display-1 {
  font-weight: 400;
  letter-spacing: -2px;
}

/* Custom overrides for the weather card */
.bg-primary {
  background-color: var(--accent-weather) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--surface-color) !important;
}

.weather-card {
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--surface-color);
}

.forecast-item {
  transition: all 0.2s ease;
}

.forecast-item:hover {
  transform: translateY(-2px);
}

/* Forecast Card Hover Effect */
.forecast-card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.forecast-card-hover:hover {
  background-color: var(--accent-weather) !important;
  color: white !important;
}

.forecast-card-hover:hover p,
.forecast-card-hover:hover i,
.forecast-card-hover:hover .text-primary {
  color: white !important;
}

/* Footer Text Link Hover Effect */
.footer-text-link {
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-text-link:hover {
  color: var(--primary-color) !important;
}

/* Map Styles */
#map {
  height: 100%;
  min-height: 800px;
  width: 100%;
  border-radius: 0 0 12px 12px;
  z-index: 1;
}

.map-controls {
  position: absolute;
  top: 20px;
  left: 80px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  align-items: center;
  pointer-events: none;
}

.map-controls > * {
  pointer-events: auto;
}

.animated-search-form {
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
}

.locate-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.locate-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 35px rgba(47, 47, 47, 0.3);
}

.locate-btn:active {
  transform: scale(0.95);
}

.weather-overlay {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  width: 240px;
  border: 1px solid var(--divider-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.weather-overlay:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.weather-info .city-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.map-temp-display {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 0.8;
  letter-spacing: -3px;
}

.map-icon-display {
  font-size: 3.2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.map-icon-display i {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.map-details-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.map-details-footer .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.map-details-footer .detail-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.map-details-footer span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Custom Map Layer Control Styling */
.leaflet-control-layers {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  padding: 6px 10px !important;
  font-family: "Poppins", sans-serif !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.leaflet-control-layers-toggle {
  width: 36px !important; /* Smaller size */
  height: 36px !important;
  background-image: none !important; /* Hide default icon */
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 auto !important; /* Center the icon */
}

/* Add spacing below icon when expanded */
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  margin-bottom: 8px !important;
}

.leaflet-control-layers-toggle::before {
  content: "\f5fd"; /* Font Awesome 'fa-layer-group' unicode */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  color: var(--primary-color);
}

/* Premium Leaflet Controls */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border-radius: 10px !important;
  overflow: hidden;
  margin-left: 20px !important;
  margin-top: 20px !important;
}

.leaflet-bar a {
  background-color: var(--surface-color) !important;
  color: var(--text-primary) !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  border: none !important;
  font-size: 1.1rem !important;
  transition: all 0.2s ease;
}

.leaflet-bar a:hover {
  background-color: #f8f9fa !important;
  color: var(--primary-color) !important;
}

.leaflet-control-zoom-in {
  border-bottom: 1px solid #f0f0f0 !important;
}

.leaflet-control-layers {
  margin-bottom: 30px !important;
  margin-left: 20px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border-radius: 10px !important;
}

/* Hover effect for the icon */
.leaflet-control-layers:hover .leaflet-control-layers-toggle::before {
  color: var(--primary-color); /* Darker charcoal on hover */
}

.leaflet-control-layers-expanded {
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: var(--surface-color) !important;
  color: var(--text-primary);
}

.leaflet-control-layers-base label {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.leaflet-control-layers-base input[type="radio"] {
  accent-color: var(--primary-color); /* Primary Purple */
  margin-right: 8px;
  cursor: pointer;
}

.leaflet-control-layers-base label:hover {
  color: var(--primary-color);
  font-weight: 500;
}

.weather-info h4 {
  font-weight: 500;
  color: var(--text-primary);
}

.weather-icon-lg {
  margin-left: 10px;
}

.weather-details {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Hamburger Menu Animation */
.hamburger-menu {
  width: 30px;
  height: 20px;
  position: relative;
  margin: 0 auto;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fafaf8;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2) {
  top: 9px;
}

.hamburger-menu span:nth-child(3) {
  top: 18px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* AI Insights & Impacts */
.impact-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

#outfit-container .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
}

#recipe-container .card {
  transition: all 0.2s ease;
  cursor: default;
}

#recipe-container .card:hover {
  background-color: #fff !important;
  border-color: var(--primary-color) !important;
}

/* Chatbot Suggested Query Buttons */
.suggestion-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f2f5;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #444;
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s ease;
  border: 1px solid #e1e4e8;
}

.suggestion-chip:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* AI Visual Generator Placeholder Styling */
#outfit-image-result {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px dashed #dee2e6;
}

.ai-plan-content {
  line-height: 1.6;
  color: #444;
}

.ai-plan-content br + br {
  display: block;
  content: "";
  margin-top: 10px;
}
/* Ensure Logo Adjustments on Mobile */
@media screen and (max-width: 768px) {
  .synocast_logo_navbar {
    left: 0 !important;
    max-width: 120px;
  }
}

.temp-container {
  display: flex;
  align-items: flex-start;
}

.temp-container .display-4 {
  font-size: 2.5rem; /* Reduced font size */
  line-height: 1;
  color: var(--primary-color); /* Primary Theme Color */
  text-decoration: none !important;
}

.temp-container .unit {
  font-size: 1.2rem; /* Reduced font size */
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 5px;
  text-decoration: none !important;
}

.weather-details {
  display: flex;
  gap: 12px; /* Reduced gap */
}

/* Forecast Tabs Mobile Responsiveness */
@media (max-width: 768px) {
  .forecast-header-controls {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  /* Make the tab list scrollable horizontally */
  .forecast-header-controls > div[role="tablist"] {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 0.8rem !important; /* Tighter gap */
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    align-items: center; /* Vertically align items */
  }

  /* Hide scrollbar but keep functionality */
  .forecast-header-controls > div[role="tablist"]::-webkit-scrollbar {
    display: none;
  }

  .forecast-header-controls > div[role="tablist"] h4 {
    font-size: 0.95rem; /* Smaller font to fit more items */
    flex-shrink: 0;
    margin-bottom: 0 !important; /* Remove bottom margin interference */
    padding-bottom: 4px; /* Space for border */
  }

  .unit-toggle-group {
    align-self: flex-end; /* Move units to the right or keep distinct */
    margin-top: -10px; /* Adjust spacing to fit tighter layouts */
  }

  /* Center Map Controls (Search) on Mobile */
  .map-controls {
    left: 50% !important;
    transform: translateX(-50%);
    top: 80px !important; /* Move below zoom/overlay */
    width: 90%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.detail-item i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Weather Page Specific Mobile Styles */
@media (max-width: 768px) {
  .weather-page .weather-hero-card {
    min-height: auto !important;
    height: auto !important;
    border-radius: 20px !important;
    overflow: visible !important; /* Allow content to overflow if needed */
  }

  .weather-page .weather-hero-card .card-img-overlay {
    position: relative !important;
    padding: 1.5rem 1rem !important; /* Reduced padding */
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced gap */
    height: auto !important; /* Ensure overlay expands */
  }

  .weather-page .display-1 {
    font-size: 4rem; /* Reduced font size */
    line-height: 1;
    margin-top: 0.5rem; /* Reduced margin */
  }

  .weather-page .weather-hero-card img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 20px !important;
  }

  /* Reset the row height and layout */
  .weather-page .weather-hero-card .row {
    flex-direction: column;
    height: auto !important;
    margin: 0 !important;
  }

  /* Top Section: Location & Temp */
  .weather-page .weather-hero-card .col-md-6:first-child {
    width: 100%;
    text-align: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin-bottom: 0.5rem; /* Reduced margin */
  }

  .weather-page .weather-hero-card .col-md-6:first-child > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Bottom Section: Details */
  .weather-page .weather-hero-card .col-md-6:last-child {
    width: 100%;
    text-align: center !important;
    align-items: center !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  .weather-page .weather-hero-card .d-flex.flex-column.align-items-end {
    align-items: center !important;
    width: 100%;
    gap: 1rem !important; /* Reduced gap */
  }

  /* Weather Condition Icon & Text */
  .weather-page .weather-hero-card .col-md-6:last-child > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem; /* Reduced margin */
  }

  /* Grid for small details */
  .weather-page .weather-hero-card .d-flex.flex-column.gap-2 {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem !important; /* Reduced gap */
    width: 100%;
  }

  .weather-page .weather-hero-card .d-flex.align-items-center.gap-3 {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem; /* Reduced padding */
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem; /* Slightly smaller text */
  }
}

/* News Page Mobile Styles */
@media (max-width: 768px) {
  /* Banner image height for mobile */
  .banner_image {
    min-height: 300px !important;
    max-height: 400px !important;
  }

  /* Banner text positioning for mobile */
  .banner_image_text {
    width: 90% !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    gap: 20px !important;
    padding: 1rem;
    text-align: center;
  }

  .banner_image_text_news {
    left: 50% !important;
  }

  .banner_image_text h1 {
    font-size: 1.5rem !important;
  }

  .banner_image_text p {
    font-size: 0.9rem !important;
  }

  /* News sub-banner section - stack columns */
  .news_sub_banner .row {
    flex-direction: column;
  }

  .news_sub_banner .col-8,
  .news_sub_banner .col-4 {
    width: 100% !important;
    max-width: 100%;
    padding: 3% !important;
  }

  .news_sub_banner .col-4 .card {
    margin-bottom: 1rem;
  }

  .news_sub_banner .col-4 .card:last-child {
    margin-bottom: 0;
  }

  /* Breaking news section - stack cards */
  .breaking_news_section .row {
    flex-direction: column;
  }

  .breaking_news_section .col-4 {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .breaking_news_section .col-4:last-child {
    margin-bottom: 0;
  }

  /* Featured news section - stack cards */
  .featured_news_section .row {
    flex-direction: column;
  }

  .featured_news_section .col-6 {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .featured_news_section .col-6:last-child {
    margin-bottom: 0;
  }

  /* Adjust card spacing */
  .breaking_news_section,
  .featured_news_section {
    margin-top: 2rem !important;
  }

  /* Sub heading size */
  .sub_heading {
    font-size: 1.25rem !important;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 991px) {
  /* Banner image height for tablet */
  .banner_image {
    min-height: 400px !important;
    max-height: 500px !important;
  }

  /* Banner text positioning for tablet */
  .banner_image_text {
    width: 60% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .banner_image_text_news {
    left: 50% !important;
  }

  /* News sub-banner - adjust for tablet */
  .news_sub_banner .col-8 {
    width: 100% !important;
    max-width: 100%;
  }

  .news_sub_banner .col-4 {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .news_sub_banner .col-4 .card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 250px;
  }

  /* Breaking news - 2 columns on tablet */
  .breaking_news_section .row {
    flex-wrap: wrap;
  }

  .breaking_news_section .col-4 {
    width: 50% !important;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }

  /* Featured news stays 2 columns on tablet */
  .featured_news_section .col-6 {
    margin-bottom: 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Banner image height for small mobile */
  .banner_image {
    min-height: 250px !important;
    max-height: 350px !important;
  }

  .banner_image_text h1 {
    font-size: 1.2rem !important;
  }

  .banner_image_text h1 .fs-6 {
    font-size: 0.7rem !important;
  }

  .banner_image_text p {
    font-size: 0.8rem !important;
  }

  .news_sub_banner .col-8,
  .news_sub_banner .col-4 {
    padding: 2% !important;
  }

  /* Reduce card padding on very small screens */
  .card-body {
    padding: 1rem !important;
  }

  .sub_heading {
    font-size: 1.1rem !important;
  }

  .weather-page .weather-hero-card .d-flex.align-items-center.gap-3 {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem; /* Reduced padding */
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem; /* Slightly smaller text */
  }
}

/* News Page Mobile Styles */
@media (max-width: 768px) {
  /* Banner image height for mobile */
  .banner_image {
    min-height: 300px !important;
    max-height: 400px !important;
  }

  /* Banner text positioning for mobile */
  .banner_image_text {
    width: 90% !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    gap: 20px !important;
    padding: 1rem;
    text-align: center;
  }

  .banner_image_text_news {
    left: 50% !important;
  }

  .banner_image_text h1 {
    font-size: 1.5rem !important;
  }

  .banner_image_text p {
    font-size: 0.9rem !important;
  }

  /* News sub-banner section - stack columns */
  .news_sub_banner .row {
    flex-direction: column;
  }

  .news_sub_banner .col-8,
  .news_sub_banner .col-4 {
    width: 100% !important;
    max-width: 100%;
    padding: 3% !important;
  }

  .news_sub_banner .col-4 .card {
    margin-bottom: 1rem;
  }

  .news_sub_banner .col-4 .card:last-child {
    margin-bottom: 0;
  }

  /* Breaking news section - stack cards */
  .breaking_news_section .row {
    flex-direction: column;
  }

  .breaking_news_section .col-4 {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .breaking_news_section .col-4:last-child {
    margin-bottom: 0;
  }

  /* Featured news section - stack cards */
  .featured_news_section .row {
    flex-direction: column;
  }

  .featured_news_section .col-6 {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .featured_news_section .col-6:last-child {
    margin-bottom: 0;
  }

  /* Adjust card spacing */
  .breaking_news_section,
  .featured_news_section {
    margin-top: 2rem !important;
  }

  /* Sub heading size */
  .sub_heading {
    font-size: 1.25rem !important;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 991px) {
  /* Banner image height for tablet */
  .banner_image {
    min-height: 400px !important;
    max-height: 500px !important;
  }

  /* Banner text positioning for tablet */
  .banner_image_text {
    width: 60% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .banner_image_text_news {
    left: 50% !important;
  }

  /* News sub-banner - adjust for tablet */
  .news_sub_banner .col-8 {
    width: 100% !important;
    max-width: 100%;
  }

  .news_sub_banner .col-4 {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .news_sub_banner .col-4 .card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 250px;
  }

  /* Breaking news - 2 columns on tablet */
  .breaking_news_section .row {
    flex-wrap: wrap;
  }

  .breaking_news_section .col-4 {
    width: 50% !important;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }

  /* Featured news stays 2 columns on tablet */
  .featured_news_section .col-6 {
    margin-bottom: 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Banner image height for small mobile */
  .banner_image {
    min-height: 250px !important;
    max-height: 350px !important;
  }

  .banner_image_text h1 {
    font-size: 1.2rem !important;
  }

  .banner_image_text h1 .fs-6 {
    font-size: 0.7rem !important;
  }

  .banner_image_text p {
    font-size: 0.8rem !important;
  }

  .news_sub_banner .col-8,
  .news_sub_banner .col-4 {
    padding: 2% !important;
  }

  /* Reduce card padding on very small screens */
  .card-body {
    padding: 1rem !important;
  }

  .sub_heading {
    font-size: 1.1rem !important;
  }
}

/* Chatbot Modal - Example Questions & Chips */
.example-questions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 15px;
  scrollbar-width: none; /* Firefox */
  margin-top: auto; /* Push to bottom of messages area if flex */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f9f9f9;
}

.example-questions::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.suggestion-chip {
  background: var(--surface-color);
  border: 1px solid var(--divider-color);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.suggestion-chip:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.suggestion-chip i {
  margin-right: 5px;
}

/* Chatbot Modal - Typing Indicator */
.typing-indicator {
  display: none; /* Hidden by default */
  align-self: flex-start;
  background: var(--surface-color);
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 10px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: fit-content;
  margin-left: 1.5rem; /* Align with messages padding */
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-weather);
  border-radius: 50%;
  animation: modalTyping 1.4s infinite ease-in-out both;
  margin: 0 2px;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes modalTyping {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Adjust chatbot messages area to accommodate chips */
.chatbot_messages {
  padding-bottom: 0; /* Remove bottom padding as chips are there */
}

/* Favorites Dropdown Styles */
.dropdown-toggle::after {
  display: none !important;
}

.dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.dropdown-header {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.dropdown-item:active {
  background-color: var(--primary-color);
  color: white;
}

#new-city-input {
  border-radius: 8px 0 0 8px;
  border: 1px solid var(--divider-color);
}

#new-city-input:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

#add-city-btn {
  border-radius: 0 8px 8px 0;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

#add-city-btn:hover {
  background-color: var(--text-primary);
}

/* Scrollbar for favorites list */
#favorites-list::-webkit-scrollbar {
  width: 4px;
}

#favorites-list::-webkit-scrollbar-track {
  background: var(--bg-color);
}

#favorites-list::-webkit-scrollbar-thumb {
  background: var(--divider-color);
  border-radius: 4px;
}

#favorites-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* =========================================
   404 Page Styles
   ========================================= */

.page_404 {
  min-height: 80vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.page_404 .container {
  width: 100%;
}

.four_zero_four_bg {
  background-image: url("../gif/bg.gif");
  height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.four_zero_four_bg h1 {
  font-size: 150px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.1); /* Subtle watermark effect over the GIF */
  margin: 0;
  padding-top: 40px;
  user-select: none;
}

.contant_box_404 {
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.contant_box_404 h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contant_box_404 p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.link_404 {
  color: #fff !important;
  padding: 15px 40px;
  background: var(--primary-color);
  display: inline-block;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(47, 47, 47, 0.3);
  transition: all 0.3s ease;
}

.link_404:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(47, 47, 47, 0.4);
  background-color: var(--text-primary);
}

/* =========================================
   Latest News Section Redesign
   ========================================= */

.latest-news-section .header-line {
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0.8;
  border-radius: 2px;
}

.latest-news-section .section-title {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.latest-news-section .view-all-btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 0.375rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.latest-news-section .view-all-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Common Card Styles */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.transition-scale {
  transition: transform 0.5s ease;
}

.card:hover .transition-scale {
  transform: scale(1.05);
}

.hover-text-primary {
  transition: color 0.2s ease;
}

.card:hover .hover-text-primary {
  color: var(--primary-color) !important;
}

.hover-bg-light:hover {
  background-color: var(--bg-color);
}

.transition-all {
  transition: all 0.3s ease;
}

.object-fit-cover {
  object-fit: cover;
}

.x-small {
  font-size: 0.75rem;
}

/* Large News Card */
.news-card-large .news-img-large {
  height: 350px;
  object-fit: cover;
  width: 100%;
}

.news-card-large .badge {
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.read-more-link {
  font-size: 0.9rem;
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.read-more-link:hover {
  gap: 5px;
}

/* Small News Card */
.news-card-small {
  overflow: hidden;
  border-radius: 12px !important;
}

.news-card-small .card-title {
  line-height: 1.4;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   Animated Search Bar
   ========================================= */

.animated-search-form {
  --bg: transparent;
  --fg: #17181c;
  --input: #ffffff;
  --primary: var(--primary-color);
  --dur: 0.8s;
  position: relative;
  width: 100%;
  max-width: 17em;
  margin: auto;
  font-family: "Poppins", "Noto Sans Arabic", sans-serif;
}

.animated-search-form input,
.animated-search-form .search-icon {
  margin: auto;
  display: block;
  transition: all calc(var(--dur) * 0.5) linear;
}

.animated-search-form input {
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  caret-color: var(--primary);
  width: 2em;
  height: 2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  color: transparent;
  font:
    1em/1.5 "Poppins",
    sans-serif;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2; /* Input on top to capture clicks */
}

/* Ensure placeholder is also hidden */
.animated-search-form input::placeholder {
  color: transparent;
}

.animated-search-form input:focus,
.animated-search-form input:valid {
  background: var(--input);
  border-radius: 30px;
  padding: 0.75em 1em 0.75em 2.5em;
  transition-duration: calc(var(--dur) * 0.25);
  transition-delay: calc(var(--dur) * 0.25);
  width: 100%;
  height: 3.2em;
  outline: transparent;
  cursor: text;
  color: var(--fg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Show placeholder when expanded */
.animated-search-form input:focus::placeholder,
.animated-search-form input:valid::placeholder {
  color: rgba(0, 0, 0, 0.5); /* or var(--fg) with opacity */
}

.animated-search-form .search-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color); /* Primary color for visibility */
  font-size: 1.2em;
  pointer-events: none; /* Let clicks pass to input */
  z-index: 3; /* Ensure it's above the input */
}

/* 
   Hide icon when expanding (or move it?)
   Let's fade it out so user types in clean space.
   Alternatively, we could keep it as a "submit" button on the right, but form submits on Enter.
*/
.animated-search-form input:focus + .search-icon,
.animated-search-form input:valid + .search-icon {
  opacity: 1; /* Keep visible */
  transform: translate(-10px, -50%) scale(0.8); /* Move slightly left */
  left: 30px; /* Position inside padding */
}
.search-icon {
  color: var(--primary-color) !important;
}

#map-search-input:focus {
  border-color: var(--accent-weather) !important;
  box-shadow: 0 0 0 0.25rem var(--weather-shadow) !important;
}

.detail-item i {
  color: var(--accent-weather) !important;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
  background-size: 1000px 100%;
  color: transparent !important;
  border-radius: 4px;
  user-select: none;
  pointer-events: none;
}

/* Specific Skeleton Shapes */
.skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: 0.5em;
  display: inline-block;
}

.skeleton-text.w-50 {
  width: 50%;
}
.skeleton-text.w-75 {
  width: 75%;
}
.skeleton-text.display-1 {
  height: 1.2em;
  border-radius: 8px;
}

.skeleton-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-block;
}

.skeleton-card {
  background-color: #fff; /* Fallback */
}

/* Map Loading Overlay */
.weather-overlay {
  transition: all 0.3s ease;
}

.weather-overlay.loading .weather-info {
  opacity: 0.5;
  pointer-events: none;
}

.map-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: none;
}

.weather-overlay.loading .map-loading-spinner {
  display: block;
}

.spinner-border-primary {
  color: var(--primary-color);
}
/* Responsive Design Stylesheet */

/* =========================================
   1. Date/Time Information Section
   ========================================= */
@media screen and (max-width: 1200px) {
  .date_time_info span {
    left: 20px !important; /* Reset large left margin */
  }
}

@media screen and (max-width: 768px) {
  .date_time_info {
    text-align: center;
    padding: 5px 0;
  }

  .date_time_info span {
    left: 0 !important;
    font-size: 11px; /* Smaller font */
    display: block;
    width: 100%;
    padding: 0 10px;
    white-space: normal; /* Allow wrapping if needed, prevents horizontal scroll */
    line-height: 1.4;
  }
}

/* =========================================
   2. Chatbot Component
   ========================================= */
@media screen and (max-width: 768px) {
  /* Ensure floating button doesn't block content */
  .floating-chat-btn-container {
    bottom: 20px;
    right: 20px;
    z-index: 1040;
  }

  .floating-chat-btn {
    width: 50px;
    height: 50px;
  }

  .floating-chat-icon {
    width: 24px;
    height: 24px;
  }

  /* Chatbot Modal - Mobile Fixes */
  .chatbot-modal-dialog {
    width: 90% !important; /* Not full width */
    max-width: 380px !important;
    height: 60vh !important; /* Not full height, preserve context */
    max-height: 600px !important;
    margin: 0 !important;
    position: fixed !important;
    bottom: 80px !important; /* Position above floating button */
    right: 5% !important; /* Center horizontally or align right with gap */
    left: auto !important;
    border-radius: 20px !important;
    transition: transform 0.3s ease-out;
  }

  /* Adjust right alignment calculation if needed or use left: 50% + translateX */
  @media (min-width: 400px) {
    .chatbot-modal-dialog {
      right: 20px !important;
    }
  }

  .chatbot-modal-dialog .modal-content {
    height: 100%;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
}

@media screen and (max-width: 320px) {
  /* Extra small devices adjustments */
  .chatbot-modal-dialog .modal-header {
    padding: 10px;
  }

  .chatbot-modal-dialog .modal-title {
    font-size: 1rem;
  }

  .chatbot-modal-dialog {
    width: 95% !important;
    right: 2.5% !important;
  }
}

/* =========================================
   2.5 Map Control Visibility Fix
   ========================================= */
@media screen and (max-width: 768px) {
  /* Map Controls - Reposition below weather overlay */
  /* Map Controls - Reposition to bottom left for short/mobile devices */
  .map-controls {
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    bottom: 20px !important;
    flex-direction: column-reverse; /* Stack upwards */
    align-items: flex-start;
  }

  .search-box {
    width: 180px; /* Slightly smaller */
  }

  /* Ensure clear separation */
  .weather-overlay {
    right: 15px;
    top: 15px;
    width: 190px;
    padding: 18px;
    border-radius: 20px;
  }

  .weather-info .city-name {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .map-temp-display {
    font-size: 2.8rem;
    letter-spacing: -2px;
  }

  .map-icon-display {
    font-size: 2.2rem;
  }

  .map-details-footer {
    margin-top: 15px;
    padding-top: 15px;
  }
}

/* =========================================
   3. Home Page - Latest News Section
   ========================================= */
/* Tablet Breakpoint (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar-collapse {
    background-color: var(--bg-color);
    padding: 1rem;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* News Sub Banner Layout */
  .news_sub_banner .card-body .row,
  .breaking_news_section .card-body .row,
  .featured_news_section .card-body .row {
    flex-wrap: wrap; /* Allow wrapping */
  }
}

/* Mobile Breakpoint (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Layout Adjustments */
  .row > * {
    margin-bottom: 20px;
  }

  /* Typography */
  h1,
  .display-3 {
    font-size: 2.5rem;
  }

  h2,
  .display-4 {
    font-size: 2rem;
  }

  /* Footer Adjustments */
  .footer_item {
    margin-bottom: 15px;
  }

  /* Latest News Section - Main Columns Stacking */
  .news_sub_banner > .row:nth-child(2) > .col-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* News Cards Internal Layout - Mobile */
  .news_sub_banner .card-body .row,
  .breaking_news_section .card-body .row,
  .featured_news_section .card-body .row {
    flex-direction: column !important; /* Stack Text and Image */
    display: flex !important;
  }

  /* Reset width for internal items (Text col and Image col) */
  .news_sub_banner .card-body .row > *,
  .breaking_news_section .card-body .row > *,
  .featured_news_section .card-body .row > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 10px;
  }

  /* Order adjustment: Image on top for small cards if desired, or keep default */
  /* Current HTML has text (col-7) then image (col-5). 
     flex-direction: column puts text on top. 
     If we want image on top: flex-direction: column-reverse 
  */

  /* Specific styling for the thumbnail images in the small cards */
  .news_sub_banner .col-5 img,
  .breaking_news_section .col-5 img {
    height: 180px; /* Fixed height for consistency */
    width: 100%;
    object-fit: cover;
  }

  /* Adjust the main featured image in right col if needed */
  .news_sub_banner > .row > .col-6:first-child .card img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  /* Specific overrides for flex items */
  .col-lg-6.d-flex.flex-column.align-items-end {
    align-items: center !important;
  }

  /* Weather Page Adjustments */
  .weather-hero-card .display-1 {
    font-size: 4rem;
  }

  .weather-hero-card .display-5 {
    font-size: 2rem;
  }
}

/* Small Mobile Breakpoint */
@media screen and (max-width: 320px) {
  .sub_heading {
    font-size: 1.1rem !important;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.85rem;
  }
}

/* =========================================
   4. Banner Optimization
   ========================================= */

/* Desktop / Large Screens */
@media screen and (min-width: 1025px) {
  .banner_image {
    max-height: 500px; /* Reduced max height */
  }
}

/* Tablet Breakpoint (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .banner_image {
    min-height: 350px;
    max-height: 450px;
  }

  .banner_image_text {
    width: 80% !important;
    left: 10% !important;
    top: 25% !important;
  }
}

/* Mobile Breakpoint (max-width: 768px) */
@media screen and (max-width: 768px) {
  .banner_image {
    min-height: 250px;
    max-height: 350px;
  }

  .banner_image_text {
    width: 95% !important;
    left: 2.5% !important;
    top: 50% !important;
    transform: translateY(-50%); /* Center vertically */
    text-align: center;
    display: block; /* Override grid if used */
    height: auto;
  }

  .banner_image_text_news {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    top: 50% !important;
    bottom: auto !important;
  }

  .home_banner_2.sub_heading,
  .home_banner_2 .sub_heading_2 {
    font-size: 1.2rem;
  }
}

/* Small Mobile Breakpoint (max-width: 320px) */
@media screen and (max-width: 320px) {
  .banner_image {
    min-height: 200px;
    max-height: 280px;
  }

  .banner_image_text h1 {
    font-size: 1.5rem;
  }

  .banner_image_text p {
    font-size: 0.9rem;
    display: none; /* Hide description on very small screens if too cluttered */
  }
}

/* =========================================
   5. Short Device Optimization (Height <= 667px)
   ========================================= */
@media screen and (max-height: 667px) {
  /* Standardize banner heights */
  .home-banner-container {
    height: 380px !important;
  }

  .banner_image {
    min-height: 200px;
    max-height: 280px;
  }

  /* Adjust Home Page Content Position */
  .container.position-relative[style*="margin-top: -250px"] {
    margin-top: -150px !important;
  }

  .col-lg-6[style*="padding-top: 280px"] {
    padding-top: 150px !important;
  }

  /* Ensure modal fits on screen */
  .chatbot-modal-dialog {
    max-height: 80vh !important;
    bottom: 70px !important;
  }

  /* Keyboard Fix - Body class generic handler if needed */
  body.keyboard-open .footer,
  body.keyboard-open .floating-chat-btn-container {
    display: none !important;
  }
}

/* =========================================
   Mobile Keyboard Optimization
   ========================================= */

/* When keyboard is opening (transitional state) */
body.keyboard-opening {
  transition: all 0.3s ease;
}

/* When keyboard is fully open */
body.keyboard-open .footer,
body.keyboard-open .floating-chat-btn-container,
body.keyboard-open .navbar {
  display: none !important;
}

/* Adjust chatbot modal when keyboard is open */
body.keyboard-open .chatbot-modal-dialog {
  bottom: 10px !important;
  max-height: 60vh !important;
  transition: all 0.3s ease;
}

/* Ensure chatbot input stays visible */
body.keyboard-open #chatbot_form {
  position: sticky;
  bottom: 0;
  background: var(--surface-color);
  z-index: 1000;
  box-shadow: 0 -4px 12px var(--divider-color);
}

/* Adjust map controls when keyboard is open on mobile */
@media (max-width: 768px) {
  body.keyboard-open .map-controls {
    top: 10px;
    transform: scale(0.9);
    transition: all 0.3s ease;
  }

  body.keyboard-open .weather-overlay {
    top: 10px;
    right: 10px;
    transform: scale(0.85);
    transition: all 0.3s ease;
  }
}

/* Ensure focused inputs are always visible */
input:focus,
textarea:focus {
  scroll-margin-top: 100px;
  scroll-margin-bottom: 100px;
}

/* Map Toggle Button Mobile Override */
@media (max-width: 768px) {
  /* Target the specific layers control container when it is in the bottom-left */
  .leaflet-bottom.leaflet-left {
    width: 100%; /* Allow child to position itself freely if needed, or just let use pointer-events trick */
    pointer-events: none; /* Let clicks pass through empty space */
    display: flex;
    justify-content: flex-end; /* Push content to the right */
    padding-right: 10px;
    bottom: 20px;
  }

  .leaflet-bottom.leaflet-left .leaflet-control-layers {
    pointer-events: auto; /* Re-enable clicks on the button */
    margin-right: 0;
    margin-left: 0;
  }
}

/* Weather Search Bar Styles */
.bg-light-subtle {
  background-color: var(--bg-color) !important;
}

/* Weather Search Bar Styles - Exact Design Match */
.search-pill {
  transition: all 0.3s ease;
  background-color: var(--surface-color);
  border: 1px solid var(--primary-color); /* Purple border */
  border-radius: 50px !important;
  box-shadow: 0 4px 15px var(--divider-color);
  overflow: hidden;
}

.search-pill .input-group-text {
  background-color: var(--bg-color) !important; /* Shaded icon area */
  border-right: 2px solid var(--accent-weather) !important; /* The theme divider */
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  padding-left: 1.25rem;
  padding-right: 1rem;
}

.search-pill .input-group-text i {
  color: #4a5568 !important;
  font-size: 1.1rem;
}

.search-pill input {
  background-color: var(--surface-color) !important;
  padding-left: 1rem !important;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.search-pill input::placeholder {
  color: var(--text-secondary);
}

.search-pill:focus-within {
  box-shadow:
    0 0 0 4px var(--weather-shadow),
    0 4px 15px var(--weather-shadow) !important;
  border-color: var(--primary-color) !important;
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--divider-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item.active,
.search-result-item:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding-left: 25px;
}

.search-result-item.active i,
.search-result-item:hover i {
  color: var(--primary-color);
}

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

/* Custom Notifications / Toast system */
.synocast-toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.synocast-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  background: var(--surface-color);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 15px 45px var(--divider-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transform: translateX(130%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.synocast-toast::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: var(--primary-color);
}

.synocast-toast.show {
  transform: translateX(0);
}

.synocast-toast.error::after {
  background: #f5365c;
}

.synocast-toast.warning::after {
  background: #ffd600;
}

.synocast-toast-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--primary-color);
}

.synocast-toast.error .synocast-toast-icon {
  background: #fff5f5;
  color: #f5365c;
}

.synocast-toast.warning .synocast-toast-icon {
  background: #fffdf0;
  color: #ffd600;
}

.synocast-toast-content {
  flex: 1;
}

.synocast-toast-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text-primary);
}

.synocast-toast-message {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.synocast-toast-close {
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s;
  padding: 4px;
  margin-top: -4px;
  margin-right: -4px;
}

.synocast-toast-close:hover {
  opacity: 1;
  color: #f5365c;
}

/* Historical Chart Responsiveness */
.historical-chart-container {
  height: 400px;
}

@media (max-width: 768px) {
  .historical-chart-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .historical-chart-container {
    height: 250px;
  }
}

/* AI Suite Styling - Clean & Minimal */
#ai-tabs {
  background: var(--bg-color) !important;
  border-radius: 50px;
  padding: 5px;
}

#ai-tabs .nav-link {
  transition: all 0.2s ease;
  border-radius: 50px !important;
  font-weight: 500;
}

#ai-tabs .nav-link.active {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(47, 47, 47, 0.2) !important;
}

.card {
  background-color: var(--bg-color);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(8px);
  transition: all 0.5s ease;
}

body {
  background: var(--bg-color);
  transition: background 1.2s ease;
}
/* Unit Toggle Styling - Perfectly Rounded */
/* Forecast Header Controls - Mobile Layout */
@media (max-width: 576px) {
  .forecast-header-controls {
    justify-content: flex-start !important; /* Align to start when wrapped */
  }

  .forecast-header-controls .unit-toggle-group {
    margin-left: auto; /* Push toggle to the right */
  }
}

/* Unit Toggle Styling - Premium Pill Design */
.unit-toggle-group {
  background: var(--divider-color);
  border-radius: 50px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-unit {
  border: none !important;
  padding: 6px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  line-height: 1;
}

.btn-unit.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-unit:not(.active):hover {
  background: rgba(0, 0, 0, 0.03) !important;
  color: var(--text-primary) !important;
}

/* Premium Alert Styling */
.alert-danger {
  border: none;
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border-left: 4px solid #dc3545;
  font-weight: 500;
}

/* Mobile Hamburger Menu Styling */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #2f2f2f !important;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
  }

  .navbar-nav .nav-link {
    color: #fafaf8 !important; /* Warm White */
    padding-left: 10px;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link.active {
    color: #6faed9 !important; /* Muted Blue */
    background-color: transparent !important;
  }
}

/* Community Tabs Theming */
#communityTabs .nav-link {
  color: #2f2f2f !important;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  margin: 0 5px;
  font-weight: 600;
}

#communityTabs .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: #6faed9; /* Muted Blue */
  border-color: #6faed9;
}

#communityTabs .nav-link.active {
  background-color: var(--primary-color) !important;
  color: var(--bg-color) !important;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(47, 47, 47, 0.3);
}

/* Community Page Styles */
.masonry-feed {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .masonry-feed {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-feed {
    column-count: 1;
  }
}

.user-photo-card img {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.planner-response ul {
  list-style-type: none;
  padding-left: 0;
}

.planner-response li {
  background: var(--surface-color);
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-weather);
}
/* Historical & Climate Trends Section */
.trend-tab {
  cursor: pointer;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.trend-tab:hover {
  color: var(--primary-color) !important;
  opacity: 1;
}

.trend-tab.active-trend {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.historical-chart-wrapper {
  background: var(--surface-color);
  border-radius: 12px;
  min-height: 350px;
}

.historical-chart-container {
  transition: opacity 0.3s ease-in-out;
}

#trend-loading-overlay {
  border-radius: 16px;
  backdrop-filter: blur(2px);
}

#climate-anomaly-badge .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#climate-context-footer {
  background-color: rgba(0, 0, 0, 0.02);
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
}

.record-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Animations for new content */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#history-insight-content > .col {
  animation: fadeInSlideUp 0.4s ease-out forwards;
}

/* Accuracy Gauge Overrides (if needed) */
.accuracy-gauge-container .progress {
  background-color: var(--bg-color);
  overflow: visible;
}

.accuracy-gauge-container .progress-bar {
  border-radius: 100px;
  position: relative;
}
/* Navbar Overrides for Mobile Full Screen Menu */
@media (max-width: 991px) {
  /* Ensure container is relative for absolute positioning of logo */
  .navbar .container {
    position: relative;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background-color: var(--nav-top-bg); /* Match theme background */
    z-index: 1060; /* Above everything */
    padding-top: 80px; /* Space for logo/close button */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    transform: translateX(0);
    /* Remove default Bootstrap collapse height transition to avoid jumping */
    transition: transform 0.3s ease-in-out !important;
    height: 100vh !important;
  }

  /* Fix for Bootstrap collapsing class which might interfere during animation */
  .navbar-collapse.collapsing {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    height: 100vh !important;
    background-color: var(--nav-top-bg);
    z-index: 1060;
    transition: transform 0.3s ease-in-out !important;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
  }

  /* When collapsing starts to show */
  .navbar-collapse.collapsing.show {
    transform: translateX(0);
  }

  .navbar-nav {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--divider-color);
    text-align: center;
  }

  /* Style the links to match the reference */
  .navbar-nav .nav-link {
    font-family: "Poppins", sans-serif;
    font-size: 16px; /* Adjust size */
    font-weight: 500;
    text-transform: uppercase;
    color: var(--nav-top-text) !important;
    padding: 20px 24px; /* Generous padding */
    width: 100%;
    opacity: 1 !important; /* Full opacity */
    letter-spacing: 0.5px;
    text-align: center;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-highlight) !important;
  }

  /* Special handling for Subscribe button item on mobile */
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
    padding: 20px 24px;
    display: flex;
    justify-content: center;
  }

  /* Make subscribe button full width or styled appropriately */
  .navbar-nav #navbarSubscribeBtn {
    width: auto;
    min-width: 200px;
    text-align: center;
    margin: 0;
  }

  /* Adjust Navbar Toggler (Hamburger) */
  .navbar-toggler {
    z-index: 1070; /* Above the overlay */
    position: relative;
    border: none;
    outline: none;
    padding: 10px;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  /* Hamburger Animation */
  .hamburger-menu {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
  }

  .hamburger-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    /* Update Hamburger Color */
    background: var(--nav-top-text);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .hamburger-menu span:nth-child(1) {
    top: 0px;
  }

  .hamburger-menu span:nth-child(2) {
    top: 8px;
  }

  .hamburger-menu span:nth-child(3) {
    top: 16px;
  }

  /* Active State for Hamburger (X shape) */
  .navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }

  .navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .navbar-toggler[aria-expanded="true"] .hamburger-menu span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }

  /* Social Icons Color adjustment */
  .mobile-menu-footer .icon-link i {
    color: var(--nav-top-text) !important;
  }

  /* Logo adjustment - Revert to Left (Standard) */
  .navbar-brand {
    z-index: 1080; /* Ensure on top */
    position: relative; /* Back to normal flow */
    left: auto;
    transform: none;
    margin: 0;
  }

  .navbar .container {
    justify-content: space-between; /* Space out logo and toggler */
    min-height: 60px;
  }

  /* Adjust Navbar Toggler (Hamburger) */
  .navbar-toggler {
    margin-left: 0;
    position: relative; /* Back to normal flow */
    z-index: 1080; /* Highest priority */
  }

  /* Clean up Menu UI */
  .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Much lighter border */
  }

  .navbar-nav .nav-link {
    font-weight: 600; /* Bolder */
    font-size: 18px; /* Larger */
    letter-spacing: 1px;
    color: var(--nav-top-text) !important;
    padding: 15px 0;
  }

  .navbar-collapse {
    padding-top: 100px; /* More space from top */
  }

  /* Short screen adjustment (Landscape) */
  @media (max-height: 500px) {
    .navbar-collapse {
      padding-top: 60px; /* Less space on short screens */
    }
    .navbar-nav .nav-link {
      padding: 10px 0; /* Compact links */
    }
  }
}
/* Subscribe Modal Issue */
#subscribe_modal {
  z-index: 2050 !important; /* Higher than navbar (usually 1030ish in bootstrap) */
}

/* Navbar Logo Animation */
.synocast_logo_navbar {
  transition: all 0.3s ease-in-out;
}

/* 
   When the navbar is open (body has navbar-active), we want to center the BRAND div
   which contains the logo.
*/
.navbar-active .navbar-brand {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2000;
}

.synocast_logo_navbar {
  left: 0 !important; /* Reset the specific left: 70px on the image */
}

@media (max-width: 991px) {
  /* Ensure container is relative for absolute positioning of logo */
  .navbar .container {
    position: relative;
  }
}

/* Hide Zoom Buttons on Short Devices */
@media (max-width: 768px) {
  .leaflet-control-zoom {
    display: none !important;
  }
}
/* =========================================
   Pakistan Weather Page Styles
   ========================================= */

.city-card {
  transition: transform 0.2s;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.weather-icon-large {
  width: 60px;
  height: 60px;
}

.temp-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pagination .page-link {
  color: var(--primary-color);
  border: none;
  margin: 0 2px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
}

.loading-skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  background-color: #e0e0e0;
  color: transparent;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }

  100% {
    background-color: #f5f5f5;
  }
}

/* Skeleton utilities */
.skeleton-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skeleton-text-lg {
  width: 100px;
  height: 40px;
}

.skeleton-text-sm {
  width: 150px;
  height: 20px;
}
/* =========================================
   Location Permission Modal Styles
   ========================================= */

.location-modal-dialog {
  max-width: 400px;
}

.location-modal-content {
  border-radius: 24px !important;
}

.location-icon-circle {
  width: 70px;
  height: 70px;
}

.location-icon-lg {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
}

.location-btn-icon {
  font-size: 1.2rem;
  vertical-align: middle;
}

.btn-outline-search {
  border: 2px solid #e9ecef !important;
}
.initially-hidden {
  display: none;
}
/* =========================================
   Weather Page Styles
   ========================================= */

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

.letter-btn {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: all 0.2s;
  user-select: none;
}

.letter-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.letter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.letter-btn.disabled {
  opacity: 0.5;
  cursor: default;
  background-color: #f9f9f9;
  pointer-events: none;
}

/* Extracted Inline Styles */
.search-results-dropdown {
  z-index: 1050;
  background: white;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 15px;
}

.weather-hero-min-h {
  min-height: 350px;
}

.brightness-75 {
  filter: brightness(0.75);
}

.chart-container-lg {
  position: relative;
  height: 250px;
}

.chart-container-sm {
  position: relative;
  height: 200px;
}

.bg-impact-traffic {
  background: #f0f7fc;
}

.bg-impact-aqi {
  background: #e8f5e9;
}

.bg-impact-pollen {
  background: #fff8e1;
}

.bg-stats-card {
  background: #f8f9fa;
}

.border-top-primary-4 {
  border-top: 4px solid var(--primary-color) !important;
}

.border-top-accent-4 {
  border-top: 4px solid var(--accent-news) !important;
}

.border-left-primary-5 {
  background: #f0f7fc;
  border-left: 5px solid var(--primary-color) !important;
}

.border-left-accent-5 {
  background: #fffcf8;
  border-left: 5px solid var(--accent-news) !important;
}

.cmp-icon {
  width: 60px;
}
/* =========================================
   Home Page Styles
   ========================================= */

.home-banner-h {
  height: 50vh;
}

.banner-bg-img {
  z-index: -1;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.9);
}

.banner-overlay {
  z-index: -1;
  opacity: 0.2;
}

.shadow-text-lg {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-content-container {
  margin-top: -250px;
  z-index: 10;
}

.pt-280 {
  padding-top: 280px;
}

.mw-450 {
  max-width: 450px;
}

.w-350 {
  width: 350px;
}

.ai-recs-widget {
  width: 350px;
  background: var(--primary-color);
  color: white;
}

.mw-400 {
  max-width: 400px;
}

.news-banner-img {
  max-height: 400px;
  object-fit: cover;
  filter: blur(3px) brightness(0.9);
}

.news-card-img-lg {
  height: 400px;
  object-fit: cover;
}

.news-card-img-sm {
  height: 120px;
  width: 100%;
  object-fit: cover;
}

.font-size-sm-custom {
  font-size: 0.95rem;
}

/* News Ticker Styles */
.news-ticker-wrapper {
  display: flex;
  background-color: var(--primary-color);
  color: white;
  height: 40px;
  overflow: hidden;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-title {
  background-color: #dc3545; /* Bootstrap danger / Breaking news red */
  color: white;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  z-index: 10;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-items {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-items:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 50px;
}

.ticker-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.ticker-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.ticker-time {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 8px;
  color: #aaa;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Optimization for Ad Spaces */
.ad-container {
  overflow: hidden;
  background-color: var(--surface-color);
  border: 1px dashed var(--divider-color);
  border-radius: 8px;
  position: relative;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ad-card {
  width: 100%;
  min-height: 250px; /* Standard sidebar rect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner {
  width: 100%;
  min-height: 90px; /* Standard leaderboard */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
}

.ad-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  opacity: 0.7;
}

.ad-content {
  font-weight: 500;
  opacity: 0.5;
}

/* Ad Container Styles */
.ad-container {
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.ad-placeholder {
  width: 100%;
  max-width: 100%;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  min-height: 280px; /* Force visibility even if ad is empty */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-banner .ad-placeholder {
  min-height: 120px; /* Smaller height for banners */
}

.ad-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #adb5bd;
  margin-bottom: 0.5rem;
  display: block;
}
/* =========================================
   License Page Styles
   ========================================= */
.license-document {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.license-document:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.license-monospace {
  font-family: "Fira Code", "Courier New", Courier, monospace;
  line-height: 1.6;
}

.leading-relaxed {
  line-height: 1.8;
}

[data-theme="dark"] .license-document {
  background: #1a1a2e !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .h1,
[data-theme="dark"] .h3,
[data-theme="dark"] .h4,
[data-theme="dark"] .h5,
[data-theme="dark"] .text-dark {
  color: #eee !important;
}

[data-theme="dark"] .bg-light {
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .border {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .card-body i.text-primary {
  color: #4dabff !important;
}

/* Overrides for JS-generated elements inside Weather Card (Light Theme) */
.weather-card-container .bg-light {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.weather-card-container .bg-primary {
  background: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(58, 91, 160, 0.3);
}

.weather-card-container .dropdown-menu {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.weather-card-container input[type="search"] {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: var(--text-primary);
}

.weather-card-container input[type="search"]::placeholder {
  color: #adb5bd;
}

/* Forecast text colors for light theme */
.weather-card-container .text-white {
  color: var(--text-secondary) !important;
}

/* Make forecast active card pop */
.forecast-active {
  background: var(--primary-color) !important;
  color: white !important;
}

/* Fix skeleton for light theme */
.weather-card-container .skeleton {
  background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Fix icons colors */
.weather-card-container .fas,
.weather-card-container .fa-solid,
.weather-card-container .fa-regular {
  color: var(--primary-color);
}

.weather-card-container .dropdown-toggle::after {
  color: var(--primary-color);
}
