/* Customer Stories - https://www.wolfram.com/customer-stories/

   developer:   tajudeen
   requires:    framework css
   ========================================================================== */

/* ==========================================================================
   Constants
   ========================================================================== */

:root {
   --color1: #3d5d8a;
   --color2: #617ba1;   
   --link-color: #4D87AD;
   --link-hover: #35ABEF;
   --tab-hover: rgba(255, 255, 255, 0.15);
   --tab-border: rgba(255, 255, 255, 0.4);
   --tab-hover-dark: #294d81;
   --tab-border-dark: #052859;
   --main-color: #f5f8fb;
   --p-color: #3f5575;
   --author-title: #646464;
   --story-hover: #dfe5ee;
   --story-pressed: #c2cddc;
   --tell-us-hover: rgba(63, 85, 117, 0.1); 
   --tell-us-pressed: rgba(63, 85, 117, 0.8);
   --mid-blue: #657ea1;
   --author: #494949;
   --card-author: rgba(255, 255, 255, 0.5);
   --separator-line: #d1d1d1;
   --card-hover: rgba(0, 0, 0, 0.2);
   --card-pressed: #5d7190;
   --btn-border: #34527B;
}


/* ==========================================================================
   Common Styles
   ========================================================================== */

body, html {
   font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
   padding: 0;
   box-sizing: border-box;
}

.page-width {
   max-width: 63.7275rem;
   margin: 0 auto;
}

#customerstories main a {
   color: var(--link-color);
}

#customerstories main a:hover {
   color: var(--link-hover);
}

#customerstories.subpage section#stories-menu {
    padding: 0 !important;
}

#customerstories.subpage section#stories-menu nav .maintitle h1 {
    font-size: 20px !important;
}

#customerstories p {
   text-wrap: pretty;
}

tt {
    font: 15px "Courier New", Courier, mono;
    font-weight: normal;
}

/* ==========================================================================
   Tabs Styles
   ========================================================================== */

#customerstories .tab-lists {
   max-width: 690px;
   margin: 0 auto;
   height: 86.4px;
   overflow: hidden;
   margin-bottom: 1.875rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}

#customerstories .tab-lists ul {
   display: flex;
   align-items: flex-start;
   flex-wrap: nowrap;
   gap: 0.625rem;
   cursor: pointer;
   justify-content: flex-start;
}

#customerstories .tab-lists ul:first-of-type {
   margin-bottom: 0.625rem;
}

#customerstories .tab-lists li {
   display: inline-block;
}

#customerstories .tab-lists li a {
   font-size: 0.875rem !important;
   padding: 8px 12px;
   border-radius: 6px;
   border: 2px solid var(--btn-border);
   color: #ffffff;
   font-weight: 600;
   display: inline-block;
   white-space: nowrap !important;
   background: var(--color1);
}

section#footer_contact .buttons a:hover,
#customerstories .tab-lists li a:hover {
   border: 2px solid var(--tab-border);
   background: var(--tab-hover);
}

section#footer_contact .buttons a:active,
#customerstories .tab-lists li a:active {
   background: var(--tab-hover-dark);
   border: 2px solid var(--tab-border-dark);
}

#customerstories.all .tab-lists li#all a,
#customerstories.arts-entertainment .tab-lists li#arts a,
#customerstories.arts .tab-lists li#arts a,
#customerstories.biotechnology-medicine .tab-lists li#biotechnology a,
#customerstories.biotechnology .tab-lists li#biotechnology a,
#customerstories.data-analysis .tab-lists li#analysis a,
#customerstories.analysis .tab-lists li#analysis a,
#customerstories.education .tab-lists li#education a,
#customerstories.engineering .tab-lists li#engineering a,
#customerstories.finance-analytics .tab-lists li#finance a,
#customerstories.finance .tab-lists li#finance a,
#customerstories.mathematics .tab-lists li#mathematics a,
#customerstories.science .tab-lists li#science a,
#customerstories.software-engineering .tab-lists li#software a,
#customerstories.software .tab-lists li#software a {
   background: #ffffff;
   border: 2px solid #ffffff;
   color: var(--color2);
}

/* ==========================================================================
   Highlight pictures
   ========================================================================== */

