/*
Theme Name: Mami Berlian Agency
Theme URI: https://www.mamiberlianagency.com
Description: Tema custom untuk Mami Berlian Agency, fokus pada artikel layanan dan konversi WhatsApp.
Author: Tim SEO Mami Berlian
Version: 2.0.0
Text Domain: mami-berlian
*/

:root {
  --color-primary: #0b2d5c;
  --color-primary-dark: #081f3f;
  --color-secondary: #f7b32b;
  --color-accent: #1f4db3;
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #22c55e;
  --color-success-hover: #16a34a;
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 20px 44px rgba(15, 23, 42, 0.14);
  --radius-card: 22px;
  --radius-soft: 12px;
  --header-offset: 0px;
  --max-width: 1200px;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: #1f2a44;
  line-height: 1.7;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1.2em;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding: 40px 0 80px;
  padding-top: calc(var(--header-offset, 0px) + 40px);
}

body.home .site-content,
body.front-page .site-content {
  padding-top: var(--header-offset, 0px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.topbar-left,
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.topbar a {
  color: var(--color-secondary);
  font-weight: 700;
}

.topbar i {
  margin-right: 6px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
}

.nav-wrap {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #dce3f2;
  box-shadow: 0 12px 32px rgba(7, 31, 80, 0.12);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-sticky .nav-wrap {
  box-shadow: 0 18px 44px rgba(7, 31, 80, 0.16);
  border-bottom-color: #c8d3e8;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.custom-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.site-description {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

.menu-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #111827;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle:hover {
  background: #f8fafc;
}

.menu-icon {
  width: 22px;
  height: 3px;
  background: #111827;
  position: relative;
  display: inline-block;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 3px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: none;
  width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-nav li {
  margin: 0;
  white-space: nowrap;
}

.main-nav a {
  color: #111827;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  padding: 8px 8px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.main-nav a:hover {
  background: #f4f7fd;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav li:hover > a::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  opacity: 1;
  transform: translateY(0);
}

.main-nav .menu-item-cta a {
  background: var(--color-success);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-nav .menu-item-cta a:hover {
  background: var(--color-success-hover);
  color: #ffffff;
}

.main-nav.is-open {
  display: block;
  padding-bottom: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

.content-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid #edf1f7;
  padding: 32px;
  margin-bottom: 28px;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, #0b2d5c, #1f4db3);
  color: #ffffff;
  padding: 70px 0 110px;
  overflow: hidden;
  text-align: center;
}

.hero h1,
.hero p,
.hero span {
  color: inherit;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .hero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 12px;
}

.hero-text {
  color: #dbeafe;
  font-size: 15px;
  margin: 0 auto;
  max-width: 760px;
}

.hero-search {
  margin-top: 24px;
}

.hero-search .search-form {
  background: #ffffff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  max-width: 620px;
  margin: 0 auto;
  gap: 6px;
}

.hero-search .search-form label {
  flex: 1;
  margin: 0;
}

.hero-search .search-field {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  height: 48px;
  font-size: 15px;
}

.hero-search .search-submit {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0;
}

.hero-search .search-submit i {
  font-size: 16px;
}

.hero-search .search-submit:hover {
  background: var(--color-primary-dark);
}

.hero-search .search-submit-text {
  display: none;
}

.service-strip {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0e2c68 0%, #0e2c68 54%, #f4f6f9 54%, #f4f6f9 100%);
  padding: 0 0 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 16px 16px;
  border: 1px solid #edf1f7;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-height: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  color: #0c2f63;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.service-card .service-accent {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: var(--color-secondary);
}

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e6efff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(11, 45, 92, 0.05);
}

.service-card h3 {
  font-size: 17px;
  margin: 0;
  color: #0c2f63;
}

.service-card span {
  font-size: 13px;
  color: var(--color-muted);
}

.service-grid .service-card:nth-child(2) .service-icon {
  background: #ffeaf4;
  color: #d9468f;
}

.service-grid .service-card:nth-child(2) .service-accent {
  background: #f472b6;
}

.service-grid .service-card:nth-child(3) .service-icon {
  background: #e3f8ee;
  color: #16a34a;
}

.service-grid .service-card:nth-child(3) .service-accent {
  background: #22c55e;
}

.service-grid .service-card:nth-child(4) .service-icon {
  background: #fff7db;
  color: #d97706;
}

.service-grid .service-card:nth-child(4) .service-accent {
  background: #f59e0b;
}

.home-section {
  padding: 32px 0 0;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.home-bottom-cards {
  padding: 32px 0 60px;
}

.bottom-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-secondary);
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home-featured {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1f7;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 18px;
  margin-bottom: 20px;
}

.home-featured-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  display: block;
  min-height: 120px;
}

.home-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-featured-thumb .home-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.home-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: #e2e8f0;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.home-post-title {
  font-size: 20px;
  margin: 10px 0;
}

.home-post-excerpt {
  color: #475569;
  margin-bottom: 12px;
}

.home-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-muted);
}

