/* ======================================================
   UK PAGE – FINAL PRODUCTION CSS
   (New Hero + Full Old Feature Support)
====================================================== */


/* ======================================================
   LAYOUT
====================================================== */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ======================================================
   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: 22px 24px;
}

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);
}

/* ======================================================
   NEW HERO CLOCK SECTION (KEEP AS IMAGE DESIGN)
====================================================== */
.main-clock{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:16px;
  margin-bottom:12px;
}

.title-wrapper{
  width:100%;
}

/* ---------- Title ---------- */

.country-title{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:center;
}

.country-title .title-main {
  display: inline-flex;
 align-items: flex-start;
  justify-content:flex-start;
  gap: 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: #0f172a;
}

.country-title .title-main img {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.country-title .tz-small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.75;
  color: #6b7280;
}

body.dark-mode .country-title .title-main {
  color: #e5e7eb;
}

body.dark-mode .country-title .tz-small {
  color: #9ca3af;
}

/* ---------- Flag ---------- */

.flag-inline-title {
  height: 1em;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* ---------- Big Clock Box ---------- */

/* =====================================================
   Big Country Clock
   ===================================================== */

.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%
  );
}

.above-clock {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 6px;
}

.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;
  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-top:0px;
  justify-self:end;
}

body.dark-mode .utc-row {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.25);
}

.clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.clock-tz {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

body.dark-mode .clock-tz {
  color: #9ca3af;
}

/* ======================================================
   META ROW
====================================================== */

.meta-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.meta {
  padding: 14px;
  border-left: 3px solid rgba(148, 163, 184, 0.6);
  background: rgba(241, 245, 249, 0.9);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4b5563;
}

body.dark-mode .meta {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

/* ======================================================
   SECTION TITLES
====================================================== */

.section-title {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .section-title {
  color: #e5e7eb;
}

/* ======================================================
   SEO Text Links (Popular Searches)
====================================================== */
.seo-text{
line-height:1.65;
font-size:0.95rem;
}

/* Main SEO heading */

.seo-title{
font-size:1.25rem;
font-weight:600;
margin-bottom:10px;
color:#0f172a;
}

body.dark-mode .seo-title{
color:#e5e7eb;
}

/* Sub headings */

.seo-subtitle{
font-size:1.05rem;
font-weight:600;
margin-top:18px;
margin-bottom:8px;
color:#111827;
}

body.dark-mode .seo-subtitle{
color:#e5e7eb;
}

/* Paragraph spacing */

.seo-text p{
margin-bottom:10px;
}

/* Region links list */

.seo-links{
list-style:disc;
padding-left:20px;
margin-top:6px;
}

.seo-links li{
margin-bottom:6px;
}

/* Links */

.seo-links a{
color:#2563eb;
text-decoration:underline;
text-underline-offset:3px;
}

.seo-links a:hover{
color:#1d4ed8;
}

body.dark-mode .seo-links a{
color:#93c5fd;
}

/* ======================================================
   CITY GRID
====================================================== */

.cities {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.city-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.14), transparent 55%),
    rgba(255,255,255,0.96);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}

@media (hover:hover){
  .city-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15,23,42,0.14);
  }
}

body.dark-mode .city-card {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.22), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border-color: rgba(148,163,184,0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.city-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.city-time {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.city-offset {
  font-size: 0.8rem;
  color: #6b7280;
}

body.dark-mode .city-offset {
  color: #9ca3af;
}


/* ======================================================
   EVERYTHING BELOW = OLD CSS FEATURES KEPT
   (Converter, UK Divisions, Buttons, Active Links)
====================================================== */
/* Hide ONLY when .hidden class is present */
#convert-result-box.hidden {
  display: none;
}

/* Converter wrapper */
.converter-countries-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Converter */
.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;
}

body.dark-mode .converter select,
body.dark-mode .converter input[type="datetime-local"] {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* =====================================================
   Converter Buttons (US Template Style)
===================================================== */

.convert-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Base CTA button */

.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;

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);

  transition: transform 0.08s ease,
              box-shadow 0.12s ease,
              background 0.1s ease;
}

.cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.45);
}

/* Convert button – outlined style */

#convert-btn {
  background: transparent !important;
  color: #2563eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

#convert-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

body.dark-mode #convert-btn {
  color: #93c5fd;
  border-color: rgba(148, 163, 184, 0.6);
}

body.dark-mode #convert-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #e5f0ff;
}

/* Swap button */

.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;
}

.swap-icon {
  color: #2563eb;
}

.swap-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: #2563eb;
}

.swap-btn:hover .swap-icon {
  color: #1d4ed8;
}

body.dark-mode .swap-btn {
  border-color: rgba(148, 163, 184, 0.6);
}

body.dark-mode .swap-icon {
  color: #93c5fd;
}

/* ======================================================
   Small Helper Text (Same as India Page)
====================================================== */

.info-text{
  font-size:0.82rem;
  color:#6b7280;
}

body.dark-mode .info-text{
  color:#9ca3af;
}

/* UK Divisions */
.uk-division-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.uk-divisions {
  flex: 1;
  min-width: 280px;
}

.states-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.division-link {
  display: inline-flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.division-link:hover {
  background: rgba(37,99,235,0.06);
  border-color: #2563eb;
  color: #111827;
}

.division-link::after {
  content: "→";
  opacity: 0.7;
}

body.dark-mode .division-link {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

body.dark-mode .division-link:hover {
  background: rgba(37,99,235,0.15);
  border-color: #60a5fa;
  color: #f9fafb;
}

/* Active Link */
.uk-divisions .division-link.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
  font-weight: 600;
  pointer-events: none;
}

/* ---------- Back Button (UK – match US exactly) ---------- */

.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;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 960px) {

  .converter .row{
    grid-template-columns:1fr;
  }

}

@media (max-width:640px){
.main-clock{
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
}

.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;
}

.country-big-clock{
  background:none;
}

.country-time-value{
  font-size:2.8rem;
  letter-spacing:.04em;
}

.utc-row{
margin-top:8px;
justify-self:center;
align-self:center;
display:flex;
}

.info-text{
  text-align:center;
  margin-bottom:6px;
}

.section-title{
  margin-top:14px;
  margin-bottom:10px;
}

.meta-row{
  grid-template-columns:1fr;
  gap:10px;
}

.meta{
  padding:10px 12px;
}

.cities{
  grid-template-columns:1fr;
}

.city-time{
  font-size:1.25rem;
}

.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;
}

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 PERFORMANCE ---------- */

.card{
  backdrop-filter:none !important;
}

}

/* ======================================================
   REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion:reduce){

*{
  transition:none !important;
  scroll-behavior:auto !important;
}

}