section.highlight-images {
   background: radial-gradient(
     circle at center bottom,
     rgba(255, 255, 255, 0.4) -27%,   
     rgba(97, 123, 161, 1) 70%       
   ), 
   rgb(97, 123, 161);
   padding-bottom: 30px;
   padding-top: 30px;
}

#customerstories.data-analysis .highlight-images {
    background: rgb(97, 123, 161);
}

section.highlight-images .cards {
   display: flex;
   justify-content: space-between;
   flex-wrap: nowrap;
   gap: 20px;
}

section.highlight-images .card {
   flex-basis: 320px;
   max-width: 100%;
   height: 320px;
   box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
   opacity: 1;
   background: var(--mid-blue);
   cursor: pointer;
   overflow: hidden;
}

section.highlight-images .card:hover {
   background: var(--tab-hover);
}

section.highlight-images .card:active {
   background: var(--card-pressed);
}

section.highlight-images .card img {
   width: 100%;
   height: 170px;
   object-fit: cover;
}

section.highlight-images .page-width {
   max-width: 63.0625rem;
}

section.highlight-images .card .desc p:first-of-type {
   display: block;
   color: #fff;
   font-weight: 600;
   padding: 8px 12px;
   font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
   font-size: 0.9rem;
}

section.highlight-images .card .desc p:last-of-type {
   display: block;
   color: rgba(255, 255, 255, 0.4);
   padding: 8px 12px;
   font-size: 0.9rem;
   font-style: italic;
}

section.highlight-images .card .desc p span {
   color: var(--card-author);
   font-weight: 600;
   font-style: normal;
}

section.highlight-images .card .desc {
    height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   Two columns view
   ========================================================================== */

#videoBG {
   margin: 2rem 0 1rem;
}

#videoBG iframe {
   width: 100%;
   aspect-ratio: 16 / 9;
   height: auto;
}

#videoBG .st_over {
   float: right;
}

section#stories {
    background: var(--main-color);
    padding-top: 30px;
    padding-bottom: 30px;
}

section#stories .columns {
   display: flex;
   justify-content: space-between;
   gap: 20.36px;
   flex-wrap: wrap;
   margin-bottom: 2rem;
   text-wrap: pretty;
}

section#stories .columns .story {
    padding-bottom: 0px;
    border-top: 1px solid var(--separator-line);
    padding-top: 20px;
    cursor: pointer;
    width: 48%;
    max-width: 100%;
}

section#stories .columns .story .inner {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex: 1 1 42%;
    padding: 5px;
    border-radius: 4px;
}

section#stories .columns .story .inner:hover  {
   background: var(--story-hover);
}

section#stories .columns .story .inner:active  {
   background: var(--story-pressed);
}

section#stories .columns .story .inner:nth-of-type(1),
section#stories .columns .story .inner:nth-of-type(2) {
   padding-top: 5px;
}

section#stories .columns .story:nth-of-type(1),
section#stories .columns .story:nth-of-type(2) {
   border-top: 0;
   padding-top: 0px;
}

section#stories .columns .media {
   width: 146px;
   max-width: 100%;
   position: relative;
   color: #fff;
   font-size: 8px;
   font-weight: 700;
   text-align: right;
   text-transform: uppercase;
   height: 88px;
}

section#stories .columns .media span.length {
   position: absolute;
   bottom: 3px;
   background: rgba(63, 85, 117, 0.6);
   left: 0;
   right: 0;
   height: 23px;
   font-size: 12px;
   text-align: right;
   padding-right: 10px;
   line-height: 1.78;
   color: #fff;
}

section#stories .columns .media span.length img {
    width: 8px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px;
}

section#stories .columns .text {
    max-width: 324px;
}

section#stories .columns .text .title {
   color: var(--p-color);
   font-size: 15px;
   font-weight: 600;
   text-align: left;
   line-height: 19px;   
   margin-bottom: 3px;
}

section#stories .columns .text .author {
   color: var(--author);
   font-size: 13px;
   font-weight: 600;
   text-align: left;
   line-height: 16px;
}

section#stories .columns .text .author span {
    font-weight: 400;
    font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tell-us-your-story {
   margin: 35px 6px 35px;
}

