/*

Notes:

- This stylesheet encompasses all 3 of the Help Centers (there is a separate
  stylesheet for the landing page)

- 3 viewports are implemented:
  - Mobile: 0 to 767px
  - Tablet: 768px - 991px
  - Desktop: 992px - infinity

- This stylesheet is organized as such:
  - Global styles
  - Navbar
  - Search bar section
  - Category cards
  - Specific card category icons
  - Footer
  - Article view

  */

/* ========================================= */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');

:root {
    /* Global Styles */
    --ocp-font: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ocp-font-color: #002147; 
    --ocp-body-background: #fbfbfc; /* change to #fff for white background */

    --ocp-school-primary: #002147;
    --ocp-school-secondary: #002147;

    /* Search Bar */
    --ocp-search-background: inherit;
    --ocp-search-background-image: url('https://cdn.offcampusimages.com/public/upload/xnq44lzkrnx5excix854yen_87etoq3soeelbxwp7g0.jpeg');
    --ocp-search-button-color: #002147;
    --ocp-search-font-color: #000000; /* #fff for dark backgrounds #4c4c4c for light backgrounds */
    --ocp-search-text: "What information can we help you find?";

    /* Card Styles */
    --ocp-card-column-count: 4;
    --ocp-display-article-count: none; /* Change to "block" or "none" to show / hide */
    --ocp-card-image-1: url('https://cdn.offcampusimages.com/public/upload/e1tjus6mm6pzcjkxkcj0hgyvm6em4jqyty0sr0_lpy4.png');
    --ocp-card-image-2: url('https://cdn.offcampusimages.com/public/upload/j8gwuum6tpisit8cpm0pkme9xlspw228q2c87xqhiv4.png');
    --ocp-card-image-3: url('https://cdn.offcampusimages.com/public/upload/ulxrgguojibh1ygsk_pxcl8v8cn6nkcvqtj8n8pqjq0.png');
    --ocp-card-image-4: url('https://cdn.offcampusimages.com/public/upload/z5etpt3ajkb_xdd_si8bxilpttzmrc6yxf3huhwwhbe.png'); 

    /* turn this off by setting --ocp-card-border-width to 0px */
    --ocp-card-border-color: #002147;
    --ocp-card-border-width: 2px; /* 2px is a good baseline for this value */

    --ocp-card-background-color: #fff; 
    --ocp-card-font-color: #2277b3;
    --ocp-card-underline-color: #2277b3; /* set to inherit for normal link underline, var(--ocp-card-font-color), or whatever color preferred */

    /* Article Style */
    --ocp-article-border-width: 2px;
    --ocp-article-border-color: #2277b3; 
    --ocp-article-border-radius: 10px; /* increase/decrease px value for sharper/rounder border edges */
    --ocp-article-background-color: #fff;
}

.icon-article-doc {
display:none;
}

/* GLOBAL STYLES */

h1, h2, h3, h4, h5, h6 {
    color: var(--ocp-font-color) !important;
    font-family: var(--ocp-font) !important;
    /* font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--ocp-font);
    background: var(--ocp-body-background);
    padding-left: 0;
    padding-right: 0;
}

.container-fluid,
.navbar .navbar-inner .container-fluid {
  max-width: 1080px;
  padding: 0 1em;
}

@media screen and (min-width: 768px) {
  .container-fluid,
  .navbar .navbar-inner .container-fluid {
    padding: 0 2em;
  }
}

/* ========================================= */

/* NAVBAR  */

#mainNav {
    visibility: hidden;
}


/* Restore original styles if desired */

/* ========================================= */

/* SEARCH BAR  */

/* Search results dropdown */

#docsSearch {
    padding: .5em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    background-color: var(--ocp-search-background);
    background-image: var(--ocp-search-background-image);
    background-position: center;
    background-size: cover;
    background-clip: top;
    border-color: transparent;
}

#docsSearch::before {
    content: var(--ocp-search-text);
    color: var(--ocp-search-font-color);
    position: relative;
    text-align: center;
    display: block;
    font-weight: 700;
    line-height: 1em;
    font-size: 20px;
    margin: .5em 0 0;
}

#searchBar {
    text-align: left;
}

/* input */
#searchBar .search-query {
    border-color: #aab1ae;
    width: 77.5%;
    font-weight: 400;
    font-size: 16px;
}

#searchBar .search-query:focus {
    border-color: #4c4c4c;
    border-width: 2px;
}

