/* ═══════════════════════════════════════════════
   LexBrief — Legal Portal CSS
   ═══════════════════════════════════════════════ */

:root {
  --navy:   #0f2240;
  --navy2:  #1a3c5e;
  --gold:   #b8860b;
  --gold2:  #d4a017;
  --cream:  #faf8f4;
  --warm:   #f0ece3;
  --red:    #8b1a1a;
  --green:  #1a5e3c;
  --text:   #1a1a2e;
  --muted:  #6b6b7a;
  --border: #e0dbd0;
  --white:  #ffffff;
  --shadow: 0 2px 20px rgba(15,34,64,0.08);
  --shadow2:0 8px 40px rgba(15,34,64,0.14);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TOP BAR ─────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: .78rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: .8rem; align-items: center; }
.topbar .sep { opacity: .4; }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.topbar-right a { color: rgba(255,255,255,0.8); transition: color .2s; }
.topbar-right a:hover { color: var(--gold2); }
.topbar-register {
  background: var(--gold);
  color: white !important;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 600;
}

/* ─── HEADER ──────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.site-logo a {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.logo-icon { font-size: 2rem; }
.logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.logo-tag {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.header-search {
  flex: 1; max-width: 480px;
}
.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.header-search form:focus-within { border-color: var(--navy); }
.header-search input {
  flex: 1; padding: .6rem 1rem;
  border: none; outline: none;
  font-family: var(--font-sans);
  font-size: .9rem;
  background: var(--cream);
}
.header-search button {
  padding: .6rem 1rem;
  background: var(--navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.header-search button:hover { background: var(--navy2); }

/* ─── MAIN NAV ────────────────────────── */
.main-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: rgba(255,255,255,.1);
  color: var(--gold2);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 14px;
  font-size: .9rem;
  cursor: pointer;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow2);
  border-top: 3px solid var(--gold);
  list-style: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--warm); color: var(--navy); }

/* ─── HOMEPAGE HERO ───────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3c6e 60%, #0d2240 100%);
  color: white;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero-section::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-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero-main-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s;
  cursor: pointer;
}
.hero-main-card:hover { transform: translateY(-4px); }
.hero-main-thumb {
  height: 240px;
  background: linear-gradient(135deg, #1a3c5e, #0d1f3c);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative;
}
.hero-main-content { padding: 1.5rem; }
.hero-cat-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: .8rem;
}
.hero-main-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .7rem;
}
.hero-main-content p {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.hero-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  display: flex; gap: 1rem;
}
.hero-sidebar-cards { display: flex; flex-direction: column; gap: 1rem; }
.hero-side-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; gap: .8rem; align-items: flex-start;
}
.hero-side-card:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.hsc-icon { font-size: 1.6rem; flex-shrink: 0; }
.hsc-cat {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold2);
  margin-bottom: .25rem;
}
.hsc-title {
  font-family: var(--font-serif);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,.9);
}
.hsc-meta {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .3rem;
}

/* ─── TICKER ──────────────────────────── */
.ticker-wrap {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.ticker-label {
  background: var(--navy);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden; flex: 1;
}
.ticker-items {
  display: flex;
  gap: 3rem;
  animation: tickerMove 25s linear infinite;
  white-space: nowrap;
}
.ticker-items span {
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTION TITLES ──────────────────── */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy);
}
.section-title h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.section-title h2::before {
  content: '';
  position: absolute; left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--gold);
  border-radius: 2px;
}
.section-title a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy2);
  border: 1.5px solid var(--navy2);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all .2s;
}
.section-title a:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ─── MAIN LAYOUT ─────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ─── ARTICLE CARDS ───────────────────── */
.article-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
}
.article-card-thumb {
  height: 180px;
  background: var(--warm);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.badge-premium {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--gold);
  color: var(--navy);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .04em;
}
.badge-free {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--green);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.article-card-body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-meta-top {
  display: flex; gap: .6rem; align-items: center;
  margin-bottom: .6rem;
}
.card-type-badge {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--warm);
  color: var(--navy2);
}
.card-cat {
  font-size: .72rem;
  color: var(--gold);
  font-weight: 600;
}
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .5rem;
  color: var(--text);
}
.article-card h3 a:hover { color: var(--navy); }
.article-card p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: .9rem;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.card-author {
  font-size: .76rem;
  color: var(--muted);
}
.card-price {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.card-price .free { color: var(--green); }
.btn-read {
  padding: 5px 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-read:hover { background: var(--gold); color: var(--navy); }

/* ─── ARTICLE GRIDS ───────────────────── */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

/* List style card */
.article-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: .8rem;
}
.article-list-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow2);
}
.alc-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--border);
  flex-shrink: 0;
  width: 36px;
  line-height: 1;
}
.alc-content h4 {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .3rem;
}
.alc-content h4 a:hover { color: var(--navy); }
.alc-meta { font-size: .72rem; color: var(--muted); }

