/*
Theme Name: Sea Service
Theme URI: https://localhost:8080/
Author: Sea Service
Description: Custom theme for Sea Service — maritime English school for seafarers. Trilingual (RU/EN/UK), course catalog, instructors, booking form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: seaservice
*/

/* ============ Design tokens ============ */
:root {
  --navy-900: #0a2540;
  --navy-800: #102e52;
  --navy-700: #1e4d8b;
  --teal-500: #00a8a8;
  --teal-600: #008a8a;
  --gold-500: #f4b942;
  --gold-600: #d99a26;
  --bg:        #f7f9fc;
  --surface:   #ffffff;
  --ink:       #1a2332;
  --ink-soft:  #4a5b6e;
  --line:      #dde4ee;
  --danger:    #c0392b;
  --ok:        #1e8e4f;
  --shadow-sm: 0 1px 2px rgba(10,37,64,0.06), 0 1px 3px rgba(10,37,64,0.08);
  --shadow-md: 0 4px 6px -1px rgba(10,37,64,0.08), 0 2px 4px -1px rgba(10,37,64,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(10,37,64,0.12), 0 10px 10px -5px rgba(10,37,64,0.06);
  --radius:    10px;
  --radius-lg: 16px;
  --container: 1200px;
  --font:      "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-500); }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* ============ Layout ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
@media (max-width: 720px) { section { padding: 48px 0; } }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy-900); font-size: 1.15rem; }
.brand-mark {
  width: 44px; height: 44px;
  display: inline-block; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); box-shadow: var(--shadow-md); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: var(--ink-soft); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--teal-500); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.lang-switcher { display: flex; gap: 4px; font-size: 0.85rem; }
.lang-switcher a { padding: 4px 8px; border-radius: 6px; color: var(--ink-soft); font-weight: 600; }
.lang-switcher a.current { background: var(--navy-900); color: white; }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 28px; height: 28px; color: var(--navy-900); }

@media (max-width: 900px) {
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 16px 24px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: 8px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
}

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: white; }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: rgba(30,77,139,0.08); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 70%, var(--teal-600) 100%);
  color: white; overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,213.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L0,320Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: bottom; background-size: 100% auto;
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: white; margin-bottom: 0.4em; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 580px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 580px; }
.hero-stat { border-left: 3px solid var(--gold-500); padding-left: 16px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: white; line-height: 1; display: block; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 4px; display: block; }
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-emblem { display: flex; justify-content: center; margin: -8px 0 16px; }
.hero-emblem svg { width: 128px; height: 128px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35)); }
.hero-card h3 { color: white; margin-bottom: 16px; text-align: center; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 10px 0; color: rgba(255,255,255,0.9); display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before { content: "✓"; color: var(--gold-500); font-weight: 700; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ Sections ============ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { display: inline-block; color: var(--teal-500); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-alt { background: white; }

/* ============ Courses grid ============ */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--teal-500));
  opacity: 0; transition: opacity .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-500); }
.course-card:hover::before { opacity: 1; }
.course-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-700), var(--teal-500)); display: grid; place-items: center; margin-bottom: 20px; color: white; font-weight: 700; font-size: 1.1rem; }
.course-card h3 { margin-bottom: 8px; }
.course-card .desc { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; margin-bottom: 20px; }
.course-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.course-meta .price { font-weight: 700; color: var(--navy-900); font-size: 1.1rem; }
.course-meta .duration { font-size: 0.85rem; color: var(--ink-soft); }
.course-card .arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-500); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }

