/* ============================================================
   ForumLaw.uz — Main Stylesheet
   Colors: Primary #1a3a5c | Gold #c8a951 | Accent #2e86ab
   ============================================================ */

:root {
  --primary:    #1a3a5c;
  --primary-d:  #122841;
  --primary-l:  #2e5d9b;
  --gold:       #c8a951;
  --gold-d:     #a8893b;
  --accent:     #2e86ab;
  --success:    #27ae60;
  --danger:     #e74c3c;
  --bg:         #f8f9fa;
  --bg-card:    #ffffff;
  --text:       #2c3e50;
  --text-muted: #6c757d;
  --border:     #dee2e6;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-title .divider {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-d);
  border-color: var(--gold-d);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,169,81,.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }

/* ---- Header ---- */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--gold);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.logo-dot { color: var(--gold); }
.logo-sub {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(255,255,255,.08);
}
.dropdown-arrow { font-size: .65rem; opacity: .7; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--border);
  z-index: 100;
}
.dropdown-wide { min-width: 340px; }
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text);
  font-size: .88rem;
  transition: background var(--transition);
  line-height: 1.4;
}
.dropdown li a:hover {
  background: var(--bg);
  color: var(--primary);
}
.dropdown-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 9px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  color: var(--primary);
  background: var(--gold);
  border-color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 60%, #1a5c7a 100%);
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px; height: 400px;
  background: rgba(200,169,81,.05);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(200,169,81,.2);
  border: 1px solid rgba(200,169,81,.4);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero h1 span { color: var(--gold); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat .num {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat .label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---- Journal Cards ---- */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.journal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.journal-card-header {
  height: 8px;
}
.journal-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.journal-abbr {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.journal-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.journal-fields {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}
.journal-meta {
  display: flex;
  gap: 16px;
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.journal-meta span { display: flex; align-items: center; gap: 4px; }
.journal-card-footer {
  padding: 16px 24px;
  background: var(--bg);
  display: flex;
  gap: 10px;
}

/* ---- Conference Cards ---- */
.conferences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.conf-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.conf-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.conf-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: #fff;
}
.conf-content { flex: 1; }
.conf-abbr {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.conf-card h3 { font-size: .95rem; margin-bottom: 8px; line-height: 1.4; }
.conf-fields { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.conf-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.conf-link:hover { color: var(--primary); }

/* ---- Recent Articles ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-lg); }
.article-journal {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  margin-bottom: 10px;
}
.article-card h4 {
  font-size: .9rem;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
}
.article-card h4 a { color: var(--text); }
.article-card h4 a:hover { color: var(--primary); }
.article-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ---- Stats Banner ---- */
.stats-section {
  background: var(--primary);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---- Why Section ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.why-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: var(--gold);
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-d);
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-icon { font-size: 1.4rem; color: var(--gold); }
.footer-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo-text span { color: var(--gold); }
.footer-about p { font-size: .85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--primary); }
.footer-col h4 {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-indexing { margin-top: 24px; }
.footer-small { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; opacity: .6; }
.index-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.index-badge {
  padding: 3px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-size: .7rem;
  color: rgba(255,255,255,.65);
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  opacity: .5;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  padding: 48px 0;
  color: #fff;
  margin-bottom: 0;
}
.page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ---- Utilities ---- */
.bg-white { background: var(--bg-card); }
.bg-light  { background: var(--bg); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.view-all {
  text-align: center;
  margin-top: 40px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .journals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--primary-d);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border: none;
    padding: 4px 0;
    margin-left: 16px;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,.7); }
  .nav-actions { flex-direction: column; align-items: flex-start; padding: 8px 0; }

  .journals-grid    { grid-template-columns: 1fr; }
  .conferences-grid { grid-template-columns: 1fr; }
  .articles-grid    { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom    { flex-direction: column; gap: 6px; text-align: center; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .cta-btns         { flex-direction: column; align-items: center; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
