/*
Theme Name: Advizly
Theme URI: https://advizly.com
Author: Advizly
Author URI: https://advizly.com
Description: AI-powered business consulting platform theme - RTL Hebrew
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: advizly
*/

/* ========== CSS Variables ========== */
:root {
  --advizly-primary: #00C8C8;
  --advizly-accent-light: #17A16F;
  --advizly-deep: #1A2233;
  --advizly-white: #FFFFFF;
  --advizly-text-primary: #0D1B2A;
  --advizly-text-secondary: #4A5568;
  --advizly-border: #E2E8F0;
  --advizly-light-bg: #F0F3F7;
  --radius: 0.625rem;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  direction: rtl;
  color: var(--advizly-text-primary);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ========== Utilities ========== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-narrow, .container-wide { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container-narrow, .container-wide { padding: 0 2rem; }
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.section-padding {
  padding: 5rem 1rem;
}

.bg-white { background-color: #fff; }
.bg-light { background-color: var(--advizly-light-bg); }

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--advizly-text-primary);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .page-title { font-size: 3rem; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--advizly-text-secondary);
  line-height: 1.7;
}

.text-secondary {
  color: var(--advizly-text-secondary);
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.5;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  min-width: 200px;
}

.btn-primary {
  background: var(--advizly-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 107, 249, 0.2);
}

.btn-primary:hover {
  background: var(--advizly-deep);
  box-shadow: 0 6px 20px rgba(0, 107, 249, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--advizly-primary);
  border-color: var(--advizly-primary);
}

.btn-outline:hover {
  background: var(--advizly-light-bg);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--advizly-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-width: auto;
}

.btn svg, .btn .arrow-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.btn:hover .arrow-icon {
  transform: translateX(-4px);
}

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--advizly-border);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--advizly-primary);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-links { display: flex; }
}

.navbar-links a {
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
  transition: color 0.2s;
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--advizly-primary);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1.125rem;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--advizly-primary);
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .navbar-actions { display: flex; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.lang-toggle:hover {
  color: var(--advizly-primary);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--advizly-text-primary);
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--advizly-border);
  background: #fff;
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--advizly-text-secondary);
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--advizly-light-bg);
  color: var(--advizly-primary);
}

.mobile-menu-divider {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--advizly-border);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--advizly-light-bg), #fff);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 107, 249, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 107, 249, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.02;
}

.hero-blob {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(48px);
  opacity: 0.1;
  animation: blob 7s infinite;
}

.hero-blob-1 {
  top: 5rem;
  right: 5rem;
  background: var(--advizly-primary);
}

.hero-blob-2 {
  top: 10rem;
  left: 5rem;
  background: var(--advizly-accent-light);
  animation-delay: 2s;
}

.hero-blob-3 {
  bottom: -2rem;
  left: 50%;
  background: var(--advizly-deep);
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  padding: 5rem 1rem 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .hero-content { padding: 8rem 1rem 2rem; }
}

.hero-text {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--advizly-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.25rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-trust svg {
  width: 1rem;
  height: 1rem;
  color: #22c55e;
}

.hero-image {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

@media (min-width: 640px) {
  .hero-image { padding: 0 1.5rem 5rem; }
}

@media (min-width: 1024px) {
  .hero-image { padding: 0 2rem 5rem; }
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 768px) {
  .hero-image img { height: 500px; }
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

/* ========== Feature Cards ========== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--advizly-border);
  background: #fff;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 107, 249, 0.05);
  border-color: rgba(0, 107, 249, 0.3);
}

.feature-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--advizly-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s;
}

.feature-card:hover .feature-card-icon {
  background: var(--advizly-primary);
}

.feature-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--advizly-primary);
  transition: color 0.3s;
}

.feature-card:hover .feature-card-icon svg {
  color: #fff;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--advizly-text-secondary);
  line-height: 1.7;
}

/* ========== Differentiation Section ========== */
.diff-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--advizly-border);
  background: #fff;
  transition: all 0.3s;
}

.diff-card:hover {
  border-color: rgba(0, 107, 249, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.diff-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.diff-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.diff-item-bad {
  background: rgba(254, 226, 226, 0.5);
}

.diff-item-good {
  background: linear-gradient(135deg, var(--advizly-light-bg), #EFF6FF);
  border: 1px solid rgba(0, 107, 249, 0.2);
  padding: 1rem;
}

.diff-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.diff-icon-bad {
  background: #FEE2E2;
}

.diff-icon-bad svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #DC2626;
}

.diff-icon-good {
  background: var(--advizly-primary);
}

.diff-icon-good svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #fff;
}

.diff-item p.diff-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.diff-item .diff-label-advizly {
  font-weight: 700;
  color: var(--advizly-primary);
}

.diff-item p.diff-desc {
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
}

.diff-item-good p.diff-desc {
  color: var(--advizly-text-primary);
  font-weight: 500;
}

/* ========== Stage Journey ========== */
.stage-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--advizly-border);
  background: #fff;
  transition: all 0.3s;
}

