/* --- Education Page Styles (Minimalist & Elegant) --- */

.education-section {
    padding: 50px 0;
}

.education-main-header { /* Reusing similar header style */
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px; /* Space for underline */
    position: relative;
}

.education-main-header h1 {
    font-size: 2.5rem; /* Slightly adjusted from experience for "EDUCATION" */
    font-weight: 400; /* Standard weight for a title like this */
    color: #24292e;
    text-transform: uppercase; /* As in the image */
    letter-spacing: 1px; /* Slight letter spacing */
    margin-bottom: 0;
    display: inline-block; /* For the underline to fit content */
}

.education-main-header::after { /* Underline for the main "EDUCATION" title */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 200px; /* Adjust width as needed */
    height: 1px;
    background-color: #586069; /* Darker grey for the line */
}


body.dark-mode .education-main-header h1 {
    color: #c9d1d9;
}
body.dark-mode .education-main-header::after {
    background-color: #8b949e;
}


.education-item {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e1e4e8; /* Subtle separator */
}
.education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.dark-mode .education-item {
    border-bottom-color: #30363d;
}

.institution-name {
    font-size: 1.25rem; /* Corresponds to bold text in image */
    font-weight: 600;   /* Bold */
    color: #24292e;
    margin-bottom: 5px;
}
body.dark-mode .institution-name {
    color: #c9d1d9;
}

.degree-name {
    font-size: 1rem;
    color: #424a51;
    margin-bottom: 3px;
}

.degree-name .specialization { /* For text like "Computer Science and Engineering" */
    /* display: block; */ /* If it needs to be on a new line */
    /* font-style: italic; */ /* Optional */
}
body.dark-mode .degree-name {
    color: #b1bac4;
}

.department-name {
    font-size: 0.9rem;
    color: #586069;
    margin-bottom: 0;
}
body.dark-mode .department-name {
    color: #8b949e;
}

.education-meta { /* For the right column (dates and score) */
    font-size: 0.95rem;
}

.education-dates {
    color: #586069;
    margin-bottom: 2px; /* Small space between dates and score */
}
body.dark-mode .education-dates {
    color: #8b949e;
}

.education-score {
    color: #424a51;
    font-weight: 500; /* Slightly bolder for score */
}
body.dark-mode .education-score {
    color: #b1bac4;
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .education-main-header h1 {
        font-size: 2rem;
    }
    .education-main-header::after {
        width: 150px;
    }
    .education-meta {
        text-align: left !important; /* Override text-md-end */
        margin-top: 10px;
    }
    .institution-name {
        font-size: 1.15rem;
    }
    .degree-name {
        font-size: 0.95rem;
    }
}