/* Styles for Wolfram Tech for Your Research

   developer:   tajudeen
   requires:    /common/framework/css/framework.en.css
   ========================================================================== */

/* ==========================================================================
   Common
   ========================================================================== */
:root {
    --link-color: #f57300;
    --hover-color: #dd1100;
    --p-color: #121416;
    --p-color-2: #444;
    --background-color: #f86300;
    --background-color-2: #d10;
    --background-color-3: #f5fcff;
    --publication: #777777;
    --border-color: #cccccc;
    --border-color-2: #c9ebfd;
    --border-color-3: #ef7000;
    --backlink: #95d9fd;
    --grey: #707070;
    --dropdown-bg: #e6f3f9;
    --dropdown-color: #555555;
}

.inner {
    margin: 0 auto;
    max-width: 70.625rem;
}

.inner.hr {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3.125rem;
}

section {
    padding: 3.125rem 2rem;
}

main {
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    color: var(--p-color);
}

main h1 {
    color: #6bcbfd;
    font-size: 3.75rem;
    font-weight: normal;
    line-height: 1;
    margin: 2.5rem 0 1.5rem 0;
}

main a { color: var(--p-color-2); }

#research p.note a:hover { color: #F86300; }

/* ==========================================================================
   Hero
   ========================================================================== */

#hero:not(.featuredhero) {
    padding: 3.125rem 2rem;
    background: #121416 url(../image/Papers-hero@2x.jpg) center center;
    background-size: cover;
}

#hero h1 span {
    font-weight: 300;
    color: #fff;
    text-transform: capitalize;
}
#hero h1 {
    text-transform: uppercase;
}
#hero .back-link {
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--backlink);
    cursor: pointer;
    position: absolute;
    top: 65px;
}

#hero a.back-link:before {
    content: "\2039";
    font-size: 1.125rem;
    line-height: 20px;
    position: relative;
    color: var(--backlink);
    font-weight: 500;
    display: inline-block;
    padding-left: 2px;
    margin-right: 4px;
}

#hero a.back-link:hover:before,
#hero a.back-link:hover {
    color: #fff;
}

.button {
    background: var(--hover-color);
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    padding: 0.5rem 1rem;
    text-align: center;
}

#subpage #hero {
    padding: 1.5rem 2rem 0rem 2rem
}

#hero .inner>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(314px, 1fr));
    grid-gap: 1.875rem;
    padding: 1rem 0;
}

#hero img {
    height: auto;
    display: block;
    max-width: 100%;
}

#hero .button, .hero .button {
    background: #f77700;
    border: 1px solid var(--border-color-3);
}

/* ==========================================================================
   Intro
   ========================================================================== */

#intro .inner p, #research .inner p {
    font-family: NotoSerif;
    color: var(--p-color);
}

#intro .inner p {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.625;
}

#research .inner p {
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================================================
   Publications
   ========================================================================== */

#publications h2 {
    font-weight: 600;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

#publications ul, #research ul {
    column-gap: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    background-color: var(--background-color-3);
    border: 1px solid var(--border-color-2);
    border-radius: 10px;
    padding: 2rem;
}

.inner ul li:nth-last-child(-n + 2) {
    margin-bottom: 0 !important;
}

#publications ul li {
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

#publications ul > * {
    position: relative;
    padding-left: 1.0rem;
}

#publications ul > *::before {
    background: var(--link-color);
    content: '';
    display: inline-block;
    height: 5px;
    left: 0;
    position: absolute;
    top: 0.6rem;
    width: 5px;
}

#publications ul li span {
    display: block !important;
}

#publications ul li a {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--p-color);
    font-weight: 600;
}

#publications ul li a:hover {
    color: var(--hover-color);
}

#publications ul li span {
    display: block !important;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--publication);
}

#publications .inner div:last-of-type {
    text-align: center;
}

#subpage.featured #publications .inner div:last-of-type {
    text-align: left;
}

#publications .inner div button.more.button {
    border-radius: 3px;
    border: solid 1px var(--background-color-2);
    background-color: var(--background-color-2);
    font-size: 1.125rem;
    color: #ffffff;
    margin-top: 2rem;
}

#publications .inner div button.more.button:hover {
    background-color: var(--background-color);
}

/* ==========================================================================
   Research
   ========================================================================== */

#research .inner ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #444;
    line-height: 1.38;
    font-size: 1rem;
}

#research .inner ul li .details span {
    display: block !important;
    font-weight: normal;
}

#research .inner ul li .details a { 
    font-weight: 600;
    color: var(--p-color);
    font-size: 1.125rem;
}

#research .inner ul li .details a:hover {
    color: var(--hover-color);
}