.stage-card:hover {
  border-color: var(--advizly-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stage-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--advizly-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.stage-card:hover .stage-number {
  transform: scale(1.1);
}

.stage-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stage-card p {
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
}

/* ========== Testimonial Cards ========== */
.testimonial-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--advizly-border);
  background: #fff;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(0, 107, 249, 0.3);
}

.testimonial-quote-mark {
  color: var(--advizly-primary);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
  color: var(--advizly-text-primary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--advizly-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--advizly-primary);
  font-weight: 600;
}

.testimonial-author-name {
  font-weight: 600;
}

.testimonial-author-role {
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
}

/* ========== CTA Section ========== */
.cta-section {
  padding: 5rem 1rem;
}

.cta-section .container-narrow {
  text-align: center;
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: 2.25rem; }
}

.cta-section .cta-subtitle {
  font-size: 1.125rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

/* ========== Pricing Cards ========== */
.pricing-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.pricing-card-default {
  background: #fff;
  border: 2px solid var(--advizly-border);
}

.pricing-card-highlighted {
  background: var(--advizly-primary);
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -1rem;
  right: 50%;
  transform: translateX(50%);
  background: var(--advizly-accent-light);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card .pricing-desc {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-card-default .pricing-desc {
  color: var(--advizly-text-secondary);
}

.pricing-card-highlighted .pricing-desc {
  color: #BFDBFE;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-period {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-card-default .pricing-period {
  color: var(--advizly-text-secondary);
}

.pricing-card-highlighted .pricing-period {
  color: #BFDBFE;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-card-default .pricing-features li svg {
  color: var(--advizly-primary);
}

.pricing-card-highlighted .pricing-features li svg {
  color: #BFDBFE;
}

.pricing-features li span {
  font-size: 0.875rem;
}

.pricing-card-highlighted .pricing-features li span {
  color: #EFF6FF;
}

.pricing-card-default .pricing-features li span {
  color: var(--advizly-text-secondary);
}

.pricing-card .btn {
  width: 100%;
}

/* ========== FAQ Accordion ========== */
.faq-category {
  margin-bottom: 3rem;
}

.faq-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.faq-item {
  border: 1px solid var(--advizly-border);
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  background: #fff;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(0, 107, 249, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--advizly-text-primary);
  font-family: inherit;
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--advizly-text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--advizly-text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========== Pricing FAQ (static) ========== */
.pricing-faq-item {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--advizly-border);
  margin-bottom: 1.5rem;
}

.pricing-faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-faq-item p {
  color: var(--advizly-text-secondary);
}

/* ========== Process Steps (How It Works) ========== */
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .process-step { grid-template-columns: 1fr 1fr; }
}

.process-step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--advizly-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.process-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.process-step .step-desc {
  font-size: 1.125rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 1.5rem;
}

.process-step-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--advizly-text-secondary);
}

.process-step-details li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--advizly-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.process-visual {
  position: relative;
  padding: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--advizly-light-bg), #fff);
  border: 1px solid var(--advizly-border);
  text-align: center;
}

.process-visual .icon-bg {
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  color: var(--advizly-primary);
  opacity: 0.2;
}

.process-visual .icon-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  color: var(--advizly-primary);
}

