/* BRIEF DESCRIPTION OF STYLESHEET'S PURPOSE.

   Style for Wolfram Education page

   developer:   EstevaoT
   requires:    /common/framework/css/framework.css
                
   ========================================================================== */

/* ==========================================================================
   Common
   ========================================================================== */

/* variables */
:root {
  --main-color: #024b75;  
  --sub-color: #0067a3;
  --sub-color-hover: #023c5d;
  --third-color: #16a4ab;
  --main-y-distance: 50px;
}

/* html */
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #404040;
}

main a {
  font-size: 1.125rem;
  font-weight: 600;
  color: #404040;
}
main a:hover {
  color: var(--sub-color);
}

hr:not(#_footer *) { 
  margin-top:var(--main-y-distance);
  margin-bottom:var(--main-y-distance);
  border: none;
  border-bottom: 1px solid #ccc;
}

/* images */
figure, 
img { 
  max-width:100%; 
}

/* Display */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Fonts */
h1 {
  font-size: 3.125rem;
  font-weight: 600;
  color: var(--main-color);
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sub-color);
  margin-bottom: 40px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
}

p {
  margin: 1rem auto;
  line-height: 1.6;
}

/* lists */
.horizontal-list {
  display: flex;
  gap: .5rem;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

.horizontal-list.bulleted li {
  display: flex;
  align-items: center;
}

.horizontal-list.bulleted li:not(:last-child)::after {
  content: "";
  background: var(--sub-color);
  width: 3px;
  height: 3px;
  border-radius: 10px;
  display: inline-block;
  margin-left: calc(0.5rem - 2px);
}

/* margins */
.margin-main-y { 
  margin-top:var(--main-y-distance); 
  margin-bottom:var(--main-y-distance); 
}
.margin-main-t { margin-top:var(--main-y-distance); }
.margin-main-b { margin-bottom:var(--main-y-distance); }

/* paddings */
.padding-main-y { 
  padding-top:var(--main-y-distance); 
  padding-bottom:var(--main-y-distance); 
}
.padding-main-t { padding-top:var(--main-y-distance); }
.padding-main-b { padding-bottom:var(--main-y-distance); }

.padding-y-10 { padding-top:10px; padding-bottom:10px; }
.padding-y-20 { padding-top:20px; padding-bottom:20px; }
.padding-y-30 { padding-top:30px; padding-bottom:30px; }

.padding-t-10 { padding-top:10px; }
.padding-t-20 { padding-top:20px; }
.padding-t-30 { padding-top:30px; }
.padding-b-10 { padding-bottom:10px; }
.padding-b-20 { padding-bottom:20px; }
.padding-b-30 { padding-bottom:30px; }

/* Header
   ========================================================================== */
.home main header,
#findOutMore {
  background: #047bb2;
  max-height: 389px;
}

.home main header canvas { display:none; }

.home main header > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr;
}

.home main header #media-wrapper {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 1;
}

.home main header #media-wrapper img,
.home main header #media-wrapper video {
  width: 100%;
}

.home main header #wolfram-education {
  grid-column: 1;
  grid-row: 1;
  width: max-content;
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  background: var(--main-color);
  padding: 1rem;
  z-index: 2;
}

/* Sections
   ================================== */

section {
  padding-top: var(--main-y-distance);
  padding-bottom: var(--main-y-distance);
}

#description h1 { margin-bottom:30px; }
#description h2 { 
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--sub-color);
}

#description p {
  font-size: 1.625rem;
  font-weight: 400;
  color: #404040;
}

/* programs */
#programs { padding: 0; }
#programs h2 { 
  color: #fff; 
}

#programs .programs-gallery {
  display: grid;
  gap: 0;
}

#programs .programs-gallery a:nth-child(-n+3) {
  padding-top:50px;
  padding-bottom:40px;
  border-bottom:  1px solid #6bc5c9;
}

#programs .programs-gallery a:nth-child(n+4) {
  padding-top:40px;
  padding-bottom:50px;
}

