@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   Design tokens — mirrors the React app's :root
   ============================================ */
:root {
  --primary: #0B1D2D;
  --secondary: #937230;
  --secondary-light: #C5A059;
  --tertiary: #F8F9FA;
  --neutral: #4A4A4A;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral);
  background-color: var(--tertiary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

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

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Navbar (static version — matches React app scrolled state)
   ============================================ */
body {
  padding-top: 74px; /* Compensate for fixed navbar */
}

.kisokos-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--tertiary);
  color: var(--primary);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.kisokos-navbar .logo-svg {
  display: block;
  fill: var(--primary);
}

.kisokos-navbar .navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kisokos-navbar .navbar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kisokos-navbar .logo-text {
  display: flex;
  flex-direction: column;
}

.kisokos-navbar .logo-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--primary);
}

.kisokos-navbar .logo-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--secondary);
}

.kisokos-navbar .navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.kisokos-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
}

.kisokos-navbar .nav-link:hover {
  color: var(--secondary);
}

.kisokos-navbar .nav-link.active {
  color: var(--secondary);
  position: relative;
}

.kisokos-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

/* Mobile nav */
.mobile-only { display: none; }
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--tertiary);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
  color: var(--primary);
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex; align-items: center; }
}

/* ============================================
   Page Hero (kisokos landing)
   ============================================ */
.kisokos-hero {
  background: var(--primary);
  color: var(--tertiary);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kisokos-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
  animation: heroShimmer 15s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, 3%); }
}

.kisokos-hero h1 {
  font-size: 3rem;
  color: var(--tertiary);
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: 1px;
}

.kisokos-hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  line-height: 1.8;
}

/* ============================================
   Article Hero (individual article pages)
   ============================================ */
.article-hero {
  background: var(--primary);
  color: var(--tertiary);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(197, 160, 89, 0.06) 100%);
}

.article-hero h1 {
  font-size: 2.4rem;
  color: var(--tertiary);
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.3;
}

.article-hero .article-category {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 1rem;
  display: block;
  position: relative;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--neutral);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.breadcrumb a {
  color: var(--secondary);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #aaa;
}

/* ============================================
   Topic cards grid (landing page)
   ============================================ */
.topics-section {
  padding: 4rem 0 5rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--secondary-light), var(--secondary));
  transition: height 0.35s ease;
  border-radius: 0 0 4px 0;
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(11, 29, 45, 0.1);
  border-color: rgba(197, 160, 89, 0.2);
}

.topic-card:hover::before {
  height: 100%;
}

.topic-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #1a3550);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--secondary-light);
  flex-shrink: 0;
}

.topic-card-icon svg {
  width: 24px;
  height: 24px;
}

.topic-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.topic-card p {
  font-size: 0.95rem;
  color: var(--neutral);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.topic-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.topic-card:hover .read-more {
  gap: 0.75rem;
}

.read-more-arrow {
  transition: transform 0.3s ease;
}

.topic-card:hover .read-more-arrow {
  transform: translateX(4px);
}

/* ============================================
   Article body
   ============================================ */
.article-body {
  padding: 3rem 0 4rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(197, 160, 89, 0.2);
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Highlight / callout boxes */
.info-box {
  background: linear-gradient(135deg, #f0ebe2, #f7f3ec);
  border-left: 4px solid var(--secondary);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
}

.info-box strong {
  color: var(--primary);
}

.tip-box {
  background: linear-gradient(135deg, #e8f4f0, #f0f9f6);
  border-left: 4px solid #2b8a6b;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
}

.tip-box .tip-label {
  font-weight: 600;
  color: #2b8a6b;
  margin-bottom: 0.25rem;
  display: block;
}

.warning-box {
  background: linear-gradient(135deg, #fdf0e6, #fdf6ef);
  border-left: 4px solid #c0792a;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
}

.warning-box .warning-label {
  font-weight: 600;
  color: #c0792a;
  margin-bottom: 0.25rem;
  display: block;
}

/* Severance pay table */
.severance-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.severance-table thead {
  background: var(--primary);
  color: var(--tertiary);
}

.severance-table th {
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  letter-spacing: 0.5px;
}

.severance-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 1rem;
}

.severance-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

.severance-table tbody tr:hover {
  background: rgba(197, 160, 89, 0.08);
}

/* ============================================
   Related articles
   ============================================ */
.related-articles {
  padding: 3rem 0 4rem;
  background: #f0f2f5;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.related-articles h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.related-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.related-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.9rem;
  color: var(--neutral);
  line-height: 1.5;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: var(--primary);
  color: var(--tertiary);
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--tertiary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #7a5f27;
  color: #fff;
}

/* ============================================
   Legal disclaimer
   ============================================ */
.legal-disclaimer {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--neutral);
  line-height: 1.7;
}

.legal-disclaimer strong {
  color: var(--primary);
}

/* ============================================
   Footer (static version)
   ============================================ */
.kisokos-footer {
  background: var(--primary);
  color: var(--tertiary);
  padding: 3rem 0;
  text-align: center;
}

.kisokos-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.kisokos-footer .footer-name {
  letter-spacing: 2px;
}

.kisokos-footer .footer-name span:first-child {
  font-weight: 600;
  margin-right: 10px;
}

.kisokos-footer .footer-name span:last-child {
  color: var(--secondary-light);
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.kisokos-footer .footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.kisokos-footer .footer-legal-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.kisokos-footer .footer-legal-text p {
  margin-bottom: 1rem;
}

.kisokos-footer .footer-copyright {
  text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .kisokos-hero h1 {
    font-size: 2rem;
  }

  .kisokos-hero .hero-subtitle {
    font-size: 1rem;
  }

  .article-hero h1 {
    font-size: 1.7rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .article-body h2 {
    font-size: 1.35rem;
  }

  .article-body p,
  .article-body li {
    font-size: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .info-box, .tip-box, .warning-box {
    padding: 1.25rem 1.5rem;
  }

  .severance-table th,
  .severance-table td {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container, .article-container {
    padding: 0 1.25rem;
  }

  .kisokos-hero {
    padding: 3.5rem 0 3rem;
  }

  .article-hero {
    padding: 3rem 0 2rem;
  }

  .topic-card {
    padding: 1.5rem;
  }
}
