/* PTN AI News Portal — Clean Light Corporate Architecture */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-card: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-amber: #d97706;
  --accent-amber-dark: #b45309;
  --accent-amber-light: #fef3c7;
  --accent-blue: #0284c7;
  --accent-blue-light: #e0f2fe;
  --accent-emerald: #059669;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 1. Top Breaking News Banner */
.breaking-banner {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
}

.banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.breaking-tag {
  background: var(--accent-amber);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

.ticker-content {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}

.ticker-divider {
  margin: 0 10px;
  color: var(--accent-amber);
}

.agency-badge-link {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.agency-badge-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 2. Main Executive Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-amber-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.status-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #065f46;
  letter-spacing: 0.04em;
}

.btn-consult {
  background: var(--accent-amber);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-consult:hover {
  background: var(--accent-amber-dark);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* 3. Mission Brief Bar */
.mission-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-card);
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.mission-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* 4. Main Container & Layout */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Search & Filters Section */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  opacity: 0.6;
}

.search-wrap input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #f8fafc;
  transition: all 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.clear-search {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}

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

.pill {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f1f5f9;
  border: 1px solid var(--border-card);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pill:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Spotlight Featured Card */
.spotlight-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.spotlight-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #0f172a;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spotlight-card:hover .spotlight-media img {
  transform: scale(1.03);
}

.spotlight-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.spotlight-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.spotlight-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meta-category {
  color: var(--accent-amber-dark);
  font-weight: 700;
}

.spotlight-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.spotlight-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.source-tag {
  color: var(--text-muted);
  font-weight: 600;
}

.read-btn-link {
  color: var(--accent-amber-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Feed Section Header */
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--border-card);
  padding-bottom: 12px;
  margin-top: 8px;
}

.section-heading {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.result-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Articles Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-media img {
  transform: scale(1.04);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 14px;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.card-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-source {
  color: var(--text-muted);
  font-weight: 600;
}

.card-action-link {
  color: var(--accent-amber-dark);
  font-weight: 700;
}

/* B2B Agency Lead Attraction Banner */
.b2b-agency-feature {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.b2b-feature-content {
  max-width: 860px;
}

.b2b-badge {
  background: var(--accent-amber);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

.b2b-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.b2b-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 24px;
}

.b2b-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  background: var(--accent-amber);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--accent-amber-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

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

/* Modal Overlay & Reader */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #0f172a;
}

.modal-scrollable {
  overflow-y: auto;
  padding: 0;
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-content-inner {
  padding: 32px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-category-badge {
  background: var(--accent-amber-light);
  color: var(--accent-amber-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.modal-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 16px;
}

/* Key Takeaways Callout Box */
.takeaways-box {
  background: #f8fafc;
  border-left: 4px solid var(--accent-amber);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}

.takeaways-heading {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-amber-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.takeaways-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.takeaways-list li {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Article Body Typography */
.article-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* PTN Strategic Take Callout */
.ptn-take-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 12px;
}

.ptn-take-heading {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ptn-take-content {
  font-size: 0.9375rem;
  color: #14532d;
  line-height: 1.65;
}

/* Verified Attribution Box */
.attribution-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.attribution-box a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Modal Lead Gen Conversion Dock */
.modal-lead-dock {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.lead-dock-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
}

.lead-dock-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.lead-dock-btn {
  background: var(--accent-amber);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.lead-dock-btn:hover {
  background: var(--accent-amber-dark);
}

/* Corporate Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 20px 24px;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.footer-desc {
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.6;
}

.footer-address {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.col-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 12px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.legal-disclaimer {
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-media {
    min-height: 220px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .modal-hero-img {
    height: 200px;
  }
  .modal-content-inner {
    padding: 20px;
  }
  .modal-title {
    font-size: 1.35rem;
  }
  .b2b-title {
    font-size: 1.4rem;
  }
  .category-pills {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