#programs .programs-gallery a:nth-child(2),
#programs .programs-gallery a:nth-child(5) {
  border-left: 1px solid #6bc5c9;
  border-right: 1px solid #6bc5c9;
}

#programs .programs-gallery a h3 {
  font-size: 1.625rem;
  font-weight: 400;
  color: #fff;
  margin-top: 1rem;
}

#programs .programs-gallery a { text-align:center; }
#programs .programs-gallery img {
  height: 80px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(112deg) brightness(105%) contrast(101%);
}

#programs a:hover,
#programs a:hover h3 {
  color: #6fffff;
}

#programs a:hover img {
  filter: invert(79%) sepia(69%) saturate(335%) hue-rotate(120deg) brightness(110%) contrast(102%);
}

/* special programs */
.media-list,
#specialPrograms .programs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));/*180 if adding another*/
  justify-content: flex-start;
  gap: 40px 1rem;
}

#specialPrograms .programs-list a {
  display: grid;
  padding: 1.3rem 1.5rem;
  align-content: center;
  justify-items: center;
  text-align: center;
  background-color: #047bb7;
  font-size: 1.125rem;
  font-weight: 400;
  color: #fff;
}

#specialPrograms .programs-list a:hover {
  background: #00619b;
}

#specialPrograms .programs-list img {
  height: 40px;
  margin-bottom: .5rem;
}

/* List with image + title */
.media-list li,
.media-list > li > a {
  display: flex;
  align-items: center;
}

.media-list li a {
  font-size: 1.125rem;
  font-weight: 600;
  color: #404040;
}

.media-list img { 
  margin-right: .5rem;
  max-width: 30px; 
}

#specialPrograms .horizontal-list a {
  color: #404040;
  font-size: 1.125rem;
  font-weight: 400;
}

#specialPrograms .horizontal-list a:hover,
.media-list a:hover { color:var(--sub-color); }

#explore-programs {
  margin-top: 40px;
}

#explore-programs .media-list a { font-size:1rem; }

/* More About */
#moreAbout h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #404040;
}

#moreAbout a:hover h3 {
  color: var(--sub-color);
}

#moreAbout .media-list img { max-width:35px; }

/* Find out more banner */
#findOutMore p,
#findOutMore span {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5rem;
}

#findOutMore, #findOutMore a { color:#fff; }
#findOutMore a:hover { color:#bbf1ff; }


/* slider */
#caseStudy {
  padding-bottom: 60px;
}
#caseStudy .slider {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  border: 2px solid #e7f7fb;
  padding: 0;
  margin-top: 50px;
}

.cycle-slide { 
  display: flex !important;
  height:100%; 
}

#cycle-featured-projects {
  grid-column: 1;
  grid-row: 1 / -1;
  z-index: 1;
  position: relative;
}

#cycle-featured-projects .slide-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 267px;
}

#cycle-featured-projects .slide-container .slide-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

#cycle-pager-featured-projects {
  grid-row: 2;
  grid-column: 1;
  text-align: right;
  justify-self: flex-end;
  display: flex;
  align-self: center;
  z-index: 2;
  margin-bottom: 1rem;
  margin-right: 1rem;
}

.cycle-pager-wrapper span {
  background: #ccc;
  display: inline-block;
  color: rgba(0, 0, 0, 0);
  margin: 0 0.375rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.cycle-pager-wrapper span.cycle-pager-active, 
.camp .cycle-pager-wrapper span:hover {
    background: var(--sub-color);
}

.slide-content {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1rem;
  padding: 20px;
  background: #e7f7fb;
}

.slide-content::before {
  content: '';
  width: 68px;
  height: 56px;
  background: url(../images/quote.png) no-repeat;
  background-size: 68px;
}

.slide-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sub-color);
  margin-top: 1rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.slide-content blockquote {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: #404040;
}

.slide-content cite::before {
  content: "- ";
}

.slide-content cite {
  display: block;
  font-size: .9rem;
  font-weight: 400;
  font-style: italic;
  color: #404040;
  text-align: right;
  margin: 1rem 0 2rem;
  padding-left: 1rem;
  position: relative;
  width: 100%;
}