/* ========== Why It Works ========== */
.why-works-item {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.why-works-item strong {
  color: var(--advizly-text-primary);
}

/* ========== Blog Cards ========== */
.blog-categories {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.blog-categories::-webkit-scrollbar {
  display: none;
}

.blog-cat-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
}

.blog-cat-btn.active {
  background: var(--advizly-primary);
  color: #fff;
}

.blog-cat-btn:not(.active) {
  background: #F3F4F6;
  color: var(--advizly-text-secondary);
}

.blog-cat-btn:not(.active):hover {
  background: #E5E7EB;
}

.blog-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--advizly-border);
  background: #fff;
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 107, 249, 0.3);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--advizly-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 0.75rem;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-meta svg {
  width: 1rem;
  height: 1rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--advizly-primary);
}

.blog-card .blog-excerpt {
  color: var(--advizly-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  color: var(--advizly-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.blog-card:hover .read-more {
  gap: 0.75rem;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* ========== Newsletter Section ========== */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--advizly-border);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--advizly-primary);
  box-shadow: 0 0 0 3px rgba(0, 107, 249, 0.1);
}

/* ========== Single Post / Blog Article ========== */
.breadcrumb {
  background: var(--advizly-light-bg);
  padding: 1rem;
  border-bottom: 1px solid var(--advizly-border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--advizly-text-secondary);
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--advizly-primary);
}

.breadcrumb svg {
  width: 1rem;
  height: 1rem;
  transform: rotate(180deg);
}

.article-hero {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem 0;
}

@media (min-width: 768px) {
  .article-hero { padding: 4rem 1rem 0; }
}

.article-category-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--advizly-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .article-title { font-size: 3rem; }
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--advizly-text-secondary);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--advizly-border);
  flex-wrap: wrap;
}

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

.article-meta-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--advizly-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

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

.article-meta svg {
  width: 1rem;
  height: 1rem;
}

.article-featured-image {
  max-width: 72rem;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.article-featured-image .img-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 768px) {
  .article-featured-image img { height: 500px; }
}

/* Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--advizly-text-primary);
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

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

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content strong {
  font-weight: 600;
}

.article-content blockquote {
  font-style: italic;
  margin: 2rem 0;
}

.article-content figcaption {
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-main-layout {
  display: flex;
  gap: 3rem;
  position: relative;
}

.article-body {
  flex: 1;
  max-width: 48rem;
}

.article-sidebar {
  display: none;
  width: 20rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .article-sidebar { display: block; }
}

.article-sidebar-sticky {
  position: sticky;
  top: 6rem;
}

.article-sidebar-box {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--advizly-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.article-sidebar-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.toc-link {
  display: block;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-right: 2px solid transparent;
  color: var(--advizly-text-secondary);
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.toc-link:hover {
  color: var(--advizly-primary);
  border-right-color: var(--advizly-border);
}

.toc-link.active {
  color: var(--advizly-primary);
  font-weight: 600;
  border-right-color: var(--advizly-primary);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--advizly-border);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--advizly-primary);
  background: var(--advizly-light-bg);
}

.share-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--advizly-text-secondary);
  transition: color 0.2s;
}

.share-btn:hover svg {
  color: var(--advizly-primary);
}

/* Key Takeaway Box */
.key-takeaway {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--advizly-light-bg), #EFF6FF);
  border-right: 4px solid var(--advizly-primary);
}

.key-takeaway h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--advizly-primary);
  margin-bottom: 1rem;
}

/* Quote Block */
.article-quote {
  margin: 3rem 0;
  padding: 2rem;
  padding-right: 2rem;
  border-right: 4px solid var(--advizly-primary);
  background: rgba(240, 246, 255, 0.3);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.article-quote p {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-quote footer {
  color: var(--advizly-text-secondary);
  font-weight: 500;
}

/* Implementation Steps */
.impl-steps {
  background: #fff;
  border: 2px solid var(--advizly-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.impl-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.impl-step:last-child {
  margin-bottom: 0;
}

.impl-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--advizly-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.impl-step h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.impl-step p {
  color: var(--advizly-text-secondary);
  font-size: 0.9375rem;
}

/* Article End CTA */
.article-end-cta {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--advizly-primary), var(--advizly-deep));
  color: #fff;
}

.article-end-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.article-end-cta p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Related Articles */
.related-articles {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid var(--advizly-border);
}

.related-articles h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Article Figure */
.article-figure {
  margin: 3rem 0;
}

.article-figure .img-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.article-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--advizly-text-secondary);
  font-style: italic;
  font-size: 0.875rem;
}

