/* CEM Hub - Modern Base Styles */
:root {
  --primary: #0A2A5E;       /* Navy from logo */
  --primary-dark: #061A3C;  /* Darker navy for hovers */
  --accent: #C9A227;        /* Gold from logo */
  --accent-dark: #A68520;   /* Darker gold for hovers */
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout - Updated for full-width homepage sections */
main {
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Header */
#siteHeader {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#siteHeader nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: none;
  margin-bottom: 0;
  overflow: visible;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-left {
  position: relative;
}

.nav-left a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-left a:hover {
  color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-dark) !important;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-right button, button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-right button:hover, button:hover {
  background: var(--primary-dark);
}

#userEmail {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Forms */
input, textarea { 
  width: 100%; 
  padding: 10px; 
  margin: 8px 0; 
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

textarea { height: 120px; resize: vertical; }

#postForm { 
  background: var(--card); 
  padding: 20px; 
  border-radius: var(--radius); 
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

#msg { margin-top: 10px; }

/* Notifications - FIXED */
#notifBtn {
  background: var(--accent);
  color: var(--primary-dark);
  position: relative;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

#notifBtn:hover { 
  background: var(--accent-dark); 
}

#notifCount {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

#notifCount.hidden {
  display: none !important;
}

#notifDropdown {
  position: absolute;
  right: 1rem;
  top: 4rem;
  width: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.15);
  max-height: 500px;
  overflow-y: auto;
  z-index: 10000;
}

.notif-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { 
  background: #FFFBEA; 
}
.notif-item.unread:hover {
  background: #fef3c7;
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-dot.read {
  background: #d1d5db;
}

.notif-content {
  flex: 1;
}

.notif-message {
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.notif-item small { 
  color: var(--text-muted); 
  display: block; 
  margin-top: 4px;
  font-size: 0.75rem;
}

/* Footer */
#siteFooter {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
  background: var(--card);
  border-top: 3px solid var(--accent);
}

.hidden { display: none !important; }

/* Hamburger Menu - X ANIMATION */
.hamburger {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.hamburger:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 18px;
  background: var(--text);
  border-radius: 2px;
  opacity: 1;
  left: 4px;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 15px; }

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Slide Menu From Left - WHITE BG + NAVY TEXT */
.nav-menu {
  position: fixed;
  top: 60px;
  left: -280px;
  width: 280px;
  height: auto;
  max-height: calc(100vh - 80px);
  background: var(--card);
  border-right: 3px solid var(--accent);
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  padding: 0.5rem 0 1.5rem 0;
  z-index: 998;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-radius: 0 0 var(--radius) 0;
}

.nav-menu.active {
  left: 0;
}

.nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
}

.nav-menu a:last-child {
  border-bottom: none;
}

.nav-menu a:hover {
  background: var(--bg);
  color: var(--primary-dark);
  border-left-color: var(--accent);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 997;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== HOMEPAGE V2 STYLES ========== */

/* Hero Section - Updated with Background Image */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  background: linear-gradient(135deg, #0A2A5E 0%, #061A3C 100%); /* fallback */
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 42, 94, 0.75) 0%, rgba(6, 26, 60, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-location {
  color: var(--accent);
  font-weight: 600; /* was 700 */
  font-size: 0.8rem; /* was 0.9rem */
  letter-spacing: 2.5px; /* wider = more premium */
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  opacity: 0.9; /* softens it slightly */
  }

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subhead {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

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

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  }
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Mobile adjustment for hero */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 4rem 1rem 3rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subhead {
    font-size: 1.1rem;
  }
  }



/* 4 Pillars Section */
.pillars {
  padding: 5rem 0;
  background: var(--bg);
}

.pillars-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--accent);
  
  /* Updated: Combined hover + reveal transitions */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.2s;
  
  /* Scroll reveal base state */
  opacity: 0;
  transform: translateY(30px);
}

/* Reveal active state */
.pillar-card.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keep your hover effect - works after reveal */
.pillar-card.reveal.active:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.15);
}

/* Stagger the cards */
.pillar-card.reveal:nth-child(1) { transition-delay: 0s; }
.pillar-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.pillar-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.pillar-card.reveal:nth-child(4) { transition-delay: 0.3s; }

.pillar-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.pillar-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pillar-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.pillar-card a:hover {
  color: var(--accent);
}

