/*

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
  - Subheader
  - 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: #232323;
    --ocp-font-secondary-color: #333333; /* will be applied to any tag with class="ocp-accent" */ 
    --ocp-body-background: #ffffff; /* change to #fff for white background */
    --ocp-school-primary: #4c4c4c;
    --ocp-school-secondary: #4c4c4c;


    /* Search Bar */
    --ocp-search-background: inherit;
    --ocp-background-color: #fafafa;
    --ocp-search-background-color: #fafafa;
    --ocp-search-button-color: #4c4c4c;
    --ocp-search-font-color: #4c4c4c; /* #fff for dark backgrounds #4c4c4c for light backgrounds */
    --ocp-search-text: "What are you looking for?";


    /* Card Styles */
    --ocp-card-column-count: 3;
    --ocp-display-article-count: none; /* Change to "block" or "none" to show / hide */
    --ocp-card-image-1: url('https://cdn.offcampusimages.com/public/upload/80b8xudr1yl6tcgegcl4ci6rrgh79rqhad3rbwqlf_0.png');
    --ocp-card-image-2: url('https://cdn.offcampusimages.com/public/upload/30ifxw2qageombpadq6cklq75ok7rkzpszeov59km7y.png');    
    --ocp-card-image-3: url('https://cdn.offcampusimages.com/public/upload/qhaytslgvsrypqct3068cvylfrd2cluotgxgf0hi4jo.png');    
    --ocp-card-image-4: url('https://cdn.offcampusimages.com/public/upload/grkctliy5rhkjyha72hip_2hcnmqu2pbichr_emhx7i.png');
    --ocp-card-image-5: url('https://cdn.offcampusimages.com/public/upload/vfczy7plepnqsrwxrkqowbbhtbl0jzjbtnuzcuuvous.png');
    --ocp-card-image-6: url('https://cdn.offcampusimages.com/public/upload/suk7mf5ryhitiyfhomc7wzaxnji3zwutseekz_lkmyu.png');


    /* turn this off by setting --ocp-card-border-width to 0px */
    --ocp-card-border-color: var(--ocp-school-secondary);
    --ocp-card-border-width: 0px;

    --ocp-card-background-color: #fff; 
    --ocp-card-font-color: #333333;
    --ocp-card-underline-color: #2D2926; /* set to inherit for normal link underline, var(--ocp-card-font-color), or whatever color preferred */

    /* Article Style */
    --ocp-article-border-width: 0px;
    --ocp-article-border-color: #e9e5e5; 
    --ocp-article-border-radius: 0px; /* increase/decrease px value for sharper/rounder border edges */
    --ocp-article-background-color: #ffffff;
}

.icon-article-doc {
display:none;
}

.costar-logo > a > img {
    height: 32px !important;
}

/* ========================================= */

/* 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;
}

h3 {
    font-size: 19px !important;
}

h4 {
    font-size: 16px !important; 
}

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;
  }
}

/* ========================================= */
/* Subheader */
.subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafaf8;
  padding: 20px;
}

.subheader h2 {
  font-weight: bold; 
}

.subheader-nav {
  display: flex;
}

.subheader-nav a {
  text-decoration: none;
  color: #4c4c4c;
  font-size: 1.1rem; 
  font-weight: 400; 
  transition: color 0.1s ease-in-out; 
}

.subheader-nav a:first-child {
  margin-right: 25px; /* Add more space between the first and second link */
  font-weight: bold; /* Make the first link bold */
  text-decoration: underline;
}

.subheader-nav a:nth-child(2) {
  margin-right: 5px; /* Adjust the margin of the second link */
}

.subheader-nav a:hover {
  text-decoration: underline;
  color: #000; /* Change text color on hover */
  font-weight: 550; /* Increase font weight on hover */
}

@media screen and (max-width: 767px) {
  .subheader-nav {
    justify-content: center; /* Center the links for mobile */
  }

  .subheader-nav a {
    font-size: 0.9rem;
    margin: 0 10px; /* Adjust margin for mobile */
  }

  .subheader-nav a:first-child {
    margin-right: 15px; 
    margin-left: 15px; 
  }

  .subheader-nav a:nth-child(2) {
    margin-right: 0px;
    margin-left: 0px;
    text-align: center; 
  }
}


/* ========================================= */


/* NAVBAR  */

#mainNav {
    display: none;
}


/* Restore original styles if desired */

/* ========================================= */

/* SEARCH BAR  */

/* Search results dropdown */

#docsSearch {
    padding: .5em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    background-color: #fafaf8;
    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: #000000;
    border: solid 0px var(--ocp-search-button-color);
}

#searchBar button span {
    display: none;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#searchBar button i.icon-search {
    display: inline;
}

@media screen and (min-width: 768px) {
    #docsSearch {
        padding: 3em 12px 6em; /* Adjusted padding values for larger screens */
        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: left;
    text-decoration: none;
    border: var(--ocp-card-border-width) solid var(--ocp-card-border-color);
    border-radius: 3px;
    box-shadow: 0 0 6px 0 rgba(0,0,0,0.3);
  
    flex: 1 0 100%;
    width: 100%;
    padding: 110px 1em 0;
    height: 265px;
    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: #fff;
  }
  
  .category-list .category:hover {
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    background-position: top 1em center;
    background-repeat: no-repeat;
}

  .category-list .category:hover h3 {
    text-decoration: underline;
    text-decoration-color: (--ocp-card-font-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: 14px;
  }
  
  /* 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: none;
  }

@media screen and (max-width: 767px) {
    .category-list {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    }
    .category-list .category {

      padding: 140px 1.5em 1em;
  
      margin-left: 0;
      background-size: 90px;
      background-position: top 1.5em center;
      height: 240px;
    }
  
    .category-list .category:hover {
      background-size: 90px;
      background-position: top 1.5em center;
      height: 240px;
    }
  }

  
  @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(33.3% - 30px);
      max-width: calc(33.3% - 30px);
  
      /* 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: 0 24px; /* Changed padding values */
    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 Resources Page */


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);
}

section.category-list > a:nth-of-type(5),
section.category-list > a:nth-of-type(5):hover {
    background-image: var(--ocp-card-image-5);
}

section.category-list > a:nth-of-type(6),
section.category-list > a:nth-of-type(6):hover {
    background-image: var(--ocp-card-image-6);
}



/* Related Section */
.related {
    background-color: #f5f5f5; /* Very light gray background */
    padding: 20px; /* Adjust padding as needed */
    border-radius: 5px; /* Add some border radius for rounded corners */
    border: none; /* Remove the border */
}

.related ul > li {
    color: #1e5c8f;
}



/*** 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;
  }
} */
 