/* 
 * Emily Schaumann Piano Studio 
 * Card Section Styles
 */

.card-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 1.8rem;
    object-fit: contain;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--primary);
    padding: 0;
    overflow: hidden;
}

.card-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-content p {
    margin-bottom: 1rem;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Hero-style button for card sections */
.card-content .btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    font-size: 1rem;
}

.card-content .btn:hover {
    background-color: var(--primary-dark);
}

/* Dropdown styles */
.dropdown {
    margin-top: 1.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.dropdown:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-header:hover {
    background-color: #e5edf7;
}

.dropdown-title {
    font-weight: 600;
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.dropdown-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
}

.dropdown-icon.active {
    transform: rotate(45deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.dropdown-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.dropdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .dropdown-content img {
        max-width: 35%;
        float: right;
        margin: 0 0 1rem 1.5rem;
    }
}

/* Mobile-first responsive styles */
@media (max-width: 767px) {
    .card-header {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .avatar {
        width: auto;
        max-width: 70px;
        height: auto;
        margin-right: 1rem;
    }
    

}

/* Tablet and desktop responsive styles */
@media (min-width: 768px) {
    .card-container {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .card {
        flex-direction: row;
        align-items: flex-start;
        padding: 3rem;
    }
    
    .card-header {
        flex-direction: column;
        margin-right: 3rem;
        margin-bottom: 0;
        width: 140px;
        flex-shrink: 0;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 100px;
        height: 100px;
    }
    
    .card-title {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .dropdown {
        margin-bottom: 1.5rem;
    }
    
    .dropdown:last-of-type {
        margin-bottom: 2rem;
    }
}

@media (min-width: 1200px) {
    .card-container {
        max-width: 1100px;
    }
    
    .card {
        padding: 3.5rem;
    }
    
    .card-header {
        margin-right: 4rem;
        width: 160px;
    }
    
    .avatar {
        width: 110px;
        height: 110px;
    }
}
