* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* Container for content */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Top bar navigation */
.top-bar {
    background-color: #276135;
    color: white;
    padding: 8px 0;
    position: relative;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-back {
    display: flex;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #f9c90e;
}

.back-arrow {
    margin-right: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.top-bar-links a:hover {
    color: #f9c90e;
}

/* Main header and navigation */
.main-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
}

.university-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.university-name .main-title {
    font-size: 16px;
    text-transform: uppercase;
}

.university-name .subtitle {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-item>a {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item>a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
}

.nav-item.no-dropdown>a::after {
    display: none;
}

.header-home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.header-home-link:hover .university-name {
    color: #276135;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 240px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f9f9f9;
}

.dropdown-toggle {
    cursor: default; 
    pointer-events: none;
}
/* Faculty content area */
.faculty-content {
    padding: 50px 0;
    background-color: #fff;
    position: relative;
    flex: 1;
}

.faculty-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 5% 10%, rgba(39, 97, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 95% 85%, rgba(249, 201, 14, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.header-section {
    margin-bottom: 40px;
    position: relative;
}

h1 {
    color: #276135;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #276135, #276135 70%, rgba(39, 97, 53, 0.7));
    margin-top: 15px;
}

.faculty-description {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    text-align: justify;
    line-height: 1.6;
    font-size: 16px;
    max-width: 900px;
}

/* Accordion section */
.accordion-section {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.faculty-drawer {
    margin-bottom: 30px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background-color: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faculty-drawer:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faculty-drawer__content-wrapper {
    font-size: 1.25em;
    line-height: 1.4em;
    max-height: 0px;
    overflow: hidden;
    transition: 0.25s ease-in-out;
}

.faculty-drawer__title {
    border-top: #e0e0e0 1px solid;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 20px 20px;
    position: relative;
    margin-bottom: 0;
    transition: all 0.25s ease-out;
    color: #fff;
    background: linear-gradient(to right, #276135, #2d7440);
}

.faculty-drawer__title:hover {
    background: linear-gradient(to right, #1a462b, #225b32);
    color: white;
}

.faculty-drawer__title::after {
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: " ";
    display: inline-block;
    height: 12px;
    position: relative;
    transform: rotate(135deg);
    transition: 0.35s ease-in-out;
    width: 12px;
    flex-shrink: 0;
}

.faculty-drawer__trigger:checked+.faculty-drawer__title+.faculty-drawer__content-wrapper {
    max-height: 3000px;
}

.faculty-drawer__trigger:checked+.faculty-drawer__title::after {
    transform: rotate(-45deg);
    transition: 0.25s ease-in-out;
}

input[type="checkbox"] {
    display: none;
}

/* Faculty card styles */
.faculty-card {
    display: flex;
    overflow: hidden;
    margin: 20px;
    padding: 10px;
}

.faculty-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.faculty-image img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.faculty-info {
    flex: 1;
}

.faculty-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #000;
    margin: 0 0 5px 0;
    font-size: 1em;
}

.faculty-position {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    color: #4E4B52;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.faculty-contact {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 0.9em;
}

.faculty-contact p {
    margin: 5px 0;
}

.faculty-contact i {
    margin-right: 10px;
    color: #000;
}

.faculty-contact a {
    color: #000;
    text-decoration: none;
}

.faculty-contact a:hover {
    text-decoration: none;
}

/* Filter and faculty table styles */
.filter-container {
    margin: 15px 20px;
    font-family: 'Lexend', sans-serif;
    display: flex;
    align-items: center;
}

.filter-container label {
    font-size: 0.85em;
    margin-right: 12px;
    font-weight: 400;
}

.subject-filter {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Lexend', sans-serif;
    font-size: 0.8em;
    min-width: 250px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    display: block;
    padding: 0 20px 20px;
}

.faculty-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faculty-table thead {
    background-color: #f2f2f2;
}

.faculty-table th {
    text-transform: uppercase;
    padding: 15px 15px;
    font-size: 0.8em;
    text-align: left;
    font-weight: 600;
}

.faculty-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(1, 1, 1, 0.05);
    font-size: 0.85em;
    vertical-align: top;
    line-height: 1.3;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    word-wrap: break-word;
}

.faculty-table-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.faculty-table th:nth-child(1),
.faculty-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
}

.faculty-table th:nth-child(2),
.faculty-table td:nth-child(2) {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

.faculty-table th:nth-child(3),
.faculty-table td:nth-child(3) {
    width: 250px;
    min-width: 250px;
}

.faculty-table th:nth-child(4),
.faculty-table td:nth-child(4) {
    width: auto;
}

/* Update responsive styles for the image column */
@media only screen and (max-width: 768px) {
    .faculty-table td[data-label="Photo"] {
        text-align: center;
        padding-left: 10px;
    }
    
    .faculty-table td[data-label="Photo"]::before {
        content: none; /* Remove the "Photo" label on mobile */
    }
}

/* Pagination styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    padding: 10px 0;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9em;
}

.pagination-info {
    color: #666;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-buttons button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pagination-buttons button:hover:not(:disabled) {
    background-color: #eef2fe;
    border-color: #276135;
    color: #276135;
}

.pagination-buttons button.active {
    background-color: #276135;
    color: white;
    border-color: #276135;
}

.pagination-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 5px;
    color: #666;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 101;
    margin-left: auto;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    z-index: 102;
    color: #333;
}

/* Mobile navigation styles */
@media only screen and (max-width: 992px) {
    .header-inner {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 0 !important;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        color: #000;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 100;
        padding: 0;
        opacity: 0;
        visibility: hidden;
    }

    .main-nav.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item > a {
        padding: 15px 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        color: #000;
    }

    .nav-item > a::after {
        margin-left: auto !important;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        border-top-color: #000;
    }

    .nav-item.active > a::after {
        transform: rotate(180deg);
    }

    .nav-item:hover {
        background-color: #f5f5f5;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: #f5f5f5;
    }

    .nav-item.active .dropdown {
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-item {
        padding-left: 40px;
        border-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-item a {
        color: #000;
        opacity: 1;
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Hamburger animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    .faculty-drawer__title {
        font-size: 1.1rem;
        padding: 20px 15px;
    }

    .faculty-card {
        flex-direction: column;
    }

    .faculty-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 150px;
        align-self: center;
    }

    .faculty-contact {
        display: flex;
        flex-direction: column;
    }

    .faculty-contact p {
        margin: 5px 0;
        display: flex;
        align-items: center;
    }

    .faculty-contact i {
        margin-right: 10px;
        width: 16px; 
        text-align: center;
        flex-shrink: 0;
        align-self: center;
    }
    
    .faculty-contact a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .faculty-table {
        table-layout: auto;
    }

    .faculty-table thead {
        display: none;
    }

    .faculty-table td {
        display: block;
        width: 100%;
        text-align: right;
        position: relative;
        padding-left: 50%;
        min-height: 30px;
        box-sizing: border-box;
        font-size: 0.8em;
    }

    .faculty-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        font-weight: 600;
        text-align: left;
    }

    .faculty-table tr {
        margin-bottom: 15px;
        display: block;
        border: 1px solid rgba(1, 1, 1, 0.1);
        border-radius: 5px;
    }

    .faculty-table td:nth-child(1),
    .faculty-table td:nth-child(2),
    .faculty-table td:nth-child(3) {
        width: 100%;
        text-align: right;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-info {
        text-align: center;
    }

    .pagination-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-container label {
        margin-bottom: 8px;
    }

    .subject-filter {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .back-link {
        font-size: 13px;
    }
    
    .back-arrow {
        font-size: 13px;
    }
}

@media only screen and (max-width: 480px) {
    .container {
        width: 92%;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .header-section {
        margin-bottom: 30px;
    }

    .faculty-description {
        font-size: 14px;
    }

    .faculty-contact p {
        font-size: 14px;
    }
}

@media only screen and (max-width: 992px) {
    h1 {
        font-size: 28px;
    }
    
    .nav-item > a {
        font-size: 14px;
    }
}

