/* Topics Page Specific Styles */

.topics-header {
    grid-column: span 12 / span 12;
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.topics-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--flat-black);
    margin: 0 0 1rem;
}

.topics-subtitle {
    font-size: 1.25rem;
    color: var(--flat-gray);
    margin: 0;
}

.topics-grid {
    grid-column: span 12 / span 12;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 3rem 4rem;
}

.topic-card {
    background: var(--whiteish);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.topic-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon img {
    width: 100%;
    height: 100%;
}

.topic-icon i {
    width: 64px;
    height: 64px;
    stroke: var(--flat-green);
}

.topic-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--flat-black);
    margin: 0 0 1rem;
}

.topic-description {
    font-size: 1rem;
    color: var(--flat-gray);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.topic-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--flat-gray);
}

.topic-stats i {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.topic-lessons, .topic-duration {
    display: flex;
    align-items: center;
}

/* Active menu item */
#navbar-menu .active,
.mobile-menu-link.active {
    color: var(--flat-green);
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .topics-header {
        padding: 2rem 1rem 1rem;
    }

    .topics-title {
        font-size: 2rem;
    }

    .topics-subtitle {
        font-size: 1rem;
    }

    .topics-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .topic-card {
        padding: 1.5rem;
    }

    .topic-name {
        font-size: 1.25rem;
    }

    .topic-stats {
        gap: 1rem;
        font-size: 0.85rem;
    }
}