#searchBar button {
    width: 20%;
    margin-left: 2.5%;
    text-shadow: none;
    border: none;
    border-radius: 4px;
    background-color: var(--ocp-search-button-color);
    transition: ease-in-out .2s;
}

#searchBar button:hover {
    background-color: var(--ocp-school-primary);
    border: solid 2px var(--ocp-search-button-color);
}

#searchBar button span {
    display: none;
    font-family: 'Source Sans Pro', 'Apple Color Emoji', Arial, sans-serif;
}

#searchBar button i.icon-search {
    display: inline;
}

@media screen and (min-width: 768px) {
    #docsSearch {
        padding: 6em 1em;
        margin-bottom: 3em;
    }

    #docsSearch::before {
        font-size: 32px;
        margin: 0 auto .5em;
    }

    #searchBar button span {
        display: inline;
    }
    #searchBar button i.icon-search {
        display: none;
    }
}
    
/* ========================================= */

/* CATEGORY CARDS */

 /* to set proper spacing if there are collections of categories */
 .collection-category .category-list {
    margin: 1em auto;
  }
  
  .category-list {
    font-size: 16px;
  }
  
  .category-list .category {
    position: relative;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--ocp-card-underline-color);
    transition: all 50ms ease-in-out;
    border: var(--ocp-card-border-width) solid var(--ocp-card-border-color);
    border-radius: 4px;
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
  
    flex: 1 0 100%;
    width: 100%;
    padding: 110px 1em 0;
    height: 246px;
    margin-bottom: 2em;
    margin-left: 0;
    margin-right: 0;
  
    /* icon positioning */
    background-size: 80px;
    background-position: top 1em center;
    background-repeat: no-repeat;
  
    /* fallback is apartments buzzsaw logo  */
    background-image: url('https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c8aa8690428633d2cf39bb9/images/5e38bf9904286364bc94cea7/file-B2QVkRxMcg.png');
    background-color: var(--ocp-card-background-color);
  }
  
  .category-list .category:hover {
    /* background-color: inherit !important; */
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.3);
    text-decoration: underline;
    text-decoration-color: var(--ocp-card-underline-color);
    background-position: top 1em center;
    background-size: 80px;
    background-repeat: no-repeat;
  
    /* fallback is apartments buzzsaw logo  */
    background-image: url('https://d33v4339jhl8k0.cloudfront.net/docs/assets/5c8aa8690428633d2cf39bb9/images/5e38bf9904286364bc94cea7/file-B2QVkRxMcg.png');
    background-color: var(--ocp-card-background-color);
    

  }

  .category h3, .category p {
      color: var(--ocp-card-font-color) !important;
  }
  
  /* Card header  */
  .category-list h3 {
    color: var(--ocp-card-font-color);
    font-weight: 700;
    margin-bottom: .5em;
    margin-top: 0;
  }
  
  /* Card subheader & article count */
  .category-list .category p {
    font-size: 16px;
  }
  
  /* Card subheader  */
  .category-list .category p:not(.article-count) {
    color: var(--ocp-card-font-color);
  line-height: 1.5em;
  }
  
  /* Article count  */
  .category-list .category .article-count {
    position: absolute;
    line-height: 1;
    bottom: 1em;
    left: 1em;
    display: var(--ocp-display-article-count);
  }
  
  @media screen and (min-width: 768px) {
    .category-list {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    }
    .category-list .category {

      padding: 160px 1.5em 0;
  
      margin-left: 0;
      background-size: 100px;
      background-position: top 2em center;
    }
  
    .category-list .category .article-count {
      left: 1.5em;
    }
  
    .category-list .category:hover {
      background-size: 100px;
      background-position: top 2em center;
    }
  }
  
  @media screen and (min-width: 768px) and (max-width: 991px) {
    .category-list .category {
      /* width is 1/2, minus 1/2 of the 30px total padding between the two cards */
      flex: 1 0 calc(50% - 15px);
      width: calc(50% - 15px);
      max-width: calc(50% - 15px);
      margin-right: 0;
    }
  
    /* set the margin right on odd cards only  */
    .category-list .category:nth-of-type(odd) {
      margin-right: 30px;
    }
  }
  
  @media screen and (min-width: 992px) {
    .category-list .category {
      /* width is 1/3, minus 1/3 of the 60px total padding between the three cards */
      flex: 1 0 var(--ocp-card-column-count);
      width: calc(calc(100% / var(--ocp-card-column-count)) - calc(calc(30px * calc(var(--ocp-card-column-count) - 1)) / var(--ocp-card-column-count)));
      max-width: calc(calc(100% / var(--ocp-card-column-count)) - calc(calc(30px * calc(var(--ocp-card-column-count) - 1)) / var(--ocp-card-column-count)));
  
      /* set the base margin-right (removed below for every 3rd card) */
      margin-right: 30px;
    }
  
    /* remove margin-right on every 3rd card  */
    .category-list .category:last-of-type {
      margin-right: 0;
    }
  }
  
  
  /* ========================================= */
  
   /* ARTICLE VIEW  */
  #fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table {
    font-size: 1.05rem;
  font-weight: 400;
  }
  
  #fullArticle a {
    font-size: inherit !important;
  }
  
  #sidebar {
    margin-top: 3.25em;
  }
  
  #main-content {
    background: none;
    padding: 1.5rem 0 0 48px
  }
  
  #sbContact {
  color: #077EB1;
  border-bottom: 1px solid #077EB1;
  }
  
  @media (max-width:768px) {
    #main-content {
      background: none;
      padding: 0;
      margin-left: 0;
      margin-right: 0;
    }
  }
  
  .contentWrapper {
    box-shadow: none;
    background-color: transparent;
    border: var(--ocp-article-border-width) solid var(--ocp-article-border-color);
    border-radius: var(--ocp-article-border-radius);
    padding: 45px 46px;
    background-color: var(--ocp-article-background-color);
  }
  
  .contentWrapper h1 {
    font-weight: 700;
  }

  #sidebar {
    margin-top: 2.5em;
    padding: 10px;

  }
  
  #sidebar .nav-list a {
    color: var(--ocp-school-secondary);
    font-size: 1.15rem;
  }
  
  #sidebar .nav-list a:hover {
    color: var(--ocp-school-primary);
    text-decoration: underline;
  }
  
  .articleList {
    margin-top: 2em;
  }
  
  .articleList li {
    padding:  1em 0 0.5em 0;
    margin:  0.5em 0;
    border-top: 1px solid #f0edea;
  }
  
  .articleList a {
    padding: 0;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 400;
  }
  
  
  .articleFoot p {
    color: #4a4a4a;
    display: inline-block;
    font-family: var(--ocp-font);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
  }

  .articleFoot time {
      display: none;
  }
  
  #fullArticle .printArticle {
    position: absolute;
    right: 0px;
    top: 5px;
    padding-right: 10px;
  }
  
  .icon-contact {
  color: #a0a0a0;
  }
  
  #sidebar form .search-query {
    font-family: var(--ocp-font);
    box-shadow: none;
    font-size: 16px;
    border: 1px solid #AAB1AE;
    padding: .85rem 2rem .85rem .4rem;
    transition: all 50ms ease-in-out;
    border-radius: 4px;
    color: #4A4A4A;
  }
  
  #sidebar form .search-query:focus, textarea:focus, input:focus, input[type="text"]:focus {
  border-color: var(--ocp-school-primary);
  box-shadow: none;
  }
  
  /* hide file upload on contact form 
  form.contact input[id="file-upload"],
  form.contact label[for="file-upload"] {
    display: none;
  }
  */
  
  
  /* ========================================= */

/* SPECIFIC CARD CATEGORY ICONS */
/* Off Campus Partner Resouces Page */

section.category-list {
    transition: ease-in-out .2s;
}

section.category-list > a:hover {
    transform: scale(1.05);
}

section.category-list > a:first-of-type,
section.category-list > a:first-of-type:hover {
    background-image: var(--ocp-card-image-1);
    
}

section.category-list > a:nth-of-type(2),
section.category-list > a:nth-of-type(2):hover {
    background-image: var(--ocp-card-image-2);
}

section.category-list > a:nth-of-type(3),
section.category-list > a:nth-of-type(3):hover {
    background-image: var(--ocp-card-image-3);
}

section.category-list > a:nth-of-type(4),
section.category-list > a:nth-of-type(4):hover {
    background-image: var(--ocp-card-image-4);
}


/*** Graveyard ***/

/* Category headers */

/* .collection-category > h2 {
  text-align: center;
  font-weight: 700;
  padding: 1em 0 .5em;
}
.collection-category > h2 a {
  color: #4c4c4c;
}
@media screen and (max-width: 767px) {
  .collection-category > h2 {
    font-size: 20px;
    padding: .5em .5em 0;
  }
} */