.tell-us-your-story .wrap {
    padding: 6px 12px;
/*    display: inline-block;*/
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color1);
    border-radius: 4px;
    cursor: pointer;
}

.tell-us-your-story .wrap:hover {
    background: var(--tell-us-hover);
}

.tell-us-your-story .wrap:active {
    background: var(--tell-us-pressed);
    color: #fff;
}

.tell-us-your-story svg {
    height: 17px;
    width: auto;
}

path.custom-fill {
    fill: var(--color1);
}

.tell-us-your-story .wrap:active path.custom-fill {
    fill: #fff;
}

section#footer_contact {
    background: var(--color2);
    padding: 30px 0;
/*    position: sticky;*/
    bottom: 0;
    z-index: 100; /* to ensure it stays above other content */
}

section#footer_contact .content > * {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #fff;
}

section#footer_contact .content p:last-of-type {
    margin-bottom: 0px;
}

section#footer_contact .content {
    text-align: center;
}

section#footer_contact .buttons a {
    padding: 8px 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 6px;
    border: 2px solid var(--btn-border);
    cursor: pointer;
    background: var(--color1);
}

section#footer_contact .buttons a:first-of-type {
   margin-right: 10px;
}

section#footer_contact p a {
   color: #fff;
}

/* Load more button style */
.load-more-button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: var(--color1, #007bff);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.load-more-button:hover {
  background: var(--color2, #0056b3);
}
.story.hidden {
  display: none !important;
}
/* ==========================================================================
   Sub Pages
   ========================================================================== */

.subpage section#intro {
    margin-top: 30px;
}

#customerstories.subpage .sub-page-width {
   max-width: 900px;
   margin: 0 auto;
}

#customerstories.subpage .captionText {
    font-size: 0.8125rem;
    color: #000;
    font-weight: 300;
}

#customerstories.subpage main .twocols {
   display: flex;
   gap: 30px;
}

#customerstories.subpage main .twocols.equal .rightcol {
    max-width: 50%;
    background: transparent;
    padding: 0;
}

#customerstories.subpage main .twocols.equal {
    background: var(--main-color);
    padding: 20px;
    margin: 0 -10px 1rem -10px;
    border-radius: 1.25rem;
    flex-direction: row;
}

#customerstories.subpage.read main li,
#customerstories.subpage main .twocols li {
   margin-bottom: 0.5rem;
   font-weight: 300;
   text-wrap: pretty;
}

#customerstories #categoryContainerText p.caption {
   font-size: 12px;
   line-height: 25px;
   margin-bottom: 1rem;
}

#customerstories.subpage.read main li:before,
#customerstories.subpage main .twocols li:before {
   font-size: 8px;
   color: var(--color2);
   font-size: 10px;
   font-weight: 400;
   text-align: left;
   vertical-align: 2px;
}

#customerstories.subpage main .rightcol ul {
    margin-bottom: 1.5rem;
}

#customerstories.subpage main .twocols > * {
   flex: 1 1;
}

#customerstories.subpage main .rightcol {
   max-width: 320px; 
   padding: 20px;
   background: var(--main-color);
   border-radius: 20px;
   font-size: 14px;
   letter-spacing: .15px;
}

#customerstories.subpage.read main p:not(:last-of-type),
#customerstories.subpage main .leftcol > div p:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

#customerstories.subpage.read main p,
#customerstories.subpage main .leftcol > div p {
   line-height: 1.7;
   font-weight: 300;
}

#customerstories.subpage.read main .img_padding {
   padding: 10px 0px 25px;
   max-width: 100%;
   height: auto;
}

#customerstories.subpage main h1 {
   font-weight: 600;
   font-size: 30px;
   line-height: 1.067;
   color: var(--color1);
   margin-top: 1.5rem;
   margin-bottom: 0.5rem;
}

#customerstories.subpage.read main h1 {
    margin-bottom: 2rem;
}

#customerstories.subpage main h3 {
   font-weight: 400;
   font-size: 1rem;
   color: var(--color2);
   margin-bottom: 1.5rem;
}

