/* Academics Page CSS for IIMU */
/* Based on IITM layout with green and yellow color scheme */

: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;
    
    /* Background Colors */
    --bg-light: #f6f6f6;
    --bg-medium: #cbcbcb;
    --bg-dark: #cbcbcb;
    --table-header-bg: #7b7b7b;
    
    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.6);
}

/* 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;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Serif', serif;
    font-weight: 500;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    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);
}

/* ========== Main Heading & Sections ========== */
main {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--white);
}

h1 {
    color: var(--black);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

h2 {
    color: var(--iimu-primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

h3 {
    color: var(--iimu-primary-green);
    font-size: 1.4rem;
    margin-bottom: 12px;
    /* font-weight: 500; */
}

/* h4 {
    color: var(--iimu-primary-green);
} */

p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.sub-p {
    font-style: italic;
    color: var(--text-dark);
}

/* ========== Program Info Banner ========== */
.program-info-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.info-banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-medium);
}

.info-banner-item i {
    font-size: 2.5rem;
    color: var(--iimu-primary-green);
    flex-shrink: 0;
}

.info-banner-item > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-banner-item strong {
    color: var(--iimu-primary-green);
    font-size: 1rem;
    font-weight: 500;
}

.info-banner-item span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.courses-credits-section {
    margin-top: 30px;
}

.courses-credits-section h3 {
    color: var(--iimu-primary-green) !important;
}

/* ========== Year Container ========== */
.year-container {
    margin-bottom: 35px;
}

.year-title {
    color: var(--iimu-primary-green);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-left: 15px;
}

/* ========== Semester Grid ========== */
.semester-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.semester-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.semester-header {
    background: var(--iimu-primary-green);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.semester-card.honours .semester-header {
    background: var(--iimu-primary-yellow);
    color: var(--text-dark);
}

.semester-number {
    font-size: 1.1rem;
    font-weight: 500;
}

.semester-period {
    font-size: 0.9rem;
    opacity: 0.95;
}

.semester-body {
    padding: 20px;
    background-color: white;
}

.semester-body p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.semester-body p:last-child {
    margin-bottom: 0;
}

.semester-body strong {
    color: var(--iimu-dark-green);
}

/* ========== Course Information Section ========== */
.courses-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.courses-left {
    display: flex;
    justify-content: center;
}

.flowchart-box {
    width: 100%;
    background-color: white;
    padding: 20px;
}

.flowchart-box img {
    width: 100%;
    height: auto;
}

/* Info Cards */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background-color: white;
}

.info-block .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.info-block div h4 {
    color: var(--iimu-primary-green);
    font-weight: 500;
    margin-bottom: 5px;
}

.info-block div p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========== Assessment Details ========== */
.assessment-details {
    max-width: 1170px;
    margin: 30px auto;
    padding: 20px 0;
    background-color: white;
}

.assessment-details h3 {
    color: var(--iimu-primary-green) !important;
}

.info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-medium);
}

.info-item > div:first-child {
    flex-shrink: 0;
}

.info-item .icon {
    width: 45px;
    height: 45px;
}

.info-item .text h3 {
    margin-bottom: 8px;
    color: var(--iimu-primary-green);
}

.info-item .text p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========== student Section ========== */
.student-section {
    max-width: 1170px;
    margin: 30px auto;
    padding: 20px 0;
    background-color: white;
}

.student-section .main-heading {
    margin-bottom: 15px;
}

.student-section .description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== Assessment Section ========== */
.assessment-section {
    max-width: 1170px;
    margin: 30px auto;
    padding: 20px 0;
    background-color: white;
}

.main-heading {
    color: var(--iimu-primary-green);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.custom-list {
    list-style: none;
    margin-left: 0;
}

.custom-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--white);
    border-left: 4px solid var(--iimu-primary-yellow);
}

.sub-list {
    list-style: disc inside;
    margin-top: 10px;
    margin-left: 20px;
}

.sub-list li {
    margin-bottom: 8px;
    background: none;
    border: none;
    padding: 0;
    display: list-item;
}

/* ========== Tables ========== */
.curriculum-table,
.fees-table,
.waiver-table,
.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white);
    overflow: hidden;
    border: 1px solid var(--text-light-gray);
}

.table-wrapper {
    width: 100%;
    overflow-x: visible;
}

table thead {
    background: white;
    color: var(--black);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
    border: 1px solid var(--text-light-gray);
}

table td {
    padding: 12px 15px;
    color: var(--text-gray);
    border: 1px solid var(--text-light-gray);
}

.curriculum-table td:first-child, .waiver-table td:first-child {
    white-space: nowrap;
}

.curriculum-table {
    text-align: left;
}

table tbody tr:nth-child(odd) {
    background: var(--white);
}

table tbody tr:nth-child(even) {
    background: white;
}

table tbody tr:last-child td {
    border-bottom: none;
}

.courses-table-container {
    overflow-x: auto;
}

table thead {
    background: var(--bg-light);
    color: var(--black);
}

table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

table tbody tr:nth-child(odd) {
    background: var(--white);
}

.fee-footnote {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 15px;
    font-style: italic;
}

/* ========== Waiver & Notes ========== */
.waiver-structure-section {
    margin-top: 30px;
}

