/*
Theme Name: Sunflower Pszichoműhely
Theme URI: https://sunflowerpszichomuhely.hu
Author: Suzana Marketing
Author URI: https://webtoolu.site
Description: Custom WordPress theme for Sunflower Pszichoműhely - psychology practice website with blog
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunflower
*/

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: #F9A825;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #333333;
}

p {
    margin-bottom: 1.1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================= */

:root {
    --yellow:        #FDD835;
    --yellow-dark:   #F9A825;
    --yellow-deep:   #E6B800;
    --yellow-slide:  #F5C400;
    --yellow-light:  #FFF9E0;
    --gray-bg:       #F5F5F5;
    --gray-dark:     #333333;
    --gray-mid:      #666666;
    --gray-light:    #999999;
    --gray-border:   #E0E0E0;
    --white:         #FFFFFF;
    --footer-bg:     #2B2B2B;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.13);
    --radius:        10px;
    --radius-sm:     6px;
    --max-width:     1100px;
    --transition:    0.25s ease;
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 56px 0;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--gray-dark);
    border-color: var(--yellow);
}

.btn-primary:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--gray-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,168,37,0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--gray-dark);
    border-color: var(--gray-dark);
}

.btn-outline:hover {
    background-color: var(--gray-dark);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--gray-dark);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--gray-dark);
}

/* =============================================================================
   HEADER
   ============================================================================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-border);
    transition: box-shadow var(--transition);
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-sunflower {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow-dark);
    line-height: 1.1;
}

.logo-sub {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--gray-mid);
    line-height: 1.2;
}

.site-logo:hover .logo-sunflower {
    color: var(--yellow);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-dark);
    padding: 6px 11px;
    border-radius: 20px;
    transition: background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
    background-color: var(--yellow-light);
    color: var(--yellow-dark);
}

/* Social icons in header */
.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--gray-bg);
    color: var(--gray-mid);
    transition: background-color var(--transition), color var(--transition);
}

.header-social a:hover {
    background-color: var(--yellow);
    color: var(--gray-dark);
}

.header-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-dark);
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================================
   HERO SECTION (Homepage)
   ============================================================================= */

.hero-section {
    background-color: var(--white);
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253,216,53,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--yellow);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(253,216,53,0.4);
}

.hero-logo-circle img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}

.hero-logo-circle-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--gray-dark);
    text-align: center;
    line-height: 1;
}

.hero-section h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--gray-dark);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-mid);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* =============================================================================
   ABOUT SECTION (Homepage)
   ============================================================================= */

