
/* ---------- Layout: Hero / Main ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ---------- Card ---------- */
.card {
  background: #ffffffee;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
}

/* Slight variation for nested cards in facts section */
.info-block .card {
  background: rgba(248, 250, 252, 0.9);
  border-style: dashed;
}

/* Dark mode overrides for cards */
body.dark-mode .card {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

body.dark-mode .info-block .card {
  background: rgba(15, 23, 42, 0.8);
}

/* ---------- Main Clock Block ---------- */
.info-block { display:flex; flex-direction:column; gap:22px; }

/* =====================================================
   Big Country Clock (UK Template Style)
===================================================== */

.country-big-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  margin-top: 8px;
  border-radius: 20px;
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.18),
    transparent 65%
  );
}

.country-time-value {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

body.dark-mode .country-time-value {
  color: #e5e7eb;
}

.country-time-label {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #6b7280;
}

body.dark-mode .country-time-label {
  color: #9ca3af;
}

/* UTC pill */
.utc-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  margin: 12px auto 0;
}

body.dark-mode .utc-row {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.25);
}

/* timezone label */
.main-clock .tz {
  flex: 1;
  min-width: 220px;
  font-size: 0.95rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .main-clock .tz { color: #9ca3af; }

.flag-inline-title {
  height: 1em;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* Small UTC clock */
.utc-small {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

body.dark-mode .utc-small {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.clock-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 500;
}

.clock-tz {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

body.dark-mode .clock-tz { color: #9ca3af; }

/* ---------- Meta Row (country, capital, etc.) ---------- */

.hero-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:6px;
  gap:10px;
  flex-wrap:wrap;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 16px;
  margin-top: 6px;
}

.meta {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4b5563;
  padding: 8px 10px;
  border-left: 3px solid rgba(148, 163, 184, 0.6);
  background: rgba(241, 245, 249, 0.9);
  border-radius: 0 10px 10px 0;
}

body.dark-mode .meta {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.live-clock-text{
  text-align:center;
  width:100%;
  margin-top:8px;
  font-size:0.9rem;
  color:#6b7280;
}

.live-clock-text a{
  color:#2563eb;
  text-decoration:underline;
}

body.dark-mode .live-clock-text{
  color:#9ca3af;
}

/* Meta links */
.meta a{
  color:#2563eb;
  text-decoration:underline;
  font-weight:500;
}

.meta a:hover{
  text-decoration:none;
}

/* Dark mode meta links */
body.dark-mode .meta a{
  color:#93c5fd;
  text-decoration:underline;
}

body.dark-mode .meta a:hover{
  color:#bfdbfe;
}

/* ---------- Related Searches ---------- */

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.related-tags a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 999px;

  background: var(--bg-soft);
  border: 1px solid rgba(148,163,184,0.4);

  color: #2563eb;
  text-decoration: none !important;

  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}

.related-tags a:hover {
  background: rgba(37,99,235,0.06);
  border-color: #2563eb;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Dark mode */

body.dark-mode .related-tags a {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.5);
  color: #93c5fd;
  text-decoration: none !important;
}

body.dark-mode .related-tags a:hover {
  background: rgba(37,99,235,0.15);
  border-color: #2563eb;
  color: #e5f0ff;
  text-decoration: none !important;
}

/* ---------- Section Titles ---------- */
.country-title{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:4px;
}

.title-main{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight:600;
  color:#0f172a;
}

body.dark-mode .title-main{
  color:#e5e7eb;
}

.tz-small{
  margin-top:4px;
  font-size:0.85rem;
  color:#6b7280;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 12px 0 10px;
  color: #0f172a;
}

body.dark-mode .section-title { color: #e5e7eb; }

.section-title img.flag-inline-title { box-shadow: none; }

/* ---------- Cities Lists ---------- */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

/* JS-populated city cards */
.city-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 58%),
              #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.dark-mode .city-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 58%),
              rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.city-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.city-time {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.city-offset {
  font-size: 0.8rem;
  color: #6b7280;
}

body.dark-mode .city-offset { color: #9ca3af; }

/* ---------- Info Toggle (Theme Aligned) ---------- */
.info-toggle {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.08),
    rgba(37, 99, 235, 0.02)
  );
  color: #0f172a;
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 14px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover */
.info-toggle:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

/* Toggle icon */
.toggle-icon {
  font-size: 20px;
  color: #2563eb;
  transition: transform 0.25s ease;
}

/* Active (Open) State */
.info-section.active .info-toggle {
  background: rgba(37, 99, 235, 0.16);
  border-color: #2563eb;
}

/* Rotate + icon */
.info-section.active .toggle-icon {
  transform: rotate(45deg);
}

/* Content area */
.info-content {
  display: none;
  padding: 20px 6px 6px;
}

.info-section.active .info-content {
  display: block;
}

body.dark-mode .info-toggle {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.18),
    rgba(37, 99, 235, 0.08)
  );
  color: #e5e7eb;
  border-color: rgba(37, 99, 235, 0.4);
}

body.dark-mode .info-toggle:hover {
  background: rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

body.dark-mode .toggle-icon {
  color: #93c5fd;
}

/* ---------- seo text ---------- */
.seo-text a{
  color:#2563eb;
  text-decoration:underline;
}

body.dark-mode .seo-text a{
  color:#93c5fd;
  font-weight:500;
}

.seo-text a:hover{
  text-decoration:none;
}

body.dark-mode .seo-text a:hover{
  color:#bfdbfe;
  text-decoration:underline;
}

/* ---------- Sidebar & Converter ---------- */
.converter-countries-wrapper { display:flex; gap:20px; flex-wrap:wrap; }

.converter { display:flex; flex-direction:column; gap:14px; }
.converter .row { display:grid; grid-template-columns:1.1fr 1.1fr 1.1fr; gap:8px; }

.converter select,
.converter input[type="datetime-local"] {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.9rem;
  background: #f9fafb;
  color: #111827;
  outline: none;
  appearance: none;
}

/* Sidebar specific */
.sidebar { padding: 14px; box-sizing: border-box; }

/* ---------- HORIZONTAL Explore U.S. STATES section ---------- */
/* Make the states section full-width and grid-based (placed below main content) */
.sidebar-main-box {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}

/* Convert vertical list into a responsive grid of tiles */
.sidebar-inner-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

/* Make state links rectangular tiles */
.division-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #111827;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.12s ease-out, border-color 0.12s ease-out,
              transform 0.08s ease-out, color 0.12s ease-out;
  text-align: center;
  box-sizing: border-box;
}

/* Remove the arrow used for pill links in vertical layout */
.division-link::after { content: ""; }

/* Hover effect (subtle lift) */
.division-link:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: #2563eb;
  color: #111827;
  transform: translateY(-2px);
}

/* Active state for current division (tile highlight) */
.active-division {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  color: #0b1220;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.06);
}

/* Dark mode variations */
body.dark-mode .division-link {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .division-link:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  color: #e5f0ff;
}

body.dark-mode .active-division {
  background: rgba(37, 99, 235, 0.18);
  color: #e5f0ff;
  border-color: #2563eb;
}

/* Convert actions & buttons */
.convert-actions { display:flex; gap:8px; margin-top:4px; }

.cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: #2563eb;
  color: #f9fafb;
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background 0.1s ease-out;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

.cta:hover { background: #1d4ed8; transform: translateY(-1px); }

.swap-btn {
  flex: 0 0 auto;
  width: 40px;
  padding-inline: 0;
  font-size: 1.1rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

/* Converter result box */
#convert-result-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.dark-mode #convert-result-box { background: rgba(15, 23, 42, 0.95); }

/* Hidden utility */
.hidden { display: none !important; }

/* Small info text under converter */
.info-text { font-size: 0.82rem; color: #6b7280; }
body.dark-mode .info-text { color: #9ca3af; }

/* Divider inside converter */
.divider { border: none; border-top: 1px solid rgba(148, 163, 184, 0.3); margin: 10px 0; }

/* Back button wrapper */
.back-home-wrapper {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.back-home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  color: #6b7280;
  background: #f9fafb;
  transition: background 0.12s ease-out, border-color 0.12s ease-out,
              transform 0.08s ease-out, color 0.12s ease-out;
}

.back-home-button:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: #2563eb;
  color: #111827;
  transform: translateY(-1px);
}

body.dark-mode .back-home-button {
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
}

body.dark-mode .back-home-button:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
  color: #e5e7eb;
}

/* Dark mode: ensure readable lists and headings */
body.dark-mode .info-block h4 { color: #e5e7eb; }
body.dark-mode .info-block p,
body.dark-mode .info-block ul,
body.dark-mode .info-block li { color: #9ca3af !important; }

/* ---------- Responsiveness ---------- */
@media (max-width: 960px) {
  .main-clock { align-items: flex-start; }
  .converter .row { grid-template-columns: 1fr; }
}

/* ===== Alabama mobile alignment like UK page ===== */
/* ===== Alabama Mobile Layout ===== */

@media (max-width:640px){

/* title */
.country-title{
  text-align:center;
}

.title-main{
  justify-content:center;
  align-items:flex-start;
  text-align:center;
}

.country-title .flag-inline-title{
  align-self:flex-start;
  margin-top:4px;
}

/* big clock plain */
.country-big-clock{
  background:none;
  margin-top:10px;
}

/* big clock size */
.country-time-value{
  font-size:2.8rem;
  letter-spacing:.04em;
}

/* UTC pill */
.utc-row{
  margin-top:8px;
  display:flex;
  justify-content:center;
  align-self:center;
}

/* live clock text */
.live-clock-text{
  text-align:center;
  margin-top:6px;
}

/* section spacing */
.section-title{
  margin-top:14px;
  margin-bottom:10px;
}

/* meta info */
.meta-row{
  grid-template-columns:1fr;
  gap:10px;
}

.meta{
  padding:10px 12px;
}

/* cities grid */
.cities{
  grid-template-columns:1fr;
}

.city-time{
  font-size:1.25rem;
}

/* city cards plain */
.city-card{
  background:#ffffff !important;
  background-image:none !important;
  border:1px solid rgba(148,163,184,0.3) !important;
  box-shadow:0 2px 6px rgba(0,0,0,0.06) !important;
  transform:none !important;
  transition:none !important;
  will-change:auto;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

body.dark-mode .city-card{
  background:#0f172a !important;
  border-color:rgba(148,163,184,0.25) !important;
  box-shadow:0 2px 6px rgba(0,0,0,0.4) !important;
}

/* card padding */
.card{
  padding:16px 14px;
}

/* states tiles */
.sidebar-inner-box{
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:8px;
}

}

/* smaller phones */
@media (max-width:400px){

.sidebar-inner-box{
grid-template-columns:repeat(auto-fill,minmax(95px,1fr));
gap:6px;
}

.division-link{
padding:7px;
font-size:.82rem;
}

}
/* ---------- Reduced Motion Preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
