body {
    color: #F2E2B1;
    background-color: #1d5d5f;
}

header {
    text-align: center;
    padding: 30px 20px;
    background-color: #1d5d5f;
}

.header-title {
    font-size: 2.5rem;
}

.description-nit, .description-ranking {
    color: white;
    margin: 0px;
    font-size: 1.1rem;
}

#md1, #md2 {
    color: white;
    margin: 4px;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #F2E2B1;
}

main {
    margin-right: 5vw;
    margin-left: 5vw;
    background: white;
    padding: 20px;
    border-radius: 8px;
    color: #3e3e3b;
}

.programs-main-title {
    color: #1d5d5f;
    font-size: 1.8rem;
    font-weight: 600;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.program-card {
    background-color: #F2E2B1;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    color: #1d5d5f;
}

.program-card p.title {
    padding: 0px;
    margin: 5px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d5d5f;
}

.program-card p {
    padding: 0px;
    margin: 5px;
    font-size: 1rem;
    color: black;
}

.admission p {
    font-size: 1.3rem;
    color: #1d5d5f;
    font-weight: 600;
}

.admission ol {
    padding-left: 20px;
}

.admission li {
    margin-bottom: 20px;
    color: #3e3e3b;
}

.nit {
    background-color: #1d5d5f;
    margin: auto;
    padding-bottom: 100px;
}

.nit-rankings {
    margin: auto;
    background-color: #F2E2B1;
    padding-bottom: 80px;
}

.header {
    background-color: #F2E2B1;
    text-align: center;
}

.description-ranking {
    color: black;
}

#md1 {
    color: black;
    margin-bottom: 50px;
}

.ranking-title {
    font-size: 2.5rem;
    background-color: #F2E2B1;
    color: #1d5d5f;
    font-weight: 600;
    margin: 0px;
    padding-top: 80px;
    margin-bottom: 20px;
}

.ranking-table {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

table {
    width: 80%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

tbody {
    font-size: 1.1rem;
}

th, td {
    padding: 15px;
    text-align: left;
    color: black;
}

th {
    background-color: #1d5d5f;
    color: white;
}

tr {
    border: 1px solid lightgray;
}

.about-rankings {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    margin-top: 50px;
    width: 77%;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.about-rankings p {
    color: black;
    margin: 0px;
    margin-bottom: 15px;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

button.download {
    background-color: #1d5d5f;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

button.compare {
    background-color: white;
    border: 2px solid #1d5d5f;
    color: #1d5d5f;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* Media Queries for Responsive Design */

/* For screens up to 1600px */
@media (max-width: 1600px) {
    .header-title {
        font-size: 2.3rem;
    }

    .description-nit, .description-ranking {
        font-size: 1rem;
    }

    .programs-main-title {
        font-size: 1.6rem;
    }

    .program-card p.title {
        font-size: 1.2rem;
    }

    .program-card p {
        font-size: 0.95rem;
    }

    .admission p {
        font-size: 1.2rem;
    }

    .ranking-title {
        font-size: 2.3rem;
    }

    tbody {
        font-size: 1rem;
    }
}

/* For screens up to 1200px */
@media (max-width: 1200px) {
    .header-title {
        font-size: 2rem;
    }

    .description-nit, .description-ranking {
        font-size: 0.95rem;
    }

    .programs-main-title {
        font-size: 1.5rem;
    }

    .program-card p.title {
        font-size: 1.1rem;
    }

    .program-card p {
        font-size: 0.9rem;
    }

    .admission p {
        font-size: 1.1rem;
    }

    .ranking-title {
        font-size: 2rem;
    }

    tbody {
        font-size: 0.95rem;
    }

    .program-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    table {
        width: 90%;
    }

    .about-rankings {
        width: 85%;
    }
}

/* For screens up to 1080px */
@media (max-width: 1080px) {
    .header-title {
        font-size: 1.8rem;
    }

    .description-nit, .description-ranking {
        font-size: 0.9rem;
    }

    .programs-main-title {
        font-size: 1.4rem;
    }

    .program-card p.title {
        font-size: 1rem;
    }

    .program-card p {
        font-size: 0.85rem;
    }

    .admission p {
        font-size: 1rem;
    }

    .ranking-title {
        font-size: 1.8rem;
    }

    tbody {
        font-size: 0.9rem;
    }

    .program-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    table {
        width: 95%;
    }

    .about-rankings {
        width: 90%;
    }

    th, td {
        padding: 12px;
    }
}