/**
 * Theme Name:          Mai Lifestyle Pro - Child Theme Mod
 * Description:         Child theme for JS. Adds Associates custom post type and related functionality.
 * Author:              CK Claude dev
 * Author URI:          https://maipro.io
 * Template:            genesis
 * Version:             1.0.0
 *
 * License:             GPL-2.0+
 * License URI:         http://www.opensource.org/licenses/gpl-license.php
 *
 * Text Domain:         mai-lifestyle-pro-child
 * Domain Path:         /languages/
 */

/* Note: Parent theme (Mai Lifestyle Pro) styles are automatically loaded by WordPress
 * via the stylesheet cascade. Child theme styles below will override parent styles.
 * Do not use @import - WordPress handles the cascade automatically.
 */

/* Child theme styles start here */

/* Associates Archive Header */
.archive-header {
    margin: 0 auto 2rem auto;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #2b5391;
    max-width: 800px;
}

.archive-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
    line-height: 1.2;
}

/* Associates Archive Introduction */
.associates-archive-intro {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
    line-height: 1.6;
    color: #333;
}

.associates-archive-intro p {
    margin: 0 0 1rem 0;
}

.associates-archive-intro p:last-child {
    margin-bottom: 0;
}

/* Associates Archive Grid */
.archive-associates .entry-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .archive-associates .entry-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Associate Card Styling */
.associate-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.associate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.associate-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.associate-card-content {
    padding: 1.5rem;
}

.associate-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.associate-card-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.associate-card-location {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Practice Areas Tags */
.practice-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.practice-area-tag {
    background: #f0f0f0;
    color: #333;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Read More Link */
.associate-read-more {
    color: #2b5391;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.associate-read-more:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

/* Single Associate Page */
.single-associates .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.associate-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .associate-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.associate-hero-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.associate-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    margin: 0 auto;
}

.associate-hero-details h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    line-height: 1.2;
}

.associate-hero-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.associate-hero-location {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.associate-practice-areas {
    margin-bottom: 2rem;
}

.associate-practice-areas h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 0.75rem;
}

.associate-practice-areas .practice-areas {
    gap: 0.5rem;
}

/* Website Button */
.associate-website-button {
    display: inline-block;
    background: #2b5391;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-bottom: 2rem;
}

.associate-website-button:hover {
    background: #1a3a5c;
    text-decoration: none;
    color: #fff;
}

/* Qualifications Section */
.associate-qualifications {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.associate-qualifications h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.associate-qualifications ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.associate-qualifications li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Bio Section */
.associate-bio {
    margin: 2rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

.associate-bio h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

/* Hide entry meta (date) on Associates pages */
.single-associates .entry-meta {
    display: none;
}

/* Hide banner area on Associates archive and single pages */
body.post-type-archive-associates section.banner-area,
body.single-associates section.banner-area {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .associate-card-content {
        padding: 1rem;
    }

    .associate-card-title {
        font-size: 1.1rem;
    }

    .associate-hero-details h1 {
        font-size: 1.5rem;
    }

    .associate-website-button {
        display: block;
        text-align: center;
    }
}
