/* Topics Page Styles */
.topics-main {
    padding: 2rem 5% 4rem;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.topics-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.topic-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.topic-icon i {
    font-size: 1.5rem;
    color: white;
}

.topic-title {
    flex: 1;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.expand-icon i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.topic-card.expanded .expand-icon i {
    transform: rotate(180deg);
}

.subtopics {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.topic-card.expanded .subtopics {
    max-height: 1000px;
}

.subtopic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: var(--text-secondary);
}

.subtopic-item:last-child {
    border-bottom: none;
}

.subtopic-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
}

.subtopic-name {
    flex: 1;
    padding-right: 15px;
}

.subtopic-item i {
    transition: transform 0.3s ease;
}

.subtopic-item:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .topic-header {
        flex-wrap: wrap;
        padding: 15px;
    }

    .topic-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .topic-title {
        font-size: 1.1rem;
    }

    .subtopic-item {
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .topics-container {
        gap: 15px;
    }

    .topic-header {
        padding: 12px;
    }

    .topic-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .topic-title {
        font-size: 1rem;
    }
}