/*
Theme Name: Farzad Theme
Theme URI: https://farzadzamanpour.com
Author: Farzad Zamanpour
Author URI: https://farzadzamanpour.com
Description: Custom personal branding theme for Farzad Zamanpour - Growth Marketer
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farzad-theme
Tags: personal, portfolio, marketing, business
*/

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
html body {
    font-family: 'Manrope', sans-serif !important;
    color: #111827 !important;
    background: #ffffff !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    margin: 0 !important;
    padding: 0 !important;
}

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

html body img {
    max-width: 100%;
    height: auto;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
html body h1,
html body h1.wp-block-heading {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #111827 !important;
    font-size: 3rem !important;
    margin-top: 0 !important;
}
html body h2,
html body h2.wp-block-heading {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #111827 !important;
    font-size: 2.2rem !important;
    margin-top: 0 !important;
}
html body h3 {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    color: #111827 !important;
    font-size: 1.1rem !important;
    margin-top: 0 !important;
}
html body p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 0;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
html body a.btn-primary {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
    font-family: 'Manrope', sans-serif !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    line-height: 1.4 !important;
}
html body a.btn-primary:hover {
    background-color: #27ae60 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4) !important;
    color: #ffffff !important;
}
html body a.btn-primary:active {
    transform: translateY(0) !important;
}

html body a.btn-outline {
    background-color: transparent !important;
    color: #111827 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    border: 2px solid #e5e7eb !important;
    cursor: pointer !important;
    font-family: 'Manrope', sans-serif !important;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
    line-height: 1.4 !important;
}
html body a.btn-outline:hover {
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
    transform: translateY(-2px) !important;
}

html body a.btn-outline-white {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    border: 2px solid #4b5563 !important;
    cursor: pointer !important;
    font-family: 'Manrope', sans-serif !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease !important;
    line-height: 1.4 !important;
}
html body a.btn-outline-white:hover {
    border-color: #ffffff !important;
    background-color: rgba(255,255,255,0.08) !important;
    transform: translateY(-2px) !important;
}

html body a.btn-white {
    background-color: #ffffff !important;
    color: #2ecc71 !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    border: none !important;
    font-family: 'Manrope', sans-serif !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    line-height: 1.4 !important;
}
html body a.btn-white:hover {
    background-color: #f0fdf4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

/* ─────────────────────────────────────────────
   LINKS
───────────────────────────────────────────── */
html body a.link-green {
    color: #2ecc71 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}
html body a.link-green:hover {
    color: #27ae60 !important;
}

/* ─────────────────────────────────────────────
   BADGES & LABELS
───────────────────────────────────────────── */
html body .badge {
    display: inline-block !important;
    background: #f0fdf4 !important;
    color: #2ecc71 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border: 1px solid #bbf7d0 !important;
    margin-bottom: 20px !important;
}

html body .section-label {
    display: block !important;
    color: #2ecc71 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
}

html body .skill-tag {
    background: #f0fdf4 !important;
    color: #2ecc71 !important;
    padding: 10px 22px !important;
    border-radius: 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1px solid #bbf7d0 !important;
    display: inline-block !important;
    cursor: default !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}
html body .skill-tag:hover {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ─────────────────────────────────────────────
   STATS ROW
───────────────────────────────────────────── */
html body .stats-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    margin-top: 40px !important;
    flex-wrap: wrap !important;
}
html body .stat-number {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}
html body .stat-label {
    font-size: 0.8rem !important;
    color: #9ca3af !important;
}

/* ─────────────────────────────────────────────
   HOMEPAGE — HERO GRID
───────────────────────────────────────────── */
html body .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 64px !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ─────────────────────────────────────────────
   GROWTH FOCUS BADGE
───────────────────────────────────────────── */
html body .growth-badge {
    position: absolute !important;
    bottom: 24px !important;
    left: -20px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 2 !important;
}
html body .growth-badge-title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}
html body .growth-badge-sub {
    font-size: 0.7rem !important;
    color: #9ca3af !important;
}

/* ─────────────────────────────────────────────
   HOMEPAGE — SERVICES GRID & CARDS
───────────────────────────────────────────── */
html body .services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
}
html body .service-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 24px !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease !important;
}
html body .service-card:hover {
    box-shadow: 0 8px 32px rgba(46,204,113,0.12) !important;
    transform: translateY(-4px) !important;
    border-color: #bbf7d0 !important;
}
html body .service-card h3 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 10px !important;
}
html body .service-card p {
    font-size: 0.82rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}
html body .service-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
html body .service-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #2ecc71 !important;
}

/* ─────────────────────────────────────────────
   HOMEPAGE — TESTIMONIALS
───────────────────────────────────────────── */
html body .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
html body .testimonial-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 28px !important;
    border: 1px solid #e5e7eb !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}
