/* ==========================================================================
   COBALT PRESS THEME — Style DNA transferred from Insure template
   ==========================================================================
   Color mood: Professional blue primary + cyan accent on light/white base, dark navy footer
   Typography: Sans-serif geometric headings (bold 600-700) + readable body (400-500)
   Layout: Full-width sections → contained content, split-screen (50/50) blocks, rounded corners
   Rhythm: Generous vertical padding sections, alternating light/accent bg, shadow-lift cards
   Components: Filled primary buttons, rounded corners everywhere, soft box-shadows
   ========================================================================== */

:root {
  --primary: #0B5FBF;
  --primary-dark: #083E7E;
  --secondary: #0CC8E0;
  --secondary-light: #B2F0F8;
  --light: #F4F6FB;
  --light-alt: #EDF0F7;
  --dark: #12213A;
  --dark-mid: #1A2E4F;
  --text: #3A4255;
  --text-light: #6B7280;
  --text-muted: #9CA3B0;
  --white: #FFFFFF;
  --shadow-soft: 0 2px 32px rgba(11, 95, 191, 0.07);
  --shadow-card: 0 0 40px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 48px rgba(11, 95, 191, 0.13);
  --radius: 10px;
  --radius-lg: 16px;
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1140px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 10000;
  font-size: 14px;
}
.skip-link:focus {
  top: 8px;
  color: var(--white);
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  line-height: 1.3;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(12, 200, 224, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--light);
  color: var(--primary);
  border-color: var(--light);
}

.btn-light:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 14px;
}

/* Arrow icon for read-more style buttons */
.btn .arrow-icon {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* === TOPBAR === */
.topbar {
  background: var(--dark);
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: var(--text-muted);
  font-size: 13px;
}
.topbar a:hover {
  color: var(--secondary);
}

/* === HEADER / NAVBAR === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto;
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__brand img {
  height: 38px;
  width: auto;
}

.navbar__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.navbar__brand-name span {
  color: var(--primary);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: var(--light);
  border-radius: 50px;
  padding: 6px 8px;
}

.navbar__nav a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--primary);
  background: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--light);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--light);
  text-decoration: none;
}
.mobile-nav a:hover {
  color: var(--primary);
  background: var(--light);
  border-radius: var(--radius);
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--light);
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--light-alt);
  border-radius: 50px;
  padding: 6px 16px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}

.hero__title {
  font-size: 44px;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero__subtitle p {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__visual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

.hero__visual-stat {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(11, 95, 191, 0.3);
}

.hero__visual-stat-number {
  font-size: 32px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.hero__visual-stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--light);
}

.section--white {
  background: var(--white);
}

.section__header {
  margin-bottom: 48px;
}

.section__overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 14px;
}

.section__overline::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.section__title {
  font-size: 36px;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 540px;
}

/* === LATEST POSTS SECTION === */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.post-card--featured .post-card__image {
  aspect-ratio: auto;
  min-height: 320px;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card--featured .post-card__body {
  padding: 40px;
  justify-content: center;
}

.post-card__date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-card--featured .post-card__title {
  font-size: 26px;
}

.post-card__title a {
  color: var(--dark);
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--primary);
}

.post-card__excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}
.post-card__excerpt p {
  margin: 0;
}

.post-card__link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card__link:hover {
  color: var(--secondary);
  gap: 10px;
}

/* === TOPICS === */
.topics-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

.topics-layout__intro {
  position: sticky;
  top: 100px;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.topic-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.topic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: top;
}

.topic-item:hover::before {
  transform: scaleY(1);
}

.topic-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.topic-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.topic-item__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.topic-item__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}
.topic-item__desc p {
  margin: 0;
}

/* === FAQ === */
.faq-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.faq-item.is-open {
  border-color: rgba(11, 95, 191, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  line-height: 1.45;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.is-open .faq-question__icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer__inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer__inner p {
  margin: 0 0 12px;
}
.faq-answer__inner p:last-child {
  margin-bottom: 0;
}

/* === BLOG INDEX === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--light-alt);
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
}

.pagination a:hover {
  background: var(--light);
  color: var(--primary);
  border-color: var(--primary);
}

.pagination a.active,
.pagination span.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination__arrow {
  font-weight: 600;
}

/* === SINGLE POST === */
.post-header {
  padding: 60px 0 40px;
  background: var(--light);
}

.post-header__inner {
  max-width: 760px;
}

.post-header__date {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.post-header__title {
  font-size: 38px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.post-header__excerpt {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.65;
}
.post-header__excerpt p {
  margin: 0;
}

.post-cover {
  margin: -20px auto 0;
  max-width: 860px;
  padding: 0 20px;
}

.post-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }

.post-content p {
  margin-bottom: 1.4em;
  font-size: 17px;
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content img {
  border-radius: var(--radius);
  margin: 2em 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  color: var(--dark);
  font-style: italic;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === STATIC PAGE === */
.page-header {
  padding: 60px 0 40px;
  background: var(--light);
}

.page-header__title {
  font-size: 38px;
  color: var(--dark);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.page-content p {
  margin-bottom: 1.4em;
  font-size: 17px;
  line-height: 1.8;
}

.page-content h2 { font-size: 28px; margin-top: 2em; margin-bottom: 0.75em; }
.page-content h3 { font-size: 22px; margin-top: 1.8em; margin-bottom: 0.6em; }

.page-content ul, .page-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content img {
  border-radius: var(--radius);
  margin: 2em 0;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: var(--text-muted);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer__brand img {
  height: 34px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer__brand-name span {
  color: var(--secondary);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 320px;
}

.footer__heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.footer__links a::before {
  content: '›';
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__links a:hover::before {
  color: var(--secondary);
}

.footer__contact-email {
  color: var(--secondary);
  font-size: 14px;
  text-decoration: none;
}
.footer__contact-email:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 99;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(11, 95, 191, 0.3);
}
.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}
.back-to-top.is-visible {
  display: flex;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-1 { animation-delay: 0.1s !important; }
.stagger-2 { animation-delay: 0.2s !important; }
.stagger-3 { animation-delay: 0.3s !important; }
.stagger-4 { animation-delay: 0.4s !important; }

/* === RESPONSIVE === */

@media (max-width: 991px) {
  .navbar__nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__visual {
    display: none;
  }

  .topics-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topics-layout__intro {
    position: static;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

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

  .post-card--featured .post-card__image {
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section__title {
    font-size: 28px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 767px) {
  .topbar {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__title {
    font-size: 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .post-header__title,
  .page-header__title {
    font-size: 28px;
  }

  .section {
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
