/* ==========================================================================
   DD PHARMA - BLOG ARTICLE DETAIL STYLESHEET
   Faithful recreation of the Article Detail page
   ========================================================================== */

:root {
  --primary-blue: #0C3875;
  --dark-blue: #002B5C;
  --navy-deep: #001E3D;
  --accent-red: #D71920;
  --accent-red-hover: #B7141A;
  --light-blue: #EAF4FF;
  --very-light-blue: #F5F9FD;
  --light-green: #E8F5F1;
  --green: #159447;
  --green-hover: #107537;
  --text-dark: #10233F;
  --text-body: #37475A;
  --text-gray: #5F6B7A;
  --text-muted: #8896A6;
  --border: #DDE5EF;
  --border-light: #EEF3F8;
  --white: #FFFFFF;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 35, 75, 0.04);
  --shadow-card: 0 4px 14px rgba(0, 35, 75, 0.05);
  --shadow-hover: 0 8px 20px rgba(0, 35, 75, 0.1);
  --max-width: 1360px;
}

/* ==========================================================================
   BREADCRUMB BAR
   ========================================================================== */
.article-breadcrumb-bar {
  background-color: var(--white);
  border-bottom: 1px solid #EBF0F7;
  padding: 14px 0;
}

.article-breadcrumb-bar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.article-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.article-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-breadcrumb-list a {
  color: #0C3875;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumb-list a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.article-breadcrumb-list .crumb-sep {
  color: #A0B4CC;
  font-size: 11px;
}

.article-breadcrumb-list .crumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

/* ==========================================================================
   MAIN ARTICLE LAYOUT (2-COLUMN)
   ========================================================================== */
.article-page-main {
  background-color: #FAFCFE;
  padding-top: 36px;
  padding-bottom: 60px;
}

.article-layout-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
  align-items: start;
}

/* ==========================================================================
   LEFT: MAIN ARTICLE CONTENT
   ========================================================================== */
.article-content-col {
  background-color: var(--white);
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid #E9EFF6;
  box-shadow: 0 2px 10px rgba(0, 30, 80, 0.03);
}

/* Badge */
.article-category-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background-color: #EBF4FE;
  color: #0C3875;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

/* Title & Subtitle */
.article-headline {
  font-size: 38px;
  font-weight: 800;
  color: #0C3875;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.article-subheadline {
  font-size: 16px;
  font-weight: 500;
  color: #4B6382;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Metadata Row */
.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: #5C728A;
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid #EEF3F8;
  margin-bottom: 28px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta-item i {
  color: #0C3875;
  font-size: 14px;
}

/* Featured Article Image */
.article-featured-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background-color: #EDF4FB;
  box-shadow: 0 4px 16px rgba(0, 30, 80, 0.06);
}

.article-featured-img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  display: block;
}

/* Overlay Text on Featured Image */
.featured-text-overlay {
  position: absolute;
  right: 8%;
  top: 48%;
  transform: translateY(-50%);
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  pointer-events: none;
}

.overlay-lead-word {
  font-size: 34px;
  font-weight: 800;
  color: #0C3875;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.overlay-sub-text {
  font-size: 18px;
  font-weight: 700;
  color: #0C3875;
  margin-top: 6px;
  line-height: 1.2;
}

.overlay-green-line {
  width: 54px;
  height: 3.5px;
  background-color: var(--green);
  border-radius: 2px;
  margin-top: 10px;
}

/* Body Text */
.article-prose-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 22px;
}

/* Section Headings */
.article-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #0C3875;
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* Quote Box */
.article-quote-card {
  background: linear-gradient(135deg, #EEF6FF 0%, #F5F9FE 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid #0C3875;
  padding: 22px 26px;
  margin: 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.quote-symbol {
  color: #0C3875;
  font-size: 38px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

.quote-message {
  font-size: 15.5px;
  font-weight: 600;
  color: #1A3C6B;
  line-height: 1.55;
  margin: 0;
}

/* Key Benefits Grid */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 34px 0;
}

.benefit-card-box {
  background-color: #F8FAFC;
  border: 1px solid #E6EDF5;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 30, 80, 0.06);
}

.benefit-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit-icon-wrap.green {
  background-color: #E8F5F1;
  color: var(--green);
}

.benefit-icon-wrap.red {
  background-color: #FEECEE;
  color: var(--accent-red);
}

.benefit-icon-wrap.blue {
  background-color: #EBF4FE;
  color: #0C3875;
}

.benefit-text-label {
  font-size: 13px;
  font-weight: 700;
  color: #10233F;
  line-height: 1.3;
}

/* Bottom Article CTA Bar */
.article-inline-cta {
  background-color: #EAF7F2;
  border: 1px solid #D2ECE1;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 28px 0;
}

.inline-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inline-cta-leaf-icon {
  font-size: 34px;
  color: var(--green);
  flex-shrink: 0;
}

.inline-cta-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0C3875;
  margin-bottom: 3px;
}

.inline-cta-heading span {
  color: var(--green);
}

.inline-cta-subtext {
  font-size: 13px;
  color: #4A637C;
  line-height: 1.4;
  margin: 0;
}

.btn-cta-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0C3875;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(12, 56, 117, 0.2);
}

