/* General Reset */
* {
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the body takes up the full height of the viewport */
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header and Navigation */
/* Header */
header {
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    z-index: 10;
    /* Ensure it's above the content */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

nav .logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
}

nav .logo img {
    width: 40px;
    margin-right: 10px;
}

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

header nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

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

header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #FFEB3B;
}

/* Hero Section */
.hero {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 50px 10px;
    border-bottom: 4px solid #388E3C;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #FFEB3B;
    color: #388E3C;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #FFC107;
}

/* Department Section */
#departments {
    padding: 40px 20px;
    text-align: center;
}

#departments h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}

.department-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.department-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.department-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.department-card a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.department-card a:hover {
    color: #388E3C;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    /* Ensures the footer is pushed to the bottom */
}

/* Degrees page */

/* General Reset */
* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background: linear-gradient(90deg, #4CAF50, #388E3C);
    padding: 20px 40px;
}

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

nav .logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
}

nav .logo img {
    width: 40px;
    margin-right: 10px;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFEB3B;
}

/* Department Header */
.department-header {
    background-color: #4CAF50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #388E3C;
}

.department-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.department-header p {
    font-size: 18px;
}

/* Semesters Section */
.semesters {
    padding: 40px 20px;
    text-align: center;
}

.semesters h2 {
    font-size: 30px;
    margin-bottom: 40px;
    font-weight: 600;
}

.semester-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.semester-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.semester-card a {
    display: block;
    font-size: 20px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.semester-card a:hover {
    color: #388E3C;
}

.semester-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
}