:root {
  --primary: #3498db;
  --primary-dark: #2c3e50;
  --text: #13212f;
  --muted: #5f7082;
  --border: #d8e3ec;
  --bg-soft: #f3f9ff;
  --card: #ffffff;
  --shadow: 0 16px 38px rgba(26, 61, 94, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 45%, #ffffff 100%);
}

a {
  color: inherit;
}

header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 18px 16px;
}

header h1 {
  margin: 0 0 6px;
}

header p {
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: var(--primary-dark);
  padding: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.blog-home,
.post-page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.blog-hero {
  text-align: center;
  padding: 44px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.14), rgba(255, 224, 138, 0.22));
  border: 1px solid rgba(52, 152, 219, 0.14);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(44, 62, 80, 0.08);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-hero h1,
.post-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
}

.blog-hero p,
.post-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.blog-search {
  margin-top: 24px;
}

.blog-search input {
  width: min(440px, 100%);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
}

.featured-posts,
.all-posts,
.categories,
.blog-cta {
  margin-top: 40px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.section-heading p,
.section-heading a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(26, 61, 94, 0.16);
}

.blog-card a {
  display: block;
  text-decoration: none;
  padding: 22px;
}

.featured {
  background: linear-gradient(180deg, #fff9e9 0%, #ffffff 100%);
}

.post-tag {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(52, 152, 219, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.blog-card h3 {
  margin: 12px 0 10px;
  font-size: 23px;
  line-height: 1.3;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meta {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.pagination button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

.blog-cta {
  text-align: center;
  padding: 34px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: var(--shadow);
}

.blog-cta h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.blog-cta p {
  margin: 0 auto 20px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.blog-cta .cta-button {
  background: #fff;
  color: var(--primary-dark);
}

.post-hero {
  padding: 28px 0 26px;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 24px;
}

.post-content,
.post-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.post-content {
  padding: 30px;
}

.post-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.post-content p,
.post-content li {
  color: #34475a;
  line-height: 1.8;
  font-size: 16px;
}

.post-content ul {
  padding-left: 22px;
}

.tip-box {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  background: var(--bg-soft);
}

.post-sidebar {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.post-sidebar h3 {
  margin-top: 0;
}

.sidebar-list {
  display: grid;
  gap: 12px;
}

.sidebar-list a {
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f9fcff;
  text-decoration: none;
}

.sidebar-list a strong {
  display: block;
  margin-bottom: 6px;
}

.sidebar-list a span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  margin-top: 40px;
  padding: 40px 20px 20px;
  background: #1e2a38;
  color: #fff;
}

.footer-container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer h3 {
  margin-bottom: 15px;
  color: #79c3ff;
}

.footer p,
.footer a {
  color: #d2dae2;
  line-height: 1.7;
  font-size: 14px;
  text-decoration: none;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  width: min(1100px, calc(100% - 32px));
  margin: 20px auto 0;
  padding-top: 15px;
  border-top: 1px solid #405366;
  text-align: center;
  color: #a4b2bf;
  font-size: 13px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

.clicable {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 9999;
}

.clicable i {
  font-size: 56px;
}

.whats,
.whats1,
.whats2 {
  position: fixed;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(15px) scale(0.7);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 9998;
  cursor: pointer;
}

.whats1 {
  right: 18px;
  bottom: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
}

.whats2 {
  right: 82px;
  bottom: 93px;
}

.whats {
  right: 88px;
  bottom: 28px;
  background: #25d366;
  color: #fff;
  font-size: 30px;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .blog-home,
  .post-page,
  .footer-container,
  .footer-bottom {
    width: min(100% - 20px, 1100px);
  }

  .blog-hero {
    padding: 34px 18px;
  }

  .post-content,
  .post-sidebar {
    padding: 20px;
  }

  .clicable {
    right: 14px;
    bottom: 20px;
  }

  .whats1 {
    right: 10px;
    bottom: 92px;
  }

  .whats2 {
    right: 74px;
    bottom: 85px;
  }

  .whats {
    right: 80px;
    bottom: 20px;
  }
}
