/*-- -------------------------- -->
<---        Content Page        -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #blog_detalji {
    padding: var(--sectionPadding);
    background-color: #f1f1f1;
    /* clips the wave background from causing overflow issues when it goes off screen */
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #blog_detalji .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
    position: relative;
  }
  #blog_detalji .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 46.125rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #blog_detalji .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  #blog_detalji h2,
  #blog_detalji h3,
  #blog_detalji h4,
  #blog_detalji h5,
  #blog_detalji h6 {
    font-weight: 700;
    text-align: inherit;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
  }
  #blog_detalji h2 {
    font-size: 2rem;
    margin-top: 2rem;
  }
  #blog_detalji h3 {
    font-size: 1.5rem;
    color: var(--primary);
  }
  #blog_detalji h4,
  #blog_detalji h5,
  #blog_detalji h6 {
    font-size: 1.25rem;
  }
  #blog_detalji .cs-button-solid {
    margin-bottom: 2rem;
  }
  #blog_detalji .cs-no-margin {
    margin: 0;
  }
  #blog_detalji .cs-color {
    color: var(--primary);
  }
  #blog_detalji p {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    margin: 0 0 1rem 0;
    color: var(--bodyTextColor);
  }
  #blog_detalji p:last-of-type {
    margin-bottom: 2rem;
  }
  #blog_detalji p a {
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    color: var(--primary);
  }
  #blog_detalji ol,
  #blog_detalji ul {
    padding-left: 1.5rem;
    margin: 0 0 2rem 0;
    color: var(--bodyTextColor);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  #blog_detalji ul li {
    list-style: none;
    color: inherit;
    position: relative;
  }
  #blog_detalji ul li:before {
    /* custom list bullet */
    content: "";
    width: 3px;
    height: 3px;
    background: currentColor;
    opacity: 1;
    border-radius: 50%;
    position: absolute;
    display: block;
    top: 0.625rem;
    left: -0.75rem;
  }
  #blog_detalji img {
    width: 100%;
    height: auto;
    display: block;
  }
  #blog_detalji .cs-image-group {
    width: 100%;
    max-width: 27.0625rem;
    order: -1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
  }
  #blog_detalji .cs-image-group:after {
    /* colored box */
    content: "";
    width: 100%;
    /* 177px - 258px */
    height: clamp(11.0625rem, 19vw, 16.125rem);
    background: var(--primary);
    border-radius: 6.25rem 0 6.25rem;
    opacity: 0.15;
    display: block;
  }
  #blog_detalji .cs-picture {
    width: 100%;
    /* 300px - 520px */
    height: clamp(18.75rem, 40vw, 32.5rem);
    box-shadow: 0px 3.3478px 50.2169px rgba(0, 0, 0, 0.16);
    /* 125px - 200px */
    border-radius: 0 clamp(7.8125rem, 15vw, 12.5rem) 0
      clamp(7.8125rem, 15vw, 12.5rem);
    /* prevents border from affecting height and width */
    box-sizing: border-box;
    /* clips img tag corners */
    overflow: hidden;
    display: block;
    position: relative;
  }
  #blog_detalji .cs-picture img {
    width: 100%;
    height: 100%;
    /* makes it act like a background image */
    object-fit: cover;
  }
  #blog_detalji .cs-date {
    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: #bababa;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
  }

  #blog_detalji .cs-date .cs-icon {
    width: 20px !important;
    height: 20px !important;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #blog_detalji .cs-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  #blog_detalji .cs-content {
    flex: none;
    width: 60%;
    /* sens it to the right in the 2nd position */
    order: 2;
  }
  #blog_detalji .cs-image-group {
    display: flex;
  }
}

/* For mobile screens */
@media only screen and (max-width: 600px) {
  #blog_detalji .cs-image-group:after {
    content: none; /* This will hide the :after element */
  }
}
