:root{
    --riken-blue:#11197d;
    --riken-green:#078e53;
    --cyan:#1FA8D8;
    --text:#0F172A;
    --muted:#64748B;
    --bg:#F8FAFC;
    --border:#E2E8F0;
}

body{
    font-family:'roboto',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    margin-bottom:0;

}

.custom-background {
    background-image: url("/static/sciverse/images/paper1.png");
    background-position: left top;
    background-size: auto;
    background-repeat: repeat;
    background-attachment: fixed;
}

a.clean-link,
a.clean-link:visited,
a.clean-link:hover,
a.clean-link:active {
    color: inherit;
    text-decoration: none;
}

.text-gray-alpha {color: rgba(0, 0, 0, 0.6);}
.text-gray-333 {color: #333;}
.text-gray-666 {color: #666;}
.text-riken-blue {color: var(--riken-blue)}
.text-riken-green {color: var(--riken-green)}
.bg-riken-blue {background-color: var(--riken-blue);}
.bg-riken-green {background-color: var(--riken-green);}

.rounded-28 {
    border-radius:28px;
}

.minibadge {
      display: inline-block;
      padding: 0.25em 0.4em;
      font-size: 75%;
      font-weight: 700;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
      vertical-align: baseline;
      border-radius: 0.25rem;
    }

.minibadge:empty {
      display: none;
    }

    /* Colors */
.minibadge-primary {
    color: #fff;
    background-color: #007bff;
}

.minibadge-secondary {
  color: #fff;
  background-color: #6c757d;
}

.minibadge-success {
  color: #fff;
  background-color: #28a745;
}

.minibadge-danger {
  color: #fff;
  background-color: #dc3545;
}

.minibadge-warning {
  color: #212529;
  background-color: #ffc107;
}

.minibadge-info {
  color: #fff;
  background-color: #17a2b8;
}

.minibadge-light {
  color: #212529;
  background-color: #f8f9fa;
}

.minibadge-dark {
  color: #fff;
  background-color: #343a40;
}

/* Pill style */
.minibadge-pill {
  padding-right: 0.6em;
  padding-left: 0.6em;
  border-radius: 10rem;
}

.minibadge-press {
   color: var(--retro-white);
   background-color: var(--cubs-red);
}

.minibadge-people {
   color: var(--retro-white);
   background-color: var(--retro-slate);
}

.minibadge-highlight {
   color: var(--retro-brown);
   background-color: var(--retro-lightblue);
}

.minibadge-media {
    color: var(--retro-white);
    background-color: var(--retro-green);
}

.minibadge-blog {
    color: var(--retro-white);
    background-color: var(--retro-orange);
}

.minibadge-trans {
    color: var(--retro-white);
    background-color: var(--retro-brown);
}

.minibadge-news {
    color: var(--retro-brown);
    background-color: var(--retro-yellow);
}

.text-press {
   color: var(--cubs-red);
}

.text-people {
   color: var(--retro-slate);
}

.text-highlight {
    color: var(--retro-lightblue);
}

.text-media {
    color: var(--retro-green);
}

.text-blog {
    color: var(--retro-orange);
}

.text-news {
    color: var(--retro-yellow);
}

.text-trans {
    color: var(--retro-brown);
}

/* -------------------------
   NAVBAR
------------------------- */

.navbar{
    background:white;
    /*border-bottom:1px solid var(--border);*/
    padding:0;
}

.navbar-brand{
    display:flex;
    align-items:center;
    font-weight:700;
    font-size:2rem;
    letter-spacing:-0.04em;
}

.navbar-shadow {
    box-shadow:
        0 -4px 6px rgba(0,0,0,0.1),   /* top */
        -4px 0 6px rgba(0,0,0,0.1),   /* left */
        4px 0 6px rgba(0,0,0,0.1);    /* right */
}

.navbar-background{
    /*margin-top:100px;*/
    background:
    linear-gradient(
        120deg,
        var(--riken-blue),
        var(--riken-green),
        var(--cyan)
    );
}

/*.logo-mark{*/
/*    width:40px;*/
/*    height:40px;*/
/*    border-radius:12px;*/

/*    background:*/
/*    linear-gradient(*/
/*        135deg,*/
/*        var(--riken-blue),*/
/*        var(--riken-green)*/
/*    );*/

/*    margin-right:14px;*/
/*}*/

.logo-text{
    background:
    linear-gradient(
        90deg,
        var(--riken-blue),
        var(--riken-green),
        var(--cyan)
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.nav-link{
    color:var(--text)!important;
    font-weight:500;
    margin-left:1rem;
}

/* -------------------------
   HERO
------------------------- */

.hero{
    position:relative;
    padding:90px 0 60px;
    overflow:hidden;
}

.hero-title{
    font-size:2rem;
    line-height:1.1;
    letter-spacing:-0.04em;
    font-weight:700;
    margin-bottom:2rem;
}

.gradient-text{
    background:
    linear-gradient(
        90deg,
        var(--riken-blue),
        var(--riken-green),
        var(--cyan)
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-text{
    font-size:1.15rem;
    color:var(--muted);
    max-width:520px;
    margin-bottom:2rem;
}

.hero-btn{
    display:inline-block;
    padding:16px 30px;
    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        var(--riken-blue),
        var(--cyan)
    );

    color:white;
    font-weight:600;
    text-decoration:none!important;
}

/* -------------------------
   SECTION
------------------------- */

.section{
    padding:20px 0 30px;
}

.section-label{
    font-size:.95rem;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-weight:700;
    color:var(--riken-blue);
    margin-bottom:1.5rem;
}

/* -------------------------
   cards
------------------------- */

.card-footer:last-child {
    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;
}


/* -------------------------
   FEATURED
------------------------- */

.feature-large{
    position:relative;
    border-radius:28px;
    overflow:hidden;
    min-height:520px;

    background:
    url('../images/hero.jpg')
    center/cover;
}

.feature-large::before{
    content:"";
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.18)
    );
}

.feature-content{
    position:absolute;
    left:34px;
    bottom:34px;
    z-index:2;
    color:white;
    max-width:420px;
}

.feature-tag{
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-weight:700;
    margin-bottom:12px;
}

.feature-title{
    font-size:2.5rem;
    line-height:1.02;
    font-weight:700;
    margin-bottom:1rem;
}

.side-card{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    min-height:156px;
    background:white;
    border:none;
}

.side-image{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;
}

.feature-link,
.feature-link:visited,
.feature-link:hover,
.side-link,
.side-link:visited,
.side-link:hover {
    color: inherit;
    text-decoration: none;
}

.side-overlay{
    position:absolute;
    inset:0;

    background:
    /*linear-gradient(*/
    /*    to top,*/
    /*    rgba(0,0,0,0.98) 0%,*/
    /*    rgba(0,0,0,0.98) 20%,*/
    /*    rgba(0,0,0,0) 100%*/
    /*);*/

    linear-gradient(
        to top right,
        rgba(255,255,255,.98) 0%,
        rgba(255,255,255,.93) 38%,
        rgba(255,255,255,.18) 70%,
        rgba(255,255,255,0) 100%
    );
}

.side-content{
    position:relative;
    z-index:2;
    padding:28px;
    max-width:68%;
}

.side-title{
    font-size:1.1rem;
    line-height:1.35;
    font-weight:600;
}

.domain-content{
    position:absolute;
    z-index:2;
    padding:1rem;
    max-width:95%;
    left:0; right:0; bottom:0;
}

/* -------------------------
   Image effect
------------------------- */
.feature-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.feature-image,
.side-image {
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

/* Zoom on hover of the whole card link */
.feature-link:hover .feature-image,
.latest-link:hover .latest-image,
.side-link:hover .side-image {
    transform: scale(1.2);
}

.feature-image, .latest-image,
.card.side-card {
    overflow: hidden;
}

.feature-large::before {
    z-index: 1;
}

.feature-image {
    z-index: 0;
}

.feature-content {
    z-index: 2;
}

/* -------------------------
   Latest posts
------------------------- */

.top-card a {
    text-decoration: none;
}

.top-card img {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

/* -------------------------
   topic sections
------------------------- */

.topic-slider-section{
    position:relative;
}

.topic-card{
    height:190px;
    border-radius:28px;
    background:white;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    transition:.2s ease;
    /*box-shadow: 0 4px 18px rgba(0,0,0,.04);*/
}

.topic-card:hover{
    transform:translateY(-4px);
    text-decoration:none;
}

.topic-icon{
    width:100px;
    height:100px;
    border-radius:22px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
    font-size:2rem;
    color:#0B43B5;
    background:
    linear-gradient(
        135deg,
        rgba(11,67,181,.12),
        rgba(34,180,90,.10)
    );
}

.topic-image{
    width:80%;
    height:80%;
    object-fit:cover;
}

.topic-tag-label{
    font-size:1rem;
    font-weight:600;
    color:#111827;
}

.topic-nav{
    display:flex;
    align-items:center;
}

/*.topic-nav button{*/
/*    width:42px;*/
/*    height:42px;*/
/*    border:none;*/
/*    border-radius:50%;*/
/*    background:white;*/
/*    margin-left:10px;*/
/*    cursor:pointer;*/
/*    box-shadow:*/
/*    0 2px 12px rgba(0,0,0,.06);*/
/*    transition:.2s ease;*/
/*}*/

/*.topic-nav button:hover{*/
/*    transform:translateY(-2px);*/
/*}*/

.topicSwiper{
    position:relative;
    padding:0 50px;
    overflow:hidden;
    height:stretch;
}

.articleSwiper{
    position:relative;
    padding:0 50px;
    overflow:hidden;
    height:stretch;
}

.swiper-button-next, .swiper-button-prev {
    width: 30%;
}

/* -------------------------
   Pagination
------------------------- */

.sciverse-pagination-link {
    color:#492b2d !important;
    background-color: #f0f0f0;
    text-decoration: none;
    padding: 5px;
    margin: 3px;
    border-radius: 4px;
    border: solid 1px #84d0c4;
    line-height:2.5;
}

.sciverse-current-pagination-link {
    background-color: #84d0c4;
    line-height:2.5;
    padding: 5px;
    border-radius: 4px;
    border: solid 1px #84d0c4;
}

.sciverse-pagination-link:hover {
    background-color: #84d0c4;
    line-height:2.5;
    padding: 5px;
    border-radius: 4px;
    border: solid 1px #84d0c4;
}

.sciverse-row-pagination-link {
    color:#492b2d !important;
    background-color: #f0f0f0;
    text-decoration: none;
    padding: 5px;
    margin: 3px;
    border-radius: 4px;
    border: solid 1px #fec240;
    line-height:2.5;
}

.sciverse-row-current-pagination-link {
    background-color: #fec240;
    line-height:2.5;
    padding: 5px;
    border-radius: 4px;
    border: solid 1px #fec240;
}

.sciverse-row-pagination-link:hover {
    background-color: #fec240;
    line-height:2.5;
    padding: 5px;
    border-radius: 4px;
    border: solid 1px #fec240;
}

.sciverse-pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sciverse-pagination-text {
    white-space: nowrap;
}

/* -------------------------
   carousel
------------------------- */

.carousel-hero{
    position:relative;
    height:400px;
    border-radius:0;
    overflow:hidden;

    background-size:cover;
    background-position:center;
}

.carousel-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top right,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.72) 28%,
        rgba(0,0,0,.27) 58%,
        rgba(0,0,0,.08) 82%,
        rgba(0,0,0,0) 100%
    );
    /*linear-gradient(*/
    /*    to top,*/
    /*    rgba(0,0,0,.82),*/
    /*    rgba(0,0,0,.15)*/
    /*);*/
}

.carousel-content{
    position:absolute;
    left:40px;
    bottom:40px;
    z-index:2;

    color:white;
    max-width:620px;
}

.carousel-content h3{
    font-size:3rem;
    font-weight:700;
    line-height:1.05;
}

.carousel-readmore{
    color:white;
    /*font-size:2rem;*/
    transition:.2s ease;
}

.carousel-readmore:hover{
    color:white;
    opacity:.8;
    text-decoration:none;
    transform:translateX(3px);
}

.carousel{
    border-radius:0;
    overflow:hidden;
}
.carousel-inner{
    border-radius:0;
    overflow:hidden;
}

/* -------------------------
   RESPONSIVE
------------------------- */

@media(max-width:991px){

    .hero-title{
        font-size:3.5rem;
    }

    .wave-bg{
        width:700px;
        right:-250px;
    }

    .side-content{
        max-width:70%;
    }
}

@media(max-width:767px){

    .hero{
        padding:80px 0 50px;
    }

    .hero-title{
        font-size:2.6rem;
    }

    .wave-bg{
        display:none;
    }

    .feature-title{
        font-size:2rem;
    }

    .side-content{
        max-width:80%;
    }
}

/* -------------------------
   footer
------------------------- */

.site-footer{
    /*margin-top:100px;*/
    padding:40px 0 40px;
    background:
    linear-gradient(
        90deg,
        var(--riken-blue),
        var(--riken-green),
        var(--cyan)
    );
}

.footer-brand{
    font-size:2rem;
    font-weight:700;
    color:white;
    margin-bottom:1rem;
}

.footer-description{
    line-height:1.8;
    color:white;
    max-width:340px;
    opacity:.78;
}

.footer-heading{
    font-size:.95rem;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:white;
    margin-bottom:1.2rem;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li{
    margin-bottom:.85rem;
}

.footer-links a{
    color:rgba(255,255,255,.72);
    text-decoration:none;
    transition:.2s ease;
}

.footer-links a:hover{
    color:white;
    text-decoration:none;
}

.footer-social{
    display:flex;
    align-items:center;
    gap:16px;
}

.footer-social a{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    color:white;
    font-size:1.1rem;
    transition:.2s ease;
}

.footer-social a:hover{
    transform:translateY(-3px);
    background:rgba(255,255,255,.14);
    text-decoration:none;
}

.footer-bottom{
    /*margin-top:70px;*/
    padding-top:28px;
    border-top:
    1px solid rgba(255,255,255,.08);
    display:flex;
    color:white;
    justify-content:space-between;
    align-items:center;
    font-size:.92rem;
    opacity:.65;
}

@media (max-width:768px){
    .footer-bottom{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }
}

/* -------------------------
   interviews
------------------------- */
.interview-block{
    margin:4rem 0;
}

.question-row,
.answer-row{
    display:flex;
    align-items:flex-start;
    gap:1.25rem;
}

.answer-row{
    margin-top:1.5rem;
}

.qa-badge{
    flex-shrink:0;
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    font-weight:700;
    color:white;
}

.question-badge{
    color:var(--retro-white);
    background-color:var(--retro-red);
    /*background:linear-gradient(*/
    /*    135deg,*/
    /*    var(--retro-tan),*/
    /*    var(--retro-red)*/
    /*);*/
}

.answer-badge{
    color:var(--retro-white);
    background-color:var(--retro-slate);
    /*background:linear-gradient(*/
    /*    135deg,*/
    /*    var(--retro-tan)*/
    /*    var(--retro-slate)*/
    /*);*/
}

.question-content{
    font-size:1.8rem;
    font-weight:700;
    line-height:1.3;
    padding-top:.4rem;
}

.answer-content{
    font-size:1.05rem;
    line-height:1.9;
    /*color:#d1d5db;*/
    max-width:800px;
}


/* -------------------------
   topics pages
------------------------- */
.topic-intro {
    max-width: 900px;
    margin: 50px auto 0;   /* overlaps image */
    padding: 2rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    position: relative;
    z-index: 10;
    width: 75%;
}

.topic-title {
    max-width: 900px;
    font-size:3rem;
    line-height:1.1;
    letter-spacing:-0.04em;
    font-weight: 700;
    margin: -350px auto 0;   /* overlaps image */
    color: #fafafa;
    text-align: center;
    position: relative;
    border-radius: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.15);
}

.life-intro {
    background: #e8f5f3;      /* soft blue-green */
    color: #1f3b3a;
}

.topic-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 6px;
    background: linear-gradient(
        90deg,
        #1b9e77,
        #2aa7c8
    );

    border-radius: 0.75rem 0.75rem 0 0;
}

.topic-intro p:first-child {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 300;
}

.article-image-wrapper {
    position: relative;
}

.article-type-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.55);
    padding: .35rem .8rem;

    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}