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

    :root {
      --blue:        #1565D8;
      --blue-light:  #1e78f0;
      --yellow:      #F5A623;
      --green:       #5AC429;
      --white:       #ffffff;
      --hover-color: #FFD166;          /* warm amber on hover   */
      --active-color:#5AC429;          /* green underline/text for active */
      --underline-h: 3px;              /* underline thickness   */
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: #eef3fb;
      min-height: 200vh;
    }

    /* ─────────────────────────────────────────
       HEADER SHELL
    ───────────────────────────────────────── */
    header {
      /* enough height for logo + its top margin */
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--blue);
      /* bottom shimmer line */
      border-bottom: 3px solid transparent;
      border-image: linear-gradient(90deg, var(--yellow), var(--green), var(--yellow)) 1;
      /* flex: logo bottom-aligned to nav row */
      display: flex;
      align-items: flex-end;         /* ← key: everything sits on the same baseline */
      padding-bottom: 0;
    }

    /* ─────────────────────────────────────────
       LOGO  — margin-top 20, margin-left 20
    ───────────────────────────────────────── */
    .header-logo {
      display: block;
      flex-shrink: 0;
      margin-top: 20px;
      margin-left: 20px;
      /* slight lift so the logo clears the nav underlines */
      padding-bottom: 10px;
    }

    .header-logo img {
      width: 64px;
      height: 64px;
      border-radius: 14px;
      object-fit: cover;
      display: block;
      box-shadow: 0 4px 16px rgba(0,0,0,0.28);
      transition: transform .25s ease;
    }
    .header-logo:hover img {
      transform: rotate(-5deg) scale(1.07);
    }

    /* ─────────────────────────────────────────
       NAV  — 5 links, bottoms flush with logo bottom
    ───────────────────────────────────────── */
    nav {
      margin-left: auto;             /* push to the right */
      display: flex;
      align-items: flex-end;         /* links sit on the same bottom baseline */
      gap: 0;
    }

    nav a {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.80);
      text-decoration: none;
      padding: 10px 22px;
      position: relative;

      /* underline drawn via ::after so we can animate it */
      transition: color .2s ease;
    }

    /* ── underline bar ── */
    nav a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      right: 50%;
      height: var(--underline-h);
      border-radius: 2px 2px 0 0;
      background: var(--hover-color);
      transition: left .25s ease, right .25s ease, background .2s ease;
    }

    /* ── HOVER ── */
    nav a:hover {
      color: var(--hover-color);
    }
    nav a:hover::after {
      left: 16px;
      right: 16px;
      background: var(--hover-color);
    }

    /* ── ACTIVE (current page) ── */
    nav a.active {
      color: var(--white);
    }
    nav a.active::after {
      left: 16px;
      right: 16px;
      background: var(--active-color);  /* green underline for active page */
      box-shadow: 0 0 8px var(--active-color);
    }
    /* active overrides hover underline color */
    nav a.active:hover::after {
      background: var(--active-color);
    }

    .app-title {
      font-family: 'Nunito', sans-serif;
      font-size: 48px;
      color: orange;
      text-align: center;
      margin: 10px 20px 24px;
    }
    /* ─────────────────────────────────────────
       SHARED BUTTON
    ───────────────────────────────────────── */
    .btn-primary {
      display: inline-block;
      background: var(--yellow);
      color: #1a1a2e;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 0.95rem;
      padding: 14px 32px;
      border-radius: 50px;
      text-decoration: none;
      transition: background .2s ease, transform .15s ease;
      border: none;
      cursor: pointer;
    }
    .btn-primary:hover {
      background: var(--hover-color);
      transform: translateY(-2px);
    }
    .btn-disabled {
      opacity: 0.45;
      cursor: not-allowed;
      pointer-events: none;
    }
    .coming-soon {
      font-size: 0.8rem;
      color: #8a96ab;
      margin-top: 10px !important;
      margin-bottom: 0 !important;
    }

    /* ─────────────────────────────────────────
       PAGE HERO  (all inner pages)
    ───────────────────────────────────────── */
    .page-hero {
      text-align: center;
      padding: 72px 24px 56px;
      max-width: 760px;
      margin: 0 auto;
    }
    .page-hero h1 {
      font-family: 'Nunito', sans-serif;
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 16px;
    }
    .page-hero p {
      font-size: 1.1rem;
      color: #4a5568;
      line-height: 1.7;
    }

    /* ─────────────────────────────────────────
       HOME HERO
    ───────────────────────────────────────── */
    .hero {
      display: flex;
      align-items: center;
      gap: 48px;
      max-width: 1100px;
      margin: 0 auto;
      padding: 72px 32px 80px;
    }
    .hero-content {
      flex: 1;
    }
    .hero-content h1 {
      font-family: 'Nunito', sans-serif;
      font-size: clamp(2rem, 4.5vw, 3.2rem);
      font-weight: 800;
      color: var(--blue);
      line-height: 1.2;
      margin-bottom: 20px;
    }
    .hero-content p {
      font-size: 1.05rem;
      color: #4a5568;
      line-height: 1.8;
      margin-bottom: 32px;
    }
    .hero-image {
      flex: 1;
      display: flex;
      justify-content: center;
    }
    .hero-image img {
      max-width: 100%;
      max-height: 460px;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(21,101,216,.18);
      object-fit: cover;
    }
    @media (max-width: 720px) {
      .hero { flex-direction: column; padding: 48px 24px 56px; }
      .hero-image { order: -1; }
    }

    /* ─────────────────────────────────────────
       HOME HIGHLIGHTS
    ───────────────────────────────────────── */
    .highlights {
      display: flex;
      gap: 28px;
      max-width: 1100px;
      margin: 0 auto 80px;
      padding: 0 32px;
      flex-wrap: wrap;
    }
    .highlight-card {
      flex: 1;
      min-width: 240px;
      background: white;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0,0,0,.07);
      transition: transform .25s ease, box-shadow .25s ease;
    }
    .highlight-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 36px rgba(21,101,216,.14);
    }
    .highlight-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    .highlight-card h3 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--blue);
      padding: 16px 20px 6px;
    }
    .highlight-card p {
      font-size: 0.88rem;
      color: #5a6a85;
      padding: 0 20px 20px;
      line-height: 1.6;
    }

    /* ─────────────────────────────────────────
       FEATURES PAGE
    ───────────────────────────────────────── */
    .features-grid {
      max-width: 1000px;
      margin: 0 auto 80px;
      padding: 0 32px;
      display: flex;
      flex-direction: column;
      gap: 64px;
    }
    .feature-item {
      display: flex;
      align-items: center;
      gap: 48px;
    }
    .feature-item.reverse {
      flex-direction: row-reverse;
    }
    .feature-img-wrap {
      flex: 1;
    }
    .feature-img-wrap img {
      width: 100%;
      max-height: 340px;
      object-fit: cover;
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(21,101,216,.14);
    }
    .feature-text {
      flex: 1;
    }
    .feature-text h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 14px;
    }
    .feature-text p {
      font-size: 0.98rem;
      color: #4a5568;
      line-height: 1.8;
    }
    @media (max-width: 720px) {
      .feature-item, .feature-item.reverse { flex-direction: column; }
    }

    /* ─────────────────────────────────────────
       OUR STORY PAGE
    ───────────────────────────────────────── */
    .story {
      max-width: 800px;
      margin: 0 auto 80px;
      padding: 0 32px;
      display: flex;
      flex-direction: column;
      gap: 56px;
    }
    .story-block {
      display: flex;
      gap: 36px;
    }
    .story-year {
      flex-shrink: 0;
      width: 120px;
      font-family: 'Nunito', sans-serif;
      font-size: 0.85rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--yellow);
      background: var(--blue);
      border-radius: 10px;
      padding: 10px 14px;
      text-align: center;
      align-self: flex-start;
      margin-top: 6px;
    }
    .story-body h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 12px;
    }
    .story-body p {
      font-size: 0.98rem;
      color: #4a5568;
      line-height: 1.8;
      margin-bottom: 14px;
    }
    .story-img {
      width: 100%;
      border-radius: 14px;
      margin: 16px 0 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,.1);
    }
    .caption {
      font-size: 0.82rem !important;
      color: #8a96ab !important;
      font-style: italic;
    }
    @media (max-width: 600px) {
      .story-block { flex-direction: column; }
      .story-year { width: auto; }
    }

    /* ─────────────────────────────────────────
       GET IN TOUCH PAGE
    ───────────────────────────────────────── */
    .contact-layout {
      max-width: 1000px;
      margin: 0 auto 80px;
      padding: 0 32px;
      display: flex;
      gap: 48px;
      align-items: flex-start;
    }
    .contact-form-wrap {
      flex: 2;
    }
    .contact-form {
      background: white;
      border-radius: 20px;
      padding: 36px;
      box-shadow: 0 4px 24px rgba(0,0,0,.07);
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .form-group label {
      font-size: 0.85rem;
      font-weight: 600;
      color: #374151;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      padding: 10px 14px;
      border: 2px solid #dde3ee;
      border-radius: 10px;
      outline: none;
      transition: border-color .2s;
      background: #f7f9fc;
      color: #1a1a2e;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--blue);
      background: white;
    }
    .form-group textarea {
      resize: vertical;
    }
    .form-success {
      display: none;
      color: var(--green);
      font-weight: 600;
      font-size: 0.9rem;
      text-align: center;
    }
    .form-error {
      display: none;
      color: #e05252;
      font-weight: 600;
      font-size: 0.9rem;
      text-align: center;
    }
    .contact-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .contact-card {
      background: white;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 4px 20px rgba(0,0,0,.06);
    }
    .contact-icon {
      font-size: 1.6rem;
      margin-bottom: 8px;
    }
    .contact-card h3 {
      font-family: 'Nunito', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 6px;
    }
    .contact-card p {
      font-size: 0.88rem;
      color: #5a6a85;
      line-height: 1.6;
    }
    @media (max-width: 720px) {
      .contact-layout { flex-direction: column; }
    }

    /* ─────────────────────────────────────────
       BLOG PAGE
    ───────────────────────────────────────── */
    .blog-grid {
      max-width: 1100px;
      margin: 0 auto 80px;
      padding: 0 32px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 28px;
    }
    .blog-card {
      background: white;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0,0,0,.07);
      display: flex;
      flex-direction: column;
      transition: transform .25s ease, box-shadow .25s ease;
    }
    .blog-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 36px rgba(21,101,216,.14);
    }
    .blog-card.featured {
      grid-column: 1 / -1;
      flex-direction: row;
    }
    .blog-card.featured .blog-card-img {
      width: 45%;
      max-height: none;
      height: auto;
    }
    .blog-card-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .blog-card-body {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
    }
    .blog-tag {
      display: inline-block;
      background: #eef3fb;
      color: var(--blue);
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 3px 10px;
      border-radius: 50px;
      width: fit-content;
    }
    .blog-card-body h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.15rem;
      font-weight: 800;
      color: #1a1a2e;
      line-height: 1.35;
    }
    .blog-meta {
      font-size: 0.78rem;
      color: #8a96ab;
    }
    .blog-card-body p:not(.blog-meta) {
      font-size: 0.88rem;
      color: #5a6a85;
      line-height: 1.7;
      flex: 1;
    }
    .blog-read-more {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--blue);
      text-decoration: none;
      transition: color .2s;
      align-self: flex-start;
    }
    .blog-read-more:hover {
      color: var(--blue-light);
    }
    @media (max-width: 720px) {
      .blog-card.featured { flex-direction: column; }
      .blog-card.featured .blog-card-img { width: 100%; height: 200px; }
    }

    /* ─────────────────────────────────────────
       BLOG FILTER BAR
    ───────────────────────────────────────── */
    .blog-filters {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
      margin: 0 auto 32px;
      padding: 0 32px;
      max-width: 1100px;
    }
    .filter-btn {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 0.82rem;
      padding: 8px 20px;
      border-radius: 50px;
      border: 2px solid var(--blue);
      background: transparent;
      color: var(--blue);
      cursor: pointer;
      transition: background .2s, color .2s;
    }
    .filter-btn:hover,
    .filter-btn.active {
      background: var(--blue);
      color: white;
    }

    /* ─────────────────────────────────────────
       BLOG POST PAGE
    ───────────────────────────────────────── */
    .post-wrap {
      max-width: 760px;
      margin: 0 auto 80px;
      padding: 40px 32px 0;
    }
    .back-link {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--blue);
      text-decoration: none;
      margin-bottom: 32px;
      transition: color .2s;
    }
    .back-link:hover {
      color: var(--blue-light);
    }
    .post-header {
      margin-bottom: 28px;
    }
    .post-header h1 {
      font-family: 'Nunito', sans-serif;
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 800;
      color: #1a1a2e;
      line-height: 1.2;
      margin: 12px 0 14px;
    }
    .post-meta {
      display: flex;
      gap: 8px;
      font-size: 0.82rem;
      color: #8a96ab;
      flex-wrap: wrap;
    }
    .post-hero-img {
      width: 100%;
      max-height: 420px;
      object-fit: cover;
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(21,101,216,.12);
      margin-bottom: 40px;
    }
    .post-body {
      font-size: 1rem;
      color: #374151;
      line-height: 1.85;
    }
    .post-body h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--blue);
      margin: 36px 0 12px;
    }
    .post-body h3 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.05rem;
      font-weight: 800;
      color: #1a1a2e;
      margin: 24px 0 8px;
    }
    .post-body p {
      margin-bottom: 18px;
    }
    .post-body ul,
    .post-body ol {
      padding-left: 24px;
      margin-bottom: 18px;
    }
    .post-body li {
      margin-bottom: 8px;
    }
    .post-body a {
      color: var(--blue);
      font-weight: 600;
      text-decoration: none;
    }
    .post-body a:hover {
      text-decoration: underline;
    }
    .post-body hr {
      border: none;
      border-top: 2px solid #e5eaf5;
      margin: 36px 0;
    }
    .post-body strong {
      font-weight: 700;
      color: #1a1a2e;
    }

    /* ── post prev / next ── */
    .post-nav {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 56px;
      padding-top: 32px;
      border-top: 2px solid #e5eaf5;
    }
    .post-nav-prev,
    .post-nav-next {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-decoration: none;
      max-width: 48%;
    }
    .post-nav-next {
      text-align: right;
      margin-left: auto;
    }
    .post-nav-label {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #8a96ab;
    }
    .post-nav-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--blue);
      line-height: 1.4;
      transition: color .2s;
    }
    .post-nav-prev:hover .post-nav-title,
    .post-nav-next:hover .post-nav-title {
      color: var(--blue-light);
    }