.btn-cta-explore:hover {
  background-color: #092C5E;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(12, 56, 117, 0.28);
}

/* Tags Row */
.article-tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #EEF3F8;
}

.tags-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 4px;
}

.tag-badge-pill {
  display: inline-block;
  padding: 5px 14px;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  color: #0C3875;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge-pill:hover {
  background-color: #EBF4FE;
  border-color: #B9D6F7;
  color: #0C3875;
  transform: translateY(-1px);
}

/* ==========================================================================
   RIGHT: STICKY SIDEBAR
   ========================================================================== */
.article-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 96px;
}

/* Social Share Block */
.sidebar-share-box {
  background-color: var(--white);
  border: 1px solid #E9EFF6;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 30, 80, 0.02);
}

.share-box-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.share-icons-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: var(--white);
}

.share-btn.linkedin { background-color: #0A66C2; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1D9BF0; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.copylink {
  background-color: #EEF2F6;
  color: #4A5D73;
}
.share-btn.copylink:hover {
  background-color: #E2E8F0;
  color: #0C3875;
}

/* Copy Toast */
.copy-toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0C3875;
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 20, 50, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 3000;
}

.copy-toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Related Articles Card */
.sidebar-related-card {
  background-color: var(--white);
  border: 1px solid #E9EFF6;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0, 30, 80, 0.03);
}

.related-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.related-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0C3875;
  margin: 0;
}

.related-view-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #0C3875;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.related-view-all-link:hover {
  color: var(--accent-red);
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-article-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  transition: transform 0.15s ease;
}

.related-article-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.related-article-row:hover .related-item-title {
  color: var(--accent-red);
}

.related-item-thumb {
  width: 72px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-item-info {
  display: flex;
  flex-direction: column;
}

.related-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #10233F;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.related-item-date {
  font-size: 11.5px;
  color: #8896A6;
  margin-top: 4px;
}

/* Newsletter Card */
.sidebar-newsletter-card {
  background: linear-gradient(135deg, #EEF6FF 0%, #F5F9FE 100%);
  border: 1px solid #D6E6F8;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 30, 80, 0.03);
}

.newsletter-icon-wrap {
  font-size: 32px;
  color: #0C3875;
  margin-bottom: 12px;
  line-height: 1;
}

.newsletter-card-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0C3875;
  line-height: 1.25;
  margin-bottom: 10px;
}

.newsletter-card-desc {
  font-size: 13px;
  color: #4B6382;
  line-height: 1.5;
  margin-bottom: 18px;
}

.newsletter-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input-box {
  width: 100%;
  padding: 11px 16px;
  background-color: var(--white);
  border: 1px solid #CFE0F2;
  border-radius: 6px;
  font-size: 13px;
  color: #10233F;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input-box:focus {
  border-color: #0C3875;
  box-shadow: 0 0 0 3px rgba(12, 56, 117, 0.12);
}

.btn-newsletter-submit {
  width: 100%;
  padding: 11px 16px;
  background-color: #0C3875;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-newsletter-submit:hover {
  background-color: #092C5E;
  transform: translateY(-1px);
}

.newsletter-feedback-msg {
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.newsletter-feedback-msg.success {
  display: block;
  color: #107537;
  font-weight: 600;
}

.newsletter-feedback-msg.error {
  display: block;
  color: var(--accent-red);
  font-weight: 600;
}

/* Product Promo Card */
.sidebar-promo-card {
  background: #EDF5FE;
  border: 1px solid #D6E6F9;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 30, 80, 0.03);
}

.promo-card-thumb {
  width: 105px;
  height: 105px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--white);
}

.promo-card-content {
  display: flex;
  flex-direction: column;
}

.promo-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0C3875;
  line-height: 1.3;
  margin-bottom: 12px;
}

.btn-promo-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #0C3875;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.btn-promo-view:hover {
  background-color: #092C5E;
  color: var(--white);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .article-layout-container {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
  .article-headline {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .article-layout-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar-col {
    position: static;
    top: auto;
  }
  .benefits-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-content-col {
    padding: 24px 20px;
  }
  .article-headline {
    font-size: 26px;
  }
  .article-subheadline {
    font-size: 14.5px;
  }
  .featured-text-overlay {
    right: 5%;
  }
  .overlay-lead-word {
    font-size: 22px;
  }
  .overlay-sub-text {
    font-size: 13px;
  }
  .overlay-green-line {
    width: 40px;
    height: 3px;
    margin-top: 6px;
  }
  .benefits-row {
    grid-template-columns: 1fr;
  }
  .article-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-cta-explore {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .featured-text-overlay {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
  }
  .overlay-lead-word {
    font-size: 17px;
  }
  .overlay-sub-text {
    font-size: 11px;
  }
}
