:root {
  --navy: #0e2a47;
  --navy-dark: #081a2e;
  --blue: #1f6feb;
  --blue-light: #eaf2fe;
  --ink: #1c2530;
  --gray: #5b6570;
  --border: #e6e9ee;
  --bg: #f5f7fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
}

h1, h2, h3 {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-name {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.site-name:hover { text-decoration: none; }

.site-name span {
  font-weight: 500;
  color: var(--gray);
}

header nav a {
  margin-left: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

header nav a.active,
header nav a:hover {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  text-decoration: none;
}

main { padding-bottom: 30px; }

.page-content { padding-top: 40px; }

/* Hero / profile */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 56px 0 64px;
  margin-bottom: 40px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-text { flex: 1; min-width: 240px; }

.hero-text h1 {
  font-size: 1.9rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-text .role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-text .bio {
  font-size: 1rem;
  color: #cfd9e6;
  max-width: 600px;
}

/* Page heading (used on blog listing page) */
.page-heading {
  margin-bottom: 30px;
}

.page-heading h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-heading p {
  color: var(--gray);
  font-size: 1rem;
}

/* Blog preview card */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.blog-block {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.blog-block:hover {
  box-shadow: 0 14px 34px rgba(14,42,71,0.14);
  transform: translateY(-3px);
  text-decoration: none;
}

.blog-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.blog-block-text {
  padding: 26px 28px 30px;
}

.blog-block-text .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-block-text h2 {
  font-size: 1.3rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--navy);
}

.blog-block-text p {
  color: var(--gray);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more svg { transition: transform 0.2s ease; }
.blog-block:hover .read-more svg { transform: translateX(4px); }

.blog-list { margin-top: 4px; }

/* Home page blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.blog-grid .blog-block { margin-bottom: 0; }
.blog-grid .blog-block-text { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-grid .blog-block-text h2 { font-size: 1.05rem; }
.blog-grid .blog-block-text p { font-size: 0.9rem; }
.blog-grid .read-more { margin-top: auto; }

.view-all-wrap { text-align: center; margin: 8px 0 20px; }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 10px 22px;
  transition: background 0.2s ease, color 0.2s ease;
}
.view-all:hover { background: var(--blue); color: #ffffff; text-decoration: none; }

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Blog article */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
}

article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}

article h1 {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--navy);
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.byline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.byline strong { color: var(--ink); }

.featured-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(14,42,71,0.1);
}

article h2 {
  font-size: 1.25rem;
  margin: 30px 0 12px;
  color: var(--navy);
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

article p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--ink);
}

article a { font-weight: 600; }

/* Footer CTA */
footer {
  background: var(--navy-dark);
  color: #d8dee6;
  padding: 54px 0 30px;
  margin-top: 20px;
}

.cta-box {
  background: linear-gradient(135deg, #123a63 0%, #0e2a47 100%);
  border: 1px solid #1c3f63;
  border-radius: 16px;
  padding: 38px 34px;
  text-align: center;
  margin-bottom: 26px;
}

.cta-box h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1rem;
  color: #c3ccd6;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box a.inline-link { color: #6fb1e6; font-weight: 700; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(31,111,235,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: #1558bd;
  transform: translateY(-2px);
}

.footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: #7c8794;
}

@media (max-width: 620px) {
  .hero { padding: 44px 0 48px; }
  article { padding: 26px; }
  header nav a { margin-left: 16px; }
}
