/* ================================   Base.css → fonts, typography, resets, root variables.  ================ */



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

/* ================================
   GLOBAL TYPOGRAPHY SYSTEM
   ================================ */

/* Font setup */
:root {
  --font-primary: "Inter", system-ui, sans-serif;

  /* Line heights and weights */
  --line-tight: 1.1;
  --line-base: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Color palette */
      --color-base: #F9FAFB;
      --color-secondary: #0A2540;
      --color-accent: #14B8A6;
      --accent-hover: #10A090;
      --color-accent-gradient: linear-gradient(135deg, #14B8A6, #3B82F6);
      --text-light: #FFFFFF;
      --btn-hover: #10A090;
      --radius: 8px;
      --transition: all 0.3s ease;


      --sc-primary: #0A2540;
      --sc-accent: #14B8A6;
      --sc-base: #F9FAFB;
      --sc-text: #333333;
      --sc-text-light: #6B7280;
      --sc-white: #FFFFFF;
      --sc-shadow: rgba(0, 0, 0, 0.05);
      --sc-shadow-md: rgba(0, 0, 0, 0.1);
      --sc-transition: all 0.3s ease;


  /* Fluid typography scale (mobile → desktop)
     Using clamp() keeps text consistent across all screens */
  --fs-h1: clamp(2rem, 4vw + 1rem, 3.5rem);   /* ~32–56px */
  --fs-h2: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); /* ~28–40px */
  --fs-h3: clamp(1.5rem, 2vw + 0.25rem, 2rem);   /* ~24–32px */
  --fs-h4: clamp(1.25rem, 1.5vw + 0.25rem, 1.75rem); /* ~20–28px */
  --fs-h5: clamp(1.125rem, 1vw + 0.25rem, 1.5rem);   /* ~18–24px */
  --fs-h6: clamp(1rem, 0.8vw + 0.25rem, 1.25rem);    /* ~16–20px */

  --fs-body: clamp(1rem, 0.5vw + 0.25rem, 1.125rem); /* ~16–18px */
  --fs-small: clamp(0.875rem, 0.3vw + 0.2rem, 1rem); /* ~14–16px */
}

/* Base style */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--line-base);
  color: var(--color-secondary);
  background: var(--color-base);
  margin: 0;
  padding: 0;
}

/* ================================
   HEADINGS
   ================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
  margin-top: 0;
  margin-bottom: 0.75em;
  color: var(--color-secondary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* Optional accent heading (for section titles) */
.heading-accent {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--fs-h6);
  font-weight: var(--weight-semibold);
}

/* ================================
   PARAGRAPHS & TEXT ELEMENTS
   ================================ */

p {
  margin-top: 0;
  margin-bottom: 1.25em;
  color: var(--color-secondary);
  font-weight: var(--weight-regular);
}

p.lead {
  font-size: clamp(1.125rem, 0.8vw + 0.5rem, 1.5rem);
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  line-height: 1.7;
}

small, .small {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ================================
   LINKS & INTERACTIONS
   ================================ */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* ================================
   LISTS
   ================================ */

ul, ol {
  margin: 0 0 1.25em 1.25em;
  padding: 0;
  color: var(--color-secondary);
}

li {
  margin-bottom: 0.5em;
}

/* ================================
   RESPONSIVE UTILITY CLASSES
   ================================ */

/* Max width for content */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Centered text blocks */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left  { text-align: left; }

/* Section spacing */
.section {
  padding: 4rem 0;
}
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }
}

.section-title {
 text-align: center;
  margin-bottom: 1rem;
}


                                /* ================================
                                  BLOG HOMEPAGE STYLES
                                ================================ */

.blog-homepage-wrapper {
  font-family: var(--font-primary);
  color: var(--color-secondary);
  background: var(--color-base);
}

/* ---------- HERO ---------- */
.blog-homepage-hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
}

.blog-homepage-hero__title {
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
}

.blog-homepage-hero__desc {
  font-size: var(--fs-h3);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* ---------- FEATURED BLOG ---------- */
.blog-homepage-featured {
  padding: 4rem 1rem;
}

.blog-homepage-featured-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-base);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.blog-homepage-featured-card__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-homepage-featured-card__content {
  padding: 2rem;
}

.blog-homepage-featured-card__title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.blog-homepage-featured-card__desc {
  font-size: var(--fs-body);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.blog-homepage-featured-card__cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--text-light);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition: var(--transition);
}

.blog-homepage-featured-card__cta:hover {
  background: var(--accent-hover);
}

/* ---------- LATEST POSTS GRID ---------- */
.blog-homepage-latest {
  padding: 4rem 1rem;
  text-align: center;
}

.blog-homepage-latest__title {
  font-size: var(--fs-h2);
  margin-bottom: 3rem;
}

.blog-homepage-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-homepage-card {
  background: var(--color-base);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-homepage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.blog-homepage-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-homepage-card__title {
  font-size: var(--fs-h4);
  margin: 1rem 1rem 0.5rem;
}

.blog-homepage-card__desc {
  font-size: var(--fs-body);
  margin: 0 1rem 1rem;
  line-height: 1.6;
}

.blog-homepage-card__cta {
  display: inline-block;
  margin: 0 1rem 1rem;
  background: var(--color-accent);
  color: var(--text-light);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition: var(--transition);
}

.blog-homepage-card__cta:hover {
  background: var(--accent-hover);
}

/* ---------- CTA ---------- */
.blog-homepage-cta {
  text-align: center;
  padding: 4rem 1rem;
}

.blog-homepage-cta__title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.blog-homepage-cta__desc {
  font-size: var(--fs-body);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.blog-homepage-cta__button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--text-light);
  font-weight: var(--weight-semibold);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.blog-homepage-cta__button:hover {
  background: var(--accent-hover);
}

/* ---------- RESPONSIVE GRID ---------- */
@media (min-width: 768px) {
  .blog-homepage-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-homepage-featured-card {
    flex-direction: row;
    gap: 2rem;
  }

  .blog-homepage-featured-card__img {
    width: 50%;
    height: auto;
  }

  .blog-homepage-featured-card__content {
    width: 50%;
    padding: 2rem 3rem;
  }
}

@media (min-width: 1200px) {
  .blog-homepage-latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
