/* Copied from static site */
/* See original c:\wamp64\www\test-pr\styles.css for source */
/* --- */
/*
  DailyHub Base Styles
  - Responsive, lightweight, accessible
  - Utility-first touches with semantic components
*/

/* CSS Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.5; color: #14151a; background: #ffffff; display: flex; min-height: 100vh; flex-direction: column; }
/* Ensure main content pushes footer to bottom on short pages */
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #5b9dff; outline-offset: 2px; }

/* Theme */
:root {
  --bg: #ffffff;
  --text: #14151a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #0f766e; /* teal */
  --primary-ink: #0b504a;
  --accent: #2563eb; /* blue */
  --accent-ink: #113a8d;
  --news: #ef4444;
  --jobs: #f59e0b;
  --sports: #22c55e;
  --surface: #f8fafc;
  --shadow: 0 6px 18px rgba(20, 21, 26, 0.06);
  --radius: 14px;
  --focus: #5b9dff;
  /* Mobile header height used for sliding nav panel */
  --header-height: 60px;
}
.container { width: min(1100px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(8px); transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 0; gap: 16px; }
.logo { font-weight: 800; letter-spacing: -0.02em; font-size: 1.35rem; display: inline-flex; align-items: center; }
.logo span { color: var(--primary); }
.logo:hover { filter: brightness(1.04); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { position: relative; padding: 10px 12px; border-radius: 12px; color: var(--text); transition: color .2s ease, background .2s ease; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; opacity: 0.85; }
.nav a:hover { color: var(--accent); background: var(--surface); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }

/* Header tools */
.header-tools { display: flex; gap: 8px; align-items: center; justify-self: end; }
.search { position: relative; }
.search input[type="search"] { padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); min-width: 240px; transition: box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.search input::placeholder { color: var(--muted); }
.search input[type="search"]:focus { box-shadow: 0 0 0 4px rgba(91, 157, 255, .25); border-color: var(--focus); background: var(--bg); }
.search::before { content: "\1F50D"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; opacity: 0.7; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background .15s ease, transform .06s ease; }
.menu-toggle:hover { background: var(--bg); }
.menu-toggle:active { transform: translateY(1px); }
.menu-toggle { display: none; }

/* Hero */
.hero { background: radial-gradient(1000px 400px at 15% -50%, #e6f7f5, transparent), radial-gradient(800px 300px at 85% -20%, #e8effe, transparent); border-bottom: 1px solid var(--border); }
.hero .hero-content { padding: 48px 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 1.05rem; max-width: 60ch; color: var(--muted); margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; }

/* Sections */
.section { padding: 28px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.see-all { color: var(--accent); }

/* Grid & Cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.card:hover { box-shadow: 0 10px 28px rgba(20, 21, 26, 0.12); transform: translateY(-1px); transition: box-shadow .2s ease, transform .1s ease; }
.card-media { display: block; aspect-ratio: 16/9; background: linear-gradient(120deg, #e5f3f1, #eef2ff); position: relative; }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .meta { font-size: 0.9rem; color: var(--muted); }

.tag { position: absolute; top: 12px; left: 12px; background: #111827; color: #fff; font-size: 0.75rem; padding: 6px 10px; border-radius: 999px; }
.tag-news { background: var(--news); }
.tag-jobs { background: var(--jobs); }
.tag-sports { background: var(--sports); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-ink);
  box-shadow: var(--shadow);
  transition: transform .06s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  font-weight: 600;
  line-height: 1;    /* fix vertical alignment */
  cursor: pointer;   /* ensure pointer on all devices */
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

/* Variants */
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent-ink); }
.btn-small { padding: 8px 12px; font-size: 0.9rem; line-height: 1; }

/* Header menu button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background .15s ease, transform .06s ease, border-color .2s ease;
  font-size: 1rem;
  line-height: 1;  /* prevent visual misalignment of the icon */
}
.menu-toggle:hover { background: var(--bg); }
.menu-toggle:active { transform: translateY(1px); }

/* Filter Pills */
.stack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { appearance: none; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; line-height: 1; box-shadow: var(--shadow); transition: transform .06s ease, filter .2s ease, background .2s ease; }
.pill:hover { filter: brightness(1.02); transform: translateY(-1px); }
.pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pill[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent-ink); }
.btn-small { padding: 8px 12px; font-size: 0.9rem; }

/* Subscribe */
.subscribe { text-align: center; padding: 18px 0; }
.subscribe h3 { margin: 0 0 6px; }
.subscribe p { margin: 0 0 12px; color: var(--muted); }
.subscribe-form { display: inline-flex; gap: 8px; }
.subscribe-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; min-width: 260px; }
.subscribe-form button { border-radius: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.form { display: grid; gap: 12px; max-width: 720px; }
.form label { font-weight: 600; }
.form input, .form textarea, .form select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.form textarea { min-height: 160px; }
.form .form-actions { display: flex; gap: 10px; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-areas: "brand nav social" "meta meta meta";
  gap: 18px;
  align-items: start;
  padding: 22px 0;
}
.footer-inner > div:first-child { grid-area: brand; }
.footer-inner > nav.footer-nav { grid-area: nav; justify-self: start; }
.footer-inner > .footer-social { grid-area: social; justify-self: end; }
.footer-inner > .footer-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
}
.footer-nav a { padding: 6px 8px; border-radius: 8px; }
.footer-nav a:hover { background: #fff; box-shadow: var(--shadow); }

.footer-social { display: flex; gap: 10px; }
.footer-social a { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; transition: border-color .2s ease, transform .06s ease; }
.footer-social a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Article */
.article { padding: 24px 0; }
.article h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2rem); }
.breadcrumbs { color: var(--muted); margin-bottom: 12px; }
.article-content { display: grid; grid-template-columns: 1fr; gap: 16px; }
.article-content p { margin: 0; }

/* Utilities */
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 0.85rem; }
.stack { display: grid; gap: 8px; }

.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }

.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 30; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "social" "meta";
  }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .search { display: none; }
  .menu-toggle { display: inline-flex; }
  /* Sliding panel nav (unchanged) */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20,21,26,.08);
    padding: 16px;
    display: grid;
    gap: 10px;
    transform: translateY(-120%);
    transition: transform .2s ease;
  }
  .menu-open .nav { transform: translateY(0); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .subscribe-form { flex-direction: column; }
}
@media (min-width: 901px) { .menu-toggle { display: none !important; } }