/* Reveal for the section title too */
.section-title.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: disable if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  .section-title.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* About Preview */
.about-preview {
  padding: 5rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
}

.about-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  
  /* This is the key: makes all cards same height */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-card h2,
.about-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  
  /* Pushes button to bottom so all cards align */
  flex-grow: 1;
}

.about-card .btn {
  align-self: flex-start; /* keeps button left-aligned */
  margin-top: auto; /* pins button to bottom */
}

/* Mobile: stack them */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-card {
    text-align: center;
  }
  
  .about-card .btn {
    align-self: center;
  }
}


/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-banner .btn-primary {
  background: var(--primary);
  color: white;
}

.cta-banner .btn-primary:hover {
  background: var(--primary-dark);
}

/* Blog header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-header h1 {
    font-size: 2rem;
    margin: 0;
}

.blog-actions {
    display: flex;
    gap: 0.75rem;
}

.blog-actions a {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
}

.blog-actions a:hover {
    background: var(--primary-dark);
}

#createBtn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

#createBtn:hover {
    background: var(--primary-dark);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: capitalize;
}

.filter-btn:hover {
    background: var(--bg);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Article Card - SINGLE CLEAN VERSION */
.article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 15px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-cover-wrapper {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 20px;
}

.category-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 12px;
}

.article h3 {
    margin: 12px 0 8px 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.article h3 a {
    color: var(--text);
    text-decoration: none;
}

.article h3 a:hover {
    color: var(--accent);
}

.meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.meta a {
    color: var(--primary);
    text-decoration: none;
}

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

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.author-link:hover {
    color: var(--primary);
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.article p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* NEW: Article Excerpt + Read More Link */
.article-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    display: inline-block;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: var(--accent);
    text-decoration: underline;
}
.article-image {
  width: 100%; /* fill the container width */
  height: 300px; /* set your fixed height boundary */
  object-fit: contain;
  object-position: center; /* center the image in the box */
  background: #f5f5f5; /* optional: color for the empty space */
}

/* Actions */
.actions { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    border-top: 1px solid var(--border); 
    padding-top: 15px; 
    flex-wrap: wrap; 
}

.action-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: #f5f5f5; 
    border: 1px solid #e0e0e0; 
    padding: 8px 14px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.9em; 
    text-decoration: none; 
    color: #333;
    transition: all 0.2s;
    font-family: inherit;
}

.action-btn:hover { 
    background: #ebebeb; 
}

.action-btn.liked { 
    background: #ffeef2; 
    color: #e0245e; 
    border-color: #ffc9d6; 
}

.action-btn.delete-btn {
    color: #c00;
    border-color: #ffdddd;
}

.action-btn.delete-btn:hover {
    background: #ffebee;
}

.action-btn:active { 
    transform: scale(0.95); 
}

/* Article Page */
.article-hero {
    width: 100%;
    max-height: 400px;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.article-full .category-badge {
    margin-top: 8px;
    margin-bottom: 16px;
}

.article-full h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 16px 0 16px 0;
    color: var(--text);
}

.article-excerpt {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.6;
}

.article-full .meta {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-content-full {
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 40px;
}

.article-content-full p {
    margin-bottom: 1.25rem;
}

.article-content-full h2 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.article-content-full h3 {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.25rem;
}

/* Article Actions Bar - 2 ROW LAYOUT */
.article-actions {
    padding: 24px 0;
    margin: 0 0 40px 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-row .action-btn {
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text);
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.actions-row .action-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.actions-row .action-btn.liked {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.actions-row .action-btn.delete-btn {
    color: #dc2626;
    border-color: #fca5a5;
}

.actions-row .action-btn.delete-btn:hover {
    background: #fef2f2;
}

.share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.share-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
}

/* Comments */
#comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

#comments-section h3 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
}

.comment {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: white;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment p {
    margin: 0;
    line-height: 1.6;
}

#commentForm {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

#commentForm h4 {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

#commentText {
    min-height: 120px;
    margin-bottom: 12px;
}

#postCommentBtn {
    margin-top: 8px;
}

#commentMsg {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--accent-dark);
    font-weight: 500;
}

/* Article Form Styles */
#articleForm {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#submitBtn, #cancelBtn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.2s;
}

