/* JioAI.tech - Professional Light Theme (Orange & White) */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-orange-tint: #fff7ed;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --orange: #ff5800;
  --orange-hover: #e04d00;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--orange-hover); }

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-logo-img {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 36px;
    max-width: 150px;
  }
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.logo span.accent { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.mobile-menu-btn {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 18px;
  background: #fff;
  border-top: 1px solid var(--border);
}

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

.mobile-nav a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 0;
}

.mobile-nav a.active { color: var(--orange); }

/* Latest Posts Moving Slider */
.latest-ticker {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-label {
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ticker-viewport {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: tickerScroll 45s linear infinite;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-item:hover {
  color: var(--orange);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--bg-orange-tint) 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 24px;
}

/* Search & Category Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 28px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover, .pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.search-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  width: 260px;
  outline: none;
  background: var(--bg);
}

.search-input:focus { border-color: var(--orange); }

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #fed7aa;
}

.card-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-orange-tint);
  border-bottom: 1px solid var(--border);
}

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

.card:hover .card-thumb {
  transform: scale(1.03);
}

.card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-cat {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card h2 a { color: inherit; }
.card h2 a:hover { color: var(--orange); }

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Article Page */
.article-wrap {
  max-width: 820px;
  margin: 40px auto 72px;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.takeaways-box {
  background: var(--bg-orange-tint);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.takeaways-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 8px;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.article-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.article-content p { margin-bottom: 18px; font-size: 1.04rem; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; font-size: 1.02rem; }
.article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px auto;
  border: 1px solid var(--border);
  object-fit: cover;
}

.article-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
}

.article-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 12px 20px;
  background: var(--bg-soft);
  margin: 20px 0;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

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

.article-content th {
  background: var(--bg-orange-tint);
  color: var(--text);
  font-weight: 700;
}

.author-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 48px;
}

.author-box h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* Compliance / Static Pages */
.page-wrap {
  max-width: 820px;
  margin: 48px auto 80px;
  padding: 0 20px;
}

.page-wrap h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.page-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.page-wrap p, .page-wrap li {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--orange); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .search-input { width: 100%; }
}

/* Rumour / Unconfirmed Notice */
.rumour-box {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  color: #78350f;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  font-size: 0.94rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 64px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-body);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.page-btn:hover, .page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Related Articles */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.related-card h4 {
  font-size: 0.98rem;
  line-height: 1.4;
  margin: 8px 0 0;
}

.related-card h4 a { color: var(--text); }
.related-card h4 a:hover { color: var(--orange); }

/* Contact Form & Author Profile */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin: 12px 0 6px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.contact-form button {
  margin-top: 16px;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* LinkedIn Share / Draft Modal */
.li-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a66c2;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.li-share-btn:hover { background: #004182; }

.li-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.li-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.li-modal h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
}

.li-modal textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 12px 0;
  background: var(--bg-soft);
}

.li-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-orange-tint);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
}
