/* ChromaPack Professional Article Styles */

:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #eee;
  --purple-accent: #9b59b6;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  margin-top: 60px;
  margin-bottom: 80px;
  align-items: start;
}

.article-main-wrapper {
  min-width: 0; /* Prevent grid blowout */
}

.article-content {
  background: #fff;
  padding: 0;
}

.breadcrumb {
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: #777;
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.category-tag {
  background: var(--purple-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.article-meta {
  color: #777;
  font-size: 0.9rem;
  display: flex;
  gap: 20px;
}

.article-meta span i {
  margin-right: 5px;
  color: var(--accent-color);
}

/* Typography Enhancements */
.article-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 5px solid var(--accent-color);
  color: var(--primary-color);
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 25px 0 15px;
  color: var(--primary-color);
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
  font-size: 1.05rem;
}

.article-content ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  list-style: none;
}

.article-content li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: -25px;
}

/* Image & Media Styling */
.article-hero {
  margin-bottom: 45px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  line-height: 0;
}

.article-hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.article-image {
  margin: 45px 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.image-caption {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
  font-style: italic;
}

/* Professional Table Styling */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

table th {
  background: #f4f7f9;
  color: var(--primary-color);
  text-align: left;
  padding: 18px 15px;
  border-bottom: 2px solid #3498db;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

table td {
  padding: 16px 15px;
  border-bottom: 1px solid #edf2f6;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background: #fcfcfc;
}

/* Callout Boxes */
.expert-tip {
  background: #eef7fd;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  gap: 20px;
  margin: 35px 0;
  border-left: 6px solid var(--accent-color);
}

.tip-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.cta-box {
  background: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
}

.cta-box h3 {
  color: white !important;
  margin-top: 0;
}

.cta-box .btn-primary {
  background: var(--accent-color);
  border: none;
  padding: 12px 30px;
  font-weight: 700;
  margin-top: 20px;
}

/* Sidebar Styling */
.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-block {
  background: var(--light-bg);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.sidebar-block h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.check-list li {
  list-style: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #27ae60;
  position: absolute;
  left: 0;
}

/* Related Articles Footer */
.article-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.related-articles ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0;
}

.related-articles li::before {
  display: none;
}

.related-articles a {
  display: block;
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s;
}

.related-articles a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 992px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