html body .testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
    transform: translateY(-4px) !important;
}
html body .testimonial-stars {
    color: #f59e0b !important;
    font-size: 1rem !important;
    margin-bottom: 16px !important;
    letter-spacing: 2px !important;
}
html body .testimonial-quote {
    font-size: 0.9rem !important;
    color: #374151 !important;
    line-height: 1.7 !important;
    font-style: italic !important;
    margin-bottom: 20px !important;
}
html body .testimonial-author {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
html body .testimonial-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #2ecc71 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}
html body .testimonial-name {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 2px !important;
}
html body .testimonial-role {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

/* ─────────────────────────────────────────────
   HOMEPAGE — FAQ
───────────────────────────────────────────── */
html body .faq-item {
    border-bottom: 1px solid #e5e7eb !important;
}
html body .faq-item summary {
    padding: 20px 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: color 0.2s ease !important;
}
html body .faq-item summary::-webkit-details-marker { display: none !important; }
html body .faq-item summary:hover { color: #2ecc71 !important; }
html body .faq-item .faq-icon {
    font-size: 1.1rem !important;
    color: #9ca3af !important;
    transition: transform 0.25s ease, color 0.2s ease !important;
    flex-shrink: 0 !important;
}
html body .faq-item[open] summary .faq-icon {
    transform: rotate(180deg) !important;
    color: #2ecc71 !important;
}
html body .faq-item[open] summary { color: #2ecc71 !important; }
html body .faq-answer {
    padding: 0 0 20px !important;
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    line-height: 1.7 !important;
}

/* ─────────────────────────────────────────────
   BTN GROUP
───────────────────────────────────────────── */
html body .btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* ─────────────────────────────────────────────
   ABOUT PAGE — GRIDS
───────────────────────────────────────────── */
html body .about-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 64px !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
html body .about-journey-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 64px !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ─────────────────────────────────────────────
   CHECKLIST
───────────────────────────────────────────── */
html body .checklist-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
html body .checklist-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: #f0fdf4 !important;
    border-radius: 50% !important;
    color: #2ecc71 !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}
html body .checklist-text {
    font-size: 0.9rem !important;
    color: #374151 !important;
    line-height: 1.5 !important;
}

/* ─────────────────────────────────────────────
   ABOUT PAGE — CARDS
───────────────────────────────────────────── */
html body .education-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}
html body .values-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}
html body .value-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    text-align: center !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}
html body .value-card:hover {
    box-shadow: 0 8px 24px rgba(46,204,113,0.10) !important;
    transform: translateY(-4px) !important;
}
html body .value-icon {
    font-size: 1.8rem !important;
    margin-bottom: 14px !important;
    display: block !important;
}
html body .focus-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 36px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}

