  <style>
* {
    font-family: 'Open-Sans', sans-serif!important;
}
.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: minmax(100px, auto);
    background: rgba(255, 255, 255, 1);
    overflow: auto;
    padding-bottom: 15px;
}
mainContainer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container1 {
    display: inline-block;
    vertical-align: top;
    padding: 0;
    width: 38%;
    height: 380px;
    margin: 0;
    float: right;
}

.container2 {
    position: absolute;
    top: 0;
    left: 2%;
    padding: 0;
    margin: 0;
    background: #663399!important;
    width: 60%;
    height: 357px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container1 img {
    width: 100%;
    height: 357px;
    margin: auto;
    float: right;
}

.titles {
    text-align: center;
}

.titles h3 {
    font-weight: 600!important;
    font-size: 40px!important;
    color: #ffcc00!important;
    padding: 10px;
}

.buttonsPosition {
    margin-top: 15px;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    font-size: 18px!important;
}
.buttonsPosition a {
    margin: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    background-color: #663399 !important;
    color: #eee !important;
    border: 3px solid #639 !important;
    transition: background-color 0.3s, color 0.3s, width 0.3s;
    font-weight: normal;
}
.buttonsPosition a:hover {
    background-color: #FFFFFF !important;
    color: #663399 !important;
    font-weight: 500;
    width: 20%;
}
.buttonsPosition a.active {
    background-color: #FFFFFF !important;
    font-weight: 500;
    color: #663399 !important;
    width: 20%;
}

.collapsible {
    background-color: #663399;
    color: #eee;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px!important;
    margin-bottom: 10px;
    border-top: 3px solid #639;
    border-bottom: 3px solid #639;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}
.active, .collapsible:hover {
    background-color: rgba(120, 81, 169, 0.8)!important;
    font-weight: bold;
    color: #FFCC00;
}

.content, .content-overview {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #F2F2F2;
    margin-bottom: 10px;
    font-size: 18px!important;
}

.container_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #F2F2F2!important;
    gap: 20px;
    margin-top: 10px;
}

.rows:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1.5px solid #ccc;
}
.rows {
    margin-bottom: 0;
    padding: 15px;
    position: relative;
}

.news-item {
    margin-bottom: 15px;
    position: relative;
}
.news-item a {
    font-weight: bold;
    font-size: 18px !important;
    padding: 10px;
    display: block;
    text-decoration: none;
    color: #663399;
}
.news-item a:hover {
    text-decoration: underline!important;
    color: #3B0D6A!important;
}
.news-list p {
    margin: 5px 0 0 0;
    padding: 0 50px!important;
    color: black!important;
    font-weight: 400!important;
}

#openrepositorycontainer, #openotherreferencecontainer {
    margin-left: 0em;
    overflow: hidden;
    width: 100%!important;
}

.openrepository, .openotherreference {
    border: 1px solid #639!important;
    width: calc(100% - 2px - 1em);
    overflow: hidden;
    margin-bottom: 1em;
    padding: 1em 0.5em!important;
    display: none;
}

.openrepository.active, .openotherreference.active {
    display: block;
    background-color: #F2F2F2!important;
}

/* Styles for active tabs */
#generaltab.active, #dictionarytab.active, #encyclopediatab.active, #thesauritab.active,
#allreptab.active, #archivestab.active, #digitallibrariestab.active, #repositoriestab.active {
    background: #639!important;
    color: white!important;
}

/* Individual tab styling */
#generaltab, #dictionarytab, #encyclopediatab, #thesauritab,
#allreptab, #archivestab, #digitallibrariestab, #repositoriestab {
    float: left!important;
    background: #fff!important;
    border-top: 1px solid #639;
    border-left: 1px solid #639;
    color: black!important;
    margin: 0;
    padding: 0.5em 1em;
    cursor: pointer;
}

#repositoriestab, #thesauritab {
    border-right: 1px solid #639;
}
/* Default (desktop) styles here */

/* Tablet view */
@media (max-width: 1024px) {
    .container1, .container2 {
        width: 100%;
        height: auto;
        float: none;
    }
    .buttonsPosition a {
        width: 30%; /* Adjust as needed */
    }
    .titles h3 {
        font-size: 30px!important;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    .container1, .container2 {
        width: 100%;
        height: auto;
        float: none;
    }
    .buttonsPosition a {
        width: 45%; /* Adjust for smaller mobile screens */
    }
    .titles h3 {
        font-size: 24px!important;
    }
    .collapsible {
        font-size: 16px!important;
    }
}
</style>
