/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme for Shri Girraj Ji Polymers
 * Author: Accelaronix Technologies
 * Template: blocksy
 * Text Domain: blocksy
 * Version: 1.0.0
 */

/* Blocksy Theme Palette & Hover Overrides to ensure brand green */
:root {
  --theme-palette-color-1: #4FB300 !important;
  --theme-palette-color-2: #22c55e !important;
  --theme-link-hover-color: #4FB300 !important;
  --theme-button-hover-background: #4FB300 !important;
  --theme-button-hover-text-color: #ffffff !important;
}

a:hover {
  color: #4FB300;
}

/* Specific buttons hover only (exclude accordion & utility buttons) */
.btn-primary:hover,
.btn-secondary:hover,
.btn-catalogue:hover,
.btn-quote:hover,
.btn-call:hover,
.btn-products-primary:hover,
.btn-products-secondary:hover,
.btn-sample-filled:hover,
.button:not(.faq-trigger):hover,
input[type="submit"]:hover {
  background-color: #4FB300 !important;
  color: #ffffff !important;
}

/* Table of Contents Sticky Fix for Single Blog Page */
html,
body,
body.single,
body.single-post,
.single-post #main-container,
.single-post #primary,
.single-post .site-main,
.single-post .entry-content,
.single-post article,
.single-post .site-content,
.blog-detail-section,
.blog-detail-grid {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.blog-detail-grid {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 64px !important;
  align-items: start !important;
  position: relative !important;
}

.blog-toc-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 110px !important;
  align-self: start !important;
  height: -webkit-fit-content !important;
  height: -moz-fit-content !important;
  height: fit-content !important;
  max-height: calc(100vh - 130px) !important;
  z-index: 30 !important;
}

.toc-card {
  background-color: #FAFBF9;
  border: 1px solid #E8E8E5;
  border-radius: 20px;
  padding: 24px;
}

.blog-card {
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.blog-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
  border-color: #D1D9CD !important;
}

.blog-card:hover .blog-card-title a,
.blog-card:hover .blog-card-title {
  color: #4FB300 !important;
}


/* Bulletproof FAQ Styles - 100% Matching Static Site */
.faqs-section .faq-trigger,
.faqs-section button.faq-trigger,
.faqs-container .faq-trigger,
.faqs-container button.faq-trigger,
.faq-item .faq-trigger,
.faq-item button.faq-trigger,
button.faq-trigger,
.faq-trigger {
  all: unset !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 22px 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #111111 !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.faqs-section .faq-trigger:hover,
.faqs-section button.faq-trigger:hover,
.faqs-section .faq-trigger:focus,
.faqs-section button.faq-trigger:focus,
.faqs-section .faq-trigger:active,
.faqs-section button.faq-trigger:active,
.faq-item .faq-trigger:hover,
.faq-item button.faq-trigger:hover,
.faq-item .faq-trigger:focus,
.faq-item button.faq-trigger:focus,
.faq-item .faq-trigger:active,
.faq-item button.faq-trigger:active,
.faq-item.active .faq-trigger,
.faq-item.active button.faq-trigger,
.faq-item.active .faq-trigger:hover,
.faq-item.active button.faq-trigger:hover,
.faq-item.active .faq-trigger:focus,
.faq-item.active button.faq-trigger:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.faq-trigger span,
button.faq-trigger span,
.faq-item .faq-trigger span {
  color: #111111 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  transition: color 0.2s ease !important;
}

.faq-trigger:hover span,
button.faq-trigger:hover span,
.faq-item .faq-trigger:hover span,
.faq-item.active .faq-trigger:hover span {
  color: #4FB300 !important;
}

/* FAQ toggle button (+ / - circle) */
.faq-toggle-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid #E5E7EB !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  margin-left: 20px !important;
}

.faq-trigger:hover .faq-toggle-btn,
button.faq-trigger:hover .faq-toggle-btn {
  border-color: #4FB300 !important;
  color: #4FB300 !important;
  background-color: #f0fdf4 !important;
}

.faq-toggle-btn .plus {
  display: inline-block !important;
  line-height: 1 !important;
}

.faq-toggle-btn .minus {
  display: none !important;
  line-height: 1 !important;
  font-size: 11px !important;
}

.faq-item.active .faq-toggle-btn {
  background-color: #F9FAFB !important;
  border-color: #D1D5DB !important;
  color: #111111 !important;
}

.faq-item.active .faq-trigger:hover .faq-toggle-btn,
.faq-item.active button.faq-trigger:hover .faq-toggle-btn {
  border-color: #4FB300 !important;
  color: #4FB300 !important;
  background-color: #f0fdf4 !important;
}

.faq-item.active .faq-toggle-btn .plus {
  display: none !important;
}

.faq-item.active .faq-toggle-btn .minus {
  display: inline-block !important;
}
