 /* ============================================================
       CSS CUSTOM PROPERTIES — BLUE NGO THEME
    ============================================================ */
    :root {
      --c4y-navy:       #0D2B5E;
      --c4y-blue:       #1A56A8;
      --c4y-mid:        #2E7DD1;
      --c4y-accent:     #F0A500;
      --c4y-light-bg:   #F4F8FE;
      --c4y-white:      #FFFFFF;
      --c4y-text:       #1A2238;
      --c4y-muted:      #5A6A85;
      --c4y-border:     #D6E4F5;
      --c4y-hero-grad:  linear-gradient(135deg, #0D2B5E 0%, #1A56A8 60%, #2E7DD1 100%);
      --radius-card:    12px;
      --radius-tag:     20px;
      --shadow-card:    0 4px 24px rgba(13, 43, 94, 0.10);
      --shadow-hover:   0 12px 36px rgba(13, 43, 94, 0.18);
      --transition:     0.28s cubic-bezier(0.4, 0, 0.2, 1);
      --font-display:   'Playfair Display', Georgia, serif;
      --font-body:      'Source Sans 3', 'Segoe UI', sans-serif;
    }

    /* ============================================================
       GLOBAL RESET (scoped — doesn't fight shared layout)
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; }

    body {
      font-family: var(--font-body);
      color: var(--c4y-text);
      background: var(--c4y-white);
      margin: 0;
      /* Ensure footer is always visible */
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* Push main content to fill space, footer sticks to bottom */
    .stories-page-main {
      flex: 1;
    }

    /* ============================================================
       HERO
    ============================================================ */
    .ta-hero {
      position: relative;
      background: var(--c4y-hero-grad);
      padding: 20px 0 0;
      overflow: hidden;
    }

    .ta-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
      pointer-events: none;
    }

    .ta-hero__inner {
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px 56px;
    }

    .ta-hero__breadcrumb {
      font-size: 0.82rem;
      color: rgba(255,255,255,0.72);
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 20px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .ta-hero__breadcrumb a {
      color: rgba(255,255,255,0.72);
      text-decoration: none;
      transition: color var(--transition);
    }

    .ta-hero__breadcrumb a:hover { color: var(--c4y-white); }

    .ta-hero__breadcrumb i { font-size: 0.65rem; color: var(--c4y-accent); }

    .ta-hero__title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4.5vw, 3.2rem);
      font-weight: 700;
      color: var(--c4y-white);
      margin: 0 0 14px;
      line-height: 1.18;
      letter-spacing: -0.01em;
    }

    .ta-hero__subtitle {
      font-size: 1.05rem;
      color: rgba(255,255,255,0.82);
      margin: 0;
      font-weight: 300;
      max-width: 520px;
      line-height: 1.6;
    }

    .ta-hero__wave {
      line-height: 0;
      margin-top: -2px;
    }

    .ta-hero__wave svg {
      display: block;
      width: 100%;
      height: 60px;
    }

    /* ============================================================
       TAB NAVIGATION
    ============================================================ */
    .stories-page-main {
      background: var(--c4y-light-bg);
    }

    .c4y-tabs-wrapper {
      background: var(--c4y-white);
      border-bottom: 1px solid var(--c4y-border);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(13,43,94,0.07);
    }

    .c4y-tab-btn {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      gap: 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .c4y-tab-btn::-webkit-scrollbar { display: none; }

    .tablinks {
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      padding: 16px 20px 13px;
      font-family: var(--font-body);
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--c4y-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: color var(--transition), border-color var(--transition);
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .tablinks:hover { color: var(--c4y-blue); }

    .tablinks.active {
      color: var(--c4y-blue);
      border-bottom-color: var(--c4y-accent);
    }

    /* ============================================================
       CONTENT AREA
    ============================================================ */
    .stories-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 24px 72px;
    }

    .tabcontent { display: none; }
    .tabcontent.active-tab { display: block; }

    /* ============================================================
       SECTION HEADING
    ============================================================ */
    .section-heading {
      margin-bottom: 36px;
    }

    .section-heading span {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--c4y-accent);
      background: rgba(240,165,0,0.10);
      padding: 4px 14px;
      border-radius: var(--radius-tag);
      margin-bottom: 10px;
    }

    .section-heading h2 {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 3vw, 2.1rem);
      font-weight: 700;
      color: var(--c4y-navy);
      margin: 0;
      line-height: 1.25;
    }

    /* ============================================================
       STORIES GRID
    ============================================================ */
    .stories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 28px;
    }

    /* ============================================================
       STORY CARD
    ============================================================ */
    .story-card {
      background: var(--c4y-white);
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: var(--shadow-card);
      border: 1px solid var(--c4y-border);
      transition: transform var(--transition), box-shadow var(--transition);
      display: flex;
      flex-direction: column;
    }

    .story-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }

    .story-image {
      position: relative;
      width: 100%;
      height: 200px;
      overflow: hidden;
      background: var(--c4y-navy);
    }

    .story-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .story-card:hover .story-image img {
      transform: scale(1.05);
    }

    /* Image placeholder when no img loads */
    .story-image img::before {
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      background: var(--c4y-navy);
    }

    .story-category {
      position: absolute;
      top: 14px;
      left: 14px;
      background: var(--c4y-accent);
      color: var(--c4y-navy);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 4px 12px;
      border-radius: var(--radius-tag);
    }

    .story-content {
      padding: 22px 24px 24px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .story-content h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--c4y-navy);
      margin: 0 0 10px;
      line-height: 1.4;
    }

    .story-content p {
      font-size: 0.875rem;
      color: var(--c4y-muted);
      line-height: 1.65;
      margin: 0 0 20px;
      flex: 1;
    }

    .story-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: none;
      border: 1.5px solid var(--c4y-blue);
      color: var(--c4y-blue);
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      padding: 9px 18px;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      transition: background var(--transition), color var(--transition);
      letter-spacing: 0.02em;
      align-self: flex-start;
    }

    .story-btn:hover {
      background: var(--c4y-blue);
      color: var(--c4y-white);
    }

    .story-btn i { font-size: 0.75rem; }

    /* ============================================================
       MODAL
    ============================================================ */
    .story-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(13, 43, 94, 0.72);
      z-index: 9999;
      padding: 24px;
      overflow-y: auto;
      backdrop-filter: blur(4px);
    }

    .story-modal-content {
      background: var(--c4y-white);
      border-radius: var(--radius-card);
      max-width: 680px;
      margin: 0 auto;
      overflow: hidden;
      position: relative;
      box-shadow: 0 24px 80px rgba(0,0,0,0.30);
      animation: modalIn 0.28s ease;
    }

    @keyframes modalIn {
      from { opacity: 0; transform: translateY(20px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .story-modal-content > img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      display: block;
    }

    .story-modal-body {
      padding: 28px 32px 36px;
    }

    .close-modal {
      position: absolute;
      top: 14px;
      right: 14px;
      background: rgba(0,0,0,0.45);
      border: none;
      color: #fff;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      transition: background var(--transition);
      z-index: 10;
    }

    .close-modal:hover { background: var(--c4y-navy); }

    .modal-tag {
      display: inline-block;
      background: rgba(240,165,0,0.12);
      color: var(--c4y-accent);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 4px 12px;
      border-radius: var(--radius-tag);
      margin-bottom: 12px;
      border: 1px solid rgba(240,165,0,0.25);
    }

    .story-modal-body h2 {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--c4y-navy);
      margin: 0 0 16px;
      line-height: 1.3;
    }

    .story-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 20px;
      padding: 14px 16px;
      background: var(--c4y-light-bg);
      border-radius: 8px;
      border-left: 3px solid var(--c4y-blue);
    }

    .story-meta div {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      color: var(--c4y-muted);
      font-weight: 500;
    }

    .story-meta i { color: var(--c4y-blue); }

    .story-modal-body p {
      font-size: 0.92rem;
      color: var(--c4y-muted);
      line-height: 1.72;
      margin: 0 0 14px;
    }

    .story-modal-body p:last-child { margin-bottom: 0; }

    .story-modal-body strong { color: var(--c4y-navy); font-weight: 600; }

    /* ============================================================
       FACTSHEET DOWNLOAD CARD VARIANT
    ============================================================ */
    .story-btn.download-btn {
      border-color: var(--c4y-navy);
      color: var(--c4y-navy);
    }

    .story-btn.download-btn:hover {
      background: var(--c4y-navy);
      color: var(--c4y-white);
    }

    /* ============================================================
       EMPTY STATE (for tabs with fewer cards)
    ============================================================ */
    .stories-empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--c4y-muted);
      font-size: 0.95rem;
    }

    /* ============================================================
       SCROLL TO TOP
    ============================================================ */
    .c4y-scroll-top {
      position: fixed;
      bottom: 28px;
      right: 28px;
      width: 44px;
      height: 44px;
      background: var(--c4y-blue);
      color: var(--c4y-white);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      box-shadow: 0 4px 16px rgba(26,86,168,0.35);
      transition: background var(--transition), transform var(--transition);
      z-index: 500;
      opacity: 0;
      pointer-events: none;
    }

    .c4y-scroll-top.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .c4y-scroll-top:hover {
      background: var(--c4y-navy);
      transform: translateY(-2px);
    }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 768px) {
      .ta-hero__inner { padding: 0 16px 48px; }
      .stories-content { padding: 32px 16px 56px; }
      .stories-grid { grid-template-columns: 1fr; gap: 20px; }
      .c4y-tab-btn { padding: 0 12px; }
      .story-modal-body { padding: 20px 20px 28px; }
    }

    #story-detail{
    margin-top:40px;
}

.story-detail-card{
    background:#fff;
    border-radius:16px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.story-header h2{
    margin-bottom:10px;
    color:#003366;
}

.story-meta{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
    margin-bottom:25px;
    color:#666;
    font-size:15px;
}

.story-hero-image{
    width:100%;
    max-height:500px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:30px;
}

.story-content{
    line-height:1.9;
    font-size:17px;
    color:#444;
}

.story-content p{
    margin-bottom:20px;
}

.story-content blockquote{
    border-left:4px solid #0b7dda;
    padding-left:20px;
    margin:25px 0;
    font-style:italic;
    color:#555;
    background:#f7fbff;
    padding:20px;
    border-radius:8px;
}