
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f7f4;
  color: #14302b;
  line-height: 1.6;
  font-size: 16px;
}

.export-header {
  background-color: #0f3d2e;
  color: #e3c567;
  padding: 24px 0 12px 0;
  text-align: center;
  border-radius: 0 0 12px 12px;
  margin-bottom: 20px;
}

.export-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.export-header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #e3c567;
  cursor: pointer;
}

/* Ensure nav is always centered, regardless of page/content */
nav {
  display: flex;
  gap: 18px;
  justify-content: center !important; /* force center */
  align-items: center;
  margin: 12px auto 0 auto; /* center the nav block itself */
  max-width: 1100px; /* match content width */
  padding: 0 20px;
}

nav a {
  color: #e3c567;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.08em;
  padding: 6px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  background: #e3c567;
  color: #0f3d2e;
  text-decoration: none;
}

.export-search-input {
  padding: 10px 18px;
  border-radius: 25px;
  border: 2px solid #e3c567;
  font-size: 17px;
  min-width: 260px;
  background: #fdfcf2;
  color: #14302b;
  box-shadow: 0 2px 8px rgba(19, 84, 70, 0.07);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-left: auto; /* Push search to right within header-content */
}

.export-search-input:focus {
  border-color: #0f3d2e;
  background-color: #fffef6;
  box-shadow: 0 2px 12px rgba(19, 84, 70, 0.18);
}

.export-main-content {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

/* Skeleton loading overlay */
.skeleton-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton-container {
  width: min(1100px, 92vw);
}
.skeleton-bar {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f2f2 25%, #ecebeb 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-bar.sm { height: 10px; border-radius: 5px; }
.skeleton-bar.md { height: 14px; border-radius: 7px; }
.skeleton-bar.lg { height: 24px; border-radius: 12px; }
.skeleton-row { display: flex; gap: 12px; align-items: center; }
.skeleton-gap { height: 14px; }
.skeleton-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.skeleton-card { height: 220px; border-radius: 12px; background: linear-gradient(90deg, #f2f2f2 25%, #ecebeb 37%, #f2f2f2 63%); background-size: 400% 100%; animation: skeleton-shimmer 1.2s ease-in-out infinite; }
@keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; }}

.card-grid {
  flex-wrap: wrap;
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 0 12px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0 0 20px 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  border: 2px solid #cfe7d8;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 340px;
  min-height: 340px;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(19, 84, 70, 0.18);
  transform: translateY(-4px) scale(1.01);
  border-color: #87c1a7;
}

.blog-date {
  font-size: 0.95em;
  color: #e3c567;
  margin: 18px 0 0 20px;
  font-weight: 500;
}

.blog-card-img {
  width: 100%;
  margin: 0 auto;
  height: 250px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 12px 12px 0 0;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.25em;
  margin: 10px 20px 0 20px;
  color: #0f3d2e;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.blog-card-excerpt {
  margin: 12px 20px 0 20px;
  color: #2a493f;
  font-size: 1em;
  flex: 1 1 auto;
}

.blog-card-btn {
  margin: 18px 20px 0 auto;
  background: #0f3d2e;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 22px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(19, 84, 70, 0.10);
}

.blog-card-btn:hover {
  background: #145a44;
  color: #e3c567;
}

/* Kalam Card Styles */
.kalam-card {
  background: linear-gradient(135deg, #fffbe7 0%, #fff 100%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(19, 84, 70, 0.12), 0 1.5px 8px rgba(26,35,126,0.06);
  padding: 18px 16px 20px 16px;
  border: 2px solid #cfe7d8;
  position: relative;
  min-height: 220px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  overflow: hidden;
}
.kalam-card:hover {
  box-shadow: 0 8px 32px rgba(19, 84, 70, 0.20), 0 2px 12px rgba(26,35,126,0.10);
  border-color: #87c1a7;
  transform: translateY(-3px) scale(1.015);
}
.kalam-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.kalam-type-badge {
  background: #e3c567;
  color: #0f3d2e;
  border-radius: 12px;
  padding: 2px 14px;
  font-size: 0.95em;
  font-weight: bold;
  margin-left: 8px;
  box-shadow: 0 1px 4px rgba(255,193,7,0.08);
}
.kalam-card-title {
  font-size: 1.18rem;
  font-weight: bold;
  color: #0f3d2e;
  margin-bottom: 0.2em;
  margin-right: 8px;
  flex: 1 1 auto;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  min-height: 2.8em;
}
.kalam-card-meta {
  font-size: 0.99rem;
  color: #2a493f;
  margin-bottom: 0.3em;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kalam-card-btn {
  margin-top: 28px;
  background: #0f3d2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kalam-card-btn:hover {
  background: #145a44;
  color: #e3c567;
}

/* Kalam Detail Page */
.kalam-detail-container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
}
.kalam-detail-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}
.kalam-detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.5rem;
}
.kalam-detail-meta {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.kalam-detail-content {
  font-size: 1.15rem;
  color: #222;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.footer {
  background-color: #0f3d2e;
  color: #e3c567;
  text-align: center;
  padding: 24px 0 10px 0;
  width: 100%;
  margin: 0 auto 0 auto;
  border-radius: 12px 12px 0 0;
  margin-top: 40px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #e3c567;
  margin: 0 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  transition: color 0.2s;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.blog-article, .kalam-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 32px 24px;
  max-width: 900px;
  margin: 30px auto;
  font-size: 1.08em;
  color: #14302b;
  border: 2px solid #cfe7d8;
}
  .kalamImageCapture {
  margin: 10 auto;
  }

.blog-article h1, .blog-article h2, .blog-article h3,
.kalam-article h1, .kalam-article h2, .kalam-article h3 {
  color: #0f8a5f;
}

.see-all-btn {
  background: #0f3d2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(19, 84, 70, 0.1);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  display: block;
}
.see-all-btn:hover {
  background: #145a44;
  color: #e3c567;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skeleton-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
  }
  .export-header-content {
    flex-direction: column; /* Stack title and search */
    align-items: stretch;
    gap: 10px;
  }
  nav { justify-content: center !important; }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px; /* Add padding to prevent touching edges */
  }
  .export-main-content {
    padding: 0 6px;
  }
  .blog-card, .kalam-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: 250px; /* Match kalam card height */
  }
  .blog-article, .kalam-article {
    padding: 14px 8px;
  }
  .kalam-detail-container {
    padding: 1.2rem 0.7rem;
  }
  .kalam-detail-title {
    font-size: 1.3rem;
  }
  /* Hide blog excerpt and meta on mobile */
  .blog-card-excerpt,
  .blog-date {
    display: none !important;
  }
}
