/* ── PROFESSIONAL CBC PROJECTS STYLESHEET (MOBILE RESPONSIVE) ── */
/* Use this as style.css for all project pages */
:root {
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}
:root {
  --bg:        #0b1120;
  --bg2:       #111827;
  --bg3:       #1a2540;
  --border:    #1e2d45;
  --accent:    #00d4ff;
  --accent2:   #7c3aed;
  --accent3:   #f59e0b;
  --text:      #e2ecff;
  --muted:     #6b82a0;
  --font:      system-ui, -apple-system, 'Segoe UI', 'Sora', sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Progress bar (optional, can be used via JS) */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 200;
  transition: width 0.1s;
  width: 0%;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

@media (max-width: 480px) {
  nav a {
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent3);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent3) 0%, var(--accent) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--accent);
  color: #0b1120;
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== STATS STRIP ========== */
.stats-strip {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  z-index: 1;
  position: relative;
}

.stats-inner {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-pill strong {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
}

.stat-pill span {
  color: var(--muted);
}

/* ========== PAGE LAYOUT (TWO COLUMN) ========== */
.page-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sidebar {
    order: -1;
  }
}

/* ========== SECTION LABEL ========== */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== FEATURED CARD ========== */
.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  overflow: hidden;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  border-color: var(--accent3);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.12);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
}

