.article-wrapper {
  background-color: #222831;
  min-height: 100%;
}

.hero-section {
  background: linear-gradient(135deg, #222831 0%, #393E46 50%, #222831 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(223,208,184,0.05) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card {
  background: linear-gradient(145deg, #393E46 0%, #2a2f38 100%);
  border: 1px solid rgba(223,208,184,0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223,208,184,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.content-section {
  background-color: #fff;
}

.sidebar-card {
  background: linear-gradient(145deg, #DFD0B8 0%, #c9b89e 100%);
}

.toc-link {
  color: #393E46;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 12px;
}

.toc-link:hover {
  color: #222831;
  border-left-color: #948979;
  padding-left: 16px;
}

.quote-block {
  background: linear-gradient(90deg, #DFD0B8 0%, rgba(223,208,184,0.3) 100%);
  border-left: 4px solid #948979;
}

.cta-section {
  background: linear-gradient(135deg, #393E46 0%, #222831 100%);
}

.cta-button {
  background: linear-gradient(135deg, #DFD0B8 0%, #c9b89e 100%);
  color: #222831;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(223,208,184,0.3);
}

.section-number {
  color: #948979;
  font-weight: 700;
}

.key-point {
  background-color: rgba(223,208,184,0.1);
  border-left: 4px solid #DFD0B8;
}

.metric-badge {
  background-color: #DFD0B8;
  color: #222831;
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.float-in {
  animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  position: relative;
  animation: fadeIn 1s ease-out;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-image {
    height: 270px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-image {
    height: 520px;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    height: 520px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.in-text-image {
  width: 100%;
  max-width: 290px;
  height: 245px;
  background: linear-gradient(135deg, #DFD0B8 0%, #948979 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px 0px;
  float: right;
  margin-left: 20px;
  animation: slideInRight 0.6s ease-out;
  overflow: hidden;
  border-radius: 20px;
}

.in-text-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .in-text-image {
    float: none;
    margin:auto;
    margin-bottom: 1rem;
    width: 100%;
  }
}

.accordion-item {
  border-bottom: 1px solid rgba(223,208,184,0.2);
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background-color: rgba(223,208,184,0.05);
}

.accordion-button.active {
  color: #DFD0B8;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accordion-button.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.accordion-content.open {
  max-height: 1000px;
  padding: 0 16px 16px 16px;
}

.ad-section {
  background: linear-gradient(135deg, rgba(223,208,184,0.1) 0%, rgba(148,137,121,0.05) 100%);
  border: 2px dashed rgba(223,208,184,0.3);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-in 0.8s ease-out;
}

.ad-placeholder {
  color: #948979;
  font-size: 14px;
  font-style: italic;
}

.case-study-box {
  background: linear-gradient(145deg, #DFD0B8 0%, rgba(223,208,184,0.3) 100%);
  border-left: 4px solid #948979;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.case-study-box h4 {
  color: #222831;
  margin-top: 0;
}

.metric-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .metric-comparison {
    grid-template-columns: 1fr;
  }
}

.comparison-item {
  padding: 16px;
  border-radius: 8px;
  background-color: rgba(223,208,184,0.1);
  border-left: 3px solid #948979;
}

.comparison-label {
  font-size: 14px;
  color:  #222831;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.comparison-value {
  font-size: 24px;
  font-weight: bold;
  color: #222831;
}

/* Reading progress bar */
.progress-bar {
  background: #222831;
  height: 4px;
  width: 0%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Mobile menu */
.mobile-menu {
  background-color: #222831;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  .content-section { background: white !important; }
}