/* Academic Calendar Page CSS for IIMU */

:root {
    /* Primary Colors - Green & Yellow */
    --iimu-primary-green: #487235;
    --iimu-primary-yellow: #feec43;
    --iimu-dark-green: #212934;
    --iimu-light-green: #487235;
    --iimu-light-yellow: #feec43;
    --iimu-pale-green: #f2f2f2;
    --iimu-pale-yellow: #f2f2f2;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #020202;
    --text-dark: #212934;
    --text-gray: #4d4d4d;
    --text-light-gray: #cbcbcb;
    --border-light: #f2f2f2;
    /* --table-border: #dcdcdc; */
    
    /* Background Colors */
    --bg-light: #f4f4f4;
    --bg-medium: #dbdbdb;
    --bg-dark: #cbcbcb;
    --table-header-bg: #999999;    /* Shadows */
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 12px 32px rgba(72, 114, 53, 0.25);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify;
    background-color: white;
    font-weight: 300;
}

#pseudoBody {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Serif', serif;
    font-weight: 500;
}

h1 {
    color: var(--black);
}

h2 {
    color: var(--iimu-primary-green);
}

h3 {
    color: var(--iimu-primary-green);
}

h4 {
    color: var(--iimu-primary-green);
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.overall-non-footer {
    max-width: 1170px;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
.overall {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background-color: var(--bg-dark);
    margin: 0;
    border: none;
}

/* ========== Breadcrumb Section ========== */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    margin-top: var(--header-total-height);
}

.breadcrumb div {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumb p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: -10px;
}

.breadcrumb a {
    color: var(--iimu-primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--iimu-primary-yellow);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-gray);
}

/* ===============================================
Calendar Note Section
=============================================== */

.hero {
    color: var(--black);
    padding-bottom: 2%;
}

.calendar-note-section {
    padding: 40px 0 20px;
    background: white;
}

.calendar-note {
    background: white;
    padding: 20px 25px 20px 0px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.calendar-note i {
    font-size: 24px;
    color: var(--iimu-primary-yellow);
    margin-top: 2px;
}

.calendar-note div {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.calendar-note strong {
    color: var(--iimu-dark-green);
}

/* ===============================================
   Semester Section
   =============================================== */
.semesters-container {
    padding: 20px 0;
    background: white;
}

.semesters-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.semester-section {
    background: white;
}

.semester-header-card {
    background: var(--white);
    padding: 30px 0px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 10px;
}

.semester-icon {
    width: 80px;
    height: 80px;
    background: var(--iimu-primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.semester-icon i {
    font-size: 36px;
    color: var(--white);
}

.semester-info {
    flex: 1;
}

.semester-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--iimu-primary-green);
    margin-bottom: 8px;
}

.semester-duration {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===============================================
   Calendar Table
   =============================================== */
.table-container {
    background: var(--white);
    overflow: visible;
    padding: 5px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.calendar-table thead {
    background: white;
    color: var(--black);
}

.calendar-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--text-light-gray);
    background-color: var(--bg-light);
}

.calendar-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.calendar-table tbody tr:nth-child(odd) {
    background: var(--white);
}

.event-col {
    width: 25%;
}

.date-col {
    width: 20%;
}

.details-col {
    width: 40%;
}

.status-col {
    width: 15%;
    text-align: center;
}

.calendar-table tbody tr:last-child {
    border-bottom: none;
}

.calendar-table tbody td {
    padding: 18px 15px;
    vertical-align: middle;

    border-bottom: 1px solid var(--text-light-gray);
    border-right: 1px solid var(--text-light-gray);
    border-left: 1px solid var(--text-light-gray);
}

.event-name {
    gap: 12px;
    font-weight: 400;
    color: var(--text-dark);
    text-align: left;
}

.event-name i {
    font-size: 20px;
    color: var(--iimu-primary-green);
    width: 24px;
    text-align: center;
}

.date-tbd {
    color: var(--black);
    font-size: 14px;
}

/* Assessment and Exam Rows */
.assessment-row {
    background-color: rgba(72, 114, 53, 0.04);
}

.exam-row {
    background-color: rgba(244, 196, 48, 0.08);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background-color: white;
    color: #666;
}

.status-badge.confirmed {
    background-color: white;
    color: var(--iimu-dark-green);
}

/* Alternate row colors for status badges */
.calendar-table tbody tr:nth-child(even) .status-badge.pending {
    background-color: var(--white);
}

.calendar-table tbody tr:nth-child(even) .status-badge.confirmed {
    background-color: var(--white);
}

/* ===============================================
   Legend Section
   =============================================== */
.legend-section {
    padding: 40px 0;
    background: white;
}

.legend-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--iimu-primary-green);
    margin-bottom: 25px;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
}

