#practices-container {
    max-width: 60rem;
}

#practices-container h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #4b5563;
    text-align: center;
    margin-bottom: 1.5rem;
}

#practices-container p.intro {
    font-size: 1.25rem;
    color: #78716c;
    text-align: center;
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.category-section:last-child {
    border-bottom: none;
}

.category-section h2 {
    font-size: 2rem;
    color: #4b5563;
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 2px solid #4b5563;
}

.category-section.open h2::after {
    transform: rotate(45deg);
    color: #9ca3af;
}

.practices-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.category-section.open .practices-content-wrapper {
    max-height: 1500px;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0.5rem;
    background-color: #fcfcfc;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.practice-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.practice-content {
    flex-grow: 1;
}

.practice-content h3 {
    font-size: 1.5rem;
    color: #44403c;
    margin-bottom: 0.5rem;
}

.practice-content p {
    font-size: 1rem;
    color: #6d625d;
}

.learn-more-button {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1e40af;
    font-weight: bold;
    transition: color 0.2s ease;
}

.learn-more-button:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.back-button-container {
    text-align: center;
    margin-top: 3rem;
}
.back-button {
    font-family: 'Patrick Hand', cursive;
    background-color: #78716c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    transition: background-color 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background-color: #57534e;
}

@media (max-width: 768px) {
    .practice-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .practice-item img {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
}