/* ============ Instructors ============ */
.instructors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.instructor-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.instructor-photo {
  width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-700), var(--teal-500));
  display: grid; place-items: center; color: white; font-size: 4rem; font-weight: 700;
}
.instructor-body { padding: 20px; }
.instructor-body h3 { margin-bottom: 4px; }
.instructor-role { color: var(--teal-500); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.instructor-bio { color: var(--ink-soft); font-size: 0.9rem; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: var(--bg); color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }

/* ============ Testimonials ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--teal-500)); display: grid; place-items: center; color: white; font-weight: 700; }
.testimonial .meta { line-height: 1.3; }
.testimonial .meta strong { display: block; color: var(--navy-900); }
.testimonial .meta small { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Booking form ============ */
.booking { background: var(--navy-900); color: white; }
.booking .section-head h2 { color: white; }
.booking .section-head p { color: rgba(255,255,255,0.75); }
.booking .section-head .eyebrow { color: var(--gold-500); }
.booking-form { max-width: 640px; margin: 0 auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 40px; backdrop-filter: blur(12px); }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.booking-form .field { margin-bottom: 16px; }
.booking-form label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 6px; font-weight: 500; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); color: white; transition: border .15s ease;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--gold-500); background: rgba(255,255,255,0.12); }
.booking-form input::placeholder, .booking-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.booking-form textarea { min-height: 100px; resize: vertical; }
.booking-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.booking-form .submit-row { text-align: center; margin-top: 24px; }
.booking-form button { width: 100%; padding: 16px; font-size: 1rem; }
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.95rem; }
.form-msg.ok { background: rgba(30,142,79,0.18); border: 1px solid var(--ok); color: #b6f0c8; }
.form-msg.err { background: rgba(192,57,43,0.18); border: 1px solid var(--danger); color: #ffc4ba; }

@media (max-width: 600px) {
  .booking-form { padding: 24px; }
  .booking-form .row { grid-template-columns: 1fr; }
}

/* ============ How-it-works ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--teal-500)); color: white; font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand { color: white; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.footer-mark { display: inline-block; width: 36px; height: 36px; flex-shrink: 0; }
.footer-mark svg { width: 100%; height: 100%; display: block; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ============ Content / pages ============ */
.page-wrap { padding: 56px 0; }
.entry-content { max-width: 760px; margin: 0 auto; background: white; padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.entry-content h1 { margin-top: 0; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content blockquote { border-left: 4px solid var(--teal-500); padding: 4px 20px; color: var(--ink-soft); font-style: italic; margin: 24px 0; }
.entry-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }

/* ============ Single course ============ */
.course-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: white; padding: 64px 0; }
.course-hero h1 { color: white; }
.course-hero .price-tag { display: inline-block; background: var(--gold-500); color: var(--navy-900); padding: 8px 18px; border-radius: 999px; font-weight: 700; margin-bottom: 16px; }
.course-detail { padding: 64px 0; }
.course-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.course-sidebar { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 96px; }
.course-sidebar h4 { margin-bottom: 16px; }
.course-sidebar dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; margin-bottom: 20px; }
.course-sidebar dt { color: var(--ink-soft); font-size: 0.85rem; }
.course-sidebar dd { margin: 0; font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }
@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
}

/* ============ 404 ============ */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 6rem; color: var(--navy-700); margin-bottom: 0; }
.notfound p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ Social buttons ============ */
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.social-links a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.06);
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.social-links a:hover {
  background: var(--brand, var(--navy-700));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(10, 37, 64, 0.18);
}
.social-links svg { width: 16px; height: 16px; display: block; }

/* Footer variant — on dark navy bg */
.social-footer { margin-top: 18px; }
.social-footer a {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}
.social-footer a:hover {
  background: var(--brand, var(--gold-500));
  color: white;
}

/* Header variant — compact, never wraps */
.social-header { gap: 4px; flex-wrap: nowrap; }
.social-header a { width: 30px; height: 30px; background: transparent; color: var(--ink-soft); }
.social-header a:hover { background: var(--brand, var(--navy-700)); color: white; }
.social-header svg { width: 14px; height: 14px; }
@media (max-width: 1200px) { .social-header { display: none; } }

/* ============ Blog ============ */
.blog-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white; padding: 80px 0 64px;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,213.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L0,320Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: bottom; background-size: 100% auto;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero .eyebrow { display: inline-block; color: var(--gold-500); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.blog-hero h1 { color: white; max-width: 720px; }
.blog-hero .lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 640px; margin-top: 12px; }