/* ─── INTERNSHIP CARDS ────────────────── */
.internship-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.internship-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}
.internship-card .badge-featured {
  position: absolute; top: .8rem; right: .8rem;
  background: var(--red);
  color: white;
  font-size: .63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.ic-org {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy2);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ic-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.ic-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .8rem;
}
.ic-tag {
  font-size: .72rem;
  background: var(--warm);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.ic-tag.loc { background: #e8f4fd; color: #1a5e8b; }
.ic-tag.stipend { background: #e8f8ee; color: var(--green); font-weight: 600; }
.ic-tag.deadline { background: #fdf0e8; color: var(--red); }
.ic-footer {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.btn-apply {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: background .2s;
  display: inline-block;
}
.btn-apply:hover { background: var(--gold); color: var(--navy); }

/* ─── SIDEBAR ─────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--navy);
  color: white;
  padding: .75rem 1.1rem;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.widget-body { padding: 1rem 1.1rem; }

.sidebar-post-item {
  display: flex;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.sidebar-post-item:last-child { border-bottom: none; }
.spi-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--border);
  flex-shrink: 0;
  width: 28px;
}
.spi-title {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color .2s;
}
.sidebar-post-item:hover .spi-title { color: var(--navy); }
.spi-meta { font-size: .7rem; color: var(--muted); margin-top: .2rem; }

.cat-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  cursor: pointer;
  transition: color .2s;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--navy); }
.cat-list-item a { display: flex; align-items: center; gap: .4rem; }
.cat-count {
  background: var(--warm);
  font-size: .7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--muted);
}

/* ─── SINGLE POST PAGE ────────────────── */
.post-header {
  background: var(--navy);
  color: white;
  padding: 2.5rem 0 2rem;
}
.post-breadcrumb {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .8rem;
}
.post-breadcrumb a { color: rgba(255,255,255,.6); }
.post-breadcrumb a:hover { color: var(--gold2); }
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.post-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.post-header-meta span { display: flex; align-items: center; gap: .3rem; }

.post-body-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.post-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.post-content p { margin-bottom: 1.2rem; font-size: .95rem; line-height: 1.8; color: #2a2a3e; }
.post-content h2, .post-content h3 { font-family: var(--font-serif); color: var(--navy); margin: 1.6rem 0 .7rem; }
.post-content h2 { font-size: 1.3rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.post-content h3 { font-size: 1.1rem; }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--warm);
  padding: 1rem 1.4rem;
  margin: 1.4rem 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--navy2);
}

/* Premium content lock */
.premium-gate {
  background: linear-gradient(to bottom, transparent, var(--white) 60%);
  position: relative;
  margin-top: -80px;
  padding-top: 80px;
  text-align: center;
  padding-bottom: 2rem;
}
.premium-gate-box {
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.premium-gate-box h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: .7rem; }
.premium-gate-box p { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 1.2rem; }
.premium-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold2);
  margin-bottom: 1.2rem;
}
.btn-buy-premium {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  padding: .8rem 2rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s, transform .2s;
  display: inline-block;
  text-decoration: none;
}
.btn-buy-premium:hover { background: var(--gold2); transform: translateY(-2px); }

/* ─── FORMS ───────────────────────────── */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--warm);
}
.auth-box {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  box-shadow: var(--shadow2);
  border: 1px solid var(--border);
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo .logo-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900; color: var(--navy); }
.auth-box h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--navy);
}
.auth-sub { font-size: .84rem; color: var(--muted); margin-bottom: 1.6rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--navy); background: white; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: .85rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--navy2); transform: translateY(-1px); }

