/* ================================================================
   PHARMA PORTAL — Desktop CSS (min-width: 1025px)
   Separate file — NO conflicts with styles.css, mobile.css, tablet.css
   All selectors scoped with .pharma- prefix
   ================================================================ */

/* ── Variables ── */
:root {
  --pharma-green: #059669;
  --pharma-teal: #0d9488;
  --pharma-emerald: #10b981;
  --pharma-dark: #064e3b;
  --pharma-accent: #f59e0b;
  --pharma-bg: #f0fdf4;
  --pharma-surface: #ffffff;
  --pharma-border: #d1fae5;
  --pharma-text: #0f172a;
  --pharma-text2: #64748b;
  --pharma-light: #ecfdf5;
}

/* ── Portal Container ── */
.pharma-portal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============== HERO SECTION =============== */
.pharma-hero {
  position: relative;
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 30%, #f8fafc 70%, #f0f9ff 100%);
  border: 1px solid var(--pharma-border);
}

.pharma-hero-bg {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pharma-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 40px;
}

.pharma-hero-left {
  flex: 1;
  min-width: 0;
}

.pharma-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--pharma-green);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pharma-hero-badge-icon {
  font-size: 16px;
}

.pharma-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--pharma-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.pharma-hero-sub {
  font-size: 16px;
  color: var(--pharma-text2);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 24px;
}

.pharma-hero-actions {
  display: flex;
  gap: 12px;
}

.pharma-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pharma-hero-btn:hover {
  transform: translateY(-2px);
}

.pharma-hero-btn-primary {
  background: var(--pharma-green);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}

.pharma-hero-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(5,150,105,0.35);
}

.pharma-hero-btn-secondary {
  background: var(--pharma-surface);
  color: var(--pharma-green);
  border: 1px solid var(--pharma-border);
}

.pharma-hero-btn-secondary:hover {
  background: var(--pharma-light);
  border-color: var(--pharma-green);
}

/* ── Hero Stats ── */
.pharma-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex-shrink: 0;
  width: 280px;
}

.pharma-hero-stat {
  background: var(--pharma-surface);
  border: 1px solid var(--pharma-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pharma-hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.1);
}

.pharma-stat-icon {
  font-size: 20px;
  color: var(--pharma-green);
  margin-bottom: 6px;
}

.pharma-stat-icon [data-icon] {
  color: var(--pharma-green);
}

.pharma-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--pharma-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.pharma-stat-label {
  font-size: 11px;
  color: var(--pharma-text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* =============== PHARMA BODIES STRIP =============== */
.pharma-bodies-strip {
  margin-bottom: 32px;
}

.pharma-bodies-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.pharma-body-card {
  background: var(--pharma-surface);
  border: 1px solid var(--pharma-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.pharma-body-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.08);
  border-color: var(--pharma-green);
}

.pharma-body-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--pharma-green);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.pharma-body-full {
  font-size: 10px;
  color: var(--pharma-text);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.pharma-body-desc {
  font-size: 10px;
  color: var(--pharma-text2);
  line-height: 1.4;
  margin: 0;
}

/* =============== SECTION TITLES =============== */
.pharma-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.pharma-stitle-icon {
  font-size: 22px;
}

.pharma-section-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pharma-text);
  margin: 0;
}

/* =============== FEATURED NEWS =============== */
.pharma-featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 32px;
}

.pharma-feat-card {
  text-decoration: none;
  background: var(--pharma-surface);
  border: 1px solid var(--pharma-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pharma-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.1);
}

.pharma-feat-large {
  grid-row: 1 / 3;
}

.pharma-feat-img {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
}

.pharma-feat-large .pharma-feat-img {
  min-height: 300px;
}

.pharma-feat-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pharma-feat-large .pharma-feat-placeholder {
  min-height: 300px;
}

.pharma-feat-placeholder [data-icon] {
  font-size: 48px;
  color: rgba(5,150,105,0.2);
}

.pharma-feat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--pharma-green);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pharma-feat-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pharma-feat-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--pharma-text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pharma-feat-body p {
  font-size: 13px;
  color: var(--pharma-text2);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* REVERTABLE: Extended description for large first story card - DESKTOP ONLY */
.pharma-feat-large .pharma-feat-body p {
  -webkit-line-clamp: 20;
}

.pharma-feat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pharma-border);
  font-size: 12px;
}

