/* Use this stylesheet for Explore, Apps, Topics from the navbar */

.apps-wrapper, .topics-wrapper{
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.apps-header, .topics-header{
    flex-direction: column;
    align-items: center;
}

.apps-header-title, .topics-header-title{
    font-weight: 900;
    color: #0F1429;
    font-size: 45px;
    margin-bottom: 16px;
    line-height: 54px;

}
.apps-header-subtitle, .topics-header-subtitle{
    font-weight: 500;
    color: #566C7E;
    font-size: 16px;
    margin-bottom: 48px;
    text-align: center;
}

.apps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
    grid-gap: 0 32px; /* Horizontal gap between cards */
    justify-items: center;
}

.apps-list-card-wrapper {
    height: 192px;
    min-width: 296px;
    background: #EDEEF1;
    border-radius: 15px;
    border: 1px solid #D9D9D9;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Apply margin-right to all cards except the last one in each row */
.apps-list .apps-list-card-wrapper:not(:nth-child(n)) {
    margin-right: 32px;
}

/* Reset margin-right for the last child in each row */
.apps-list .apps-list-card-wrapper:nth-child(n) {
    margin-right: 0;
}


.apps-list-platform{
    font-weight: bolder;
    font-size: 16px;
    line-height: 24px;

}

.apps-list-thumb{
    width: 72px;
    height: 72px;
    background: white;
    margin-top: 40px;
    border-radius: 15px;
    margin-bottom: 16px;
    padding: 8px;
}


.apps-list-count {
    color: #566C7E;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.apps-create-first, .apps-count-text {
    color: #566C7E;
    font-weight: 500;
    font-size: 12px;

}

.apps-create-first {
    color: #1A83FF;
    text-decoration: underline;
}

/* Additional wrapper to use flexbox */
.apps-count-wrapper {
    display: flex;
    align-items: center;
}

/*used to target the arrows on the apps page specifically*/
.material-symbols-outlined.apps-list-count-arrow {
    color: #A3A3A3;
    font-size: 16px;
    padding-left: 9px;
    padding-right: 0;
    margin-right: 0;
    height: 16px;
    width: 16px;
}

.appsPlatform-thumb{
    height: 56px;
    width: 56px;
    border-radius: 10px;
    border: 1px solid #EBF2FD;
    box-shadow: 0 4px 6px 0 #EBF2FD;
    padding: 8px;
    background: white;
    margin-top: 15px;
    align-self: center;
}

.appsPlatform-title{
    align-self: center;
    color: #0F1429;
    font-weight: bolder;
    font-size: 45px;
    margin-top: 45px;
}

.appsPlatform-subtitle{
    align-self: center;
    color: #566C7E;
    font-weight: normal;
    font-size: 16px;
    margin-top: 16px;
    line-height: 24px;
    margin-bottom: 100px;
}

.appsPlatform-no-resources{
    text-align: center;
    margin-right: -35%;
}

/*Start of topics styling topicsPage.jsx*/

.topic-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.topic-list-card-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    text-decoration: none;
}

.topics-list-thumb {
    width: auto;
    height: 60px;
}

.topics-list-count {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topic-list {
    font-size: 30px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 24px;
}

.topic-row{
    margin-bottom: 70px;
}

.topic-resource-top{
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.topic-title{
    justify-content: space-between;
    font-weight: 700 !important;
    font-size: 30px;
    line-height: 32px;
    color: #000000;
}

.topic-side-title{
    line-height: 16px;
    font-size: 14px;
    font-weight: 500;
    align-self: end;
}

.topic-side-title-arrow{
    vertical-align: middle;
}

.topic-resource-middle, .topic-resource-bottom {
    display: flex;
    flex-wrap: wrap;
}

.topic-resource-middle {
    margin-left: -30px;
    margin-right: -30px;
    /*margin-bottom: 20px;*/
}

.topic-resource-wrapper{
    margin:  0 -10px 20px -10px;
}

.topic-resource-bottom {
    margin-left: -15px;
    margin-right: -45px;
    flex-wrap: nowrap;
    margin-inline: auto;
}

.topic-resource {
    width: calc(33.33% - 40px);
    padding: 0;
    box-sizing: border-box;
    position: relative;
    margin: 0 20px;
}

.topic-resource:first-child {
    /*margin-left: 20px;*/
    margin-right: 40px;
}

.topic-resource:last-child {
    /*margin-right: 20px;*/
    margin-left: 40px;
}

.topic-resource-image-wrapper {
    width: 100%;
    height: 240px;
}

.topic-resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    overflow: hidden;
}

.topic-resource-bottom .topic-resource-middle {
    align-items: center;
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
    text-align: center;
}

.topic-resource-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 5px;
    background: #FFFFFF;
    border: #EBF2FD 1px solid;
    margin-right: 15px;
}

.topic-resource-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #0F1429;
    width: calc(78%);
    text-align: left;
}

/* Default: 3 items per slide */
.topics-carousel-3 {
    display: block;
    max-height: 300px;
}

/*Hides the 1 and 2 resource carousels for mobile */
.topics-carousel-2,
.topics-carousel-1 {
    display: none;
    min-height: 332px;
}

/*Carousel styling for topics page*/

.carousel{
    position: inherit;
    flex: auto;
}

.carousel-control-next, .carousel-control-prev{
    width: min-content;
    height: fit-content;
    align-self: center;
    padding: 5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.carousel-control-next {
    right: -24px ;
}
.carousel-control-prev {
    left: -24px ;
}

/* messages on topics page if topic doesnt exist in backend */
.no-resources-message {
    text-align: center;
    margin: auto;
    font-size: 20px;
    font-weight: bolder;
    border-radius: 16px;
    border: 1px dotted;
    padding: 60px;
}

.no-resources-message a {
    color: #007bff !important;
    text-decoration: underline !important;
}

.no-resources-message a:hover {
    text-decoration: none;
}