.form-alt-link {
  text-align: center;
  font-size: .83rem;
  color: var(--muted);
  margin-top: 1rem;
}
.form-alt-link a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ─── ALERTS ──────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.alert-success { background: #e8f8ee; color: var(--green); border: 1px solid #a3d9b5; }
.alert-error { background: #fde8e8; color: var(--red); border: 1px solid #f5b5b5; }
.alert-info { background: #e8f4fd; color: #1a5e8b; border: 1px solid #a3cfe8; }

/* ─── PAGINATION ──────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin: 2rem 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.pagination a:hover, .pagination .active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ─── BREADCRUMB ──────────────────────── */
.breadcrumb {
  padding: .8rem 0;
  font-size: .78rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--navy2); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .4rem; }

/* ─── NEWSLETTER SECTION ──────────────── */
.newsletter-section {
  background: var(--navy);
  padding: 3rem 0;
  color: white;
}
.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.newsletter-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.newsletter-text p { font-size: .88rem; color: rgba(255,255,255,.7); }
.newsletter-form {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: .7rem 1.1rem;
  border: none;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: .88rem;
  outline: none;
  width: 200px;
}
.newsletter-form button {
  padding: .7rem 1.4rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold2); }

/* ─── FOOTER ──────────────────────────── */
.site-footer {
  background: #080f1e;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: .8rem;
}
.footer-about p {
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.footer-social { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-social a {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 3px;
  transition: all .2s;
}
.footer-social a:hover { color: var(--gold2); border-color: var(--gold); }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: white;
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col a {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .45rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

/* ─── PAYMENT MODAL ───────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: white;
  border-radius: 12px;
  width: 90%; max-width: 460px;
  padding: 2rem;
  transform: scale(.95) translateY(10px);
  transition: transform .3s;
  position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: .8rem; right: .8rem;
  width: 30px; height: 30px;
  background: var(--warm); border: none; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--navy); color: white; }
.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}
.modal-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--warm);
  border-radius: 7px;
  padding: .8rem 1rem;
  margin: 1rem 0;
}
.modal-product-name { font-size: .88rem; font-weight: 600; }
.modal-product-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy);
}
.pay-methods {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem; margin-bottom: 1rem;
}
.pay-method {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .6rem .5rem;
  text-align: center;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.pay-method.selected, .pay-method:hover {
  border-color: var(--navy);
  background: var(--warm);
  color: var(--navy);
}
.pay-method span { display: block; font-size: 1.3rem; margin-bottom: .25rem; }
.secure-note {
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  margin-top: .8rem;
}

/* ─── ADMIN ───────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy);
  color: white;
  padding: 0;
}
.admin-sidebar-logo {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.08);
  color: white;
  border-left-color: var(--gold);
}
.admin-main {
  background: var(--cream);
  padding: 1.5rem 2rem;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-topbar h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
}
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--navy);
}
.stat-card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  display: block;
}
.stat-card-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th {
  background: var(--navy);
  color: white;
  padding: .75rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-table td {
  padding: .75rem 1rem;
  font-size: .84rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--cream); }
.btn-sm {
  padding: 3px 10px;
  font-size: .74rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  transition: all .2s;
}
.btn-sm-blue { background: var(--navy); color: white; }
.btn-sm-green { background: var(--green); color: white; }
.btn-sm-red { background: var(--red); color: white; }
.btn-sm-gold { background: var(--gold); color: var(--navy); }
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-published { background: #e8f8ee; color: var(--green); }
.status-pending { background: #fdf0e8; color: #c45c2e; }
.status-draft { background: var(--warm); color: var(--muted); }
.status-paid { background: #e8f8ee; color: var(--green); }
.status-pending-pay { background: #fdf0e8; color: #c45c2e; }

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
  .page-layout, .post-body-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: .8rem; }
  .header-search { max-width: 100%; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .articles-grid-3, .articles-grid-2 { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; width: 100%; background: var(--navy); }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; }
  .dropdown { position: static; box-shadow: none; border: none; background: rgba(0,0,0,.2); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .topbar-inner { flex-direction: column; gap: .3rem; text-align: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr 1fr; }
}

/* ─── FONT AWESOME ICON STYLES ────────────────────────────────────────── */

/* Global icon sizing & alignment */
i.fa-solid, i.fa-regular, i.fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

/* Topbar icons */
.topbar i { font-size: .8rem; }

/* Nav icons */
.main-nav i { font-size: .82rem; margin-right: .3rem; }
.nav-toggle i { font-size: 1rem; }

/* Header search */
.header-search button i { font-size: 1rem; }

/* Logo icon */
.logo-icon i { font-size: 1.8rem; color: var(--gold); }

/* Section title icons */
.section-title h2 i { font-size: 1.1rem; margin-right: .4rem; color: var(--gold); }

/* Card icons */
.article-card-thumb i { font-size: 2.8rem; color: rgba(255,255,255,.5); }
.hero-main-thumb i    { font-size: 4rem;   color: rgba(255,255,255,.3); }
.hsc-icon i           { font-size: 1.4rem; }

/* Sidebar widget title icons */
.widget-title i { font-size: .9rem; margin-right: .4rem; }

/* Button icons */
.btn-read i, .btn-apply i, .btn-buy-premium i { margin-right: .35rem; font-size: .9em; }

/* Breadcrumb icons */
.post-breadcrumb i { font-size: .72rem; margin: 0 .2rem; color: rgba(255,255,255,.4); }

/* Post header meta icons */
.post-header-meta i { font-size: .82rem; margin-right: .25rem; color: var(--gold2); }

/* Stat cards (admin) */
.stat-card-num i { font-size: 1.5rem; }

/* Admin sidebar icons */
.admin-nav a i {
  width: 18px;
  font-size: .88rem;
  margin-right: .5rem;
  color: rgba(255,255,255,.55);
}
.admin-nav a.active i, .admin-nav a:hover i { color: var(--gold2); }

/* Admin table icons */
.admin-table i { font-size: .82rem; }

/* btn-sm icons */
.btn-sm i { font-size: .72rem; margin-right: .2rem; }

/* Footer icons */
.footer-logo i     { font-size: 1.3rem; color: var(--gold); margin-right: .3rem; }
.footer-social a i { font-size: .85rem; }
.footer-bottom i   { font-size: .8rem;  margin-right: .3rem; }

/* Alert icons */
.alert i { font-size: .9rem; margin-right: .4rem; }

/* Newsletter */
.newsletter-section i { font-size: .9rem; margin-right: .3rem; }

/* Internship card icons */
.ic-tag i { font-size: .72rem; margin-right: .2rem; }

/* Badge icons */
.badge-featured i, .badge-premium i, .badge-free i { font-size: .65rem; margin-right: .15rem; }

/* Premium gate */
.premium-gate-box i { font-size: 2.5rem; display: block; margin: 0 auto .5rem; }

/* Modal icons */
.modal-close i   { font-size: .9rem; }
.pay-method i    { font-size: 1.4rem; display: block; margin-bottom: .25rem; }
.pay-method span i { font-size: 1.3rem; }

/* Auth page icons */
.auth-logo i { font-size: 2rem; color: var(--navy); }

/* My account / user dashboard */
.tab-nav a i    { font-size: .82rem; margin-right: .35rem; }

/* Ticker icons */
.ticker-label i { font-size: .75rem; margin-right: .3rem; }

/* Pagination icons */
.pagination a i { font-size: .8rem; }

/* Social share buttons */
[style*="background:#1da1f2"] i,
[style*="background:#0077b5"] i,
[style*="background:#25d366"] i,
[style*="background:#0088cc"] i { font-size: .78rem; margin-right: .3rem; }

/* Admin settings tabs */
.tab-nav i { font-size: .82rem; margin-right: .3rem; }

/* Widget sidebar post items */
.spi-title i, .spi-meta i { font-size: .72rem; margin-right: .2rem; color: var(--muted); }

/* Print / invoice icons */
@media print {
  i.fa-solid, i.fa-regular, i.fa-brands { display: none; }
}
