:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-light: #3b82f6;
  --blue-bg: #eff6ff;
  --blue-border: rgba(37,99,235,0.2);
  --white: #ffffff;
  --dark: #1e3a5f;
  --text-soft: rgba(30,58,95,0.62);
  --border: rgba(30,58,95,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --t: 0.2s ease;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Nunito', system-ui, sans-serif;
  --max: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--dark); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--dark); font-family: var(--font-display); }
h1 { font-size: clamp(28px,4vw,44px); font-style: italic; font-weight: 900; }
h2 { font-size: clamp(22px,3vw,32px); }
h3 { font-size: clamp(18px,2.5vw,22px); }
p { color: var(--text-soft); line-height: 1.75; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; border-radius: var(--radius); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.bg-soft { background: var(--blue-bg); }

/* ── LOGO ── */
.logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { font-size: 28px; animation: wave-rock 2s ease-in-out infinite; display: inline-block; }
@keyframes wave-rock { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(8deg); } }
.logo-text { font-size: 22px; font-weight: 900; color: var(--blue-dark); letter-spacing: -1px; font-style: normal; font-family: var(--font-display); }
.logo-text em { font-style: italic; color: var(--blue-light); font-weight: 900; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 116px; }
.logo { font-size: 22px; font-weight: 800; color: var(--blue-dark); letter-spacing: -0.5px; }
.logo span { color: var(--blue-light); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-soft); transition: color var(--t); }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav-lang { display: flex; gap: 4px; }
.nav-lang button { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--text-soft); cursor: pointer; transition: all var(--t); }
.nav-lang button.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ── HERO ── */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 60%, #bfdbfe 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2); color: var(--blue); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.8px; text-transform: uppercase; font-family: var(--font-display); }
.hero h1 { max-width: 600px; margin-bottom: 16px; }
.hero p { font-size: 18px; max-width: 520px; margin-bottom: 32px; color: var(--text-soft); }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; font-family: var(--font); transition: all var(--t); box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.4); color: white; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--blue); padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--blue); cursor: pointer; font-family: var(--font); transition: all var(--t); }
.btn-ghost:hover { background: var(--blue-bg); }

/* ── POST CARDS ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.post-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t); cursor: pointer; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(37,99,235,0.2); }
.post-card-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #bfdbfe); position: relative; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 20px; }
.post-tag { display: inline-block; background: var(--blue-bg); color: var(--blue); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-display); }
.post-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; color: var(--dark); }
.post-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.post-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.post-date { font-size: 12px; color: var(--text-soft); }
.post-read-more { font-size: 13px; color: var(--blue); font-weight: 600; }

/* ── POST MODAL ── */
.post-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.post-modal-overlay.active { display: flex; }
.post-modal { background: white; border-radius: var(--radius-lg); max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.post-modal-header { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.post-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-soft); padding: 4px; flex-shrink: 0; }
.post-modal-body { padding: 20px 28px 28px; }
.post-modal-body p { margin-bottom: 16px; }
.post-modal-body h2 { font-size: 24px; margin-bottom: 16px; color: var(--dark); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; max-width: 580px; margin: 0 auto 48px; }
.section-header .eyebrow { display: inline-block; background: var(--blue-bg); color: var(--blue); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; font-family: var(--font-display); }
.accent-line { height: 4px; width: 48px; background: var(--blue); border-radius: 2px; margin: 16px auto 0; }

/* ── GUIDANCE CARDS ── */
.guidance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.guidance-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: all var(--t); }
.guidance-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guidance-icon { width: 44px; height: 44px; background: var(--blue-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.guidance-card h4 { font-size: 16px; margin-bottom: 8px; }
.guidance-card p { font-size: 14px; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); padding: 48px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 240px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color var(--t); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom small { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── LOADING / EMPTY ── */
.loading { text-align: center; padding: 60px 20px; color: var(--text-soft); font-size: 15px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .emoji { font-size: 48px; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 15px; }

/* ── DECORATIVE ── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200' viewBox='0 0 300 200'%3E%3Cg opacity='0.04' stroke='%232563eb' fill='none' stroke-width='1.5'%3E%3Cpath d='M0 160 Q75 130 150 160 Q225 190 300 160 L300 200 L0 200 Z'/%3E%3Cpath d='M0 170 Q75 145 150 170 Q225 195 300 170' stroke-dasharray='5,4'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left 0 bottom 0;
  background-repeat: repeat-x;
  background-size: 300px 200px;
}
.site-header, footer, main { position: relative; z-index: 1; }

/* ── ADMIN ── */
.admin-task { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 16px; }
.task-status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; }
.task-status.approved { background: #dcfce7; color: #16a34a; }
.task-status.backlog { background: #fef3c7; color: #d97706; }
.task-status.executed { background: var(--blue-bg); color: var(--blue); }
.task-status.rejected { background: #fee2e2; color: #dc2626; }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .nav a:not(.logo-link):not(:last-child) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .guidance-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(26px,6vw,36px); }
  .hero p { font-size: 16px; }
}
@media(max-width:480px) {
  .site-header .container { height: 56px; }
  .logo-text { font-size: 18px; }
  .logo-mark { font-size: 22px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}

/* ── LOGO IMAGE ── */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 104px; width: auto; display: block; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.logo-img:hover { transform: scale(1.12); }
@media(max-width:480px) { .logo-img { height: 80px; } }
