:root {
  --max-width: 1100px;
  --accent: #0b5f88;
  --muted: #6b7280;
  --bg: #ffffff;
  --radius: 8px;
}

/* Reset & base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f1720;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}
h1, h2, h3 { margin-top: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid #e6eef3;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 64px; }
.logo-sm { height: 28px; }

/* Nav */
.main-nav a {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, rgba(11,95,136,0.05), rgba(11,95,136,0.02));
}
.hero h1 { font-size: 1.9rem; font-weight: 700; }
.lead { font-size: 1rem; color: var(--muted); margin-top: 0.5rem; }
.hero-ctas {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }
.btn:hover { opacity: 0.9; }

/* Blog section */
.featured h2 { margin-bottom: 1rem; }

/* Scroll wrapper as flex row */
.posts-scroll-wrap {
  display: flex;
  align-items: center;   /* arrows vertically aligned with cards */
  gap: 0.5rem;
  position: relative;
}

/* Scroll arrows */
.scroll-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(11,95,136,0.8);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.scroll-btn:hover {
  background: rgba(11,95,136,1);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
@media (max-width: 700px) {
  .scroll-btn { display: none; }
}

/* Scroll row */
.posts-scroll {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;              /* stretch between arrows */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  scrollbar-width: none;       /* Firefox */
}
.posts-scroll::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Edge */
}
.posts-scroll article.card {
  flex: 0 0 240px;
  min-width: 220px;
  scroll-snap-align: start;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f5f8fa;
}
.card-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card h3 { margin: 0; font-size: 0.95rem; }
.meta { font-size: 0.8rem; color: var(--muted); }
.read-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Subscribe */
.subscribe { text-align: center; margin-top: 2rem; }
.subscribe-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.subscribe input[type="email"] {
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe7ee;
  border-radius: 6px;
  width: 280px;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin-top: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbe7ee;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form textarea { resize: vertical; }

/* Footer */
.site-footer {
  background: #f5f8fa;
  border-top: 1px solid #e1e6eb;
  color: #333;
  font-size: 0.9rem;
  padding: 0.75rem 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer nav a {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 700px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .main-nav.show { display: flex; }
  .menu-toggle { display: block; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-left: 1rem;
}
.social-links img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.social-links img:hover {
  filter: none;
  transform: scale(1.1);
}