.blog-list { padding: 64px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-500); }
.post-card-link { display: block; color: inherit; height: 100%; }
.post-card-link:hover { color: inherit; }
.post-thumb { width: 100%; height: 200px; overflow: hidden; position: relative; }
.post-thumb-placeholder {
  background: linear-gradient(135deg, var(--navy-700), var(--teal-500));
  display: grid; place-items: center;
}
.post-thumb-placeholder span { color: white; font-size: 4rem; font-weight: 800; opacity: 0.85; }
.post-body { padding: 24px; }
.post-meta { color: var(--ink-soft); font-size: 0.8rem; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.post-meta::after { content: ""; }
.post-meta time + .post-read-time::before { content: "·"; margin-right: 8px; }
.post-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--navy-900);
}
.post-card:hover .post-title { color: var(--navy-700); }
.post-excerpt { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 12px; }
.post-arrow { color: var(--teal-500); font-weight: 600; font-size: 0.9rem; }

.blog-pagination { margin-top: 48px; text-align: center; }
.blog-pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.blog-pagination .page-numbers:hover { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.blog-pagination .page-numbers.current { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.blog-pagination .page-numbers.dots { border: 0; background: transparent; }

.empty-state { text-align: center; padding: 64px 0; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============ Single post ============ */
.single-post .post-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white; padding: 64px 0 56px;
}
.single-post .post-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 20px;
  text-decoration: none;
}
.single-post .post-back:hover { color: white; }
.single-post .post-hero h1 { color: white; max-width: 820px; line-height: 1.2; }
.single-post .post-hero-meta { display: flex; gap: 8px; color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 0.9rem; }

.post-body-section { padding: 56px 0 80px; }
.post-body-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
@media (max-width: 900px) { .post-body-grid { grid-template-columns: 1fr; } }

.post-content { font-size: 1.05rem; line-height: 1.75; color: var(--ink); max-width: 760px; }
.post-content h2 { margin-top: 36px; margin-bottom: 14px; color: var(--navy-900); }
.post-content h3 { margin-top: 28px; margin-bottom: 10px; color: var(--navy-900); }
.post-content p { margin-bottom: 1.1em; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 4px solid var(--teal-500);
  background: var(--bg);
  margin: 28px 0;
  padding: 16px 24px;
  color: var(--ink-soft);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content strong { color: var(--navy-900); }
.post-content a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--teal-500); }
.post-content code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em; color: var(--navy-900);
}
.post-cover { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; }

.post-sidebar { position: sticky; top: 96px; align-self: start; }
.post-cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.post-cta h3 { color: white; margin-bottom: 8px; font-size: 1.1rem; }
.post-cta p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 20px; }
.post-cta .btn { width: 100%; justify-content: center; }

/* Latest articles section on home */
.latest-articles {
  background: white;
}
.latest-articles .posts-grid { margin-bottom: 32px; }

/* ============ Floating WhatsApp button ============ */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-fab:hover {
  background: #1ebc5b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0, 0, 0, 0.24);
}
.wa-fab:active { transform: translateY(0) scale(0.98); }

.wa-fab-icon {
  position: relative;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.wa-fab-icon svg { width: 22px; height: 22px; }

.wa-fab-tip {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Pulsing ring around the whole pill */
.wa-fab-pulse {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: #25d366;
  z-index: 1;
  animation: wa-fab-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.wa-fab:hover .wa-fab-pulse { animation-play-state: paused; }

@keyframes wa-fab-pulse {
  0%   { transform: scale(1);    opacity: 0.5; }
  70%  { transform: scale(1.18); opacity: 0;   }
  100% { transform: scale(1.18); opacity: 0;   }
}

/* Mobile — icon-only circle, no label */
@media (max-width: 600px) {
  .wa-fab {
    width: 60px; height: 60px;
    padding: 0;
    justify-content: center;
    right: 16px; bottom: 16px;
    border-radius: 50%;
  }
  .wa-fab-tip { display: none; }
  .wa-fab-icon { background: transparent; width: auto; height: auto; }
  .wa-fab-icon svg { width: 28px; height: 28px; }
  .wa-fab-pulse { border-radius: 50%; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .wa-fab-pulse { animation: none; opacity: 0; }
}

/* ============ Polylang language switcher reset ============ */
.lang-switcher ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.lang-switcher .lang-item img { display: none; }
.lang-switcher .lang-item a { padding: 4px 8px; border-radius: 6px; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.lang-switcher .lang-item.current-lang a, .lang-switcher .current-lang a { background: var(--navy-900); color: white; }
