
/* Page base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
}

a { text-decoration: underline; }
a:hover { text-decoration: none; }

/* Navbar: white background, black text */
.navbar {
  background-color: #ffffff !important;
  border-color: #e0e0e0 !important;
}

.navbar .navbar-brand,
.navbar-nav > li > a {
  color: #238A8D !important;
}

.navbar .navbar-brand:hover,
.navbar-nav > li > a:hover {
  color: #fbb731 !important;
}

/* Remove underline from navbar links */
.navbar a,
.navbar-nav a,
.navbar-nav > li > a {
  text-decoration: none !important;
}
.navbar a:hover,
.navbar-nav a:hover {
  text-decoration: none !important;
}

/* Hero header (replacement for Hugo background section) */
.section-hero {
  background: #238A8D;
  color: #fff;
  padding: 20px 0;
  margin: -20px -20px 24px -20px; /* helps mimic section spanning full width */
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 6px 0 0 0;
  opacity: 0.95;
}

/* Button (replacement for {{< mybutton >}} ) */
.btn-primary {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #238A8D;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  border: 2px solid rgba(0,0,0,0.08);
}
.btn-primary:hover {
  filter: brightness(0.95);
}

/* Centered responsive image (replacement for {{< figure >}} ) */
.img-center {
  display: block;
  margin: 12px auto 18px auto;
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* Callout boxes (replacement for guidebox/topicbox shortcodes) */
.guidebox,
.topicbox {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(35, 138, 141, 0.06);
}

.topicbox {
  background: rgba(0,0,0,0.03);
}

/* Responsive video embed */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 16px 0 24px 0;
  padding-top: 56.25%; /* 16:9 */
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}


/* Related Posts Section */
.related-posts-section {
  margin: 48px 0 24px 0;
  padding-top: 24px;
  border-top: 2px solid rgba(35, 138, 141, 0.2);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-post-card {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 16px;
  border-radius: 12px;
  background: rgba(35, 138, 141, 0.06);
  transition: transform 0.2s;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(35, 138, 141, 0.15);
}

.related-post-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.related-post-card h3 a {
  color: #238A8D;
  text-decoration: none;
}

.related-post-card h3 a:hover {
  text-decoration: underline;
}

.related-post-card .post-date {
  color: #666;
  font-size: 0.85em;
  margin: 0;
}
