/* Article Specific Styles */
.nav-logo a {
  color: var(--secondary-color);
  text-decoration: none;
}

.article-header {
  background: var(--gradient-dark);
  color: var(--text-light);
  padding: 120px 0 60px;
  margin-top: 80px;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-main {
  padding: 60px 0;
  background: var(--background-light);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.article-content {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-light);
  line-height: 1.8;
}

.article-image {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-caption {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.article-intro {
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
}

.table-of-contents {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 3rem;
}

.table-of-contents h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--secondary-color);
}

.article-content section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-content section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.article-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.article-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Wrap Types Styling */
.wrap-types {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.wrap-type {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  border-right: 4px solid var(--secondary-color);
}

.wrap-type h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.wrap-type strong {
  color: var(--primary-color);
}

/* Materials Comparison */
.materials-comparison {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.material {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.material h3 {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  margin: 0;
}

.material-details {
  padding: 2rem;
}

/* Color Guide */
.color-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.color-category {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--secondary-color);
}

.color-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Cost Breakdown */
.cost-breakdown {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.cost-factor {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
}

.cost-factor h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Maintenance Tips */
.maintenance-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tip-category {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  border-right: 4px solid var(--secondary-color);
}

.tip-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Special Boxes */
.pro-tip,
.warning-box {
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.pro-tip {
  background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
  border-right: 4px solid #4caf50;
}

.warning-box {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-right: 4px solid #ff9f43;
}

.pro-tip h4,
.warning-box h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Recommendations */
.recommendations {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.recommendation {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-right: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.recommendation h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Final Tips */
.final-tips {
  background: var(--primary-color);
  color: white;
  padding: 2.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.final-tips h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.final-tips ol {
  padding-right: 1.5rem;
}

.final-tips li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.final-tips strong {
  color: var(--secondary-color);
}

/* Article CTA */
.article-cta {
  background: var(--gradient-gold);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  margin-top: 3rem;
}

.article-cta h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.article-cta p {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Sidebar Styles */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.sidebar-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.related-articles {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-articles a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.related-articles a:hover {
  color: var(--secondary-color);
}

.service-highlight {
  text-align: center;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.service-highlight h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-highlight p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.quick-contact p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.quick-contact strong {
  color: var(--primary-color);
}

.quick-contact a {
  color: var(--secondary-color);
  text-decoration: none;
}

.quick-contact a:hover {
  text-decoration: underline;
}

/* Lazy Loading for Articles */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: #f0f0f0;
}

img.lazy.loaded {
  opacity: 1;
}

/* PPF Article Specific Styles */
.ppf-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
  text-align: center;
}

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.protection-types {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.protection-type {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  border-right: 4px solid var(--secondary-color);
}

.protection-type h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.protection-type strong {
  color: var(--primary-color);
}

.financial-analysis {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-light);
  border-top: 4px solid var(--secondary-color);
}

.benefit-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.example-calculation {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

.example-calculation h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.example-calculation p {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.example-calculation .profit {
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
}

.application-areas {
  margin: 2rem 0;
}

.area-category {
  margin-bottom: 3rem;
}

.area-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.area-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.area-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.coverage {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 1rem;
}

.package-recommendations {
  background: var(--background-light);
  padding: 2.5rem;
  border-radius: 15px;
  margin: 3rem 0;
}

.package-recommendations h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.packages {
  display: grid;
  gap: 1.5rem;
}

.package {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.package h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.suitable {
  display: block;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.maintenance-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.maintenance-category {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.maintenance-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.maintenance-tips {
  background: var(--background-light);
  padding: 2.5rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tip {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.tip h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.investment-breakdown {
  margin: 2rem 0;
}

.cost-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  margin: 2rem 0;
}

.cost-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cost-row.header {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
}

.cost-row:last-child {
  border-bottom: none;
}

.roi-calculation {
  background: var(--background-light);
  padding: 2.5rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.calculation-example {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.calculation-example h4 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
}

.calc-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.calc-item:last-child {
  border-bottom: none;
}

.calc-item.total {
  background: var(--background-light);
  margin: 1rem -2rem;
  padding: 1rem 2rem;
  font-weight: bold;
}

.calc-item.profit {
  background: var(--secondary-color);
  color: var(--primary-color);
  margin: 1rem -2rem;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.label {
  color: var(--text-primary);
}

.value {
  color: var(--primary-color);
  font-weight: bold;
}

.decision-factors {
  margin: 3rem 0;
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.factor {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.factor.positive {
  background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
  border-right: 4px solid #4caf50;
}

.factor.negative {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-right: 4px solid #ff9f43;
}

.factor h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-section {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .article-header {
    padding: 100px 0 40px;
  }

  .article-content {
    padding: 2rem 1.5rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .article-meta {
    gap: 1rem;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: center;
  }

  .breadcrumb {
    font-size: 0.8rem;
    text-align: center;
  }

  .table-of-contents {
    padding: 1.5rem;
  }

  .table-of-contents a {
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }

  .wrap-types,
  .materials-comparison,
  .cost-breakdown {
    gap: 1.5rem;
  }

  .color-guide,
  .maintenance-tips {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wrap-type,
  .material-details,
  .cost-factor,
  .tip-category {
    padding: 1.5rem;
  }

  .article-cta {
    padding: 2rem 1.5rem;
  }

  .sidebar-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-content {
    padding: 1.5rem 1rem;
  }

  .table-of-contents,
  .pro-tip,
  .warning-box,
  .final-tips {
    padding: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .recommendations {
    gap: 1rem;
  }

  .recommendation {
    padding: 1.5rem;
  }
}