.slide-content a {
  display: table;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sub-color);
  margin-top: 1rem;
}

.slide-content a:hover { color: var(--sub-color-hover); }


/* ==========================================================================
   Misc
   ========================================================================== */

/* display items */

.display-grid { display:grid; gap: 2.5rem; }
.two-columns { grid-template-columns: repeat(2, 1fr);}
.three-columns { grid-template-columns: repeat(3, 1fr);}
.five-columns { grid-template-columns: repeat(5, 1fr);}
.six-columns { grid-template-columns: repeat(6, 1fr);}

/* gaps */
.gap-1 { gap:1rem; }
.gap-1-2 { gap:.5rem; }
.gap-2 { gap: 2rem; }


/* backgrounds  */
.bg-main { background: var(--main-color); }
.bg-sub { background: var(--sub-color); }
.bg-third { background: var(--third-color);; }
.bg-main a, .bg-sub a, .bg-third a { color:#fff; }
.bg-main a:hover, .bg-sub a:hover, .bg-third a:hover { color:#023c5d; }

/* colors */
.color-main { color: var(--main-color); }
.color-sub { color: var(--sub-color); }
.color-sub:hover, a.color-sub:hover { color: var(--sub-color-hover); }

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */

@media all and (max-width: 1200px) {
  .wrapper {
    padding-left: 30px;
    padding-right: 30px;
  }

  .media-list, 
  #specialPrograms .programs-list {
    gap: 1rem;
  }
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  #cycle-featured-projects { height: 390px; }

  #cycle-featured-projects .slide-container {
    grid-template-columns: repeat(2, 1fr);
    height: 100%;
  }

  .slide-content {
    grid-template-columns: 35px 1fr;
  }
  .slide-content::before { 
    width: 35px;
    height: 35px;
    background-size: 35px;
  }

  .media-list a { 
    gap: .5rem;
    text-align: left; 
  }

  /* grid  */
  .three-columns__900 { grid-template-columns: repeat(3, 1fr); }
  .two-columns__900 { grid-template-columns: repeat(2, 1fr); }
  .one-columns__900 { grid-template-columns: repeat(1, 1fr); }
}

/* styles for small screens (600px)
   ========================================================================== */

@media all and (max-width: 600px) {

  :root {
    --main-y-distance: 30px;
  }

  .wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  h2 { margin-bottom: 25px; }

  /* Programs  */
  #programs ._page-width { padding: 0 }
  #programs .programs-gallery a:nth-child(n) {
    padding: 30px 1rem;
    border: none;
    border-bottom: 1px solid #6bc5c9;
  }

  /* More About  */
  #moreAbout div.display-grid.one-column__600 {
    gap: 1rem;
  }
  
  #moreAbout div.display-grid.one-column__600 a {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    align-items: center;
  }

  #moreAbout div.display-grid.one-column__600 a > * {
    margin: 0;
  }

  /* lists */
  .media-list { gap: 1.5rem 1rem; }
  #explore-programs .media-list {
    grid-template-columns: repeat(2,1fr);
  }

  /* slider  */
  #cycle-featured-projects { height: 600px; }
  #cycle-featured-projects .slide-container {
    grid-template-columns: 1fr;
    height: 100%;
  }
  .slide-content {
    grid-template-columns: 25px 1fr;
    height: auto;
    padding: 15px;
  }
  .slide-content::before { 
    width: 25px;
    height: 25px;
    background-size: 25px 
  }
  .slide-content h3 { margin-top:0 }
  #cycle-pager-featured-projects {
    margin-right:0 ; 
    justify-self: center; 
  }

  /* grid */
  .gap-2, .gap-1__600 { gap: 1rem; }
  .one-column__600 { grid-template-columns: 1fr;}
  .two-columns__600 { grid-template-columns: repeat(2, 1fr);}
}

/* styles for minimum supported screen width (320px)
   ========================================================================== */

@media all and (max-width: 320px) {}
