:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    padding: 40px 20px;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    opacity: 0.9;
}

.accordion-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    flex: 1;
}

.toggle-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
    transition: var(--transition);
}

.toggle-btn .btn-text {
    color: var(--accent-color);
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
}

.toggle-btn .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-panel.active {
    max-height: 500px;
}

.panel-content {
    padding: 0 0 20px 0;
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.7;
}

.panel-content p {
    margin-bottom: 10px;
}

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

/* Active state styles */
.accordion-item.active .toggle-btn .icon {
    background-color: var(--accent-color);
    transform: rotate(45deg);
}

.accordion-item.active .toggle-btn .btn-text {
    color: var(--primary-color);
    font-weight: 600;
}