/* ========== POST CONTENT STYLES ========== */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 12px;
  line-height: 1.3;
}
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 18px; }
.post-content h4 { font-size: 15px; }
.post-content p { margin-bottom: 16px; }
.post-content ul,
.post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.7; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content a:hover { color: var(--red-dark); }
.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  background: var(--light);
  margin: 20px 0;
  font-style: italic;
  font-size: 15px;
  color: #555;
}
.post-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 12px 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}
.post-content table th,
.post-content table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
.post-content table th {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}
.post-content table tr:nth-child(even) { background: var(--light); }
.post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 13px;
  color: var(--red);
}
.post-content pre {
  background: var(--dark);
  color: #eee;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  margin: 16px 0;
}
.post-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 28px 0;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: #aaa;
  cursor: default;
}

/* ========== WIDGET STYLES ========== */
.widget { margin-bottom: 24px; }
.widget-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.widget ul li a { color: #444; transition: color 0.2s; }
.widget ul li a:hover { color: var(--red); }
.widget ul li .count {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  color: #888;
}

/* ========== HEADER SCROLL EFFECT ========== */
.site-header.scrolled {
  box-shadow: 0 3px 20px rgba(0,0,0,0.14);
}

/* ========== WHATSAPP FLOAT PULSE ========== */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.float-whatsapp {
  animation: wa-pulse 2.5s infinite;
}

/* ========== FORM SPINNER ========== */
.fa-spinner { animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform:rotate(0deg); } 100% { transform:rotate(360deg); } }

/* ========== CATEGORY CARDS HOVER ========== */
.cat-card:hover .cat-info h3 { color: var(--red); }

/* ========== SEARCH FORM ========== */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.search-form input[type="search"]:focus { border-color: var(--red); }
.search-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--red-dark); }

/* ========== BREADCRUMB ========== */
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: #666; font-size: 10px; }

/* ========== STICKY PRODUCT GALLERY ========== */
@media (min-width: 769px) {
  .product-gallery { position: sticky; top: 88px; }
}

/* ========== PRINT ========== */
@media print {
  .top-bar, .site-header, .float-whatsapp,
  #rfq-modal, .cta-banner, .site-footer { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .container { max-width: 100%; padding: 0; }
}

/* ========== ACCESSIBILITY ========== */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== INDUSTRIES GRID – MOBILE ========== */
@media (max-width: 768px) {
  .about-intro-grid .about-image { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .hero-content h1 { font-size: 22px; }
  .hero-badges { gap: 6px; }
  .hero-badge { padding: 6px 10px; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; row-gap: 12px; }
}

/* ========== CERTIFICATES PAGE – RESPONSIVE ========== */
@media (max-width: 1024px) {
  .certs-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .certs-grid-3 { grid-template-columns: 1fr !important; }
  .cert-reg-strip { flex-direction: column; align-items: flex-start !important; gap: 16px !important; }
  .cert-reg-strip > div { width: 100%; display: flex; flex-wrap: wrap; gap: 20px; }
}
