/* Styles for Education & Certifications Page */

.education-page-content {
    padding-top: 40px;
    padding-bottom: 60px;
    background-color: #f0f4f8; /* Light grey-blue background, or #fff if sections have own bg */
}

#education-intro {
    text-align: left;
    margin-bottom: 30px; /* Less space after main title */
    padding: 20px 0 0 0;
}

#education-intro h1 {
    font-size: 2.5rem;
    color: #0f2136;
    margin-bottom: 0; /* No extra space if no subtitle or subtitle is part of main content bg */
}

/* Academic Education Section Styling */
#academic-education, #professional-certifications {
    padding-top: 20px; /* Space above section title */
    margin-bottom: 40px;
    background-color: #ffffff; /* White background for content sections */
    padding: 30px; /* Padding inside the white section */
    border-radius: 8px; /* Optional: if you want sections to look like big cards */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Optional subtle shadow */
}


#academic-education h2, #professional-certifications h2 {
    font-size: 1.8rem;
    color: #0f2136;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef; /* Lighter border for section titles */
}

.education-item {
    background-color: #fff; /* If sections are not carded, items can be */
    padding: 20px;
    border: 1px solid #e0e6ed; /* Lighter border for each item */
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.education-item:last-child {
    margin-bottom: 0;
}

.education-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 5px;
}

.education-item-header h3 {
    font-size: 1.25rem;
    color: #0f2136;
    margin: 0;
}

.date-range {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap; /* Prevent wrapping on small screens if possible */
}

.education-item .institution {
    font-size: 1rem;
    color: #4a5568; /* Slightly muted color */
    margin-bottom: 8px;
}

.education-item .thesis,
.education-item .achievement {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
    font-style: italic;
}
.education-item .achievement {
    font-weight: 500;
}


.key-courses h4 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.key-courses ul {
    list-style: disc;
    padding-left: 25px;
    margin: 0;
}

.key-courses ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Professional Certifications Section Styling */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
@media (min-width: 992px) { /* Ensure 2 columns for larger screens */
    .certification-grid {
        /* Keeping auto-fit is fine, but if you want max 2 on large, use: */
        /* grid-template-columns: repeat(2, 1fr); */
    }
}


.certification-card {
    background-color: #fff;
    padding: 20px 25px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.certification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.certification-card-header h4 {
    font-size: 1.15rem;
    color: #0f2136;
    margin: 0;
}

.cert-year {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
}

.certification-card .issuing-org {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 5px;
}

.certification-card .cert-id {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Push button to bottom */
}

.btn-view-cert {
    background-color: #007bff; /* Blue, like a primary action button */
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    display: inline-block; /* Or block if you want full width */
    margin-top: auto; /* Align to bottom */
}

.btn-view-cert:hover {
    background-color: #0056b3; /* Darker blue */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #education-intro h1 {
        font-size: 2.2rem;
    }
    #academic-education h2, #professional-certifications h2 {
        font-size: 1.6rem;
    }
    .education-item-header, .certification-card-header {
        /* Consider stacking title and date/year if space is very tight, but flex works okay */
    }
    #academic-education, #professional-certifications {
        padding: 20px;
    }
}

/* Ensure global Header & Footer styles are present in style.css */
/* (Already provided in previous full code example) */


/* === FOOTER STYLES === */
footer {
    background-color: #0f2136; /* Dark blue */
    color: #adb5bd; /* Lighter text color for footer */
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2c3e50; /* Slightly lighter border */
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4, .footer-connect h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #0056b3; /* Orange on hover for social icons */
}
.social-icons a:last-child {
    margin-right: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments for Header/Footer - (You might have more detailed ones) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        padding-left: 0;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-connect {
        margin-bottom: 20px;
    }
    /* .social-icons {
        justify-content: center; No, they are inline-block and center via text-align of parent
    } */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Overall page background */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER STYLES === */
header {
    background-color: #0f2136; /* Dark blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Style for the active link */
    color: #fff;
    font-weight: 500;
}