/* Bullet list in article */
.article-bullet-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.article-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--advizly-primary);
  flex-shrink: 0;
  margin-top: 0.625rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--advizly-text-primary);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--advizly-accent-light);
  margin-bottom: 1rem;
}

.footer-brand-desc {
  color: #9CA3AF;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #9CA3AF;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--advizly-accent-light);
}

.footer-contact {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--advizly-primary);
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--advizly-light-bg), #fff);
  padding: 5rem 1rem;
}

.page-hero .container-narrow {
  text-align: center;
}

/* ========== About Page ========== */
.about-image {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-image .img-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 768px) {
  .about-image img { height: 500px; }
}

.story-content {
  max-width: 56rem;
  margin: 0 auto;
}

.story-content p {
  color: var(--advizly-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ========== SVG Icons ========== */
.icon { display: inline-block; vertical-align: middle; }

/* Checkmark icon */
.check-icon { color: var(--advizly-primary); }

/* ========== Post Navigation ========== */
.post-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--advizly-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--advizly-border);
  transition: all 0.3s;
}

.post-nav a:hover {
  border-color: var(--advizly-primary);
  background: var(--advizly-light-bg);
}

.post-nav .nav-label {
  font-size: 0.75rem;
  color: var(--advizly-text-secondary);
  margin-bottom: 0.25rem;
}

.post-nav .nav-title {
  font-weight: 600;
  transition: color 0.3s;
}

.post-nav a:hover .nav-title {
  color: var(--advizly-primary);
}

.post-nav svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--advizly-primary);
}

/* ========== WordPress defaults ========== */
.alignleft { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.alignright { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--advizly-text-secondary); margin-top: 0.5rem; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========== Grid helper for blog 3-col ========== */
.grid-3-lg {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3-lg { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3-lg { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Hero Visual Card ===== */
.hero-visual-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,107,249,0.12);
    padding: 1.75rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--advizly-border);
}
.hero-visual-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--advizly-border);
}
.hero-visual-dot { width:10px; height:10px; border-radius:50%; }
.dot-blue { background: var(--advizly-primary); }
.dot-cyan { background: var(--advizly-accent-light); }
.dot-deep { background: var(--advizly-deep); }
.hero-visual-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--advizly-text-secondary);
    margin-right: auto;
}
.hero-visual-stages { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-stage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-stage-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--advizly-light-bg);
    color: var(--advizly-primary);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-stage-row.active .hero-stage-num {
    background: var(--advizly-primary);
    color: white;
}
.hero-stage-bar {
    flex: 1;
    height: 6px;
    background: var(--advizly-light-bg);
    border-radius: 3px;
    overflow: hidden;
}
.hero-stage-fill {
    height: 100%;
    background: linear-gradient(to left, var(--advizly-primary), var(--advizly-accent-light));
    border-radius: 3px;
}
.hero-stage-row.active .hero-stage-fill {
    background: linear-gradient(to left, var(--advizly-primary), var(--advizly-deep));
}
.hero-stage-label {
    font-size: 0.75rem;
    color: var(--advizly-text-secondary);
    width: 55px;
    text-align: right;
    flex-shrink: 0;
}
.hero-stage-row.active .hero-stage-label {
    color: var(--advizly-primary);
    font-weight: 600;
}

/* ===== Logo ===== */
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* ===== Ghost Button (כניסה) ===== */
.btn-ghost {
    background: transparent;
    color: var(--advizly-text-secondary);
    border: 1px solid transparent;
    padding: 0.4rem 0.9rem;
    border-radius: var(--advizly-radius, 0.625rem);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-ghost:hover {
    color: var(--advizly-primary);
    background: var(--advizly-light-bg);
}
