/* Index */

.navbar {
    background-color: #1a365d !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 1rem;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
    position: relative;
    padding: 1rem 1.2rem;
    transition: background-color 0.2s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 60%;
}

/* Home */

body {
    font-family: 'Garamond', 'Times New Roman', serif;
    background-color: #f8f8f8;
    color: #333;
}

/* body,
html {
    height: 100%;
} */

.academic-container {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header {
    border-bottom: 2px solid #8b0000;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.logo h1 {
    font-size: 3.5rem;
    color: #1a365d;
    margin: 0;
    letter-spacing: 1px;
    font-weight: normal;
}

.tagline {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

.instruction-text {
    margin-bottom: 2rem;
}

.year-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.year-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    text-decoration: none;
    font-weight: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.year-btn:hover {
    background-color: #2c5282;
    text-decoration: none;
    color: white;
}

.year-label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.year-description {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: #e2e8f0;
}

.academic-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .year-buttons {
        flex-direction: column;
        width: 80%;
        margin: 2rem auto 0;
    }

    .year-btn {
        width: 100%;
    }
}

/* Chat */

.messages-box {
    flex: 1;
    overflow-y: auto;
}

.messages-list {
    padding-left: 0;
}

.message {
    margin-bottom: 15px;
    list-style: none;
}

.message-text {
    padding: 10px;
    border-radius: 5px;
}

.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
}

.received {
    background-color: #f1f0f0;
    align-self: flex-start;
}

.message-form {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: #f8f9fa;
}

.message-input {
    flex: 1;
    border-radius: 0;
    border-right: none;
}

.btn-send {
    border-radius: 0;
}

.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Syllabus */

.sidebar {
    background-color: #f5f7fa !important;
    border-right: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.sidebar h4 {
    color: #1a365d;
    font-weight: normal;
    border-bottom: 1px solid #8b0000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: #2c5282 !important;
    font-size: 1.05rem;
    padding: 0.5rem 0.75rem;
}

.sidebar .nav-link:hover {
    background-color: #e2e8f0;
    border-radius: 4px;
}

main h2,
main h3,
main h4 {
    color: #1a365d;
    font-weight: normal;
}

main h2 {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

main h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.accordion-button {
    font-family: 'Garamond', 'Times New Roman', serif;
    color: #1a365d;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f0ff;
    color: #1a365d;
}

a {
    color: #2c5282;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.accordion-body ul {
    padding-left: 1.2rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}