:root {
    --primary-color: #800020; /* Deep burgundy - royal and prestigious */
    --secondary-color: #5D3A1A; /* Rich brown */
    --accent-color: #D4AF37; /* Classic gold */
    --text-light: #FFFFFF;
    --text-dark: #2C1810; /* Dark chocolate */
    --background-light: #FDF8F3; /* Warm ivory */
    --border-color: #E8D4C1; /* Light beige */
    --card-background: #F5ECE4; /* Soft ivory */
    --shadow-light: rgba(128, 0, 32, 0.05);
    --shadow-medium: rgba(128, 0, 32, 0.1);
    --shadow-strong: rgba(128, 0, 32, 0.15);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--grey-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* --- Header Styles (for sub-pages like Lecturers) --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px 0 0;
    min-height: 350px; /* Consistent with student-hub/home sub-headers */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('./pics/lecturers.jpg'); /* Path to your lecturer image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed background effect */
}

/* Overlay for Header Section to improve text readability */
.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: 1; /* Ensures overlay is above background but below content */
}

.navbar-top-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    max-width: 1200px;
    z-index: 10; /* Ensure logo is above overlay */
}

.logo img {
    height: 85px; /* Consistent logo size */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.header-content-small {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 30px; /* Consistent padding */
    padding-bottom: 30px;
    z-index: 5; /* Ensure text is above overlay */
}

.header-content-small h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em; /* Consistent heading size */
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.header-content-small p {
    font-size: 1.2em; /* Consistent paragraph size */
    opacity: 0.95;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* --- Main Navigation Styles --- */
.main-nav-container {
    background-color: var(--secondary-color);
    
    padding: 18px 0; /* Consistent padding */
    box-shadow: 0 4px 15px var(--shadow-medium);
    z-index: 100;
    position: sticky;
    top: 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 35px; /* Consistent gap */
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    height: auto;
    align-items: center;
}

.main-nav li a {
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 0; /* Consistent padding */
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 1.05em; /* Consistent font size */
    position: relative;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: translateY(-2px);
}

footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 30px 0; /* Consistent padding */
    text-align: center;
    font-size: 0.95em;
    box-shadow: 0 -2px 10px var(--shadow-medium);
}

.lecturers-main-content {
    padding: 80px 0; /* Consistent with main content sections on home page */
    background-color: var(--border-color);
}

.lecturer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding-top: 20px;
}

.lecturer-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-medium); /* More pronounced shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding-bottom: 25px;
    border: 1px solid var(--border-color); /* Subtle border */
}

.lecturer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-strong);
}

/* Background wave/pattern at the top of the card */
.lecturer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    z-index: 0;
    border-radius: 12px 12px 0 0;
}


.lecturer-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 25px;
    border: 5px solid var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.5), 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    background-color: var(--text-light);
}

.lecturer-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lecturer-info {
    padding: 25px;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.lecturer-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9em;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.2;
}

.lecturer-rank {
    font-size: 1.05em;
    color: var(--secondary-blue);
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    width: 80%;
}

.lecturer-specialization {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.lecturer-bio { /* If you add a bio later */
    font-size: 0.9em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-style: italic;
}

.lecturer-contact { /* If you add contact info later */
    font-size: 0.95em;
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
}

.lecturer-contact a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lecturer-contact a:hover {
    color: var(--accent-yellow);
}

.lecturer-contact i {
    color: var(--secondary-blue);
    font-size: 1.1em;
}

.president-corner {
    position: fixed;
    bottom: 30px; /* Consistent with home page */
    right: 30px; /* Consistent with home page */
    background-color: rgba(44, 85, 48, 0.95);
    color: var(--text-light);
    padding: 15px 20px; /* Consistent with home page */
    border-radius: 15px; /* Consistent with home page */
    display: flex;
    align-items: center;
    gap: 15px; /* Consistent with home page */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); /* Consistent with home page */
    z-index: 1000;
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Consistent with home page */
}

.president-corner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.president-corner img {
    width: 70px; /* Consistent with home page */
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-yellow); /* Consistent with home page */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.president-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.president-name {
    margin: 0;
    font-size: 1.3em; /* Consistent with home page */
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.president-title {
    margin: 0;
    font-size: 1em; /* Consistent with home page */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
}


/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    /* Header */
    .header-content-small h1 {
        font-size: 2.8em;
    }
    .header-content-small p {
        font-size: 1em;
    }
    /* Navigation */
    .main-nav {
        gap: 15px;
        padding: 0 10px;
    }
    .main-nav li a {
        font-size: 0.95em;
        padding: 6px 8px;
    }
    /* Lecturer List */
    .lecturer-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    /* President Corner */
    .president-corner {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        gap: 12px;
    }
    .president-corner img {
        width: 60px;
        height: 60px;
    }
    .president-name {
        font-size: 1.2em;
    }
    .president-title {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    /* Header */
    .page-header {
        min-height: 180px; /* Slightly smaller header on tablets */
    }
    .header-content-small h1 {
        font-size: 2.2em;
    }
    .header-content-small p {
        font-size: 0.9em;
    }
    /* Navigation */
    .main-nav {
        gap: 10px;
        padding: 0 5px;
    }
    .main-nav li a {
        font-size: 0.85em;
        padding: 5px 6px;
    }
    /* Lecturer List */
    .lecturers-main-content {
        padding: 60px 0;
    }
    .lecturer-list {
        grid-template-columns: 1fr; /* Single column on tablets */
        gap: 25px;
    }
    .lecturer-card h3 {
        font-size: 1.6em;
    }
    .lecturer-rank {
        font-size: 1em;
    }
    .lecturer-specialization, .lecturer-bio, .lecturer-contact {
        font-size: 0.85em;
    }
    .lecturer-img-container {
        width: 120px;
        height: 120px;
    }
    /* President Corner */
    .president-corner {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        gap: 10px;
    }
    .president-corner img {
        width: 50px;
        height: 50px;
    }
    .president-name {
        font-size: 1.1em;
    }
    .president-title {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    /* Header */
    .page-header {
        min-height: 150px;
    }
    .header-content-small h1 {
        font-size: 1.8em;
    }
    .header-content-small p {
        font-size: 0.8em;
    }
    /* Navigation */
    .main-nav {
        gap: 8px;
        justify-content: space-around;
        padding: 0 5px;
    }
    .main-nav li a {
        padding: 5px 5px;
        font-size: 0.8em;
    }
    /* Lecturer List */
    .lecturer-list {
        gap: 20px;
    }
    .lecturer-card {
        padding: 20px;
        border-radius: 10px;
    }
    .lecturer-card::before {
        height: 60px;
    }
    .lecturer-img-container {
        width: 100px;
        height: 100px;
        margin-top: 15px;
        border-width: 4px;
    }
    .lecturer-info {
        padding: 15px;
    }
    .lecturer-card h3 {
        font-size: 1.4em;
    }
    /* President Corner */
    .president-corner {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        gap: 8px;
    }
    .president-corner img {
        width: 45px;
        height: 45px;
    }
    .president-name {
        font-size: 1em;
    }
    .president-title {
        font-size: 0.7em;
    }
}