#research p.note {
    line-height: 1.5;
    font-weight: normal;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    color: #444444;
    margin-top: .75rem;
}

#research p.note a {
    color: var(--hover-color);
}

/* ==========================================================================
   FEATURED PAGE
   ========================================================================== */

#subpage.featured #herotitle > div {
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    display: grid;
}

#subpage.featured  #hero.featuredhero {
    background: var(--p-color);
}

#subpage.featured  #hero .inner>div {
    padding: 0;
}

#subpage.featured  main h1 {
    margin: 3.5rem 0 3.5rem 0;
}

#subpage.featured form#filter-form {
    display: flex;
    justify-content: space-between;
    /*margin-bottom: 2rem;*/
}

#subpage.featured  button {
    background: #fff;
    border: none;
    cursor: pointer;
}

#subpage.featured input[type="search"] {
    padding: 1rem;
    border: none !important;
    background: transparent;
    font-size: 1rem;
    line-height: 0.875rem; 
    color: var(--grey);
}

/*search*/
#subpage.featured .filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    /*margin-bottom: 2rem;*/
}

#subpage.featured .year-select-wrap select {
    font-size: 1.75rem !important;
    font-weight: 600;
    border: none;
    outline: none;
    background: transparent;
    padding-right: 0.5rem;
    cursor: pointer;
    background-image: url(../image/icon/caret.svg);
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 10px;
    padding-right: 22px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#subpage.featured .year-select-wrap select option {
    font-size: 0.875rem !important;
    color: #888888;
    background: #ffffff;
    line-height: 1;
}

.year-select-wrap select:focus {
  background-image: url('../image/icon/caret-down.svg'); 
}

#subpage.featured .year-select-wrap {
    position: relative;
    display: inline-block;
    border-bottom: 1px solid var(--border-color);
}

#subpage.featured .search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

#subpage.featured .search-wrap input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px 15px 10px;
    font-size: 0.9rem;
    outline: none;
}

#subpage.featured .search-wrap input::placeholder {
    color: var(--grey);
}

#subpage.featured .search-wrap input::placeholder { font-size: 1rem; }
#subpage.featured .search-wrap input::-webkit-input-placeholder { font-size: 1rem; }
#subpage.featured .search-wrap input::-moz-placeholder { font-size: 1rem; }
#subpage.featured .search-wrap input:-ms-input-placeholder { font-size: 1rem; }
#subpage.featured .search-wrap input::-ms-input-placeholder { font-size: 1rem; }

#subpage.featured .search-btn {
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 17px;
    cursor: pointer;
}

#subpage.featured .year-select-wrap svg .currentColor,
#subpage.featured .search-btn svg .color {
    fill: var(--border-color);
}

#subpage.featured .search-btn:hover svg .color {
    fill: var(--p-color);
}

#subpage.featured #publications ul {
     background-color: transparent; 
     border: none; 
     padding: 0rem; 
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 12px 15px 12px 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--p-color);
    background: #fff;
    transition: border-color 0.2s;
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-toggle .dropdown-arrow {
    width: 10px;
    height: 8px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

#subpage.featured .year-select-wrap .custom-dropdown.active .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: none;
    max-height: 288px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 0 5px 0 rgba(119, 119, 119, 0.4);
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-menu li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
    text-align: center;
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-menu li:hover {
    background: var(--background-color-3);
    color: var(--p-color);
}

#subpage.featured .year-select-wrap .custom-dropdown .dropdown-menu li.selected {
    background: var(--dropdown-bg);
    color: var(--dropdown-color);
    font-weight: bold;
    line-height: 1;
}

#subpage.featured .dropdown-toggle,
#subpage.featured .dropdown-toggle * {
    user-select: none;
}

#subpage.featured #publications h2 {
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 3rem;
}


/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for medium screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
    #subpage.featured #herotitle > div {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }

}

/* styles for medium screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
    main h1 {
        font-size: 2.5rem;
    }
    #hero:not(.featuredhero) {
        background: #121416 url(../image/Papers-hero-edited@2x.png) bottom center no-repeat;
        background-size: 100% auto;
    }  
    #hero img {
        max-width: 80%;
        margin: 0 auto;
    }  
    section {
        padding: 3.125rem 1rem;
    }
    #publications ul, #research ul {
        grid-template-columns: 1fr;
    }
    #subpage #hero {
        padding: 1.5rem 1rem 0rem 1rem;
    }
    .inner ul li:nth-last-child(-n + 2) {
        margin-bottom: 2rem !important;
    }
    .inner ul li:nth-last-child(-n + 1) {
        margin-bottom: 0rem !important;
    }
}

/* styles for medium screens (320px)
   ========================================================================== */

@media all and (max-width: 320px) {}