.featured-img {
  background: linear-gradient(135deg, #0f1e10 0%, #1a3020 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== TAGS & METADATA ========== */
.post-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.7rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.tag-agri { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-sci { background: rgba(0, 212, 255, 0.15); color: var(--accent); }
.tag-tech { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.tag-math { background: rgba(245, 158, 11, 0.15); color: var(--accent3); }
.tag-new { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-grade { background: rgba(245, 158, 11, 0.1); color: var(--accent3); }
.tag-sba { background: rgba(16, 185, 129, 0.1); color: #34d399; }

.post-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

.featured-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.featured-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.featured-card:hover .read-more::after {
  transform: translateX(4px);
}

/* ========== CATEGORY FILTER BAR ========== */
.category-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.cat-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.cat-btn.active,
.cat-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent3);
  color: var(--accent3);
}

/* ========== PROJECTS GRID ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--accent3);
  box-shadow: 0 4px 28px rgba(245, 158, 11, 0.1);
  transform: translateY(-3px);
}

.post-card.locked {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.post-card-img {
  background: linear-gradient(135deg, #0d1b30 0%, #1a2a4a 100%);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}

.post-card-img.agri-bg { background: linear-gradient(135deg, #0a1e10 0%, #1a3322 100%); }
.post-card-img.sci-bg { background: linear-gradient(135deg, #081828 0%, #0e2240 100%); }
.post-card-img.tech-bg { background: linear-gradient(135deg, #130d28 0%, #1e1042 100%); }

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.post-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.post-card-body p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.post-card-footer {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========== MATERIAL PILLS ========== */
.materials-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.mat-pill {
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.12rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

@media (max-width: 860px) {
  .sidebar {
    position: static;
    margin-top: 0;
  }
}

.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.2rem;
}

.widget-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.85rem;
  transition: border-color 0.2s;
  min-width: 0;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-bar button {
  background: var(--accent);
  color: #0b1120;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 9px;
  font-weight: 700;
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

/* Grade list */
.grade-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.grade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.grade-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.grade-item a:hover {
  color: var(--accent);
}

.grade-badge {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
}

/* Offline tip */
.offline-tip {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 0.9rem;
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.offline-tip strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

/* ========== COMING SOON BANNER ========== */
.coming-soon-banner {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.coming-soon-inner {
  background: linear-gradient(135deg, #111827 0%, #1a2540 50%, #0f172a 100%);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1.6rem;
  text-align: center;
}

.coming-soon-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.coming-soon-inner p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.project-requests {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.req-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.req-btn:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(245, 158, 11, 0.08);
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

footer p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }

/* ========== PRINT STYLES ========== */
@media print {
  body {
    background: white;
    color: black;
  }
  .sidebar,
  .hero-ctas,
  .category-bar,
  .coming-soon-banner,
  footer,
  .progress-bar {
    display: none;
  }
  .page-layout {
    display: block;
    padding: 0;
  }
  .post-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
/* ===== FULL MOBILE RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; margin-top: 0; }
  .stats-inner { gap: 0.5rem; }
}

@media (max-width: 640px) {
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .method-step { flex-direction: column; gap: 0.5rem; }
  .step-num { margin-bottom: 0.25rem; }
  .growth-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .btn-primary, .btn-ghost { padding: 0.6rem 1.2rem; font-size: 0.85rem; min-height: 44px; }
  .nutrient-table th, .nutrient-table td { padding: 0.5rem; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .stat-pill { white-space: normal; text-align: center; flex: 1 1 auto; min-width: 100px; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  nav a { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .sidebar-widget { padding: 0.8rem; }
  .offline-tip { font-size: 0.7rem; }
  .gallery-image { min-height: 100px; }
}

@media (max-width: 360px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; width: 100%; }
  .stats-inner { flex-direction: column; align-items: stretch; }
  .stat-pill { justify-content: center; }
}

/* Table scroll wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: 0.75rem;
}

/* All images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


    /* Additional overrides for full-width professional layout - no emojis */
    :root {
      --bg: #0b1120;
      --bg2: #111827;
      --bg3: #1a2540;
      --border: #1e2d45;
      --accent: #00d4ff;
      --accent2: #7c3aed;
      --accent3: #f59e0b;
      --text: #e2ecff;
      --muted: #6b82a0;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Sora', sans-serif;
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* Full width progress bar */
    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      z-index: 1000;
      width: 0%;
      transition: width 0.1s;
    }

    /* Header - full width sticky */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(11, 17, 32, 0.95);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      width: 100%;
    }

    .header-inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0.85rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
    }

    .logo-icon {
      width: 38px;
      height: 38px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.2rem;
    }

    .logo-text {
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .logo-sub {
      font-size: 0.6rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    nav {
      display: flex;
      gap: 0.25rem;
      flex-wrap: wrap;
    }

    nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      padding: 0.45rem 0.9rem;
      border-radius: 8px;
      transition: all 0.2s;
    }

    nav a:hover,
    nav a.active {
      color: var(--accent);
      background: rgba(0, 212, 255, 0.08);
    }

    /* Hero section - full width */
    .hero {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 2rem 3rem;
      text-align: center;
      z-index: 1;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.3);
      color: var(--accent3);
      padding: 0.4rem 1rem;
      border-radius: 40px;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 6vw, 4.5rem);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .hero h1 span {
      background: linear-gradient(120deg, var(--accent3) 0%, var(--accent) 50%, #a78bfa 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-desc {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 650px;
      margin: 0 auto 2rem;
    }

    .hero-ctas {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--accent);
      color: #0b1120;
      padding: 0.8rem 1.8rem;
      border-radius: 40px;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      transition: all 0.2s;
      display: inline-block;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(0, 212, 255, 0.35);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text);
      padding: 0.8rem 1.8rem;
      border-radius: 40px;
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      border: 1px solid var(--border);
      transition: all 0.2s;
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* Stats strip */
    .stats-strip {
      max-width: 1200px;
      margin: 0 auto 2rem;
      padding: 0 2rem;
    }

    .stats-inner {
      display: flex;
      gap: 1.2rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .stat-pill {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 40px;
      padding: 0.6rem 1.4rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.85rem;
    }

    .stat-pill strong {
      color: var(--accent);
      font-size: 1.1rem;
      font-weight: 800;
    }

    /* Page layout */
    .page-layout {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 2rem 3rem;
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 2.5rem;
    }

    @media (max-width: 900px) {
      .page-layout {
        grid-template-columns: 1fr;
      }
      .sidebar {
        order: -1;
      }
      .header-inner {
        padding: 0.85rem 1.25rem;
      }
      .stats-strip,
      .hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }
    }

    /* Section label */
    .section-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* Featured Card */
    .featured-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 1.5rem;
      overflow: hidden;
      margin-bottom: 2.5rem;
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      transition: all 0.3s ease;
      text-decoration: none;
      color: inherit;
    }

    .featured-card:hover {
      border-color: var(--accent3);
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 640px) {
      .featured-card {
        grid-template-columns: 1fr;
      }
    }

    .featured-img {
      background: linear-gradient(135deg, #0a1e10 0%, #1a3322 100%);
      min-height: 260px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 5rem;
      position: relative;
    }

    .featured-body {
      padding: 2rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .post-meta {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 0.8rem;
    }

    /* Tags */
    .tag {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      padding: 0.2rem 0.7rem;
      border-radius: 20px;
      text-transform: uppercase;
    }

    .tag-agri {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
    }

    .tag-sci {
      background: rgba(0, 212, 255, 0.15);
      color: var(--accent);
    }

    .tag-tech {
      background: rgba(124, 58, 237, 0.15);
      color: #a78bfa;
    }

    .tag-grade {
      background: rgba(245, 158, 11, 0.1);
      color: var(--accent3);
    }

    .tag-sba {
      background: rgba(16, 185, 129, 0.1);
      color: #34d399;
    }

    .tag-new {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
    }

    .post-date {
      font-size: 0.7rem;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
    }

    .featured-body h2 {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 0.6rem;
    }

    .featured-body p {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.65;
      margin-bottom: 1rem;
    }

    .materials-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-top: 0.3rem;
    }

    .mat-pill {
      font-size: 0.65rem;
      font-weight: 600;
      background: rgba(245, 158, 11, 0.1);
      color: var(--accent3);
      border: 1px solid rgba(245, 158, 11, 0.2);
      padding: 0.15rem 0.65rem;
      border-radius: 20px;
    }

    .read-more {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent3);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .read-more::after {
      content: '→';
      transition: transform 0.2s;
    }

    .featured-card:hover .read-more::after {
      transform: translateX(4px);
    }

    /* Category Bar */
    .category-bar {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-bottom: 1.8rem;
    }

    .cat-btn {
      background: var(--bg2);
      border: 1px solid var(--border);
      color: var(--muted);
      padding: 0.45rem 1.1rem;
      border-radius: 40px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Sora', sans-serif;
    }

    .cat-btn.active,
    .cat-btn:hover {
      background: rgba(245, 158, 11, 0.12);
      border-color: var(--accent3);
      color: var(--accent3);
    }

    /* Projects Grid */
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    @media (max-width: 500px) {
      .posts-grid {
        grid-template-columns: 1fr;
      }
    }

    .post-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 1.2rem;
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .post-card:hover {
      border-color: var(--accent3);
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    }

    .post-card.locked {
      opacity: 0.5;
      cursor: default;
      pointer-events: none;
    }

    .post-card-img {
      background: linear-gradient(135deg, #0d1b30 0%, #1a2a4a 100%);
      height: 150px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
    }

    .post-card-img.agri-bg {
      background: linear-gradient(135deg, #0a1e10 0%, #1a3322 100%);
    }

    .post-card-img.sci-bg {
      background: linear-gradient(135deg, #081828 0%, #0e2240 100%);
    }

    .post-card-img.tech-bg {
      background: linear-gradient(135deg, #130d28 0%, #1e1042 100%);
    }

    .post-card-body {
      padding: 1.2rem;
      flex: 1;
    }

    .post-card-body h3 {
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 0.4rem;
    }

    .post-card-body p {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .post-card-footer {
      padding: 0.8rem 1.2rem;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      font-size: 0.7rem;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: 80px;
      align-self: start;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    @media (max-width: 900px) {
      .sidebar {
        position: static;
      }
    }

    .sidebar-widget {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 1.2rem;
      padding: 1.3rem;
    }

    .widget-title {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
      padding-bottom: 0.6rem;
      border-bottom: 1px solid var(--border);
    }

    .search-bar {
      display: flex;
      gap: 0.5rem;
    }

    .search-bar input {
      flex: 1;
      background: var(--bg3);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.65rem 0.9rem;
      border-radius: 10px;
      font-family: 'Sora', sans-serif;
      font-size: 0.85rem;
    }

    .search-bar input:focus {
      outline: none;
      border-color: var(--accent);
    }

    .search-bar button {
      background: var(--accent);
      color: #0b1120;
      border: none;
      padding: 0.65rem 1.2rem;
      border-radius: 10px;
      font-weight: 700;
      cursor: pointer;
    }

    .grade-list {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .grade-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
    }

    .grade-item a {
      color: var(--text);
      text-decoration: none;
      font-weight: 600;
    }

    .grade-item a:hover {
      color: var(--accent);
    }

    .grade-badge {
      font-size: 0.65rem;
      background: var(--bg3);
      border: 1px solid var(--border);
      padding: 0.15rem 0.5rem;
      border-radius: 6px;
    }

    .offline-tip {
      background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
      border: 1px solid rgba(0, 212, 255, 0.15);
      border-radius: 1rem;
      padding: 1rem;
      font-size: 0.8rem;
      line-height: 1.55;
    }

    .offline-tip strong {
      color: var(--accent);
      display: block;
      margin-bottom: 0.3rem;
    }

    /* Coming Soon Banner */
    .coming-soon-banner {
      max-width: 1400px;
      margin: 2rem auto;
      padding: 0 2rem;
    }

    .coming-soon-inner {
      background: linear-gradient(135deg, #111827 0%, #1a2540 50%, #0f172a 100%);
      border: 1px solid var(--border);
      border-radius: 1.5rem;
      padding: 2rem;
      text-align: center;
    }

    .coming-soon-inner h3 {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .coming-soon-inner p {
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 1.2rem;
    }

    .project-requests {
      display: flex;
      gap: 0.7rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .req-btn {
      background: var(--bg3);
      border: 1px solid var(--border);
      color: var(--muted);
      padding: 0.45rem 1rem;
      border-radius: 40px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      font-family: 'Sora', sans-serif;
    }

    .req-btn:hover {
      border-color: var(--accent3);
      color: var(--accent3);
    }

    /* Footer */
    footer {
      background: var(--bg2);
      border-top: 1px solid var(--border);
      padding: 2.5rem 2rem;
      text-align: center;
      margin-top: 2rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }

    .footer-links a {
      color: var(--muted);
      font-size: 0.8rem;
      text-decoration: none;
    }

    .footer-links a:hover {
      color: var(--accent);
    }

    footer p {
      color: var(--muted);
      font-size: 0.8rem;
    }

    .fade-up {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
  



/* Better image handling for project cards */
.post-card-img {
  position: relative;
  overflow: hidden;
}

.post-card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

.post-card:hover .post-card-img::after {
  background: rgba(0,0,0,0.1);
}

/* Ensure consistent image sizing */
.post-card-img {
  background-size: cover !important;
  background-position: center !important;
}



.post-card-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 160px;
  }
  .post-card-img span {
    display: none; /* Hide the emoji placeholders when images are used */
  }
  .featured-img {
    background-size: cover !important;
    background-position: center !important;
  }
  .featured-img span {
    display: none;
  }