/* ===================================================
   Anupam Plastics & Allied Industries — Blog Styles
   Color Scheme: Navy Blue #1B3A6B | Orange #E07B00
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --primary:      #1B3A6B;
  --primary-dark: #122952;
  --primary-light:#2a549e;
  --accent:       #E07B00;
  --accent-dark:  #b86200;
  --accent-light: #f9a23a;
  --bg:           #F4F4EF;
  --bg-white:     #FFFFFF;
  --bg-light:     #EEF2F9;
  --text-dark:    #1A1A1A;
  --text-mid:     #444444;
  --text-light:   #777777;
  --border:       #D8D8D0;
  --border-light: #EBEBEB;
  --success:      #1e6f3f;
  --tag-bg:       #E6EDF8;
  --tag-text:     #1B3A6B;
  --shadow:       0 2px 12px rgba(27,58,107,0.08);
  --shadow-hover: 0 6px 24px rgba(27,58,107,0.14);
  --radius:       6px;
  --radius-lg:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--primary-dark);
  color: #cfd8ec;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 2px solid var(--accent);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd8ec; text-decoration: none; }
.topbar a:hover { color: var(--accent-light); }

/* ── NAVBAR ── */
nav.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
}
.nav-logo span { color: var(--accent-light); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}
.nav-links li a {
  display: block;
  color: #d0dcf0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 22px 14px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { background: var(--primary-dark); color: #fff; }
.nav-links li a.btn-quote {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-left: 8px;
}
.nav-links li a.btn-quote:hover { background: var(--accent-dark); }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--primary-light); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .sep { color: var(--border); }

/* ── HERO ── */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 54px 24px 50px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(224,123,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.hero-meta {
  font-size: 13px;
  color: #a8bdd8;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ── MAIN LAYOUT ── */
.page-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .page-body { grid-template-columns: 1fr; }
}

/* ── ARTICLE ── */
article.blog-article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
@media (max-width: 600px) {
  article.blog-article { padding: 24px 18px; }
}
.blog-article h2 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-light);
}
.blog-article h2:first-of-type { margin-top: 0; }
.blog-article h3 {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 10px;
}
.blog-article p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 16px;
}
.blog-article ul, .blog-article ol {
  margin: 12px 0 20px 22px;
  color: var(--text-mid);
}
.blog-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.blog-article a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article a:hover { color: var(--accent); }
.blog-article strong { color: var(--text-dark); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.highlight-box p { margin: 0; font-size: 15px; color: var(--primary-dark); }

/* ── SPEC TABLE ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.spec-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}
.spec-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid);
}
.spec-table tr:nth-child(even) td { background: var(--bg-light); }
.spec-table tr:hover td { background: #e8edf6; }

/* ── FAQ SECTION ── */
.faq-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-top: 28px;
}
@media (max-width: 600px) { .faq-section { padding: 24px 18px; } }
.faq-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 15.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-q .arrow {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
  padding-top: 10px;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  margin-top: 28px;
  box-shadow: var(--shadow-hover);
}
.cta-banner h3 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.cta-banner p { font-size: 14.5px; color: #a8bdd8; margin-bottom: 18px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .18s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.sidebar-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-light);
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--primary-light); text-decoration: none; font-weight: 500; }
.sidebar-card ul li a:hover { color: var(--accent); text-decoration: underline; }
.contact-info { font-size: 14px; color: var(--text-mid); line-height: 1.9; }
.contact-info strong { color: var(--primary-dark); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  text-decoration: none;
}
.tag:hover { background: var(--primary); color: #fff; }

/* ── RELATED POSTS ── */
.related-posts {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  margin-top: 28px;
}
@media (max-width: 600px) { .related-posts { padding: 24px 18px; } }
.related-posts h2 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  transition: box-shadow .18s, border-color .18s, transform .15s;
  display: block;
}
.related-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-light); transform: translateY(-2px); }
.related-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.related-title { font-size: 14px; font-weight: 600; color: var(--primary-dark); line-height: 1.4; }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--primary-dark);
  color: #a8bdd8;
  padding: 48px 24px 24px;
  margin-top: 40px;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: 'Merriweather', serif;
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; font-size: 13px; }
.footer-col ul li a { color: #a8bdd8; text-decoration: none; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a90af;
}

/* ── BLOG INDEX PAGE ── */
.blog-index-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 60px 24px 54px;
  text-align: center;
}
.blog-index-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 12px;
}
.blog-index-hero p {
  font-size: 17px;
  color: #a8bdd8;
  max-width: 580px;
  margin: 0 auto;
}
.blog-index-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.section-heading {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--primary);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--bg-light);
  border-radius: 2px;
}
.section-heading:first-of-type { margin-top: 0; }
.cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .18s, border-color .18s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary-light); }
.card-color-bar { height: 5px; background: var(--primary); }
.card-color-bar.accent { background: var(--accent); }
.card-color-bar.teal   { background: #0e7c6a; }
.card-color-bar.coral  { background: #c94f28; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
}
.card-cat.geo { color: #0e7c6a; }
.card-cat.industry { color: #c94f28; }
.card-cat.edu { color: var(--primary); }
.card-title {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-light);
}
.card-read { color: var(--primary-light); font-weight: 600; font-size: 13px; }
.blog-card:hover .card-read { color: var(--accent); }

/* ── SHARE BUTTONS ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.share-bar span { font-size: 13px; font-weight: 600; color: var(--text-light); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .18s;
}
.share-btn:hover { opacity: .85; }
.share-btn.linkedin { background: #0077b5; color: #fff; }
.share-btn.twitter  { background: #1DA1F2; color: #fff; }
.share-btn.whatsapp { background: #25D366; color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .page-body { padding: 24px 16px 40px; }
  .blog-index-body { padding: 28px 16px 40px; }
}
