/* Academics Page Styles */
.body {
    padding-top: 8rem;
    /* Account for fixed header */
    max-width: var(--max-width);
    margin: 0 auto;
    margin-top: 8rem;
    padding: var(--space-xl) var(--space-xl);
}

/* Hero Section */
.first_photo {
    background: linear-gradient(rgba(46, 49, 65, 0.7), rgba(46, 49, 65, 0.7)),
        url('../assets/images/library.png') center/cover no-repeat;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    border-radius: 8px;
    animation: fadeIn 1s ease-out;
}

.photo_talk {
    text-align: center;
    color: var(--light-color);
    padding: var(--space-lg);
    max-width: 800px;
    animation: slideUp 0.8s ease-out;
}

.photo_talk h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.photo_talk p {
    font-size: 2rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Page Navigation */
.page-nav {
    background-color: var(--gray-color);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    position: relative;
}

.page-nav__toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.6rem;
    color: var(--secondary-color);
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: var(--space-sm) 0;
}

.page-nav__toggle span:first-child {
    font-weight: 500;
}

.page-nav__toggle .material-symbols-outlined {
    float: right;
    transition: var(--transition-normal);
}

.page-nav__menu {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-color);
    white-space: nowrap;
}

/* Sub Navigation */
.page-nav__menu::-webkit-scrollbar {
    height: 6px;
}

.page-nav__menu::-webkit-scrollbar-track {
    background: var(--gray-color);
    border-radius: 4px;
}

.page-nav__menu::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.page-nav__item {
    flex: 0 0 auto;
}

.page-nav__link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.page-nav__link:hover {
    color: var(--primary-color);
}

.page-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.page-nav__link:hover::after {
    width: 100%;
}

/* Content Blocks */
.talk_one_block {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    animation: fadeIn 0.8s ease-out;
}

.talk_one_block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.talk_one_block h2 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2.4rem;
    margin-bottom: var(--space-md);
}
 hr {
    border-bottom: 5px var(--primary-color) dotted;
    width: 80%;
    margin: 0px auto;
    background: white;
    color: white;
    margin-bottom: var(--space-lg);
}

.read {
    line-height: var(--line-height-base);
    margin-bottom: var(--space-md);
    text-align: justify;
}

.read ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.read li {
    margin-bottom: var(--space-sm);
    position: relative;
}

.read li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0.8em;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Photo Gallery */
.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.photos img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Delay animations for each image */
.photos img:nth-child(1) {
    animation-delay: 0.1s;
}

.photos img:nth-child(2) {
    animation-delay: 0.2s;
}

.photos img:nth-child(3) {
    animation-delay: 0.3s;
}

.photos img:nth-child(4) {
    animation-delay: 0.4s;
}

.photos img:nth-child(5) {
    animation-delay: 0.5s;
}

.photos img:nth-child(6) {
    animation-delay: 0.6s;
}

.photos img:nth-child(7) {
    animation-delay: 0.7s;
}

.photos img:nth-child(8) {
    animation-delay: 0.8s;
}

/* Courses Tables */
.table_courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.courses {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    animation: fadeIn 0.8s ease-out;
}

.courses:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

caption {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    padding: var(--space-md);
    background-color: var(--gray-color);
    font-weight: 600;
}

thead {
    background-color: var(--primary-color);
    color: var(--light-color);
}

th {
    padding: var(--space-sm);
    text-align: left;
    font-weight: 500;
}

tbody tr:nth-child(even) {
    background-color: var(--gray-color);
}

td {
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


/* Honors */
/* Honors List Styles */
.honors-section {
    font-family: 'Roboto', sans-serif;
}

.honors-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
}

.honors-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2.4rem;
    margin-bottom: var(--space-md);
}

.honors-intro {
    text-align: center;
    font-size: 1.41rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.honors-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.honoree {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.honoree:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.honoree-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    flex: 1;
    min-width: 250px;
}

.honoree-details {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
    min-width: 250px;
}

.detail-label {
    font-weight: 600;
    color: #fb8357;
}

/* Responsive Design */
@media (max-width: 768px) {
    .honors-container {
        padding: 2rem;
    }

    .honors-title {
        font-size: 1.8rem;
    }

    .honors-intro {
        font-size: 1rem;
    }

    .honoree {
        flex-direction: column;
        gap: 0.5rem;
    }

    .honoree-name,
    .honoree-details {
        min-width: 100%;
    }
}

/* Skills Section Styles */
.skills-section {
    background-color: #fff;
    padding: 4rem 2rem;
    font-family: 'Roboto', sans-serif;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skills-title {
    font-family: Cinzel;
    text-align: center;
    font-size: 3.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-intro {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background-color: #fb8357;
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-title {
        font-size: 1.8rem;
    }

    .skills-intro {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .first_photo {
        height: 40vh;
    }

    .photo_talk h2 {
        font-size: 3rem;
    }

    .photo_talk p {
        font-size: 1.6rem;
    }

    .table_courses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .first_photo {
        height: 35vh;
        min-height: 300px;
    }

    #menu_btn {
        display: flex;
    }

    .menu_page {
        display: none;
        flex-direction: column;
        gap: var(--space-sm);
        padding-top: var(--space-md);
    }

    .menu_page.active {
        display: flex;
    }

    .material-symbols-outlined {
        transition: var(--transition-normal);
    }

    .material-symbols-outlined.active {
        transform: rotate(90deg);
    }

    .photos {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .first_photo {
        height: 30vh;
        min-height: 250px;
    }

    .photo_talk h2 {
        font-size: 2.4rem;
    }

    .photo_talk p {
        font-size: 1.4rem;
    }

    .photos {
        grid-template-columns: 1fr;
    }
}