.about-section {
    background-color: var(--white);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.about-content .lead {
    font-size: 1.08rem;
    color: var(--gray-mid);
    margin-bottom: 16px;
    line-height: 1.75;
}

.about-content p {
    color: var(--gray-mid);
    line-height: 1.75;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* =============================================================================
   TESTIMONIAL SLIDER
   ============================================================================= */

.testimonials-section {
    background-color: var(--yellow-slide);
    padding: 80px 0;
    overflow: hidden;
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 48px;
    color: var(--gray-dark);
}

.testimonial-slider-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.testimonial-slides {
    overflow: hidden;
    border-radius: var(--radius);
}

.testimonial-slide {
    display: none;
    padding: 52px 60px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote {
    font-family: 'Nunito', sans-serif;
    font-size: 1.12rem;
    font-style: italic;
    color: var(--gray-dark);
    line-height: 1.75;
    margin-bottom: 28px;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--yellow);
    line-height: 0;
    display: block;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.testimonial-author {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--yellow-dark);
}

.testimonial-author-role {
    font-size: 0.88rem;
    color: var(--gray-light);
    margin-top: 4px;
}

/* Slider controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--yellow-dark);
    color: var(--yellow-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
}

.slider-btn:hover {
    background-color: var(--yellow-dark);
    color: var(--white);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(249,168,37,0.35);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.slider-dot.active {
    background-color: var(--yellow-dark);
}

/* Therapist cards in slider / homepage teaser */
.therapist-cards-section {
    padding: 80px 0;
    background-color: var(--gray-bg);
}

/* =============================================================================
   TRAININGS / SERVICES SECTION (Homepage)
   ============================================================================= */

.trainings-section {
    background-color: var(--white);
    padding: 80px 0;
}

.trainings-section .section-title {
    text-align: center;
    margin-bottom: 12px;
}

.trainings-section .section-lead {
    text-align: center;
    color: var(--gray-mid);
    max-width: 600px;
    margin: 0 auto 52px;
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.training-card {
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.training-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.training-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.training-card p {
    font-size: 0.93rem;
    color: var(--gray-mid);
    line-height: 1.65;
    margin-bottom: 0;
}

/* =============================================================================
   SECTION TITLES (shared)
   ============================================================================= */

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.section-title span {
    color: var(--yellow-dark);
}

.section-divider {
    width: 56px;
    height: 4px;
    background-color: var(--yellow);
    border-radius: 2px;
    margin: 0 auto 40px;
    display: block;
}

.section-divider.left {
    margin-left: 0;
}

/* =============================================================================
   THERAPIST CARDS (Homepage + Archive)
   ============================================================================= */

.therapists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.therapist-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.therapist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.therapist-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: top center;
}

.therapist-card-body {
    padding: 20px 16px;
}

.therapist-card-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.therapist-card-role {
    font-size: 0.82rem;
    color: var(--gray-light);
    line-height: 1.4;
    margin-bottom: 14px;
}

.therapist-card-link {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--yellow-dark);
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.therapist-card-link:hover {
    color: var(--yellow-deep);
    border-color: var(--yellow-deep);
}

/* =============================================================================
   THERAPIST PROFILE PAGE
   ============================================================================= */

.therapist-header {
    background-color: var(--yellow);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}

.therapist-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.therapist-header-inner {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.therapist-header-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.therapist-header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.therapist-header-info {
    padding-bottom: 8px;
}

.therapist-header-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.therapist-header-title {
    font-size: 1rem;
    color: var(--gray-dark);
    opacity: 0.75;
    font-style: italic;
    max-width: 480px;
    line-height: 1.5;
}

/* Profile content sections */
.therapist-content {
    padding: 72px 0 96px;
}

.therapist-section {
    margin-bottom: 72px;
}

.therapist-section:last-child {
    margin-bottom: 0;
}

.therapist-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.therapist-section-grid.reverse {
    direction: rtl;
}

.therapist-section-grid.reverse > * {
    direction: ltr;
}

.therapist-section h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}

.therapist-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background-color: var(--yellow);
    border-radius: 2px;
}

.therapist-section p {
    color: var(--gray-mid);
    line-height: 1.8;
    margin-bottom: 14px;
}

.therapist-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.therapist-topic-tag {
    display: inline-block;
    background-color: var(--yellow-light);
    color: var(--gray-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(253,216,53,0.5);
}

.therapist-methods-list {
    margin-top: 8px;
}

.therapist-methods-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    color: var(--gray-mid);
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.therapist-methods-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--yellow);
    flex-shrink: 0;
}

.therapist-methods-list li:last-child {
    border-bottom: none;
}

.therapist-section-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.therapist-section-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Contact CTA on profile */
.therapist-contact-cta {
    background-color: var(--yellow-light);
    border: 1px solid rgba(253,216,53,0.4);
    border-radius: var(--radius);
    padding: 36px 40px;
    text-align: center;
    margin-top: 48px;
}

.therapist-contact-cta h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.therapist-contact-cta p {
    color: var(--gray-mid);
    margin-bottom: 20px;
    font-size: 0.96rem;
}

.therapist-contact-email {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--yellow-dark);
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
}

/* =============================================================================
   CONTACT PAGE
   ============================================================================= */

.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--gray-mid);
    line-height: 1.75;
    margin-bottom: 28px;
}

.contact-details {
    margin-top: 32px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-detail-text {
    font-size: 0.95rem;
    color: var(--gray-mid);
    padding-top: 10px;
}

.contact-form-wrap {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 48px 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
}

.contact-form-wrap h3 {
    font-size: 1.4rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--yellow);
}

/* Contact Form 7 compatibility */
.wpcf7-form .form-row {
    margin-bottom: 20px;
}

.wpcf7-form label,
.contact-form label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-dark);
    background-color: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 3px rgba(249,168,37,0.15);
}

.wpcf7-form textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.wpcf7-form input[type="submit"],
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
    width: 100%;
    background-color: var(--yellow);
    border: 2px solid var(--yellow);
    color: var(--gray-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

.wpcf7-form input[type="submit"]:hover,
.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,168,37,0.35);
}

