/* ============================================================
   Corporate Blog — Public Stylesheet
   Corporate palette: Deep Navy #0D1B2A, Steel Blue #1B4F72,
   Gold Accent #C9A84C, Light Gray #F4F6F9, White #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
  --navy:       #0D1B2A;
  --steel:      #1B4F72;
  --steel-mid:  #2471A3;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gray-50:    #F4F6F9;
  --gray-100:   #E8ECF2;
  --gray-300:   #C5CDD9;
  --gray-500:   #8896A8;
  --gray-700:   #4A5568;
  --white:      #FFFFFF;
  --danger:     #C0392B;
  --radius:     4px;
  --shadow-sm:  0 1px 4px rgba(13,27,42,.10);
  --shadow-md:  0 4px 16px rgba(13,27,42,.14);
  --shadow-lg:  0 8px 32px rgba(13,27,42,.18);
  --transition: .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--gray-50);
}

a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 0;
  text-align: center;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── NAV ── */
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--gray-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(201,168,76,.15);
  color: var(--gold);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
  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='%23C9A84C' fill-opacity='0.04'%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");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-accent { color: var(--gold); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin: 0 auto;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-wrap { padding: 48px 0 80px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── SECTION HEADING ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-label h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--navy);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* ── CARDS ── */
.posts-grid { display: grid; gap: 24px; }

.post-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: grid;
  grid-template-columns: 1fr;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(255,255,255,.2);
}

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-topic { background: rgba(27,79,114,.12); color: var(--steel); }
.badge-sub   { background: rgba(201,168,76,.15); color: #8B6914; }
.card-date   { font-size: 12px; color: var(--gray-500); margin-left: auto; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--steel); }

.card-excerpt {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: gap var(--transition), color var(--transition);
}
.read-more:hover { color: var(--gold); gap: 10px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.widget-title {
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 18px;
}
.widget-body { padding: 16px 18px; }

.topic-list { list-style: none; }
.topic-list li { border-bottom: 1px solid var(--gray-100); }
.topic-list li:last-child { border-bottom: none; }
.topic-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition);
}
.topic-list a:hover { color: var(--steel); }
.topic-count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.sub-list {
  list-style: none;
  padding-left: 12px;
  border-left: 2px solid var(--gray-100);
  margin: 4px 0 8px;
}
.sub-list li a {
  font-weight: 400;
  font-size: 13px;
  padding: 5px 0;
}

/* ── SINGLE POST ── */
.post-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 60px 24px 50px;
}
.post-header-inner { max-width: 860px; margin: 0 auto; }
.post-header .card-meta { margin-bottom: 18px; }
.post-header .badge-topic { background: rgba(255,255,255,.15); color: var(--gold); }
.post-header .badge-sub   { background: rgba(201,168,76,.2); color: var(--gold-light); }
.post-header .card-date   { color: rgba(255,255,255,.6); margin-left: 0; }
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-author {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.post-author strong { color: var(--gold); }

.post-featured-image {
  max-width: 860px;
  margin: -30px auto 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-featured-image img { width: 100%; height: 420px; object-fit: cover; }

.post-content-wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }

.post-body {
  background: var(--white);
  border-radius: 6px;
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
}
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 1.8em 0 .6em;
  line-height: 1.3;
}
.post-body h2 { font-size: 1.6rem; border-bottom: 2px solid var(--gold); padding-bottom: 8px; }
.post-body h3 { font-size: 1.25rem; }
.post-body p  { margin-bottom: 1.2em; }
.post-body ul, .post-body ol { padding-left: 1.8em; margin-bottom: 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--gray-50);
  font-style: italic;
  color: var(--steel);
}
.post-body code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.post-body pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body a { color: var(--steel); text-decoration: underline; }
.post-body img { border-radius: 4px; margin: 1.5em auto; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.post-body th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; }
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.post-body tr:nth-child(even) td { background: var(--gray-50); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.post-nav-btn {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.post-nav-btn:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.post-nav-btn.next { text-align: right; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); font-weight: 600; }
.nav-title { font-family: 'Playfair Display', serif; font-size: .95rem; color: var(--navy); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .current { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 14px 0;
  font-size: 13px;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gray-300); }

/* ── ALERT ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  border-left: 4px solid transparent;
}
.alert-error   { background: #fdf0f0; color: var(--danger); border-color: var(--danger); }
.alert-success { background: #f0fdf4; color: #166534; border-color: #22c55e; }
.alert-warn    { background: #fffbeb; color: #92400e; border-color: #f59e0b; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 50px 0 24px;
  margin-top: 60px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand .logo-name { font-size: 22px; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 10px; }
.footer-col h4 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ── CATEGORY PAGE ── */
.category-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  padding: 48px 24px;
  color: var(--white);
  text-align: center;
}
.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
}
.category-header p { color: rgba(255,255,255,.75); margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { height: 58px; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-body { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .sidebar { display: flex; }
}
