:root {
    --bg-dark: #07080A;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #000000;
    --active: #16A34A;
    --actived: #159946;
    --card-bg: #08090c;
}

.education-section {
    max-width: 700px;
    margin: 100px auto 0 auto;
}

.education-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.education-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.education-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--active);
    box-shadow: 0 8px 24px var(--active);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.education-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tag {
    background-color: var(--actived);
    color: var(--text-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.degree {
    color: var(--active);
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    margin-bottom: 0.5rem;
}

.desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.light-mode .education-card {
    background-color: var(--bg-light);
    border: 1px solid var(--text-light);
}

.light-mode h3 {
    color: var(--text-light);
}

.light-mode h2 {
    color: var(--text-light);
}

.light-mode .education-card:hover {
    transform: translateY(-5px);
    border: 1px solid #000;
    box-shadow: 0 8px 24px var(--shadow-dark);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}