/* =============================================================================
   INNER PAGE HEADER BANNER
   ============================================================================= */

.page-banner {
    background-color: var(--yellow);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.page-banner-inner {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.page-banner .breadcrumb {
    font-size: 0.88rem;
    color: rgba(51,51,51,0.6);
}

.page-banner .breadcrumb a {
    color: rgba(51,51,51,0.6);
}

.page-banner .breadcrumb a:hover {
    color: var(--gray-dark);
}

/* =============================================================================
   BLOG — INDEX / ARCHIVE
   ============================================================================= */

.blog-layout {
    padding: 64px 0 80px;
}

.blog-content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Blog Card */
.blog-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: var(--yellow-light);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.04);
}

.blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yellow-light) 0%, rgba(253,216,53,0.3) 100%);
    font-size: 3rem;
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--yellow);
    color: var(--gray-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-bottom: 10px;
}

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

.blog-card h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gray-dark);
    line-height: 1.4;
}

.blog-card h2 a {
    color: inherit;
    transition: color var(--transition);
}

.blog-card h2 a:hover {
    color: var(--yellow-dark);
}

.blog-card-excerpt {
    font-size: 0.91rem;
    color: var(--gray-mid);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-readmore {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--yellow-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1px;
    transition: all var(--transition);
}

.blog-card-readmore:hover {
    color: var(--yellow-deep);
    border-color: var(--yellow-deep);
    gap: 8px;
}

/* =============================================================================
   BLOG — SIDEBAR
   ============================================================================= */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
}

.sidebar-widget-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search widget */
.sidebar-search-form {
    display: flex;
    gap: 0;
}

.sidebar-search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.sidebar-search-form input:focus {
    border-color: var(--yellow-dark);
}

.sidebar-search-form button {
    padding: 10px 16px;
    background-color: var(--yellow);
    border: 1.5px solid var(--yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color var(--transition);
}

.sidebar-search-form button:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

/* Categories widget */
.sidebar-categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    font-size: 0.92rem;
    color: var(--gray-mid);
    transition: color var(--transition);
}

.sidebar-categories a:hover {
    color: var(--yellow-dark);
}

.sidebar-categories .count {
    font-size: 0.8rem;
    background-color: var(--yellow-light);
    color: var(--gray-dark);
    padding: 2px 8px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* Recent posts widget */
.sidebar-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-recent-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sidebar-recent-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--yellow-light);
}

.sidebar-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-recent-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--gray-dark);
    margin-bottom: 4px;
}

.sidebar-recent-title:hover {
    color: var(--yellow-dark);
}

.sidebar-recent-date {
    font-size: 0.78rem;
    color: var(--gray-light);
}

/* Therapists widget */
.sidebar-therapists {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-therapist-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.sidebar-therapist-link:hover {
    background-color: var(--yellow-light);
}

.sidebar-therapist-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--yellow);
}

.sidebar-therapist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sidebar-therapist-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* =============================================================================
   BLOG — SINGLE POST
   ============================================================================= */

.single-post-layout {
    padding: 56px 0 80px;
}

.single-post-content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.single-post-article {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
}

.single-post-featured {
    width: 100%;
    aspect-ratio: 16/6;
    object-fit: cover;
}

.single-post-body {
    padding: 44px 48px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.single-post-category {
    background-color: var(--yellow);
    color: var(--gray-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
}

.single-post-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gray-dark);
    margin-bottom: 28px;
    line-height: 1.25;
}

/* Post content typography */
.post-content {
    color: var(--gray-mid);
    line-height: 1.85;
}

.post-content h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--gray-dark);
    margin: 36px 0 16px;
}

.post-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin: 28px 0 12px;
}

.post-content p {
    margin-bottom: 1.3rem;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--yellow);
    padding: 16px 24px;
    margin: 28px 0;
    background-color: var(--yellow-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-dark);
}

.post-content ul,
.post-content ol {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--yellow-dark);
    text-decoration: underline;
    text-decoration-color: rgba(249,168,37,0.4);
    transition: text-decoration-color var(--transition);
}

.post-content a:hover {
    text-decoration-color: var(--yellow-dark);
}

/* Post tags */
.post-tags {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}

