/* timeanddate.com Authentic Faithful Styling */
:root {
  --primary-blue: #1976d2;
  --primary-hover: #1565c0;
  --dark-header: #2f3542;
  --bg-light: #f5f6f8;
  --card-bg: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --accent-gold: #fbc02d;
  --digital-clock-bg: #1c2833;
  --digital-clock-text: #ffffff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: #1976d2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Header & Top Bar */
.header {
  background: #ffffff;
  border-bottom: 1px solid #dcdcdc;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.top-nav-wrap {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.logo-and {
  color: #e74c3c;
  font-weight: 700;
}

.banner-area {
  flex-grow: 1;
  max-width: 650px;
  margin-left: 24px;
}

.promo-banner {
  background: linear-gradient(90deg, #881226, #b01832);
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-content strong {
  display: block;
  font-size: 14px;
}

.banner-content span {
  font-size: 12px;
  opacity: 0.9;
}

.banner-btn {
  background: #ffffff;
  color: #881226;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
}
.banner-btn:hover {
  background: #f0f0f0;
  text-decoration: none;
}

/* Main Navigation Bar */
.main-nav-bar {
  background: #2b3137;
  color: #ffffff;
}

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

.nav-links {
  display: flex;
  list-style: none;
  overflow-x: auto;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e6e6e6;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-links li.active a,
.nav-links li a:hover {
  background: #39424e;
  color: #ffffff;
  border-bottom-color: #3498db;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: #414b56;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-btn:hover {
  background: #505c6a;
}

/* Main Layout */
.main-layout {
  padding-top: 20px;
  padding-bottom: 50px;
}

/* Cards Layout Top Row */
.cards-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafbfc;
}

.card-head h2, .card-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #24292e;
}

.card-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Current Time specifics */
.current-time-display {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.current-weekday {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.current-date {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.current-location-box {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}

.location-name {
  font-size: 13.5px;
  color: #1976d2;
  font-weight: 600;
}

.timezone-abbr {
  font-size: 11.5px;
  color: #777;
}

.link-set-home {
  font-size: 12px;
  color: #1976d2;
  margin-top: 4px;
  display: inline-block;
}

.clock-badge {
  background: var(--digital-clock-bg);
  color: var(--digital-clock-text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* Quick search inside card */
.quick-search-section {
  margin-bottom: 16px;
  position: relative;
}

.search-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  display: block;
}

.search-input-wrap {
  display: flex;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 3px 0 0 3px;
  font-size: 12.5px;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: #1976d2;
}

.search-input-wrap button {
  background: #1976d2;
  border: 1px solid #1976d2;
  color: #fff;
  padding: 0 12px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
}

.search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f4f4f4;
  display: flex;
  justify-content: space-between;
}
.search-item:hover {
  background: #e8f0fe;
}
.search-item .city-name {
  font-weight: 600;
}
.search-item .city-time {
  font-weight: 700;
  color: #1976d2;
}

/* Sub-links inside cards */
.sub-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.sub-links-list.full-spacing {
  gap: 14px;
}

.sub-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.sub-link-item:hover {
  background: #f7f9fa;
  text-decoration: none;
}

.icon-wrap {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
}

.bg-blue { background-color: #2196f3; }
.bg-teal { background-color: #009688; }
.bg-indigo { background-color: #3f51b5; }
.bg-pink { background-color: #e91e63; }
.bg-green { background-color: #4caf50; }
.bg-orange { background-color: #ff9800; }
.bg-orange-alt { background-color: #ff5722; }
.bg-emerald { background-color: #10b981; }
.bg-cyan { background-color: #00bcd4; }
.bg-purple { background-color: #9c27b0; }
.bg-yellow { background-color: #fbc02d; color: #333; }
.bg-slate { background-color: #607d8b; }

.sub-link-item strong {
  display: block;
  font-size: 13.5px;
  color: #1976d2;
}

.sub-link-item span {
  font-size: 12px;
  color: #666;
  line-height: 1.35;
  display: block;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 10px;
}

.footer-btn {
  width: 100%;
  padding: 8px;
  background: #eef2f7;
  color: #1976d2;
  border: 1px solid #d4deeb;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
}
.footer-btn:hover {
  background: #e2ebf5;
  text-decoration: none;
}

/* Calendar Card Specifics */
.calendar-controls-form {
  margin-bottom: 14px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
}

.radio-row label {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.input-inline-sm {
  width: 75px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.input-inline-md {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.current-day-badge {
  margin-left: auto;
  background: #2b3137;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  padding: 3px 8px;
  min-width: 44px;
}

.badge-year { display: block; font-size: 9px; opacity: 0.8; }
.badge-month { display: block; font-size: 9px; text-transform: uppercase; }
.badge-day { display: block; font-size: 16px; font-weight: bold; line-height: 1.1; }

.select-row {
  margin-top: 8px;
  margin-bottom: 12px;
}

.input-full {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

.btn-primary-blue {
  background: #1976d2;
  color: #fff;
  border: none;
  width: 100%;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-primary-blue:hover {
  background: #1565c0;
}

/* Middle Row: Featured news / Space */
.cards-row-middle {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.article-feature-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

.article-image-box {
  width: 45%;
  position: relative;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.article-content {
  width: 55%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-content h3 {
  font-size: 17px;
  color: #1976d2;
  margin-bottom: 8px;
}

.article-content p {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.article-date {
  font-size: 11.5px;
  color: #888;
}

.article-side-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.mini-info h4 {
  font-size: 13px;
  color: #1976d2;
  margin-bottom: 4px;
}

.mini-info p {
  font-size: 11.5px;
  color: #666;
  line-height: 1.3;
}

/* Bottom Row Triplet */
.cards-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.sun-moon-live-widget {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.celestial-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.celestial-icon {
  font-size: 20px;
}
.celestial-icon.sun { color: #f59e0b; }
.celestial-icon.moon { color: #64748b; }

.celestial-item .label {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

.celestial-item strong {
  font-size: 13.5px;
  color: #1e293b;
}

/* Weather Widget */
.weather-summary-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.weather-temp-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-icon {
  font-size: 32px;
  color: #f59e0b;
}

.temp-val {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
}

.weather-details {
  display: flex;
  flex-direction: column;
}

.weather-condition {
  font-size: 13px;
  font-weight: 700;
  color: #0d47a1;
}

.weather-sub {
  font-size: 11.5px;
  color: #455a64;
}

.weather-city {
  font-size: 11px;
  font-weight: 600;
  color: #546e7a;
}

.weather-forecast-strip {
  display: flex;
  justify-content: space-between;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}

.forecast-day i {
  color: #f59e0b;
  font-size: 14px;
}

/* Master World Clock Section */
.world-clock-section, .converter-section, .full-calendar-display, .favorites-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-bar h2 {
  font-size: 20px;
  color: #24292e;
}

.section-title-bar p {
  font-size: 13px;
  color: #666;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls input, .filter-controls select {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

.clock-table-container {
  overflow-x: auto;
}

.clock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.clock-table th {
  background: #f6f8fa;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #e1e4e8;
  font-weight: 600;
  color: #24292e;
}

.clock-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eaecef;
  vertical-align: middle;
}

.clock-table tr:hover {
  background-color: #f8fafc;
}

.star-col {
  width: 30px;
  text-align: center;
  cursor: pointer;
}

.star-icon {
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
}
.star-icon.active {
  color: #eab308;
}

.city-link {
  font-weight: 700;
  color: #1976d2;
}

.local-time-cell {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  color: #1e293b;
}

.day-badge-light {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
}
.day-badge-light.night {
  background: #1e293b;
  color: #f8fafc;
}

/* Pinned Favorites Grid */
.fav-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.fav-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background: #fdfdfd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.fav-card-left h4 {
  font-size: 15px;
  color: #1976d2;
  margin-bottom: 2px;
}

.fav-card-left span {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.fav-card-right {
  text-align: right;
}

.fav-card-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 19px;
  font-weight: bold;
  color: #0f172a;
}

.fav-card-date {
  font-size: 11px;
  color: #64748b;
}

/* Converter Box */
.converter-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}

.converter-inputs {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.converter-col {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.converter-col label {
  font-weight: 700;
  font-size: 13px;
}

.converter-col-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swap-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1976d2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.swap-btn:hover {
  background: #eef2f7;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13.5px;
  background: #fff;
}

.time-picker-row {
  display: flex;
  gap: 8px;
}

.target-time-badge {
  flex: 1;
  background: #1e293b;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-date-badge {
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conv-preview {
  font-size: 12px;
  color: #64748b;
}

.converter-summary-alert {
  margin-top: 16px;
  background: #e0f2fe;
  color: #0369a1;
  border-left: 4px solid #0284c7;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  font-size: 13.5px;
}

/* Calendar Section Grid */
.calendar-grid-wrapper {
  margin-top: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.calendar-nav-buttons {
  display: flex;
  gap: 8px;
}

.btn-cal-nav {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
}
.btn-cal-nav:hover {
  background: #e2e8f0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  text-align: center;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

.calendar-weekdays div {
  padding: 10px 4px;
  font-size: 13px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #fff;
}

.cal-day-cell {
  min-height: 80px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cal-day-cell:nth-child(7n) {
  border-right: none;
}

.cal-day-cell.other-month {
  background: #fafafa;
  color: #aaa;
}

.cal-day-cell.today {
  background: #f0fdf4;
  border: 2px solid #22c55e;
}

.cal-day-number {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.cal-event-tag {
  font-size: 10.5px;
  padding: 2px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holidays-legend-box {
  margin-top: 20px;
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
}

.holidays-legend-box h3 {
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 10px;
}

.holiday-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 16px;
  list-style: none;
  font-size: 12.5px;
}

.holiday-list-grid li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.holiday-date {
  font-weight: 600;
  color: #475569;
}

.holiday-name {
  color: #0369a1;
  font-weight: 600;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: 6px;
  width: 95%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.modal-header {
  padding: 14px 18px;
  background: #2b3137;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
}

.modal-city-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-top: 10px;
}

.modal-city-row {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.modal-city-row:hover {
  background: #e8f0fe;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mt-3 { margin-top: 12px; }

/* Footer */
.footer {
  background: #1e242a;
  color: #cbd5e1;
  padding: 40px 0 20px 0;
  font-size: 12.5px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-col ul li a:hover {
  color: #38bdf8;
}

.copyright {
  margin-top: 20px;
  color: #64748b;
  font-size: 11.5px;
}

.text-gold { color: #f59e0b; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .cards-row-top, .cards-row-bottom {
    grid-template-columns: 1fr;
  }
  .cards-row-middle {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
  }
  .banner-area {
    margin-left: 0;
    width: 100%;
  }
  .converter-inputs {
    flex-direction: column;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENHANCED MODERN STYLING FOR DEDICATED TOOL PAGES & AD UNITS
   ========================================================================== */

/* Brand & Header Upgrade */
.brand-title-wrap {
  display: flex;
  flex-direction: column;
}
.brand-tagline {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1e293b;
}
.brand-name span {
  color: #2563eb;
}

/* Page Layout Wrapper for AdSense Skyscraper Banners */
.page-layout-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 24px;
}

.main-content-area {
  flex: 1;
  min-width: 0;
  max-width: 1140px;
  padding: 1.25rem 0 3rem 0;
}

/* AdSense Flank Skyscraper Banners (Commented out during review, ready for post-approval) */
.adsense-flank {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 75px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ad-slot-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-box .ad-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.adsense-leaderboard-bottom {
  margin: 2.5rem 0 1.5rem 0;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.adsense-mobile-slot {
  display: none;
  margin: 1rem 0;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

@media (max-width: 1240px) {
  .adsense-flank {
    display: none !important;
  }
  .adsense-mobile-slot {
    display: block;
  }
}

/* Dedicated Tool Heroes */
.tool-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}
.tool-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.tool-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.tool-hero p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
}

/* Tool Interactive Workspace Card */
.tool-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
}

/* Form Controls and Input styling */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.input-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}
.modern-input, .modern-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.modern-input:focus, .modern-select:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-action-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  text-decoration: none;
  color: #ffffff;
}

/* Result Box Display */
.result-display-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1.75rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}
.result-display-box.blue-theme {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.result-header {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-display-box.blue-theme .result-header {
  color: #1e40af;
}
.result-big-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.result-display-box.blue-theme .result-big-value {
  color: #1e3a8a;
}
.result-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 101, 52, 0.15);
}
.result-display-box.blue-theme .result-details-grid {
  border-top-color: rgba(30, 64, 175, 0.15);
}
.result-detail-item {
  display: flex;
  flex-direction: column;
}
.result-detail-item .label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
}
.result-detail-item .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

/* Rich SEO FAQ & Editorial Article Styles */
.seo-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.seo-article-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-article-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.75rem 0 0.75rem 0;
}
.seo-article-card p {
  color: #475569;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.seo-article-card ul, .seo-article-card ol {
  margin: 1rem 0 1.5rem 1.75rem;
  color: #475569;
}
.seo-article-card li {
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-accordion-box {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
}
.faq-question {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}
.faq-answer {
  padding: 1.25rem;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
}

/* Legal Pages (About, Privacy, Terms, Contact) */
.legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  line-height: 1.75;
  color: #334155;
}
.legal-card h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.legal-card .updated-date {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.legal-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 2rem 0 0.75rem 0;
}
.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin: 1.5rem 0 0.5rem 0;
}
.legal-card p {
  margin-bottom: 1.25rem;
}
.legal-card ul {
  margin: 0.75rem 0 1.5rem 1.5rem;
}
.legal-card li {
  margin-bottom: 0.5rem;
}


/* ==========================================================================
   MODERN BRAND LOGO & TRUST HEADER BADGES
   ========================================================================== */
.custom-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  border: 1px solid #e0f2fe;
  transition: transform 0.2s ease;
}

.custom-brand-logo:hover .brand-logo-icon {
  transform: scale(1.05);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.brand-accent {
  color: #0284c7;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Header Trust Badges */
.header-trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.trust-badge-pill:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header-trust-badges {
    display: none;
  }
}

/* ==========================================================================
   MODERN 2026 UI UPGRADE: CLEAN SAAS AESTHETICS (SHADOWS, CARDS, TYPOGRAPHY)
   ========================================================================== */
:root {
  --primary-blue: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-header: #0f172a;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-gold: #f59e0b;
  --digital-clock-bg: #0f172a;
  --digital-clock-text: #f8fafc;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.15px;
}

/* Header Navbar: Sleek, high-end backdrop blur */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.top-nav-wrap {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.main-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.nav-links li a {
  font-weight: 600;
  color: #475569;
  padding: 14px 16px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-links li.active a,
.nav-links li a:hover {
  color: #2563eb;
  background: #f0f7ff;
  border-radius: 8px;
  text-decoration: none;
}

/* Redesigned Minimal Pro Brand Logo */
.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.brand-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.brand-main-title .brand-accent {
  color: #2563eb;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* Modern Card Layouts */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.card-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

/* Digital Clock: Clean OLED Style */
.clock-badge {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 4px 10px rgba(15, 23, 42, 0.15);
  font-size: 2rem;
}

/* Modern Inputs & Buttons */
.search-input-wrap input {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* World Clock Table modern redesign */
.world-clock-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.world-clock-table tr:hover td {
  background-color: #f8fafc;
}


/* ==========================================================================
   HEADER RESPONSIVENESS: ZERO HORIZONTAL SCROLLBAR GUARANTEE
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.header {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.top-nav-wrap, .main-nav-bar {
  width: 100%;
  max-width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Wraps cleanly on smaller screens so NO horizontal scroll */
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  padding: 10px 12px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .nav-links li a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto; /* Clean touch swipe on mobile without body scroll */
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-right {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* Brand logo styling matching user reference */
.brand-main-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   ELEGANT MODERN UI OVERHAUL: CLEAN METRICS & PROPORTIONS
   ========================================================================== */

/* 1. Refined, Sleek Digital Clock (No bulky retro black block) */
.current-time-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.time-left-details .current-weekday {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-left-details .current-date {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin: 2px 0 6px 0;
}

.time-left-details .current-location-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.time-left-details .location-name {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.95rem;
}

.time-left-details .timezone-abbr {
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem;
}

.clock-badge {
  background: #0f172a !important;
  color: #38bdf8 !important; /* Elegant cyan glow text */
  border: 1.5px solid #1e293b;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 800 !important;
  font-size: 1.85rem !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
  text-align: center;
  min-width: 165px;
}

/* 2. Modernized Astronomy & Global Earth Updates Grid */
.cards-row-middle {
  margin: 2rem 0;
}

.article-feature-card {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04) !important;
  transition: all 0.2s ease;
}

.article-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08) !important;
}

.mini-card-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease;
}

.mini-card-item:hover {
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.mini-thumb img {
  border-radius: 8px !important;
}

/* 3. Modernized Bottom Triplet Cards: Calculators, Sun/Moon, Weather */
.cards-row-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cards-row-bottom .card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
}

.sun-moon-live-widget {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 1.25rem;
}

.weather-header-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 1rem;
  text-align: center;
}

.forecast-day {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
}

/* 4. Overhauled Personal World Clock & Converter & Calendar Section */
.personal-clock-grid, .favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fav-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.fav-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37,99,235,0.08);
}

.fav-card-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
}

/* Dynamic Interactive Calendar Table */
.full-cal-table {
  border-collapse: separate;
  border-spacing: 4px;
  width: 100%;
}

.full-cal-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 6px;
}

.full-cal-table td {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 52px;
  vertical-align: top;
  padding: 6px;
  transition: all 0.2s ease;
}

.full-cal-table td:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.cal-day-cell.today {
  border: 2px solid #2563eb !important;
  background: #eff6ff !important;
}

/* Converter Interactive Container */
.converter-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
}


/* ==========================================================================
   MODERN UNIFIED CURRENT TIME CARD REDESIGN
   ========================================================================== */
.modern-time-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.modern-time-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.time-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.time-card-date-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modern-pill-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: 9999px;
}

.modern-calendar-date {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Elegant Modern Live Clock - Seamless Glassmorphism instead of jarring black box */
.modern-live-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 18px;
  letter-spacing: 1.5px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  min-width: 175px;
  text-align: center;
}

.time-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.location-info .location-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.location-info .tz-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.modern-link-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modern-link-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}


/* ==========================================================================
   DEDICATED HIGH-VISIBILITY HERO TIME CARD STYLING
   ========================================================================== */
.hero-live-time-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.hero-live-time-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.hero-time-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-city-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.hero-tz-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 6px;
}

.hero-change-loc-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.hero-change-loc-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}

/* Dedicated High-Contrast Card for the Digits */
.hero-time-digits-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-live-clock-face {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 3.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-live-status-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 9999px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.hero-time-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.hero-weekday-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.5px;
}

.hero-full-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
}

@media (max-width: 480px) {
  .hero-live-clock-face {
    font-size: 2.6rem;
  }
}

/* ==========================================================================
   INTERACTIVE WORLD TIME ZONE MAP STYLES
   ========================================================================== */
.timezone-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  border: 1px solid #1e293b;
}

.map-hover-tooltip {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tz-svg-band {
  cursor: pointer;
  transition: fill 0.15s ease;
}

.tz-svg-band:hover {
  fill: rgba(56, 189, 248, 0.28) !important;
}


/* Update LIVE status pill position: inline in the header, 0 overlap with digits */
.hero-live-status-pill {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #15803d !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: #16a34a !important;
  border-radius: 50%;
  box-shadow: 0 0 4px #22c55e;
}

.hero-time-digits-container {
  padding: 22px 16px !important;
  position: static !important;
}

.hero-live-clock-face {
  font-size: 3.2rem !important;
  width: 100% !important;
  text-align: center !important;
}

/* ==========================================================================
   VIBRANT MODERN HEADER NAVIGATION: PASTEL COLOR-CODED PILLS & ACTIVE STATES
   ========================================================================== */
.main-nav-bar {
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
  display: inline-flex;
}

.nav-links li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

/* Plain neutral tabs by default; colored button pill only when active (or subtle tint on hover) */
.nav-links li a {
  color: #1e293b !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.nav-links li a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Active Tab - Unified Primary Blue (.btn-primary-blue color) */
.nav-links li.active a,
.nav-links li a.active {
  background: #1976d2 !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.25) !important;
}

.nav-links li.active a:hover,
.nav-links li a.active:hover {
  background: #1565c0 !important;
  color: #ffffff !important;
}

.nav-btn {
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTENT RICHNESS & MODERN CARD ELEVATION OVERHAUL
   ========================================================================== */
.card-head {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 18px 22px;
  border-bottom: 1.5px solid #f1f5f9;
}

.sub-link-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-link-item:hover {
  border-color: #2563eb;
  background: #f8fafc;
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.sub-link-item .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bg-blue { background: #eff6ff; color: #2563eb; }
.bg-teal { background: #f0fdfa; color: #0d9488; }
.bg-indigo { background: #eef2ff; color: #4f46e5; }
.bg-pink { background: #fdf2f8; color: #db2777; }
.bg-green { background: #f0fdf4; color: #16a34a; }
.bg-orange { background: #fff7ed; color: #ea580c; }
.bg-cyan { background: #ecfeff; color: #0891b2; }
.bg-purple { background: #faf5ff; color: #9333ea; }
.bg-emerald { background: #ecfdf5; color: #059669; }



/* ==========================================================================
   MODERN CONTENT RICHNESS: GLOBAL GLANCE, MAP SPOTLIGHT & SEO GUIDES
   ========================================================================== */

/* 1. Global Glance Ticker Strip */
.global-glance-strip {
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.04);
}

.glance-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.glance-strip-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glance-pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.glance-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.glance-city-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.glance-city-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.glance-city-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glance-city-tz {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.glance-city-time {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: #2563eb;
  margin-top: 4px;
}

.glance-day-night-icon {
  font-size: 0.75rem;
}

.glance-day-night-icon.day { color: #f59e0b; }
.glance-day-night-icon.night { color: #6366f1; }

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

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

/* 2. Interactive Map Spotlight Feature Card */
.map-spotlight-section {
  margin: 32px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.map-spotlight-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.map-spotlight-content {
  max-width: 650px;
  z-index: 1;
}

.map-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.map-spotlight-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.map-spotlight-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.map-spotlight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.map-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

.map-feature-item i {
  color: #38bdf8;
}

.map-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.map-spotlight-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.map-spotlight-visual {
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-mini-preview-frame {
  width: 240px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 840px) {
  .map-spotlight-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .map-spotlight-visual {
    width: 100%;
    justify-content: flex-start;
  }
  .map-mini-preview-frame {
    width: 100%;
    max-width: 300px;
  }
}

/* 3. In-Depth Editorial & Knowledge Guides */
.editorial-guides-section {
  margin: 40px 0 20px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.editorial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.editorial-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.editorial-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.editorial-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
}

.editorial-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.editorial-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.editorial-link:hover {
  color: #1d4ed8;
  gap: 8px;
}

@media (max-width: 900px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

/* 4. Interactive FAQ Accordion */
.faq-knowledge-section {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.04);
}

.faq-header-bar {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.faq-header-bar h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-header-bar p {
  font-size: 0.95rem;
  color: #64748b;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-accordion-item {
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: #e2e8f0;
}

.faq-accordion-item.open {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  gap: 14px;
}

.faq-question-btn:hover {
  color: #2563eb;
}

.faq-icon-toggle {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.faq-accordion-item.open .faq-icon-toggle {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-answer-panel {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  margin-top: -4px;
  padding-top: 14px;
}

.faq-accordion-item.open .faq-answer-panel {
  display: block;
}


/* ==========================================================================
   ULTRA-PROFESSIONAL UI ELEVATION: PINNED CLOCKS, CONVERTER & CALENDAR
   ========================================================================== */

/* --- 1. PERSONAL WORLD CLOCK (PINNED LOCATIONS) --- */
.favorites-section {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.fav-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fav-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

.fav-card.is-day {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}

.fav-card.is-night {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.fav-card-accent-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.fav-card.is-day .fav-card-accent-strip {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fav-card.is-night .fav-card-accent-strip {
  background: linear-gradient(90deg, #6366f1, #3b82f6);
}

.fav-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.fav-city-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}

.fav-city-link {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.fav-city-link:hover {
  color: #2563eb;
}

.fav-country-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-top: 3px;
}

.fav-card-remove-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fav-card-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: scale(1.08);
}

.fav-card-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fav-card-time {
  font-size: 1.9rem;
  font-weight: 900;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1;
}

.fav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.fav-status-pill.day {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.fav-status-pill.night {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.fav-card-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
}

.btn-pin-city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-pin-city:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}


/* --- 2. TIME ZONE CONVERTER & DIFFERENCE CALCULATOR --- */
.converter-section {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.converter-box {
  background: #ffffff;
  border: none;
  padding: 0;
}

.converter-inputs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 860px) {
  .converter-inputs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.conv-card-station {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conv-card-station.source {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.conv-card-station.target {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.conv-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.conv-card-station.source .conv-card-badge {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.conv-card-station.target .conv-card-badge {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.form-select-modern {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select-modern:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.conv-time-row {
  display: flex;
  gap: 10px;
}

.form-input-modern {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
}

.form-input-modern:focus {
  border-color: #2563eb;
  outline: none;
}

.swap-action-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swap-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.swap-action-btn:hover {
  transform: scale(1.12) rotate(180deg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.target-digital-display {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.target-digital-time {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.target-digital-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: right;
  line-height: 1.3;
}

.conv-preview-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.converter-difference-banner {
  margin-top: 22px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.diff-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.diff-content-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.4;
}

.diff-subtext {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}


/* --- 3. CALENDAR FOR NOVEMBER 2026 & PUBLIC HOLIDAYS --- */
.full-calendar-display {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.calendar-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-main-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.calendar-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}

.calendar-segmented-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}

.btn-cal-segment {
  background: transparent;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cal-segment:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-cal-segment.active-today {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.calendar-grid-wrapper {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  text-align: center;
}

.calendar-weekdays div {
  padding: 12px 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569;
}

.calendar-weekdays div:first-child {
  color: #e11d48; /* Sunday accent */
}

.calendar-weekdays div:last-child {
  color: #0284c7; /* Saturday accent */
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #ffffff;
}

.cal-day-cell {
  min-height: 96px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  transition: all 0.15s ease;
}

.cal-day-cell:hover {
  background: #f8fafc;
}

.cal-day-cell:nth-child(7n) {
  border-right: none;
}

.cal-day-cell.other-month {
  background: #fafbfc;
  opacity: 0.45;
}

.cal-day-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cal-day-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.cal-day-cell.today {
  background: #eff6ff !important;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.cal-day-cell.today .cal-day-number {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.cal-today-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cal-holiday-pill {
  background: #ffe4e6;
  border-left: 3px solid #e11d48;
  color: #9f1239;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08);
}

.cal-custom-pill {
  border-left: 3px solid #0284c7;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

/* Modern Public Holidays Cards Showcase */
.holidays-showcase-box {
  margin-top: 28px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.holidays-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.holidays-showcase-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.holiday-total-badge {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.holiday-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.holiday-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.holiday-card-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.holiday-leaf-date {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #fecaca;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.1);
}

.holiday-leaf-month {
  width: 100%;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  padding: 1px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.holiday-leaf-day {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  padding: 2px 0;
}

.holiday-card-details {
  flex-grow: 1;
}

.holiday-card-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.holiday-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}


/* Interactive Map Red City Dots (Matching Image 2 Reference) */
.map-red-dot-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.map-city-red-dot {
  width: 6.5px;
  height: 6.5px;
  background: #ef4444;
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-red-dot-wrap:hover .map-city-red-dot {
  transform: scale(1.8);
  background: #dc2626;
  box-shadow: 0 0 10px #ef4444;
  border-color: #ffffff;
}

.map-city-red-dot.active-dot {
  transform: scale(2.2);
  background: #2563eb;
  border-color: #ffffff;
  box-shadow: 0 0 12px #2563eb;
  animation: pulseBeacon 1.5s infinite;
}

@keyframes pulseBeacon {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Force border removal on footer h4 headers */
.footer-col h4 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Ensure Day/Night Sun icon strictly renders font-awesome sun */
.fa-sun::before,
.fa-solid.fa-sun::before,
i.fa-sun::before {
  content: "\f185" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* ============================================================
   GLOBAL HEADER / NAV OVERRIDES  (applied last — highest priority)
   ============================================================ */

/* 1. Sticky header — fixed to top, never scrolls away */
.header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  overflow: visible !important;   /* allow dropdown children to overflow */
}

.header .container {
  max-width: 1360px !important;
  width: 100% !important;
}

/* 2. Remove the divider line between the logo row and the nav pill row & center header */
.top-nav-wrap {
  border-bottom: none !important;
  padding: 8px 0 !important;
}

.top-nav {
  justify-content: center !important;
}

.banner-area {
  display: none !important;
}

/* 3. Nav bar: single row centered */
.nav-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

.nav-links {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;      /* all items stay on ONE line */
  overflow-x: auto !important;       /* scroll horizontally only on narrow viewports */
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;             /* hide scrollbar (Firefox) */
  gap: 4px !important;
  padding: 2px 0 !important;
}
.nav-links::-webkit-scrollbar { display: none; } /* hide scrollbar (Chrome) */

.nav-links li {
  flex: 0 0 auto !important;
}

.nav-links li a {
  white-space: nowrap !important;    /* prevent text from wrapping inside a pill */
  padding: 12px 14px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  gap: 6px !important;
}

.nav-right {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 0 !important;
}

.nav-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 7px 12px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.nav-btn:hover {
  background: #f0f7ff !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
}

/* Professional Nav-Bar Detect My City Button (after Online Calendar) */
.nav-item-locate {
  margin-left: auto !important;
}

.detect-city-btn,
.nav-links li a.detect-city-btn {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 13px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22) !important;
  transition: all 0.2s ease !important;
}

.detect-city-btn:hover,
.nav-links li a.detect-city-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.32) !important;
  text-decoration: none !important;
}

/* 4. Footer: copyright block always at the absolute bottom of the footer */
.footer-bottom-bar {
  border-top: none !important;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Make <html> and <body> full-height so sticky works in all browsers */
html, body {
  height: 100%;
}

/* ============================================================
   PROFESSIONAL GLOBAL WORLD CLOCK DIRECTORY TABLE UI
   ============================================================ */
.world-clock-section .filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.world-clock-section #worldClockFilter {
  min-width: 260px;
  padding: 9px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.86rem;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.world-clock-section #worldClockFilter:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.world-clock-section #continentFilter {
  padding: 9px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
}

.clock-table-container {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.clock-table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 14px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.clock-table tbody tr {
  transition: background-color 0.15s ease;
}

.clock-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.clock-table tbody tr:hover {
  background-color: #eff6ff !important;
}

.clock-table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.utc-offset-pill {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.day-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7 !important;
  color: #b45309 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
}

.day-badge-light.night {
  background: #e0e7ff !important;
  color: #4338ca !important;
}

/* ============================================================
   MOBILE-FRIENDLY RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .top-nav-wrap {
    padding: 6px 0 !important;
  }
  .top-nav {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .banner-area {
    display: none !important;
  }
  .brand-main-title {
    font-size: 1.32rem !important;
  }
  .brand-subtitle {
    font-size: 0.72rem !important;
  }
  .brand-logo-icon {
    width: 42px !important;
    height: 42px !important;
  }
  .brand-logo-icon svg {
    width: 36px !important;
    height: 36px !important;
  }
  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 4px 0 !important;
    width: 100% !important;
  }
  .nav-links li {
    width: 100% !important;
  }
  .nav-links li a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    min-height: 34px !important;
    gap: 5px !important;
  }
  .detect-city-btn {
    padding: 6px 12px !important;
    font-size: 0.74rem !important;
  }
  .main-layout,
  .main-content-area {
    padding: 12px !important;
  }
  .cards-row-top,
  .cards-row-middle,
  .cards-row-bottom,
  .form-grid-2,
  .form-grid-3,
  .converter-grid,
  .holiday-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .calendar-header-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .calendar-days > div,
  .calendar-day-cell {
    min-height: 54px !important;
    padding: 4px !important;
    font-size: 0.75rem !important;
  }
  .clock-badge {
    font-size: 1.45rem !important;
    padding: 10px 14px !important;
  }
  .tool-hero h1 {
    font-size: 1.45rem !important;
  }
  .tool-workspace-card {
    padding: 14px !important;
  }
  .map-search-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #mapSearchResultsDropdown {
    right: 0 !important;
  }
  #mapCityCardPopup {
    min-width: 175px !important;
    max-width: 85% !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .footer p {
    font-size: 0.78rem !important;
    word-break: break-word;
  }
}

/* ============================================================
   GLOBAL MODERN SAAS-GRADE UI POLISH LAYER
   ============================================================ */
body {
  background-color: #f1f5f9;
  background-image: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.07) !important;
}

.card,
.tool-workspace-card,
.seo-article-card,
.full-calendar-display,
.converter-section,
.world-clock-section,
.favorites-section {
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 6px 24px -6px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03) !important;
}

.sub-link-item {
  border-radius: 12px !important;
  padding: 10px 12px !important;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease !important;
}

.sub-link-item:hover {
  background-color: #f8fafc !important;
  transform: translateX(3px);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.fav-card {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.fav-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd !important;
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.14) !important;
}

.modern-input,
.modern-select {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modern-input:focus,
.modern-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
  outline: none !important;
}

.btn-action-primary {
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.btn-action-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.faq-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-bottom: 10px !important;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #bfdbfe !important;
}

.faq-question {
  padding: 14px 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 18px 16px 18px !important;
  color: #475569 !important;
  line-height: 1.65;
}

.footer {
  border-top: 3px solid #2563eb !important;
}

.footer a {
  transition: color 0.18s ease;
}

.footer a:hover {
  color: #38bdf8 !important;
}

/* ============================================================
   DESKTOP SINGLE-LINE CENTERED HEADER (Brand + Nav Tabs)
   ============================================================ */
@media (min-width: 1025px) {
  .header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    padding: 8px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .top-nav-wrap {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
  }
  .top-nav-wrap .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .brand-logo-icon {
    width: 48px !important;
    height: 48px !important;
  }
  .brand-logo-icon svg {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-main-title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
  }
  .brand-subtitle {
    font-size: 0.75rem !important;
  }
  .main-nav-bar {
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
  }
  .main-nav-bar .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav-links {
    gap: 4px !important;
  }
  .nav-links li a {
    padding: 12px 14px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    gap: 6px !important;
  }
}


/* Clean, subtle, professional tab outlines and borders */
.nav-links li a {
  outline: none !important;
  box-shadow: none;
}
.nav-links li a:focus,
.nav-links li a:focus-visible {
  outline: none !important;
}
.nav-links li a:active {
  transform: none !important;
  outline: none !important;
}