#customerstories.subpage main h4 {
   font-weight: 600;
   font-size: 1rem;
   color: var(--color1);
   margin-bottom: 1rem;
}

#customerstories.subpage main .twocols.equal h4 {
    margin-bottom: 0.5rem;
}

#customerstories.subpage main .twocols.equal p {
   margin-bottom: 1rem;
}

#customerstories.subpage main .quote {
   font-weight: 400;
   font-size: 24px;
   font-style: Italic;
   line-height: 1.458;
   color: var(--color2);
   margin-top: 1.5rem;   
}

#customerstories.subpage.read main .quote {
   margin-top: 0rem;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   min-height: 139px;
}

#customerstories.subpage.read #categoryContainerText .quote span:last-of-type {
   display: block;
   font-size: 1rem;
   font-style: italic;
}

#customerstories.subpage main .line {
   margin: 1.5rem 0;
   border-bottom: 1px solid var(--separator-line);
}

#customerstories.subpage main .more-stories > div {
    margin: 0;
    display: inline;
}

#customerstories.subpage main .more-stories {
    margin-bottom: 2rem;
}

#customerstories.subpage.read main #categoryContainerText {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}


/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for medium screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
   .page-width, .sub-page-width {
      padding-left: 20px;
      padding-right: 20px;
   }
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
   section#stories-menu .topicmenu > * {
      margin-right: 4px;
   }
   section.highlight-images {
      background: var(--color2);
      padding-top: 0px;
      padding-bottom: 0;
   }
   section.highlight-images .cards {
       flex-direction: column;
       gap: 0;
   }
   section.highlight-images .page-width{
      padding-left: 0;
      padding-right: 0;
   }
   section#stories .page-width {
      padding-left: 50px;
      padding-right: 50px;
   }
   section.highlight-images .card {
      display: flex;
      justify-content: start;
      flex-basis: auto;
      box-shadow: none;
      background: none;
      padding: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
   }
   section.highlight-images .card,
   section.highlight-images .card .desc {
      height: auto !important;  
   }
   section.highlight-images .card img {
      width: 156.84px;
      height: 92px;
   }
   section#stories .columns {
      flex-direction: column;
   }
   section#stories .columns .story {
      margin: 0 auto;
      width: 100%;
   }
   section#stories .columns .text {
       max-width: 100%;
   }
   section#stories .columns .story:nth-of-type(2) {
      padding-top: 20px;
      border-top: 1px solid var(--separator-line);
   }

   /* Sub pages ======================== */
   #customerstories.subpage main .twocols {
      flex-direction: column-reverse;
   }
   #customerstories.subpage main .rightcol {
      display: flex;
      max-width: 100% !important;
      gap: 20px;
   }
   #customerstories.subpage main .twocols.equal .rightcol {
      flex-direction: column !important;
      gap: 0;
   }
   #customerstories.subpage main .rightcol .inner {
      flex: 1 1 50%;
   }
   #customerstories.subpage main .rightcol .inner.single {
      flex: 1 1 100%;
   }
}

/* styles for medium screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {
   section#stories .page-width {
      padding-left: 0;
      padding-right: 0;
   }
   section#stories .columns .story {
      padding-left: 10px;
      padding-right: 10px;
      padding-top: 10px;
   }
   section.highlight-images .card {
      padding: 10px;
   }
   section#stories .columns {
      gap: 10px;
   }
   section#stories .columns .story:nth-of-type(2) {
      padding-top: 10px;
   }

   /*Sub pages ======================== */
   #customerstories.subpage main .more-stories > div {
       display: block;
       margin-bottom: 0.5rem;
       margin-left: -12px;
   }
   #customerstories.subpage.read main #categoryContainerText,
   #customerstories.subpage main .twocols.equal {
      flex-direction: column !important;
   }
   #customerstories.subpage.read main #categoryContainerText {
      gap: 0;
      margin-bottom: 1rem;
   }
   #customerstories.subpage main .twocols.equal {
      padding: 10px;
      margin: 0 0px 1rem 0px;
   }
   #customerstories.subpage main .more-stories .tell-us-your-story {
      margin-left: 0px;
   }
}

/* styles for medium screens (320px)
   ========================================================================== */

@media all and (max-width: 320px) {}