.pharma-feat-author {
  color: var(--pharma-text);
  font-weight: 600;
}

.pharma-feat-time {
  color: var(--pharma-text2);
}

/* =============== SUBMIT CTA =============== */
.pharma-submit-cta {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
  border: 1px solid var(--pharma-border);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.pharma-submit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.pharma-submit-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.pharma-submit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--pharma-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}

.pharma-submit-icon [data-icon] {
  color: #ffffff;
}

.pharma-submit-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pharma-text);
  margin-bottom: 6px;
}

.pharma-submit-desc {
  font-size: 14px;
  color: var(--pharma-text2);
  line-height: 1.6;
  margin: 0;
}

.pharma-submit-right {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.pharma-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--pharma-green);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5,150,105,0.2);
}

.pharma-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(5,150,105,0.3);
}

.pharma-submit-btn-alt {
  background: var(--pharma-surface);
  color: var(--pharma-green);
  border: 1px solid var(--pharma-border);
  box-shadow: none;
}

.pharma-submit-btn-alt:hover {
  background: var(--pharma-light);
  box-shadow: 0 4px 12px rgba(5,150,105,0.08);
}

/* =============== LATEST NEWS GRID =============== */
.pharma-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.pharma-news-card {
  background: var(--pharma-surface);
  border: 1px solid var(--pharma-border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.pharma-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.08);
  border-color: var(--pharma-green);
}

.pharma-news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pharma-news-tag {
  padding: 3px 10px;
  background: rgba(5,150,105,0.1);
  color: var(--pharma-green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pharma-news-time {
  font-size: 11px;
  color: var(--pharma-text2);
}

.pharma-news-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pharma-text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pharma-news-excerpt {
  font-size: 13px;
  color: var(--pharma-text2);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.pharma-news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--pharma-border);
}

.pharma-news-author {
  font-size: 12px;
  color: var(--pharma-text);
  font-weight: 600;
}

.pharma-news-readmore {
  font-size: 12px;
  color: var(--pharma-green);
  font-weight: 600;
}

/* =============== BOTTOM CTA =============== */
.pharma-bottom-cta {
  background: var(--pharma-dark);
  border-radius: 18px;
  padding: 40px;
  margin-bottom: 28px;
  text-align: center;
}

.pharma-bottom-inner h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pharma-bottom-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.pharma-bottom-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pharma-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.pharma-social-btn:hover {
  transform: translateY(-2px);
}

.pharma-social-fb {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

.pharma-social-tw {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

.pharma-social-li {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

/* =============== DATA STAMP =============== */
.pharma-data-stamp {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--pharma-text2);
  border-top: 1px solid var(--pharma-border);
}

/* =============== DARK MODE =============== */
body.dark .pharma-portal {
  --pharma-bg: #0c1a14;
  --pharma-surface: #12261c;
  --pharma-border: rgba(5,150,105,0.15);
  --pharma-text: #f1f5f9;
  --pharma-text2: #94a3b8;
  --pharma-light: #0c1a14;
}

body.dark .pharma-hero {
  background: linear-gradient(135deg, #0c1a14 0%, #0f2318 30%, #111827 70%, #0f172a 100%);
}

body.dark .pharma-feat-placeholder {
  background: linear-gradient(135deg, #0f2318, #0c2e1f);
}

body.dark .pharma-submit-cta {
  background: linear-gradient(135deg, #0c1a14, #0f2318, #111827);
}

body.dark .pharma-body-card:hover,
body.dark .pharma-feat-card:hover,
body.dark .pharma-news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

body.dark .pharma-hero-btn-secondary {
  background: var(--pharma-surface);
}

body.dark .pharma-submit-btn-alt {
  background: var(--pharma-surface);
}

body.dark .pharma-bottom-cta {
  background: #062e1f;
}

/* ── Featured Image ── */
.pharma-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.pharma-feat-large .pharma-feat-img img {
  min-height: 300px;
}

/* ── News Card Image ── */
.pharma-news-card-img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

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