/* ─────────────────────────────────────────────
   WORDPRESS CORE OVERRIDES
───────────────────────────────────────────── */
.wp-block-group, .wp-block-columns, .wp-block-column { margin: 0; }
.entry-content, .wp-block-post-content { max-width: 100% !important; }
.admin-bar .site-header { top: 32px; }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET (max 1024px)
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    html body h1 { font-size: 2.4rem !important; }
    html body h2 { font-size: 1.8rem !important; }
    html body .hero-grid,
    html body .about-hero-grid,
    html body .about-journey-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    html body .services-grid { grid-template-columns: 1fr 1fr !important; }
    html body .values-grid   { grid-template-columns: 1fr 1fr !important; }
    html body .growth-badge  { left: 0 !important; bottom: 16px !important; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE (max 768px)
───────────────────────────────────────────── */
@media (max-width: 768px) {
    html body h1 { font-size: 2rem !important; }
    html body h2 { font-size: 1.6rem !important; }
    html body .services-grid      { grid-template-columns: 1fr !important; }
    html body .testimonials-grid  { grid-template-columns: 1fr !important; }
    html body .values-grid        { grid-template-columns: 1fr 1fr !important; }
    html body .stats-row          { gap: 24px !important; }
    html body .btn-group          { flex-direction: column !important; align-items: flex-start !important; }
    section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (max 480px)
───────────────────────────────────────────── */
@media (max-width: 480px) {
    html body h1 { font-size: 1.75rem !important; }
    html body .values-grid { grid-template-columns: 1fr !important; }
    html body a.btn-primary,
    html body a.btn-outline,
    html body a.btn-outline-white,
    html body a.btn-white { width: 100% !important; text-align: center !important; }
    html body .stats-row { gap: 20px !important; }
}


/* ─────────────────────────────────────────────
   SINGLE POST CONTENT TYPOGRAPHY
───────────────────────────────────────────── */
html body .post-content {
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.85 !important;
}
html body .post-content > p {
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.85 !important;
    margin-bottom: 24px !important;
}
html body .post-content h2 {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 48px 0 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f3f4f6 !important;
    font-family: 'Manrope', sans-serif !important;
    line-height: 1.25 !important;
}
html body .post-content h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 36px 0 12px !important;
    font-family: 'Manrope', sans-serif !important;
}
html body .post-content h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 28px 0 8px !important;
    font-family: 'Manrope', sans-serif !important;
}
html body .post-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
}
html body .post-content ul li {
    position: relative !important;
    padding-left: 22px !important;
    margin-bottom: 10px !important;
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.75 !important;
}
html body .post-content ul li::before {
    content: '•' !important;
    position: absolute !important;
    left: 0 !important;
    color: #2ecc71 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}
html body .post-content ol {
    padding-left: 24px !important;
    margin: 0 0 28px !important;
}
html body .post-content ol li {
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.75 !important;
    margin-bottom: 10px !important;
    padding-left: 6px !important;
}
html body .post-content ol li::marker {
    color: #2ecc71 !important;
    font-weight: 700 !important;
}
html body .post-content a {
    color: #2ecc71 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
html body .post-content a:hover {
    color: #27ae60 !important;
}
html body .post-content strong,
html body .post-content b {
    color: #111827 !important;
    font-weight: 700 !important;
}
html body .post-content em { font-style: italic !important; }
html body .post-content blockquote {
    border-left: 4px solid #2ecc71 !important;
    padding: 16px 24px !important;
    margin: 32px 0 !important;
    background: #f9fafb !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #374151 !important;
}
html body .post-content blockquote p { margin-bottom: 0 !important; }
html body .post-content img {
    width: 100% !important;
    border-radius: 12px !important;
    margin: 28px 0 !important;
    display: block !important;
}
html body .post-content code {
    background: #f3f4f6 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    color: #111827 !important;
    font-family: monospace !important;
}
html body .post-content pre {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    padding: 24px !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    margin: 28px 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
}
html body .post-content hr {
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 40px 0 !important;
}

/* ─────────────────────────────────────────────
   BLOG PAGINATION
───────────────────────────────────────────── */
html body .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 3px !important;
    transition: all 0.2s ease !important;
    font-family: 'Manrope', sans-serif !important;
}
html body .page-numbers.current,
html body .page-numbers:hover {
    background: #2ecc71 !important;
    color: #ffffff !important;
    border-color: #2ecc71 !important;
}

/* ─────────────────────────────────────────────
   HIDE UNWANTED WORDPRESS POST META
───────────────────────────────────────────── */
html body .post-meta,
html body .entry-meta,
html body .byline,
html body .posted-on,
html body .cat-links,
html body .tags-links,
html body .entry-footer,
html body .breadcrumb,
html body nav.breadcrumb,
html body .breadcrumbs,
html body .wp-block-post-author,
html body .post-author {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE — All pages
   Targets all inline-styled sections via parent selectors
════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ─── GLOBAL ─── */
    html body {
        overflow-x: hidden !important;
    }

    html body main,
    html body section,
    html body .wp-block-group,
    html body .wp-block-html {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* ─── FORCE ALL GRIDS TO SINGLE COLUMN ─── */
    html body [style*="grid-template-columns: 1fr 1fr"],
    html body [style*="grid-template-columns:1fr 1fr"],
    html body [style*="grid-template-columns: 1fr 1.4fr"],
    html body [style*="grid-template-columns:1fr 1.4fr"],
    html body [style*="grid-template-columns: repeat(2"],
    html body [style*="grid-template-columns:repeat(2"],
    html body [style*="grid-template-columns: repeat(3"],
    html body [style*="grid-template-columns:repeat(3"],
    html body [style*="grid-template-columns: repeat(4"],
    html body [style*="grid-template-columns:repeat(4"],
    html body [style*="grid-template-columns: 1fr 1fr 1fr"],
    html body [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ─── HERO SECTION ─── */
    html body section [style*="display:grid"][style*="gap:64px"],
    html body section [style*="display: grid"][style*="gap: 64px"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    html body h1[style*="font-size:3"],
    html body h1[style*="font-size: 3"] {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    html body h1[style*="font-size:2.8"],
    html body h1[style*="font-size: 2.8"] {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
    }

    html body h2[style*="font-size:2"],
    html body h2[style*="font-size: 2"] {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    /* ─── HERO IMAGE — move below text on mobile ─── */
    html body section > div > div:last-child [style*="border-radius:16px"][style*="height:340px"],
    html body section > div > div:last-child [style*="border-radius: 16px"][style*="height: 340px"] {
        height: 220px !important;
    }

    /* ─── STATS ROW ─── */
    html body [style*="display:flex"][style*="gap:48px"],
    html body [style*="display: flex"][style*="gap: 48px"] {
        flex-wrap: wrap !important;
        gap: 24px !important;
        justify-content: center !important;
    }

    html body [style*="display:flex"][style*="gap:40px"],
    html body [style*="display: flex"][style*="gap: 40px"] {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

    html body [style*="display:flex"][style*="gap:32px"],
    html body [style*="display: flex"][style*="gap: 32px"] {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }

    /* ─── ALL FLEX ROWS → WRAP ─── */
    html body [style*="display:flex"],
    html body [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* ─── SERVICES PRICING CARDS ─── */
    html body [style*="display:flex"][style*="justify-content:space-between"],
    html body [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* ─── SKILLS / TAG PILLS ─── */
    html body [style*="display:flex"][style*="flex-wrap:wrap"],
    html body [style*="display: flex"][style*="flex-wrap: wrap"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* ─── TESTIMONIALS ─── */
    html body [style*="grid-template-columns"][style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    /* ─── SECTION PADDING ─── */
    html body section[style*="padding:80px"],
    html body section[style*="padding: 80px"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    html body section[style*="padding:72px"],
    html body section[style*="padding: 72px"] {
        padding-top: 48px !important;
        padding-bottom: 36px !important;
    }

    html body section[style*="padding:64px"],
    html body section[style*="padding: 64px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* ─── INNER CONTAINERS ─── */
    html body [style*="max-width:1200px"],
    html body [style*="max-width: 1200px"],
    html body [style*="max-width:1100px"],
    html body [style*="max-width: 1100px"],
    html body [style*="max-width:1000px"],
    html body [style*="max-width: 1000px"],
    html body [style*="max-width:900px"],
    html body [style*="max-width: 900px"],
    html body [style*="max-width:780px"],
    html body [style*="max-width: 780px"],
    html body [style*="max-width:760px"],
    html body [style*="max-width: 760px"] {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* ─── CTA BUTTONS ROW ─── */
    html body [style*="display:flex"][style*="gap:16px"] a,
    html body [style*="display: flex"][style*="gap: 16px"] a {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* ─── FOOTER ─── */
    html body footer [style*="grid-template-columns"],
    html body .site-footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    html body footer,
    html body .site-footer {
        padding: 40px 20px !important;
    }

    /* ─── CONTACT FORM ─── */
    html body input[type="text"],
    html body input[type="email"],
    html body textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important; /* prevents iOS zoom */
    }

    /* ─── BLOG GRID ─── */
    html body .blog-grid,
    html body [style*="grid-template-columns:1fr 1fr"][style*="gap:28px"],
    html body [style*="grid-template-columns: 1fr 1fr"][style*="gap: 28px"] {
        grid-template-columns: 1fr !important;
    }

    /* ─── ABOUT PAGE — education 2-col checklist ─── */
    html body [style*="grid-template-columns:1fr 1fr"][style*="gap:12px"],
    html body [style*="grid-template-columns: 1fr 1fr"][style*="gap: 12px"] {
        grid-template-columns: 1fr !important;
    }

    /* ─── VALUES 4-col → 2-col on mobile ─── */
    html body [style*="grid-template-columns:repeat(4,1fr)"],
    html body [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ─── SINGLE POST ─── */
    html body .post-content h2 {
        font-size: 1.3rem !important;
    }
    html body .post-content h3 {
        font-size: 1.1rem !important;
    }

    /* ─── PREV/NEXT POST NAV ─── */
    html body [style*="grid-template-columns:1fr 1fr"][style*="gap:20px"],
    html body [style*="grid-template-columns: 1fr 1fr"][style*="gap: 20px"] {
        grid-template-columns: 1fr !important;
    }

    /* ─── HEADER NAV — already handled in header.php ─── */
    html body .site-header > div {
        padding: 0 16px !important;
    }

    /* ─── MAP IFRAME ─── */
    html body iframe {
        height: 280px !important;
    }

    /* ─── SERVICES AUDIENCE CARDS ─── */
    html body [style*="grid-template-columns:1fr 1fr"][style*="gap:24px"],
    html body [style*="grid-template-columns: 1fr 1fr"][style*="gap: 24px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ─── ABOUT HERO ORDER — image below text ─── */
    html body section > div[style*="display:grid"] > div:last-child {
        order: 2 !important;
    }
    html body section > div[style*="display:grid"] > div:first-child {
        order: 1 !important;
    }

    /* ─── JOURNEY SECTION — image first on mobile ─── */
    html body section[style*="background:#f9fafb"] > div[style*="display:grid"] > div:first-child {
        order: 1 !important;
    }

}

/* ─── EXTRA SMALL (phones under 400px) ─── */
@media (max-width: 400px) {

    html body h1[style*="font-size"] {
        font-size: 1.6rem !important;
    }

    html body h2[style*="font-size"] {
        font-size: 1.3rem !important;
    }

    html body [style*="padding:14px 32px"],
    html body [style*="padding: 14px 32px"] {
        padding: 12px 20px !important;
    }

    /* Values → single column on very small screens */
    html body [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

}
