/**********************************/
/********  MIDDLE SECTION *********/
/**********************************/

/* COMMON FORMATTING FOR THE MIDDLE SECTION */
#middlesection {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Set the gutter in the middlesection */
#middlesection #lateststructure,
#middlesection #newfeatures,
#middlesection #news {
    padding: 0;
}

#middlesection #lateststructure {
    padding-right: 5px;
}

#middlesection #newfeatures {
    padding: 0 5px;
}

#middlesection #news {
    padding-left: 5px;
}

/* Set the background color of the card-BS 5.3 */
#middlesection .card-default>.card-header {
    background-color: var(--brand);
    color: #FFF;
}

/* Set the common format */
#middlesection ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#middlesection h3 {
    font-weight: normal;
    margin-top: 0;
    color: #FFFFFF;
}

#news .nav-tabs span {
    color: var(--brand);
    font-size: 1rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

#news .nav-tabs .active span {
    color: var(--neutral);
}

#middlesection .date,
.card_content .date {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 0;
    display: inline-block;
}


/* Set the tab section */
.tab-content {
    padding: 0;
}

.nav-tabs {
    border-bottom: 0;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
    background-color: var(--brand);
    border: 1px solid var(--logo);
    color: var(--neutral);
}

.nav-tabs .open>a,
.nav-tabs .open>a:hover,
.nav-tabs .open>a:focus,
.nav-tabs>li>a:hover {
    border: 1px solid #DDD;
    background-color: var(--logo);
    color: white;
}

/* FIRST COLUMN: LATEST ENTRIES */
#lateststructure .card-body {
    padding: 10px;
}

#lateststructure .carousel {
    position: relative;
}

#lateststructure .carousel-inner {
    width: 250px;
}

/* --------- Middle Section --------- */
#lateststructure img {

    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 250px;
    max-height: auto;


}

@media (min-width: 576px) {
    #lateststructure .carousel-inner {
        width: 250px;
    }
}

@media (min-width: 768px) {
    #lateststructure .carousel-inner {
        width: 250px;
    }
}

@media (min-width: 992px) {
    #lateststructure .carousel-inner {
        width: 300px;
    }
}

@media (min-width: 1300px) {
    #lateststructure .carousel-inner {
        width: 450px;
    }
}

#lateststructure .carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    /* control width */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lateststructure .carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

#lateststructure .carousel-inner .feature_block h3 {
    text-transform: uppercase;
    color: #333;
}


#lateststructure #carousel-lateststructure {
    margin-top: 3px;
    height: 381px;
}

#lateststructure.carousel-title {
    width: 80%;
    text-align: center;
}

/* Align with Carousel indicators */
#seeAllStructures {
    margin-left: 3px;
    color: #FFFFFF;
    text-decoration: underline;
}


/* COMMON FORMATTING FOR LIST CONTENT */
.default-content-list {
    margin-bottom: 20px;

}

.default-content-list h4 {
    font-size: 0.9em;
    margin-top: 0;
    line-height: 1.3;
    padding: 3px 0;
    margin-bottom: 0;
}

.default-content-list p {
    font-size: 0.9em;
    margin-bottom: 5px;
    line-height: 1.4;
    margin-block-end: 0;
}

.default-content-list li {
    clear: both;
    padding: 5px 0;
    font-size: 0.9em;
    line-height: 1.3;
}

.default-content-list li .news_img {
    width: 100px;
    float: left;
    margin-right: 10px;
}

/* SECOND COLUMN: img-fluid */
#newfeatures .card-body {
    height: 403px;
    overflow-x: hidden;
    display: block;
}

#newfeatures_content h4 {
    margin-top: 5px;
}

#newfeatures_content img {
    width: 120px;
    margin-right: 0;
    margin-top: 0;
}

#newfeatures_content .circle_icon {
    width: 100px;
    margin-right: 10px;
}

/* THIRD COLUMN: TWITTER NEWS */


#news .nav-tabs .nav-link.active {
    background-color: #325880;
    padding: 9px 8px 10px 8px;
    color: white;

}

#news_content {
    padding: 0;
    border: 0;
}

#rcsbnews {
    position: relative;
}

#rcsbnews #weeklyRCSBnews {
    height: 405px;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    border: 1px solid transparent;
    border-color: #ddd;
    border-radius: 4px;
    border-top-left-radius: 0;

}

#rcsbnews #wwPDBnews {
    height: 140px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
    border: 5px solid #8DBD8D;
    /* padding: 15px; */
}

#rcsbnews #wwPDBnews .logo {
    width: 100px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* wwPDB news anchor colors */
#rcsbnews #wwPDBnews a {
    color: #0B810B;
}

#rcsbnews #wwPDBnews .top_wwpdbnews a {
    font-size: 14px;
    font-weight: bold;
}

#rcsbnews #wwPDBnews .date {
    font-weight: normal;
}

.news_thumbnail {
    width: 120px;
}

/* Some other news related CSS can be found within secondary.css */

/* THIRD COLUMN: PUBLICATIONS */
#news_content .feature_block img {
    width: 43%;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}

#news_content .feature_block .img-heightlong {
    width: 40%;
}

#news_content h3 {
    color: #000000;
}

#featuredsystems,
#moleculeofthemonth,
#quarterlynews,
#annualreport {
    border: 1px solid #ddd;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 10px;
    height: 407px;
    margin-top: -3px;
}

#featuredsystems h4,
#moleculeofthemonth h4,
#quarterlynews h4,
#annualreport h4 {
    font-size: 15px;
}

#quarterlynews .notes {
    font-size: 12px;
}

#news .dropdown .dropdown-menu hr {
    margin-top: 5px;
    margin-bottom: 5px;
}

#middlesection #psi_title {
    font-size: 17px;
}

#HomepageImage {
    padding: 0 15px 15px 15px;
}

.no-padding {
    padding: 0;
}

.min-LR-padding {
    padding: 0 3px 0 3px;
}