body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  line-height: 1.6;
  color: #0f172a;
}

/* Match reference page title style */
body h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
  color: #489BB3;
}

/* Intro blurb full width */
.intro {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #225674;
}

.section-title { 
  font-size: 1.8rem; 
  color: #489BB3; 
  margin-bottom: 24px; 
  text-align: center; 
}

img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}

/* Alternating layout */
.feature-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .feature-block.left,
  .feature-block.right {
    align-items: flex-start;
  }

  .feature-block.left {
    flex-direction: row;
  }

  .feature-block.right {
    flex-direction: row-reverse;
  }

  .feature-block.left > a,
  .feature-block.right > a {
    flex-basis: 60%;
    flex-shrink: 0;
  }

  .feature-block.left .feature-text,
  .feature-block.right .feature-text {
    flex-basis: 40%;
  }
}

/* Two-column grid */
.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Gallery layout */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.app-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8%;
  
}
/*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/

.title-group {
  flex: 1;
  min-width: 0;
}

.title-group h1 {
  margin: 0;
  line-height: 1.1;
}

.tagline {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  color: #225674;
  font-weight: 400;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .header-branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .app-logo {
    width: 80px;
    height: 80px;
  }
  
  .title-group {
    text-align: center;
  }
}
/* =============================================
   Help Page Specific Styles (Minimal overrides)
   ============================================= */

.help-page {
  background-color: #f9f9f9;
  padding: 30px 20px;
}

/* Only override what is necessary for functionality */
.help-page h2:not(.section-title) {
  margin-top: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  padding: 12px 15px;
  background-color: #e8f4f8;
  border-left: 4px solid #489BB3;
}

.help-page h2:not(.section-title):hover {
  background-color: #d4ebf5;
}

.image-gallery {
  margin: 20px auto;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: none;
}

.gallery-image.active {
  display: block;
}

.image-alone {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gallery-caption {
  padding: 10px;
  background-color: #f5f5f5;
  font-style: italic;
  font-size: 0.9em;
  text-align: center;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f5f5f5;
  gap: 15px;
}

.gallery-button {
  padding: 8px 16px;
  background-color: #489BB3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.gallery-button:hover {
  background-color: #225674;
}

.gallery-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.section-content {
  display: none;
  padding: 15px 10px;
}

.section-content.active {
  display: block;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
  margin-left: 5px;
}

.badge-beta { background-color: orange; color: white; }
.badge-ext { background-color: lightgreen; color: black; }

.indent { margin-left: 20px; }
.indent2 { margin-left: 40px; }

.warning {
  background-color: #fff4e5;
  border-left: 4px solid #ff9800;
  padding: 12px;
  margin: 15px 0;
}

/* Blog Category Badges */
.blog-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
}

.blog-badge.standard {
  background-color: #e0f2fe;
  color: #0369a1;
}

.blog-badge.advanced {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.blog-badge.collaboration {
  background-color: #ecfdf5;
  color: #0f766e;
}

.blog-badge.integrations {
  background-color: #fefce8;
  color: #854d0e;
}

.blog-badge.category-e {
  background-color: #fef2f2;
  color: #b91c1c;
}

.blog-badge.category-f {
  background-color: #fdf2f8;
  color: #a21caf;
}

.blog-badge.category-g {
  background-color: #f1f5f9;
  color: #475569;
}

/* Blog Link Section on Main Page */
.blog-teaser {
  background-color: #f8fafc;
  border-left: 5px solid #489BB3;
  padding: 2rem;
  margin: 3rem 0;
}

.blog-teaser h2 {
  margin-top: 0;
  color: #225674;
}

.blog-teaser p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.blog-teaser a {
  color: #489BB3;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.blog-teaser a:hover {
  text-decoration: underline;
}

/* Small Blog Teaser at Top of Main Page */
.blog-teaser-small {
  background-color: #f8fafc;
  border-left: 4px solid #489BB3;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
}

.blog-teaser-small strong {
  color: #225674;
  font-size: 1.15rem;
}

/* Subtle Links Section */
.links-subtle {
  text-align: center;
  margin: 2.5rem 0 3rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.links-subtle a {
  color: #225674;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;           /* Prevents breaking words */
  transition: color 0.2s;
}

.links-subtle a:hover {
  color: #489BB3;
  text-decoration: underline;
}

/* =============================================
   Blog Index Page Styles
   ============================================= */

.blog-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
}

@media (min-width: 900px) {
  .blog-container {
    grid-template-columns: 2.3fr 1.2fr;   /* Left wider, right narrower - adjust as needed */
  }
}

.blog-sidebar {
  background-color: #f8fafc;
  padding: 1.8rem;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.blog-post {
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.blog-post .blog-badge {
  margin-bottom: 6px;
}

/* Post title links */
.blog-post h3 a {
  color: #225674;
  text-decoration: none;
  font-weight: bold;
}

.blog-post h3 a:hover {
  color: #489BB3;
  text-decoration: underline;
}

.blog-post h3 {
  margin: 0.35rem 0 0.6rem 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.blog-post p {
  margin: 0.4rem 0 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}