/* =============================================
   MarketNews Daily — Global Stylesheet
   Financial Education | Uzbek-Russian Speakers
   ============================================= */

:root {
  --navy:    #1a3a5c;
  --navy-lt: #234d7a;
  --blue:    #2563eb;
  --blue-lt: #3b82f6;
  --charcoal:#2c2c2c;
  --mid:     #555e6d;
  --muted:   #7a8494;
  --border:  #d6dde8;
  --bg:      #ffffff;
  --bg-soft: #f4f6f9;
  --bg-card: #fafbfc;
  --accent:  #e8f0fe;
  --red:     #c0392b;
  --gold:    #b8952a;
  --radius:  4px;
  --shadow:  0 2px 12px rgba(26,58,92,.10);
  --shadow-hover: 0 6px 24px rgba(26,58,92,.18);
  --max:     1160px;
  --col-gap: 28px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
p  { margin-bottom: 1rem; }
.lead {
  font-size: 1.12rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ---- Layout helpers ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-title {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--navy);
  border-bottom: 3px solid var(--blue);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 32px;
}

/* ---- Top bar ---- */
.topbar {
  background: var(--navy);
  color: #a8bfd8;
  font-size: .78rem;
  padding: 6px 0;
  letter-spacing: .03em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.topbar a { color: #a8bfd8; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo .logo-main {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.site-logo .logo-sub {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.site-logo:hover { text-decoration: none; }

/* ---- Nav ---- */
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--accent);
  color: var(--blue);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2847 60%, #1e4976 100%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(37,99,235,.4);
  border: 1px solid rgba(59,130,246,.5);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.hero .lead { color: #b8cfe8; max-width: 560px; margin-bottom: 32px; font-size: 1.05rem; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: #7aa3c8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1d50c8;
  border-color: #1d50c8;
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}

/* ---- Article Cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--col-gap);
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
}
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.card-thumb::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.card-icon {
  font-size: 2.8rem;
  opacity: .9;
}
.card-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-excerpt {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.card-meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.card-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
}

/* ---- Newsletter ---- */
.newsletter-section {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-section h2 { color: #fff; margin-bottom: 10px; }
.newsletter-section p { color: #a8bfd8; margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color .18s;
}
.newsletter-form input[type="email"]::placeholder { color: #7aa3c8; }
.newsletter-form input[type="email"]:focus { border-color: var(--blue-lt); }
.newsletter-form button {
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s;
}
.newsletter-form button:hover { background: #1d50c8; }
.newsletter-disclaimer {
  font-size: .75rem;
  color: #7aa3c8;
  margin-top: 14px;
}

/* ---- Footer ---- */
.site-footer {
  background: #0e2238;
  color: #8aacca;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-main { color: #e8edf3; font-family: Georgia, serif; font-size: 1.2rem; }
.footer-brand p { font-size: .85rem; margin-top: 12px; line-height: 1.6; color: #6e8fad; }
.footer-contact-item { font-size: .83rem; margin-bottom: 8px; }
.footer-contact-item a { color: #8aacca; }
.footer-contact-item a:hover { color: #fff; }
.footer-col h4 {
  font-family: Georgia, serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c8d8e8;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #8aacca; font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #8aacca;
  font-size: .85rem;
  font-weight: 700;
  transition: background .18s, color .18s;
}
.social-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: #5a7a96;
}
.footer-bottom a { color: #6a8fad; }
.footer-bottom a:hover { color: #a8c0d6; }

/* ---- Inner page header ---- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ---- Article page ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0 64px;
}
.article-main {}
.article-header { margin-bottom: 28px; }
.article-category-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--muted);
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta strong { color: var(--charcoal); }
.article-body { line-height: 1.78; font-size: 1.02rem; }
.article-body h2 {
  margin-top: 2.2rem;
  margin-bottom: .8rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.article-body p { margin-bottom: 1.1rem; color: var(--charcoal); }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--blue); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }

/* Risk disclaimer */
.risk-disclaimer {
  background: #fff8f0;
  border-left: 4px solid #e07b2a;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 40px 0 20px;
  font-size: .88rem;
  color: #5a3a1a;
  line-height: 1.6;
}
.risk-disclaimer strong { color: #7a4a1a; display: block; margin-bottom: 6px; }

/* Last updated */
.last-updated {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Sidebar */
.article-sidebar {}
.sidebar-widget {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget-title {
  font-family: Georgia, serif;
  font-size: .95rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: 9px 0;
  font-size: .87rem;
  color: var(--charcoal);
  font-weight: 500;
}
.sidebar-links a:hover { color: var(--blue); text-decoration: none; }

/* ---- Contact & Forms ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 48px 0 64px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--charcoal);
  background: var(--bg);
  font-family: inherit;
  transition: border-color .18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s;
}
.btn-submit:hover { background: #1d50c8; }

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.info-card-icon { font-size: 1.4rem; margin-bottom: 10px; }
.info-card h3 { font-size: 1rem; margin: 0 0 8px; }
.info-card p, .info-card a { font-size: .9rem; color: var(--mid); }
.business-hours { list-style: none; padding: 0; }
.business-hours li {
  display: flex;
  justify-content: space-between;
  font-size: .87rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
}
.business-hours li:last-child { border-bottom: none; }
.business-hours .day { font-weight: 600; color: var(--charcoal); }

/* ---- About ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.team-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 auto 16px;
  font-weight: 700;
}
.team-name { font-size: 1.05rem; margin-bottom: 4px; }
.team-role { font-size: .8rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.team-bio { font-size: .87rem; color: var(--mid); line-height: 1.6; }

/* ---- FAQ ---- */
.faq-list { margin-top: 24px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  font-size: .97rem;
  color: var(--navy);
  background: var(--bg-soft);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question:hover { background: var(--accent); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .93rem;
  color: var(--mid);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 16px 20px; }
.faq-arrow { font-style: normal; transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ---- Legal pages ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 64px;
}
.legal-content h1 { margin-bottom: 8px; }
.legal-date { font-size: .83rem; color: var(--muted); margin-bottom: 32px; display: block; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .6rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--mid); line-height: 1.75; }
.legal-content ul { margin-bottom: 1rem; }

/* ---- Map ---- */
.map-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.map-wrapper iframe { display: block; width: 100%; height: 280px; border: none; }

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0e2238;
  color: #c8d8e8;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  border-top: 3px solid var(--blue);
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  font-size: .87rem;
}
#cookie-banner a { color: var(--blue-lt); font-weight: 600; }
#cookie-banner button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .87rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s;
  flex-shrink: 0;
}
#cookie-banner button:hover { background: #1d50c8; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--blue);
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.highlight-box {
  background: var(--accent);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: .93rem;
  color: var(--navy);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

@media (max-width: 720px) {
  .site-nav { display: none; flex-direction: column; width: 100%; background: var(--bg); border-top: 1px solid var(--border); padding: 10px 0; position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 8px 16px rgba(0,0,0,.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 20px; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .hero { padding: 48px 0 56px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: unset; }
}
