/* AyurPocket marketing site — shared light theme */
:root {
  --bg-main: #f4fbf6;
  --bg-elevated: #ffffff;
  --bg-soft: #ecfdf3;
  --bg-muted: #e8f5e9;
  --text-primary: #0f2418;
  --text-secondary: #3d5c47;
  --text-subdued: #5f7a68;
  --accent: #15803d;
  --accent-dark: #166534;
  --accent-light: #22c55e;
  --accent-soft: rgba(21, 128, 61, 0.1);
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --border: rgba(21, 101, 52, 0.12);
  --border-strong: rgba(21, 101, 52, 0.22);
  --shadow-sm: 0 2px 8px rgba(15, 36, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 36, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 36, 24, 0.1);
  --font-outfit: "Outfit", system-ui, sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --play-url: https://play.google.com/store/apps/details?id=com.ayurveda.pocket;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-inter);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 92% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: #a7d4b5;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-outfit);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a:not(.cta-btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.site-nav a:not(.cta-btn):hover {
  color: var(--accent-dark);
}

.site-nav a.nav-active {
  color: var(--accent-dark);
  font-weight: 600;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  font-family: var(--font-outfit);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.32);
}

.cta-btn-outline {
  background: var(--bg-elevated);
  color: var(--accent-dark);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.cta-btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}

.cta-btn-lg {
  font-size: 16px;
  padding: 14px 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 18px;
  font-family: var(--font-outfit);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-sm);
}

.badge-gold {
  background: var(--gold-soft);
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--gold);
}

.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-family: var(--font-outfit);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.site-footer {
  padding: 48px 0 36px;
  text-align: center;
  font-size: 14px;
  color: var(--text-subdued);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-outfit);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .header-wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    justify-content: center;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .site-nav a.nav-hide-mobile {
    display: none;
  }
}

/* News feed (app News & Updates API only) */
.feed-section {
  padding: 72px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feed-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  height: 100%;
}

.feed-card-static {
  cursor: default;
}

.feed-card-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
  overflow: hidden;
}

.feed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  text-align: left;
}

.feed-card h3 {
  font-family: var(--font-outfit);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.feed-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feed-cat-community {
  background: #fef3c7;
  color: #92400e;
}

.feed-cat-aiapget { background: #ffedd5; color: #c2410c; }
.feed-cat-ncism { background: #dbeafe; color: #1e40af; }
.feed-cat-psc,
.feed-cat-govt-exam { background: #ede9fe; color: #5b21b6; }
.feed-cat-college-updates { background: #e0e7ff; color: #3730a3; }

.feed-pinned {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-date {
  font-size: 13px;
  color: var(--text-subdued);
}

.feed-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.feed-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 4px;
}

.feed-read-muted {
  color: var(--text-subdued);
  font-weight: 500;
}

.feed-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.feed-state-error p {
  margin-bottom: 16px;
}

.feed-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: feed-spin 0.8s linear infinite;
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  margin-bottom: 20px;
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font-family: var(--font-outfit);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 8px;
}

.article-hero-img {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero-img img {
  width: 100%;
  display: block;
}

.article-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.article-content th {
  background: var(--bg-muted);
}

.article-app-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-app-cta p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}