#submitBtn {
    background: #3b82f6;
    color: white;
}

#submitBtn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

#cancelBtn {
    background: #e5e7eb;
    color: #374151;
}

#cancelBtn:hover {
    background: #d1d5db;
}

#pageTitle {
    margin-bottom: 24px;
}

/* Image preview */
#imagePreview {
    margin-top: 12px;
    position: relative;
    display: inline-block;
}

#previewImg {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

#removeImg {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 100%;
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.profile-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.profile-details h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.profile-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.user-posts {
    margin-top: 2rem;
}

#editProfileForm {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#avatarPreview {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

#previewImg {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

/* Mobile */
@media (max-width: 768px) {
    #userEmail { display: none; }
    main { margin: 1rem auto; }
    #notifDropdown { 
      width: calc(100vw - 2rem); 
      right: 1rem;
      left: auto;
    }
    
    .article-hero {
        max-height: 250px;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    
    .article-full h1 {
        font-size: 1.75rem;
    }
    
    .article-content-full {
        font-size: 1rem;
    }
    
    .actions-row .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .share-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-header {
        flex-direction: column;
    }
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nav-menu {
        width: 85vw;
        left: -85vw;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Homepage V2 Mobile */
    .hero h1 {
      font-size: 2rem;
    }
    
    .hero-subhead {
      font-size: 1.1rem;
    }
    
    .section-title {
      font-size: 1.75rem;
    }
    
    .pillars-grid {
      grid-template-columns: 1fr;
    }
    
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
      grid-template-columns: 1fr;
    }
    
    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .posts-grid {
      grid-template-columns: 1fr;
    }
    
    .hero-cta {
      flex-direction: column;
    }
    
    .btn {
      width: 100%;
      text-align: center;
    }
  }
  
  
/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-author span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Newsletter */
.newsletter {
  padding: 5rem 0;
  background: var(--card);
}

.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
}

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

.newsletter-content small {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* Mobile adjustments for new sections */
@media (max-width: 768px) {
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-box {
    padding: 3rem 1.5rem;
  }
  
  .newsletter-content h2 {
    font-size: 1.5rem;
  }
}

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

  /* ========== FOUNDER PAGE STYLES ========== */

.founder-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem 0 4rem; /* reduced top padding */
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtle glow pattern so the top doesn't feel empty */
.founder-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: radial-gradient(circle at 15% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.founder-hero .container {
  position: relative;
  z-index: 2;
}

.founder-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 350px 1fr;
}

.founder-image-wrap {
  position: relative;
}

.founder-image {
  position: relative;
}

/* Premium glow instead of harsh border */
.founder-image::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--accent), #3B82F6);
  border-radius: calc(var(--radius) + 3px);
  filter: blur(18px);
  opacity: 0.7;
  z-index: 1;
}

.founder-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.founder-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.founder-intro h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 800;
  line-height: 1.1;
}

.founder-title {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}

.founder-location {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.founder-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.founder-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .founder-hero {
    padding: 1.5rem 0 3rem;
  }
  
  .founder-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .founder-image-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .founder-intro h1 {
    font-size: 2.25rem;
  }
  
  .founder-quote {
    text-align: left;
    font-size: 1.05rem;
  }
  
  .founder-socials {
    justify-content: center;
  }
  }


/* Story Section */
.founder-story {
  padding: 5rem 0;
  background: var(--bg);
}

.story-container {
  max-width: 800px;
}

.founder-story h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.story-content p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

/* Vision & Mission */
.vision-mission {
  padding: 5rem 0;
  background: var(--card);
}

.vm-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.vm-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  text-align: center;
}

.vm-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.vm-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.vm-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Credentials */
.founder-credentials {
  padding: 5rem 0;
  background: var(--bg);
}

.credentials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cred-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cred-card h4 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.cred-card ul {
  list-style: none;
  padding: 0;
}

.cred-card li {
  color: var(--text);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.cred-card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Founder Page Mobile */
@media (max-width: 768px) {
  .founder-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .founder-image {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .founder-intro h1 {
    font-size: 2rem;
  }
  
  .founder-quote {
    font-size: 1rem;
    padding-left: 1rem;
  }
  
  .founder-socials {
    justify-content: center;
  }
  
  .vm-grid {
    grid-template-columns: 1fr;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  }


  
    
