/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1442a8;
  --color-primary-light: #e8eefb;
  --color-accent: #0e9f6e;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== Header / Navigation ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8eefb 50%, #f5f3ff 100%);
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero .hero-description {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero .btn {
  margin: 0 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

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

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.card-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover {
  color: var(--color-primary);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8eefb 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Search Bar ===== */
.search-bar {
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  font-size: 0.95rem;
  font-family: var(--font-family);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.search-bar .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 1rem;
  pointer-events: none;
}

.search-bar .search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 0.25rem;
  line-height: 1;
}

.search-bar .search-clear.visible {
  display: block;
}

.search-bar .search-clear:hover {
  color: var(--color-text);
}

.search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-light);
  display: none;
}

.search-no-results.visible {
  display: block;
}

.search-no-results h3 {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

/* ===== Filter Tags ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-white);
  color: var(--color-text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ===== Resource List ===== */
.resource-category {
  margin-bottom: 3rem;
}

.resource-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.resource-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.resource-item:hover {
  box-shadow: var(--shadow-sm);
}

.resource-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-info h4 {
  margin-bottom: 0.25rem;
}

.resource-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.resource-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== News ===== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  margin-bottom: 0.5rem;
}

.news-item p {
  font-size: 0.95rem;
}

.news-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 400px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  overflow: hidden;
}

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

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
}

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

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.value-icon img {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-family);
}

.newsletter-form .btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}

.newsletter-form .btn:hover {
  background: #f0f0f0;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Article Detail Page ===== */
.article-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2.5rem;
}

.article-detail {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  padding: 2rem 0 4rem;
}

.article-detail .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.article-detail .article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-detail .article-content p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.article-detail .article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-detail .article-content ol,
.article-detail .article-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-detail .article-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  list-style: disc;
}

.article-detail .article-content ol li {
  list-style: decimal;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== Share Buttons ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
}

.share-bar .share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-family);
}

.share-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.share-btn--x { border-color: #1da1f2; color: #1da1f2; }
.share-btn--x:hover { background: #1da1f2; color: #fff; }

.share-btn--fb { border-color: #1877f2; color: #1877f2; }
.share-btn--fb:hover { background: #1877f2; color: #fff; }

.share-btn--wa { border-color: #25d366; color: #25d366; }
.share-btn--wa:hover { background: #25d366; color: #fff; }

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

.share-btn--email { border-color: #6b7280; color: #6b7280; }
.share-btn--email:hover { background: #6b7280; color: #fff; }

/* Related Articles Sidebar */
.related-sidebar {
  width: 300px;
  flex-shrink: 0;
  padding-top: 2rem;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.related-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.related-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-card {
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.related-card-img {
  height: 120px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 0.75rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card-body .card-tag {
  margin-bottom: 0.35rem;
  align-self: flex-start;
  font-size: 0.65rem;
}

.related-card-body h4 {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.related-card-body p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-meta {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Mobile: related articles move below content */
@media (max-width: 960px) {
  .article-layout {
    flex-direction: column;
  }
  .related-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    padding-top: 0;
    margin-top: 1rem;
    border-top: 2px solid var(--color-border);
    padding-top: 2rem;
  }
  .related-sidebar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  .related-card-img { height: 140px; }
}

/* Share on cards (mini) */
.card-share {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.card-share .share-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}

/* News item clickable */
.news-item a.news-title-link {
  color: var(--color-text);
  text-decoration: none;
}

.news-item a.news-title-link:hover {
  color: var(--color-primary);
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Home Page Layout ===== */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.home-main .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.home-main .section-header p {
  margin: 0;
}

/* Featured Highlight (hero article on home) */
.featured-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.featured-highlight:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-highlight-image {
  width: 100%;
  height: 320px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.featured-highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-highlight-body {
  padding: 2rem;
}

.featured-highlight-body .card-tag {
  margin-bottom: 0.75rem;
}

.featured-highlight-body h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.featured-highlight-body h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-highlight-body h2 a:hover {
  color: var(--color-primary);
}

.featured-highlight-body p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.featured-highlight-body .card-meta {
  margin-bottom: 1rem;
}

.featured-highlight-body .btn {
  margin-top: 0.5rem;
}

/* Sidebar */
.home-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-news-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-news-item:last-child {
  border-bottom: none;
}

.sidebar-news-date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sidebar-news-item a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.sidebar-news-item a:hover {
  color: var(--color-primary);
}

.sidebar-view-all {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topic-tag {
  padding: 0.35rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: 0.2s;
}

.topic-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.sidebar-cta {
  background: linear-gradient(135deg, #f0f5ff, #e8eefb);
  border-color: var(--color-primary-light);
}

.sidebar-cta p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Card Image with actual images */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .home-sidebar .sidebar-section {
    margin-bottom: 0;
  }

  .featured-highlight {
    grid-template-columns: 1fr;
  }

  .featured-highlight-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

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

  .nav-toggle {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .resource-item {
    flex-direction: column;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Homepage Upgrades ===== */

/* Dark Hero */
.hero--dark {
  background: linear-gradient(150deg, #0c1a3a 0%, #1a3a6e 55%, #0c1a3a 100%) !important;
  padding: 5rem 0 4rem;
}

.hero--dark h1 {
  color: #ffffff;
  font-size: 3.25rem;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.hero--dark .tagline {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.hero--dark .hero-description {
  color: rgba(255, 255, 255, 0.72);
}

.hero-badge {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-verse {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 480px;
  margin: 0.5rem auto 1rem;
  line-height: 1.55;
}

.btn-hero-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  transition: all 0.2s;
  margin: 0 0.4rem;
}

.btn-hero-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-hero-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s;
  margin: 0 0.4rem;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* News Ticker */
.news-ticker {
  background: #1442a8;
  color: #fff;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.25);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 2%, black 98%, transparent 100%);
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-inner:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.ticker-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.ticker-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin-left: 2rem;
  flex-shrink: 0;
}

/* Value Cards — accent top borders + icon circles */
.value-card--faith  { border-top: 3px solid #1a56db; }
.value-card--knowledge { border-top: 3px solid #0e9f6e; }
.value-card--truth  { border-top: 3px solid #f59e0b; }

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon--faith     { background: #e8eefb; }
.value-icon--knowledge { background: #d1fae5; }
.value-icon--truth     { background: #fef3c7; }

.value-card h3 {
  margin-bottom: 0.65rem;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  transition: box-shadow 0.2s, transform 0.2s;
}

@media (max-width: 768px) {
  .hero--dark h1 { font-size: 2.4rem; }
  .hero-verse { font-size: 0.9rem; }
  .btn-hero-primary, .btn-hero-outline { display: block; margin: 0.4rem auto; max-width: 220px; text-align: center; }
}

/* ===== Improved Article Cards (v2) ===== */
.card-v2 {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-v2:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  color: inherit;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.card-v2:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent);
  pointer-events: none;
}

.card-read-time {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.card-v2 .card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-v2 .card-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  align-self: flex-start;
}

.card-v2 h3 {
  font-size: 1.02rem;
  line-height: 1.38;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.card-v2:hover h3 {
  color: var(--color-primary);
}

.card-v2 p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.58;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
}

.card-date {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.card-read-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Featured highlight upgrades */
.featured-label {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.featured-read-time {
  background: var(--color-bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}