.legend-item i {
    font-size: 12px;
}

/* ===============================================
   Notes Section
   =============================================== */
.notes-section {
    padding: 40px 0 60px;
    background: white;
}

.notes-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--iimu-primary-green);
    margin-bottom: 30px;
    /* text-align: center; */
}

.notes-content {
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background: white;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.note-card i {
    font-size: 24px;
    color: var(--iimu-primary-yellow);
    margin-top: 2px;
}

.note-card div {
    flex: 1;
    /* font-size: 14px; */
    line-height: 1.6;
    color: var(--text-gray);
}

.note-card strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

/* ===============================================
   Navigation Section
   =============================================== */
.navigation-section {
    padding: 60px 5%;
    background: white;
}

.navigation-info {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navigation-info span {
    display: none;
}

.navigation-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--iimu-primary-green);
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.navigation-button:hover {
    background: var(--iimu-primary-yellow);
    color: var(--text-dark);
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width:550px) {
    section {
        padding: 15px 0;
    }

    .overall {
        padding: 15px;
    }
}

@media (max-width: 1200px) {

    .breadcrumb {
        margin-top: var(--header-total-height);
    }
}

@media screen and (max-width: 1024px) {
    .semester-header-card {
        padding: 25px;
    }

    .semester-title {
        font-size: 28px;
    }

    .calendar-table {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
    }

    .semesters-grid {
        gap: 30px;
    }

    .navigation-info {
        gap: 15px;
    }

    .calendar-hero {
        padding: 60px 0 40px;
    }

    .calendar-hero h1 {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .semester-header-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .semester-icon {
        width: 60px;
        height: 60px;
    }

    .semester-icon i {
        font-size: 28px;
    }

    .semester-title {
        font-size: 24px;
    }

    .semester-duration {
        font-size: 16px;
    }

    .table-container {
        overflow-x: auto;
    }

    .calendar-table {
        min-width: 600px;
        font-size: 13px;
    }

    .calendar-table thead th,
    .calendar-table tbody td {
        padding: 12px 10px;
    }

    .event-name {
        font-size: 13px;
    }

    .event-name i {
        font-size: 16px;
    }

    .notes-content {
        grid-template-columns: 1fr;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 550px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
    }

    h1 {
        font-size: 1.6rem;
    }

    .calendar-hero h1 {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .semester-title {
        font-size: 1.2rem;
    }

    .notes-title {
        font-size: 1.2rem;
    }

    .calendar-note {
        padding: 15px 20px;
    }

    .calendar-note i {
        font-size: 20px;
    }

    .navigation-info span {
        font-size: 16px;
    }

    .navigation-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
        padding: 8px 0;
        font-size: 12px;
    }

    .overall {
        padding: 15px;
    }

    .calendar-hero {
        padding: 40px 0;
    }

    .calendar-hero h1 {
        font-size: 24px;
    }

    .calendar-hero p {
        font-size: 14px;
    }

    .year-selector {
        flex-direction: column;
        gap: 10px;
    }

    .year-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* .calendar-section h2 {
        font-size: 20px;
    } */

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .month-card {
        padding: 15px;
    }

    .month-name {
        font-size: 18px;
    }

    .event-item {
        padding: 10px;
    }

    .event-date {
        font-size: 13px;
    }

    .event-title {
        font-size: 13px;
    }

    .navigation-section {
        padding: 30px 15px;
    }

    .navigation-info {
        padding: 15px;
    }

    .navigation-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
