/* ==============================
   Root Variables
============================== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0d1b2a;
  --muted: #667085;
  --primary: #0E296C;
  --primary-dark: #1e3a8a;
  --accent: #ff6b6b;
  --border: #e6eaf0;
  --top-bar: #1c2a59;
  --footer-bg: #f1f3f8;
  --shadow: 0 18px 50px rgba(21, 32, 56, 0.08);
  --radius: 24px;
}

/* ==============================
   Base Reset
============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* ==============================
   Top Info Bar
============================== */
.top-bar {
  background: var(--top-bar);
  color: #ffffff;
  font-size: 0.95rem;
  padding: 12px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar .tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.top-bar .tagline .bell {
  font-size: 1.1rem;
}

.top-bar .contact-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.top-bar .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ==============================
   Main Header / Navbar
============================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  color: var(--text);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: inherit;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff !important;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.25);
  transition: 0.25s ease;
  text-decoration: none;
}

.call-button:hover {
  background: #ff5252;
  transform: translateY(-1px);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  color: var(--primary);
}

/* ==============================
   Hero Section
============================== */
.hero {
  padding: 86px 0 52px;
  position: relative;
  overflow: hidden;
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.18), transparent 35%),
    linear-gradient(135deg, #ffffff, #f4f6fb);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 36px;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  margin: 0 0 18px;
}

.hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-visual {
  min-height: 340px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 28px 80px rgba(29, 78, 216, 0.28);
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin: 24px 0;
}

/* ==============================
   Layout & Blog Cards
============================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumb {
     height: auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.category-pill {
  color: var(--primary);
  background: rgba(29, 78, 216, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.post-card h3 {
  margin: 8px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card p {
  color: var(--muted);
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 800;
}

/* ==============================
   Sidebar
============================== */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  margin-top: 0;
}

.category-list,
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li,
.recent-list li {
  border-bottom: 1px solid var(--border);
}

.category-list li:last-child,
.recent-list li:last-child {
  border-bottom: 0;
}

.category-list a,
.recent-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 700;
  transition: 0.25s ease;
}

.category-list a:hover,
.recent-list a:hover {
  color: var(--primary);
}

/* ==============================
   Single Post Page
============================== */
.single-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.single-cover {
  height: 420px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content {
  padding: clamp(24px, 5vw, 56px);
}

.single-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin-top: 0;
}

.article-body {
  color: #2e3445;
  line-height: 1.9;
  font-size: 1.08rem;
}

/* ==============================
   Comments & Forms
============================== */
.comment-box {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  outline: 0;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert-success {
  background: #e7f9ef;
  color: #067647;
}

.alert-error {
  background: #fff0f0;
  color: #b42318;
}

/* ==============================
   Buttons
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* ==============================
   Home Page Sections
============================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-box h3 {
  font-size: 2.4rem;
  margin: 0 0 6px;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box span {
  color: var(--muted);
  font-weight: 700;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.popular-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.popular-card:hover {
  transform: translateY(-5px);
}

.popular-thumb {
  height: 170px;
  overflow: hidden;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-card > div:last-child {
  padding: 20px;
}

.popular-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.cta-section {
  margin-top: 60px;
}

.cta-card {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.18), transparent 35%),
    linear-gradient(135deg, #ffffff, #f4f6fb);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(30px, 6vw, 60px);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 1.1rem;
}

/* ==============================
   Footer
============================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--text);
  padding: 60px 0 0;
  margin-top: 70px;
}

.footer-quote {
  background: var(--top-bar);
  color: #ffffff;
  padding: 30px 36px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 50px;
}

.footer-quote h2 {
  margin: 0 0 6px;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
}

.footer-quote p {
  margin: 0;
  color: #cbd5e1;
}

.footer-quote form {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
}

.footer-quote input {
  border: 0;
  background: transparent;
  flex: 1;
  padding: 14px 16px;
  font: inherit;
  outline: 0;
  color: var(--text);
}

.footer-quote input::placeholder {
  color: var(--muted);
}

.footer-quote button {
  background: #d8ff52;
  color: var(--top-bar);
  font-weight: 900;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.25s ease;
}

.footer-quote button:hover {
  background: #c8f542;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: var(--primary);
  margin: 0 0 18px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.footer-col p {
  color: #2a3245;
  line-height: 1.8;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: #2a3245;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 10px;
  transition: 0.25s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-col .info-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: #2a3245;
}

.footer-col .info-line span:first-child {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 14px;
}

.footer-bottom {
  background: #ffffff;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 14px 30px rgba(255, 107, 107, 0.3);
  cursor: pointer;
  border: 0;
  z-index: 90;
  transition: 0.25s ease;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-quote {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-quote form {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .call-button {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.open {
    position: absolute;
    top: 90px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: grid;
    gap: 14px;
  }

  .hero-card,
  .layout {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .post-grid,
  .form-grid,
  .footer-grid,
  .stats-row,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .single-cover {
    height: 280px;
  }
}/* ==============================
   Breadcrumb
============================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 700;
  transition: 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.bc-sep {
  color: #cbd5e1;
}

.bc-current {
  color: var(--text);
  font-weight: 800;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==============================
   Single Post
============================== */
.single-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.single-cover {
  width: 100%;
height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content {
  padding: clamp(24px, 5vw, 50px);
}

.single-title {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
  margin: 20px 0 14px;
}

.single-meta {
  margin-bottom: 20px;
}

.single-excerpt {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.8;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin: 20px 0 26px;
}

/* ==============================
   Post Details Box
============================== */
.post-details-box {
  background: linear-gradient(135deg, #f8f9fc, #eef2ff);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
}

.post-details-box h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.post-details-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.post-details-box li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #d6dbe5;
  padding: 8px 0;
}

.post-details-box li span {
  color: var(--muted);
  font-weight: 700;
}

.post-details-box li strong {
  color: var(--text);
  font-weight: 900;
}

.post-details-box li a {
  color: var(--primary);
  font-weight: 900;
}

/* ==============================
   Author Box
============================== */
.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.author-avatar img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eef2ff;
}

.author-fallback {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  border: 4px solid #eef2ff;
}

.author-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.author-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   Related Posts
============================== */
.related-section {
  margin-bottom: 24px;
}

.related-section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-thumb {
  height: 160px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-body {
  padding: 16px;
}

.related-body h4 {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.3;
}

/* ==============================
   Comments
============================== */
.comment-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.comment-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.comment-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.comment-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-item p {
  margin: 0;
  color: #2e3445;
  line-height: 1.7;
}

.comment-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.comment-form h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

/* ==============================
   Category pill link
============================== */
.category-pill a {
  color: inherit;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .single-cover {
    height: 320px;
  }

  .post-details-box ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .single-cover {
    height: 240px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }
}