.home-post-meta i {
  margin-right: 6px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1f7;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-card-thumb {
  display: block;
  background: #e2e8f0;
  min-height: 140px;
}

.home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card-thumb .home-thumb-placeholder {
  display: block;
  width: 100%;
  min-height: 140px;
}

.home-card-body {
  padding: 16px;
}

.home-card-title {
  font-size: 16px;
  margin: 10px 0 8px;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px);
}

.sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf1f7;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.profile-card {
  text-align: center;
}

.profile-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.profile-logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.profile-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.profile-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-card {
  background: linear-gradient(135deg, #0b2d5c, #081f3f);
  color: #ffffff;
}

.cta-card h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-card p {
  color: #dbeafe;
}

.cta-card .button {
  background: var(--color-success);
  color: #ffffff;
  justify-content: center;
}

.cta-card .button:hover {
  background: var(--color-success-hover);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.cta-actions .cta-icon {
  font-size: 32px;
  opacity: 0.9;
  align-self: center;
  margin-bottom: 4px;
}

.button-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-card .button-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.home-pagination {
  margin-top: 24px;
}

.home-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.home-pagination .page-numbers li a,
.home-pagination .page-numbers li span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.home-pagination .page-numbers li span.current,
.home-pagination .page-numbers li a.current {
  background: var(--color-primary);
  color: #ffffff;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs .sep {
  color: #c7d2fe;
}

.entry-title {
  font-size: clamp(30px, 3.2vw, 40px);
  margin-bottom: 12px;
  font-weight: 800;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-pill {
  background: #e8f0ff;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #dbe7ff;
}

.meta-pill a {
  color: inherit;
}

.featured-media {
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.featured-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dfe5f2, #c7cfde);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.post-share .share-label {
  font-size: 14px;
  color: var(--color-muted);
}

.post-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid #dbe7ff;
}

.post-share a:hover {
  transform: translateY(-2px);
  background: #d9e5ff;
}

.entry-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 32px;
  margin-bottom: 16px;
  border-left: 5px solid var(--color-secondary);
  padding-left: 12px;
  scroll-margin-top: calc(var(--header-offset, 0px) + 24px);
}

.entry-content {
  font-size: 16px;
  color: #1f2a44;
}

.toc-card {
  background: linear-gradient(180deg, #e7f0ff 0%, #dbeafe 100%);
  border-radius: 16px;
  border: 1px solid #c7d7f9;
  padding: 24px;
  margin: 26px 0;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.toc-card h3 {
  color: #0c2f63;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.entry-content .toc-list {
  margin: 0;
  padding-left: 18px;
  color: #0c2f63;
  list-style: decimal;
}

.entry-content .toc-list li {
  margin-bottom: 8px;
  padding-left: 0;
}

.entry-content .toc-list li::before {
  content: none;
}

.entry-content .toc-list a {
  color: #0b3c91;
  text-decoration: none;
  font-weight: 700;
}

.entry-content .toc-sublist {
  margin-top: 7px;
  padding-left: 20px;
  list-style: decimal;
}

.entry-content .toc-sublist li {
  margin-bottom: 6px;
  padding-left: 0;
}

.entry-content .toc-sublist li::before {
  content: none;
}

.entry-content .toc-level-3 {
  margin-left: 0;
  margin-bottom: 6px;
  font-weight: 600;
}

.entry-content h3 {
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  scroll-margin-top: calc(var(--header-offset, 0px) + 24px);
}

.entry-content blockquote,
.entry-content .is-style-mb-soft {
  background: #f1f6ff;
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em;
  padding: 0;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.entry-content ol {
  list-style: none;
  counter-reset: mb-counter;
}

.entry-content ol li {
  counter-increment: mb-counter;
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
}

.entry-content ol li::before {
  content: counter(mb-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #1f2937;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--color-border);
}

.entry-content table thead th {
  background: #f1f5f9;
  color: var(--color-primary);
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.entry-content table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.wp-block-table {
  margin: 24px 0;
  overflow-x: auto;
  display: block;
  border-radius: 14px;
  background: #ffffff;
}

.wp-block-button__link,
.button,
input[type="submit"] {
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  color: #ffffff;
}

.is-style-mb-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.is-style-mb-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.is-style-mb-dark {
  background: linear-gradient(135deg, #081f3f, #0b2d5c);
  color: #e5e7eb;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-lift);
}

.is-style-mb-dark h2,
.is-style-mb-dark h3,
.is-style-mb-dark p {
  color: #ffffff;
}

.is-style-mb-dark .wp-block-button__link {
  background: var(--color-success);
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.tag-label {
  font-size: 12px;
  color: var(--color-muted);
}

.tag-list a {
  background: #f3f4f6;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.post-card-thumb img {
  width: 100%;
  height: auto;
}

.post-card-body {
  padding: 20px;
}

.post-card-title {
  margin-bottom: 10px;
  font-size: 22px;
}

.post-card-excerpt {
  color: #475569;
}

.archive-description {
  color: var(--color-muted);
}

.related-posts .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-item {
  display: flex;
  gap: 12px;
}

.related-thumb {
  width: 88px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: block;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.related-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.sidebar .widget {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #edf1f7;
  margin-bottom: 24px;
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px);
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px);
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px);
}

.widget-title,
.sidebar .widget h2,
.sidebar .widget h3 {
  font-size: 20px;
  margin-bottom: 14px;
  border-left: 4px solid var(--color-secondary);
  padding-left: 12px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .wp-block-latest-posts,
.sidebar .wp-block-latest-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form label {
  flex: 1;
}

.search-field {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  height: 44px;
}

.search-submit {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #111827;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  gap: 6px;
}

.search-submit-text {
  display: inline-flex;
}

.search-submit i {
  font-size: 14px;
}

.sidebar .search-submit i {
  display: none;
}

.search-submit:hover {
  background: #e2e8f0;
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}

.wp-block-search__input {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  height: 44px;
}

.wp-block-search__button {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #111827;
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.sidebar .wp-block-latest-posts__list li,
.sidebar .wp-block-latest-comments li {
  margin-bottom: 12px;
}

.sidebar .wp-block-latest-comments__comment-date {
  color: var(--color-muted);
  font-size: 12px;
}

.widget-cta-card {
  background: linear-gradient(135deg, #0b2d5c, #081f3f);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}

.widget-cta-card .cta-icon {
  font-size: 30px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.widget-cta-card .button {
  background: #ffffff;
  color: var(--color-primary);
  margin-top: 12px;
}

.widget-cta-card .button:hover {
  background: #f8fafc;
  color: var(--color-primary-dark);
}

.widget_recent_comments,
.widget_archive {
  display: none !important;
}

.toc-fab {
  position: fixed;
  bottom: 176px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b2d5c;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1201;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.toc-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
  background: #081f3f;
}

.toc-fab + .back-to-top {
  bottom: 108px;
}

.float-stack {
  position: fixed;
  right: 18px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.float-stack.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-stack .toc-fab,
.float-stack .back-to-top,
.float-stack .whatsapp-float {
  position: static;
  right: auto;
  bottom: auto;
}

@media (max-width: 640px) {
  .float-stack {
    right: 14px;
    bottom: 26px;
  }
}

@media (max-width: 640px) {
  .toc-fab {
    right: 18px;
    bottom: 140px;
    width: 50px;
    height: 50px;
  }
}

.popular-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.popular-thumb img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.popular-thumb .thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e5eaf5;
  display: inline-block;
}

.popular-title {
  font-weight: 600;
  color: #0c2f63;
}

.footer-cta {
  background: linear-gradient(135deg, #0b2d5c, #081f3f);
  color: #ffffff;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lift);
  margin-bottom: 32px;
}

.footer-cta h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-cta p {
  color: #dbeafe;
  margin: 0;
}

.footer-cta .button {
  background: var(--color-success);
  color: #ffffff;
  border: 1px solid var(--color-success);
}

.footer-cta .button:hover {
  background: var(--color-success-hover);
  color: #ffffff;
  border-color: var(--color-success-hover);
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 40px 0 20px;
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-cta .button:hover,
.site-footer .footer-cta .button:focus {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.footer-title {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-widget i {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-links {
  margin-top: 16px;
}

.page-numbers {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 600;
}

.page-numbers.current {
  background: var(--color-primary);
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 108px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 9998;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

.back-to-top:focus {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.whatsapp-float {
  position: fixed;
  bottom: 34px;
  right: 22px;
  background-color: var(--color-success);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  background-color: var(--color-success-hover);
  color: #ffffff;
  transform: scale(1.1);
}

.whatsapp-label {
  position: absolute;
  right: 70px;
  background: #ffffff;
  color: #333333;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label {
  opacity: 1;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    width: auto;
    margin-left: auto;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .main-nav a {
    white-space: nowrap;
    padding: 6px 10px;
  }
}

@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .site-content {
    padding-top: calc(var(--header-offset, 0px) + 24px);
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    order: 2;
  }

  .bottom-card-grid {
    grid-template-columns: 1fr;
  }

  .service-strip {
    margin-top: -24px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    z-index: 40;
  }

  .main-nav ul {
    gap: 10px;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: 94%;
  }

  .entry-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  body.archive .entry-title {
    font-size: 24px;
  }

  body.archive .content-card {
    padding: 16px 14px;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .menu-text {
    display: none;
  }

  .brand-text {
    max-width: 190px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-description {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    max-width: 190px;
    white-space: normal;
  }

  .content-card {
    padding: 20px;
  }

  .hero {
    padding: 46px 0 80px;
  }

  .hero-search .search-form {
    border-radius: 20px;
  }

  .hero-search .search-submit {
    width: 44px;
    height: 44px;
  }

  .home-featured {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card {
    padding: 18px 12px 14px;
    gap: 10px;
    min-height: 140px;
  }

  .service-card h3 {
    font-size: 17px;
  }

  .service-card span {
    font-size: 13px;
  }

  .service-card .service-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .content-grid,
  .home-grid {
    gap: 18px;
  }

  .content-card {
    padding: 18px;
  }

  .back-to-top {
    right: 14px;
    bottom: 96px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 26px;
    right: 14px;
  }
}

.comments-closed {
  display: none;
}
