/* 
 * PSI Punto de Acuerdo - Modern Premium Global Stylesheet
 * Refined design for a professional and warm psychology website
 */

/* ========================================
   1. CSS Variables & Design Tokens
   ======================================== */
:root {
    /* Brand Colors */
    --color-primary: #823F90;
    /* Púrpura principal vibrante */
    --color-primary-dark: #5e2a72;
    /* Púrpura oscuro para contrastes */
    --color-primary-light: #f3eafa;
    /* Lavanda muy suave para fondos */
    --color-primary-soft: #dcd6e5;
    /* Para bordes sutiles */

    --color-accent: #f6af05;
    /* Dorado/Amarillo acento */
    --color-accent-hover: #e09f03;

    /* Neutral Colors */
    --color-text-heading: #1a202c;
    /* Casi negro, elegante para títulos */
    --color-text-body: #4a5568;
    /* Gris oscuro cálido para lectura */
    --color-text-muted: #718096;
    /* Gris medio para metadatos */
    --color-border: #e2e8f0;

    /* Backgrounds */
    --color-bg-body: #ffffff;
    --color-bg-alt: #f7fafc;
    /* Gris muy claro para alternar secciones */
    --color-white: #ffffff;

    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    --space-unit: 1rem;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   2. Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

ul {
    list-style: none;
}

/* ========================================
   3. Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    /* ~44px */
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    /* ~36px */
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

/* ========================================
   4. Layout Components
   ======================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
    /* Espaciado amplio y aireado (80px) */
    position: relative;
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
}

/* ========================================
   5. Header & Navigation
   ======================================== */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-heading);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--color-border);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-body);
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.nav-link svg {
    width: 10px;
    height: auto;
    margin-left: 4px;
    transition: transform 0.2s;
    fill: currentColor;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    border: none !important;
    padding: 0;
    margin: 0;
}

.header .social-icons {
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--color-border) !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-body);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer .social-icon {
    color: rgba(255, 255, 255, 0.8);
}

.social-icon svg {
    height: 20px;
    width: 20px;
    fill: currentColor;
}

/* Hover especifico ICONOS: Escala, sin desplazamiento */
.social-icon:hover {
    transform: scale(1.15);
    /* Agrandar */
    color: var(--color-accent) !important;
}

.header .social-icon:hover {
    color: var(--color-primary) !important;
}

/* ========================================
   6. Hero Component
   ======================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-heading);
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}

/* ========================================
   6. Hero Component
   ======================================== */
.hero {
    /* Beautiful subtle gradient background */
    background: linear-gradient(120deg, var(--color-bg-body) 0%, var(--color-primary-light) 100%);
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text takes more space */
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-body);
    margin-bottom: 2.5rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    /* Stylish subtle rotation */
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* ========================================
   7. Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 6px rgba(130, 63, 144, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(130, 63, 144, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-text-heading);
    /* Dark text for better contrast on yellow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background-color: #fbbf24;
    /* Slightly darker yellow/gold or just opacity change */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* ========================================
   8. Cards (Grid Layouts)
   ======================================== */
.services-grid,
.blog-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Force 4 columns on large screens for Home Services */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.service-card,
.blog-card,
.team-card,
.resource-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
}

.resource-card {
    padding: 2rem;
    text-align: center;
}

