/* ACADEMICS.CSS - Academics Page Specific Styles */


/* Stacked awards animation and education section styles */


/* ===================================
   STACKED AWARDS SECTION
   =================================== */

#awards {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 8rem;
    overflow: visible;
}


/* Variables for card stacking configuration */

:root {
    --award-cards: 5;
    --card-top-padding: 1.5em;
    --card-margin: 4vh;
}

.awards-container {
    width: 100%;
    max-width: 1200px;
    margin: var(--space-xl) auto;
    position: relative;
}

#award-cards {
    list-style: none;
    padding-left: 0;
    display: block;
    padding-bottom: calc(var(--award-cards) * var(--card-top-padding));
    margin-bottom: var(--card-margin);
    position: relative;
}


/* ===================================
   INDIVIDUAL CARD POSITIONING
   =================================== */

#award-card1 {
    --index: 1;
    z-index: 10;
}

#award-card2 {
    --index: 2;
    z-index: 20;
}

#award-card3 {
    --index: 3;
    z-index: 30;
}

#award-card4 {
    --index: 4;
    z-index: 40;
}

#award-card5 {
    --index: 5;
    z-index: 50;
}


/* ===================================
   STICKY POSITIONING
   =================================== */

.award-card {
    position: sticky;
    top: 0;
    padding-top: calc(var(--index) * var(--card-top-padding));
    margin-bottom: calc(var(--index) * -1 * var(--card-margin));
}


/* ===================================
   CARD BODY STYLING
   =================================== */

.award-card-body {
    box-sizing: border-box;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
    min-height: min-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border-light);
    overflow: visible;
}


/* ===================================
   DIFFERENT BORDER COLORS
   =================================== */

#award-card1 .award-card-body {
    border-color: var(--color-award-1);
}

#award-card2 .award-card-body {
    border-color: var(--color-award-2);
}

#award-card3 .award-card-body {
    border-color: var(--color-award-3);
}

#award-card4 .award-card-body {
    border-color: var(--color-award-4);
}

#award-card5 .award-card-body {
    border-color: var(--color-award-5);
}


/* ===================================
   HOVER EFFECTS
   =================================== */

.award-card-body:hover {
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
}

#award-card1 .award-card-body:hover {
    border: 2px solid var(--color-award-1-solid);
}

#award-card2 .award-card-body:hover {
    border: 2px solid var(--color-award-2-solid);
}

#award-card3 .award-card-body:hover {
    border: 2px solid var(--color-award-3-solid);
}

#award-card4 .award-card-body:hover {
    border: 2px solid var(--color-award-4-solid);
}

#award-card5 .award-card-body:hover {
    border: 2px solid var(--color-award-5-solid);
}


/* ===================================
   AWARD CONTENT STYLING
   =================================== */

.award-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-sm);
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid #f0f0f0;
    width: 100%;
}

.award-year {
    font-weight: 600;
    color: rgb(80, 80, 80);
    font-size: 1.1rem;
    padding: 0.4rem 0;
}

.award-title {
    font-weight: 600;
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    text-align: right;
    flex: 1;
    margin-left: var(--space-md);
    line-height: 1.4;
}

.award-details {
    color: var(--color-secondary);
    line-height: 1.6;
    width: 100%;
}

.award-details p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}


/* ===================================
   AWARD IMAGES
   =================================== */

.award-image-container {
    margin: var(--space-xl) 0;
    text-align: center;
    width: 100%;
}

.award-image {
    max-width: 80%;
    height: auto;
    max-height: 250px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.4s ease, opacity 0.4s ease;
}

.award-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.award-details p+.award-image-container {
    margin-top: var(--space-xl);
}

.award-image-container+p {
    margin-top: var(--space-xl);
}


/* ===================================
   AWARD LINKS
   =================================== */

.award-links {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: flex-end;
}

.award-link {
    display: inline-block;
    padding: var(--space-sm) 1.2rem;
    background-color: rgb(245, 245, 245);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-all);
    border: 1px solid var(--color-border-light);
}

.award-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}


/* ===================================
   ACHIEVEMENT LIST
   =================================== */

.achievement-list {
    padding-left: 1.2rem;
}

.achievement-list li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}


/* ===================================
   BLUR EFFECTS FOR SCROLLED CARDS
   =================================== */

.award-card.blurred .award-card-body {
    filter: blur(2px);
    opacity: 0.85;
    transform: scale(0.98);
}

.award-card.blurred .award-image {
    filter: blur(2px);
    opacity: 0.85;
}

.award-card.blurred:hover .award-card-body,
.award-card.blurred:hover .award-image {
    filter: blur(1px);
    opacity: 0.9;
}


/* ===================================
   ACTIVE CARD STYLING
   =================================== */

.award-card.active-card .award-card-body {
    filter: blur(0);
    opacity: 1;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.award-card.active-card .award-image {
    filter: blur(0);
    opacity: 1;
}


/* ===================================
   EDUCATION SECTION ANIMATION
   =================================== */

#about {
    animation: fadeIn 0.6s ease-out;
}

.education-item {
    transition: all 0.3s ease;
}

.education-item:hover {
    border-left-color: var(--color-primary);
    border-left-width: 4px;
    padding-left: calc(var(--space-md) - 1px);
    background-color: rgba(245, 245, 245, 0.3);
}


/* ===================================
   COURSEWORK SECTION
   =================================== */

.coursework-section {
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.coursework-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.coursework-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-award-1-solid), var(--color-award-3-solid));
    border-radius: 2px;
}

.course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.course-category-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border-left: 4px solid var(--color-award-2-solid);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
}

.course-category-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.course-category-box:nth-child(1) {
    border-left-color: var(--color-award-1-solid);
}

.course-category-box:nth-child(2) {
    border-left-color: var(--color-award-2-solid);
}

.course-category-box:nth-child(3) {
    border-left-color: var(--color-award-3-solid);
}

.course-category-box:nth-child(4) {
    border-left-color: var(--color-award-4-solid);
}

.course-category-box:nth-child(5) {
    border-left-color: var(--color-award-5-solid);
}

.course-category-header {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-icon {
    font-size: 1.5rem;
}

.course-list {
    list-style: none;
    padding-left: 0;
}

.course-list li {
    padding: var(--space-sm) 0;
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: var(--space-lg);
    transition: all 0.2s ease;
}

.course-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-award-2-solid);
    font-weight: bold;
    transition: all 0.3s ease;
}

.course-category-box:nth-child(1) .course-list li::before {
    color: var(--color-award-1-solid);
}

.course-category-box:nth-child(2) .course-list li::before {
    color: var(--color-award-2-solid);
}

.course-category-box:nth-child(3) .course-list li::before {
    color: var(--color-award-3-solid);
}

.course-category-box:nth-child(4) .course-list li::before {
    color: var(--color-award-4-solid);
}

.course-category-box:nth-child(5) .course-list li::before {
    color: var(--color-award-5-solid);
}

.course-list li:hover {
    padding-left: calc(var(--space-lg) + 5px);
    color: var(--color-primary);
    font-weight: 500;
}

.course-list li:hover::before {
    transform: scale(1.3);
}

.course-code {
    font-weight: 600;
    color: var(--color-primary);
}

.course-count {
    display: inline-block;
    background-color: var(--color-bg-ash);
    color: var(--color-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: var(--space-sm);
}