.waiver-notes {
    list-style: none;
    margin-left: 0;
    margin-top: 20px;
}

.waiver-notes li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
}

.italic-note {
    display: block;
    font-style: italic;
    margin-top: 8px;
    color: var(--text-gray);
}

.waiver-notes a {
    color: var(--iimu-primary-green);
    text-decoration: none;
    font-weight: 500;
}

.waiver-notes a:hover {
    text-decoration: underline;
    color: var(--iimu-primary-yellow);
}

/* ========== Foundation/Diploma/BS Sections ========== */
.foundation-head {
    max-width: 1170px;
    margin: 0 auto;
    padding: 50px 20px;
    background-color: white;
}

.foundation-title {
    color: var(--iimu-primary-green);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.foundation-desc {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.foundation-flex {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.foundation-left {
    flex: 1;
}

.foundation-summary {
    padding-top: 10%;
    flex: 0 0 auto;
}

.foundation-card {
    background: white;
    padding: 25px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-icon {
    color: var(--iimu-primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-row span:last-child {
    font-size: 0.95rem;
    line-height: 1.6;
}

.subheading {
    /* color: var(--iimu-primary-green); */
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
}

.foundation-link {
    color: var(--iimu-primary-green);
    font-weight: 500;
    background-color: white;
    padding: 3px 8px;
}

.exit-list {
    list-style: none;
    margin-left: 0;
}

.exit-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: white;
}

.exit-list li:first-child {
    margin-bottom: 0;
}

.bullet-icon {
    flex-shrink: 0;
}

.exit-list a {
    color: var(--iimu-primary-green);
    text-decoration: none;
    font-weight: 500;
}

.exit-list a:hover {
    text-decoration: underline;
    color: var(--iimu-primary-yellow);
}

.section-heading {
    color: var(--iimu-primary-green);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.exam-section {
    max-width: 1170px;
    margin: 30px auto;
    padding: 20px 0;
    background-color: var(--white);
}

.exam-cities-list {
    list-style: none;
    margin-left: 0;
}

.exam-cities-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: white;
}

.exam-list-link {
    color: var(--iimu-primary-green);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.exam-list-link:hover {
    color: var(--iimu-light-green);
}

.arrow {
    margin-left: 5px;
}

/* ========== Fee Structure Section ========== */
.fee-structure-section, .waiver-structure-section {
    /* background-color: white; */
    padding: 20px 0;
    margin: 30px auto !important;
    max-width: 1170px;
    margin: 0 auto;
}

.fee-heading {
    color: var(--iimu-primary-green);
    margin: 0 0 20px;
}

/* ========== 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);
}

@media (max-width: 1200px) {

    .breadcrumb {
        margin-top: var(--header-total-height);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .program-info-banner {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .semester-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .courses-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .foundation-flex,
    .diploma-flex,
    .bs-flex {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .exam-cities-flex {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
    }

    .navigation-info {
        gap: 15px;
    }
    
    /* table {
        font-size: 0.85rem;
    } */
    
    table th,
    table td {
        padding: 10px;
    }
    
    .info-box {
        grid-template-columns: 1fr;
    }
    
    /* .custom-list li,
    .exit-list li {
    } */
    
    .summary-row {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .navigation-info {
        width: 90%;
    }
}

@media (max-width: 550px) {
    .breadcrumb {
        margin-top: var(--header-total-height);
    }
    
    h1 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 15px 0;
    }

    p {
        font-size: 1rem;
    }
    
    /* Make curriculum table scrollable horizontally */
    .curriculum-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .curriculum-table {
        min-width: 600px; /* Ensures table doesn't shrink too much */
    }

    /* Make all tables scrollable horizontally */
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .fees-table,
    .waiver-table {
        min-width: 500px; /* Ensures tables don't shrink too much */
    }
    
    /* .assessment-details,
    .student-section,
    .assessment-section,
    .fee-structure-section {
        padding: 20px;
    } */
}

/* Extra small devices */
@media (max-width: 480px) {
    .overall {
        padding: 15px;
    }

    .breadcrumb {
        margin-top: var(--header-total-height);
        padding: 8px 0s;
        font-size: 12px;
    }

    .overall h1 {
        font-size: 22px;
    }

    .overall h2 {
        font-size: 20px;
    }

    .overall p {
        font-size: 14px;
    }

    .sub-p {
        font-size: 13px;
    }

    .program-info-banner {
        flex-direction: column;
        gap: 15px;
    }

    .info-banner-item {
        padding: 12px;
    }

    .info-banner-item i {
        font-size: 1.8rem;
    }

    .year-container {
        padding: 20px;
    }

    .year-title {
        font-size: 18px;
    }

    .semester-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .semester-card {
        padding: 15px;
    }

    .semester-number {
        font-size: 14px;
    }

    .semester-period {
        font-size: 11px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .feature-icon {
        font-size: 1.5rem !important;
    }

    .custom-list li {
        font-size: 13px;
    }

    .sub-list li {
        font-size: 12px;
    }

    /* .fees-table {
        font-size: 12px;
    } */

    .fees-table th,
    .fees-table td {
        padding: 10px 8px;
    }

    .fee-footnote {
        font-size: 11px;
    }

    .navigation-section {
        padding: 30px 15px;
    }

    .navigation-info {
        padding: 15px;
    }

    .navigation-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