/* Interactive Hover State for Cards */
.service-card:hover,
.blog-card:hover,
.team-card:hover,
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-soft);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* Blog Cards Specifics */
.blog-card-image {
    height: 220px;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

/* Team Cards Specifics */
.team-card {
    padding: 1.5rem 1rem;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--color-primary-light);
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-name {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.professional-role {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.4;
}

.professional-bio {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.professional-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   9. Footer
   ======================================== */
.footer {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    border: none;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: 3rem;
    border: none;
}

.footer-col {
    border: none;
    outline: none;
}

.footer-col h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
    border: none;
}

/* Hover TEXTO: Desplazamiento */
.footer-col a:not(.social-icon):hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer .social-icons {
    margin-top: 1.5rem;
    flex-wrap: wrap;
    /* Asegurar que no rompa layout */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   10. Utilites & Floating Elements
   ======================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-btn img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary-light);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-container h2 {
    color: var(--color-primary-dark);
}

/* ========================================
   11. Responsive Design
   ======================================== */
@media (max-width: 900px) {
    .header-height {
        height: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-top: 1px solid var(--color-border);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        margin-top: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
    }

    /* Adjust dropdowns for mobile */
    .dropdown,
    .nav-item:hover .dropdown,
    .nav-item.active .dropdown {
        position: static !important;
        /* Force flow layout */
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        /* solid reset */
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        /* remove desktop transform */
        display: none;
        background-color: #f3eafa;
        /* Brand soft light color */
        min-width: 0 !important;
        /* Default to 0 to override desktop 240px */
        width: 100% !important;
        text-align: center !important;
        /* Center align text */
        z-index: 1000;
        left: 0 !important;
        right: 0 !important;
    }

    .dropdown-link {
        display: block;
        padding: 1rem 0;
        /* Remove horizontal padding since it's centered */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Toggle with class instead of hover */
    .nav-item.active .dropdown {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .nav-item.active .nav-link {
        color: var(--color-primary);
        font-weight: 600;
        background: #f8fafc;
        /* subtle highlight for active parent */
    }

    .nav-item.active .nav-link svg {
        transform: rotate(180deg);
    }

    /* Override hover behavior from desktop */
    .nav-item:hover .dropdown {
        display: none;
    }

    /* Re-enable display block only if active */
    .nav-item.active:hover .dropdown {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .social-icons {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        /* Stack hero */
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-image {
        order: -1;
        /* Image on top on mobile */
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image img {
        transform: rotate(0);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        width: 95%;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Full width buttons on mobile */

    .dropdown {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Hidden by default layout, simpler mobile menu needed in future */
        background-color: var(--color-bg-alt);
        width: 100%;
        text-align: center;
    }

    .nav-item:hover .dropdown {
        display: block;
    }
}

/* ========================================
   12. Podcast Specific Styles (New)
   ======================================== */

.podcast-intro-box,
.podcast-player-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.podcast-player-wrapper {
    text-align: center;
}

/* Single View Carousel */
.podcast-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Wider as requested */
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    /* Wider aspect ratio */
    background-color: var(--color-bg-alt);
}

.podcast-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.podcast-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: var(--color-primary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Community Section */
.community-section {
    padding: 5rem 0;
    background-color: var(--color-primary-light);
    /* Soft lavender bg */
    text-align: center;
    margin-top: 4rem;
    border-radius: var(--radius-lg);
}

.community-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.community-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    /* Centered for all */
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns */
        gap: 3rem;
    }
}

.review-card {
    background: white;
    padding: 2rem 1.5rem;
    /* Reduced padding */
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    /* Fixed height for uniformity */
    width: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(130, 63, 144, 0.1);
}

.review-stars {
    color: var(--color-accent);
    /* Yellow brand color */
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.review-stars svg {
    width: 20px;
    height: 20px;
}

.review-text {
    font-size: 1rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: normal;
    /* Normal style */
}

.review-author {
    font-weight: 800;
    color: var(--color-text-heading);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.review-date {
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: 0.95rem;
}

/* Contact Section Styles */
.contact-section {
    padding: 5rem 0;
    background-color: white;
    /* Clean background */
    margin-top: 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: var(--color-text-heading);
    line-height: 1.3;
}

.contact-header .highlight-text {
    color: var(--color-primary);
    /* Purple text highlight */
    font-weight: 800;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-content-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 4rem;
    }
}

/* Form Styles */
.contact-form-wrapper {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(130, 63, 144, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.podcast-contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

/* Text Content Styles */
.contact-text-content {
    text-align: left;
    color: var(--color-text-body);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-text-content p {
    margin-bottom: 1.5rem;
}

.contact-text-content ul {
    list-style: none;
    padding: 0;
    /* Remove default padding for better alignment with text */
    margin-top: 1rem;
}

.contact-text-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.contact-text-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    /* Yellow brand color */
    font-weight: bold;
    font-size: 1.5rem;
    /* Slightly larger bullet */
    line-height: 1;
    top: -2px;
    /* Visual adjustment */
}

.contact-footer-message {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.4rem;
    /* Increased size as requested */
    line-height: 1.6;
    color: var(--color-text-heading);
    font-weight: 500;
}

.contact-footer-message .highlight-text-alt {
    color: var(--color-accent);
    /* Yellow brand color for variety */
    font-weight: 700;
}

/* ========================================
   11. Why Online Therapy Section
   ======================================== */
.why-online-section {
    padding: 5rem 0;
    background-color: #fff;
}

.why-online-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Image takes less space, Text more */
    gap: 4rem;
    align-items: center;
}

.why-online-content .section-header {
    text-align: left;
}

.why-online-content .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.why-online-content .section-header .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-body);
    font-weight: 500;
}

.benefits-content {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-body);
    /* padding-left: 2rem;  Removed padding used for border */
    /* border-left: 4px solid var(--color-accent); Removed border */
}

.why-online-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.why-online-image-wrapper img {
    width: 100%;
    max-width: 400px;
    height: 450px;
    /* Taller format for the shape */
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    /* The requested Arch/Window shape */
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.why-online-image-wrapper:hover img {
    transform: translateY(-5px);
}

.highlight-yellow {
    color: var(--color-text-heading);
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(251, 191, 36, 0.4);
    z-index: -1;
    border-radius: 2px;
}

@media (max-width: 991px) {
    .why-online-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .why-online-content .section-header {
        text-align: center;
    }

    .why-online-image-wrapper img {
        height: 300px;
        /* Smaller height on mobile */
        max-width: 300px;
    }
}

/* ========================================
   12. Reviews Section (Home Page)
   ======================================== */
.reviews-section {
    padding: 6rem 0 2rem 0;
    /* Reduced bottom padding from implicit 6rem to 2rem */
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.reviews-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.reviews-slider {
    width: 100%;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

/* Scoped specifically to Reviews Section Carousel */
.reviews-section .review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: auto;
    min-height: 260px;
}

.reviews-section .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.reviews-section .review-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.reviews-section .review-name {
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: 1rem;
}

.reviews-section .review-date {
    font-size: 0.8rem;
    color: #999;
}

.reviews-section .review-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-body);
    font-style: italic;
    margin: 0;
}

/* Slider Buttons - Absolute Positioning */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #eee;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--color-primary);
    z-index: 10;
}

.slider-btn.prev-btn {
    left: 0;
}

.slider-btn.next-btn {
    right: 0;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .reviews-section .review-card {
        width: 260px;
    }

    .reviews-slider-container {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }
}

/* ========================================
   13. Feedback Section (Home Page)
   ======================================== */
.feedback-section {
    padding: 3rem 0;
    /* Reduced from 6rem */
    background-color: var(--color-white);
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.feedback-form-wrapper {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.feedback-text h3 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feedback-text p {
    font-size: 1.1rem;
    color: var(--color-text-body);
}

@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .feedback-text {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .feedback-form-wrapper {
        order: 2;
    }
}

/* ========================================
   14. Mobile Optimization (Global Overrides)
   ======================================== */
@media (max-width: 768px) {

    /* Global Spacing */
    section {
        padding: 3.5rem 0;
    }

    .container {
        width: 92%;
        padding: 0 0.5rem;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    /* Layouts & Grids */
    .services-grid,
    .blog-grid,
    .resources-grid,
    .team-grid {
        gap: 1.5rem;
    }

    .hero-container {
        gap: 2.5rem;
        padding-bottom: 0;
    }

    .hero {
        padding: 5rem 0 3rem 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        display: none !important;
    }

    .podcast-carousel-container {
        display: none;
    }

    .podcast-intro-box,
    .podcast-player-wrapper {
        padding: 1.5rem !important;
        /* Reduced padding for mobile */
    }

    .podcast-player-wrapper iframe {
        height: 232px !important;
        /* Increase height for mobile */
    }

    /* Components */
    .service-card,
    .blog-card,
    .team-card,
    .resource-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
        margin-top: 3rem;
    }

    .footer-container {
        gap: 2.5rem;
    }

    /* Why Online */
    .why-online-section {
        padding: 3rem 0;
    }

    .why-online-grid {
        gap: 2.5rem;
    }

    .why-online-image-wrapper img {
        height: 280px;
        max-width: 80%;
        margin: 0 auto;
    }

    /* Reviews */
    .reviews-section {
        padding-bottom: 1rem;
    }

    .reviews-section .review-card {
        padding: 1.5rem;
        height: auto;
        min-height: auto;
    }

    .review-card {
        height: auto;
        /* Reset global review card height */
        min-height: auto;
    }

    /* Utilities */
    .cta-container {
        width: 90%;
        padding: 0 1rem;
    }
}