.post-tags-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background-color: var(--gray-bg);
    color: var(--gray-mid);
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--gray-border);
    transition: all var(--transition);
}

.post-tag:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--gray-dark);
}

/* Author box */
.post-author-box {
    margin-top: 40px;
    padding: 28px 32px;
    background-color: var(--yellow-light);
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(253,216,53,0.3);
}

.post-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--yellow);
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.post-author-bio {
    font-size: 0.88rem;
    color: var(--gray-mid);
    margin: 0;
    line-height: 1.55;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-border);
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.78rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.post-nav-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-dark);
    transition: color var(--transition);
    line-height: 1.35;
}

.post-nav-title:hover {
    color: var(--yellow-dark);
}

/* =============================================================================
   COMMENTS
   ============================================================================= */

.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-border);
}

.comments-section h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 28px;
}

.comment-list {
    margin-bottom: 36px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.comment-text {
    font-size: 0.93rem;
    color: var(--gray-mid);
    line-height: 1.65;
}

/* Comment form */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    margin-bottom: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--yellow-dark);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--gray-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    padding: 12px 32px;
    width: auto;
    transition: all var(--transition);
}

.comment-form input[type="submit"]:hover {
    background-color: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 16px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.93rem;
    border: 1.5px solid var(--gray-border);
    color: var(--gray-mid);
    transition: all var(--transition);
}

.pagination a:hover {
    background-color: var(--yellow-light);
    border-color: var(--yellow);
    color: var(--yellow-dark);
}

.pagination .current {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--gray-dark);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

#site-footer {
    background-color: var(--footer-bg);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-sunflower {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.footer-brand .logo-sub {
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--yellow);
    color: var(--gray-dark);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-col-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--yellow);
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item span:first-child {
    color: var(--yellow);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--yellow);
}

/* =============================================================================
   404 PAGE
   ============================================================================= */

.page-404 {
    text-align: center;
    padding: 120px 0;
}

.page-404 .error-code {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(6rem, 15vw, 10rem);
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 16px;
}

.page-404 h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--gray-mid);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* =============================================================================
   SEARCH RESULTS
   ============================================================================= */

.search-results-header {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--gray-border);
    margin-bottom: 40px;
}

.search-results-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.search-results-header p {
    color: var(--gray-mid);
}

/* =============================================================================
   DEFAULT PAGE CONTENT
   ============================================================================= */

.page-content-wrap {
    padding: 72px 0 96px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--gray-dark);
    margin: 32px 0 14px;
}

.page-content p {
    color: var(--gray-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 14px 0 20px 24px;
    color: var(--gray-mid);
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.entry-content {
    color: var(--gray-mid);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--gray-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content p { margin-bottom: 1.2rem; }

.entry-content ul,
.entry-content ol {
    margin: 12px 0 20px 24px;
}

.entry-content li { margin-bottom: 6px; }

/* =============================================================================
   WORDPRESS CORE FIXES / ALIGNMENT
   ============================================================================= */

.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; text-align: center; }

.wp-caption {
    max-width: 100%;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--gray-light);
    margin-top: 6px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.gallery-item img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

/* =============================================================================
   RESPONSIVE — TABLET
   ============================================================================= */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-content-wrap {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post-content-wrap {
        grid-template-columns: 1fr;
    }

    .trainings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 320px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .therapist-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .therapist-section-grid {
        grid-template-columns: 1fr;
    }

    .therapist-section-grid.reverse {
        direction: ltr;
    }
}

/* =============================================================================
   RESPONSIVE — MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 56px 0;
    }

    /* Header */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0 24px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--gray-border);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
        font-size: 1rem;
    }

    .main-nav a:hover {
        background-color: var(--yellow-light);
    }

    /* Blog grid to single column */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    /* Therapists */
    .therapists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Training */
    .trainings-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Testimonials */
    .testimonial-slide {
        padding: 36px 28px;
    }

    /* Post */
    .single-post-body {
        padding: 28px 24px;
    }

    /* Contact form */
    .contact-form-wrap {
        padding: 32px 24px;
    }

    /* Post nav */
    .post-navigation {
        grid-template-columns: 1fr;
    }

    /* Therapist header */
    .therapist-header-photo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .therapists-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 64px 0 56px;
    }

    .header-social {
        display: none;
    }
}
