/* External stylesheet for Academic Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}
header h1 {
    margin: 0;
    font-size: 2.5rem;
}
header p {
    margin-top: 0.5rem;
    opacity: 0.85;
}

nav {
    text-align: center;
    margin: 1.5rem 0;
}
nav a {
    color: #111;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}
strong {
    font-weight:bold ;
}

nav a:hover {
    border-color: #111;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
}

h2 {
    border-left: 4px solid #111;
    padding-left: 0.5rem;
    margin-bottom: 1rem;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.profile-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #111;
}

/* Two-column wrapper for Teaching and Service sections */
.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.columns-wrapper ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

/* Student subsections */
.student-group {
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    background: #111;
    color: #fff;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* Responsive adjustments */
@media(max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    .profile-pic {
        margin-bottom: 1rem;
    }
    .columns-wrapper {
        grid-template-columns: 1fr;
    }
}
.profile-links-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical alignment with image */
    gap: 0.4rem;
    font-size: 0.95rem;
}

.profile-links-vertical a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.profile-links-vertical a:hover {
    border-color: #111;
}
.students-section {
    width: 100%;
    clear: both;
}

.students-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.student-column {
    min-width: 0;
}

.student-column h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #111;
}
@media (max-width: 800px) {
    .students-grid {
        grid-template-columns: 1fr;
    }
}
