@import "./reset.css";
@import "./global.css";

:root {
  --wgp-pure-black: #000;
  --wgp-pure-white: #fff;
  --wgp-primary-red: #c60c30;
  --wgp-patterned-blue: #1a3d5f;
  --wgp-dark-gray: #9d9d9d;
  --wgp-light-gray: #ddd;
  --wgp-image-overlay: rgba(26, 61, 95, 0.5);

  --wgp-base-font-size: 16px;
  --wgp-secondary-font-size: 20px;

  --wgp-radius: 25px;
  --wgp-custom-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.25);

  --wgp-max-width-sm: 640px;
  --wgp-max-width-md: 768px;
  --wgp-max-width-lg: 1024px;
  --wgp-max-width-xl: 1280px;
  --wgp-max-width-xxl: 1440px;
}

/* Global styles for all site */
html,
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  line-height: 1.2;
  background-color: var(--wgp-light-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
}

h1 {
  font-size: 60px;
  font-weight: 900;
}
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 40px;
  }
}

h2 {
  font-size: 32px;
  font-weight: 900;
}
@media screen and (max-width: 1024px) {
  h2 {
    font-size: 20px;
  }
}

h3 {
  font-size: 24px;
  font-weight: 900;
}
@media screen and (max-width: 1024px) {
  h3 {
    font-size: 18px;
  }
}

h4 {
  font-size: 18px;
  font-weight: 900;
}
@media screen and (max-width: 1024px) {
  h4 {
    font-size: 16px;
  }
}

p {
  font-weight: 300;
  margin-bottom: 20px;
}
strong {
  font-weight: 700;
}
section ol,
section ul,
section li {
  font-weight: 300;
}

/* Custom layout for single post page */

.single .wp-block-latest-posts__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 700;
}
.single .wgp__single-post-page {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  justify-content: space-between;
}
@media screen and (max-width: 1440px) {
  .single .wgp__single-post-page {
    padding: 0 15px;
  }
}
@media screen and (max-width: 1024px) {
  .single .wgp__single-post-page {
    flex-direction: column;
    gap: 0;
  }
}

/* **** */
.single .wgp__single-post-page aside,
.single .wgp__single-post-page article {
  margin: 0;
  padding: 0;
}
/* **** */
.single .wgp__single-post-page article {
  width: 70%;
  text-align: justify;
}
@media screen and (max-width: 1024px) {
  .single .wgp__single-post-page article {
    width: 100%;
    margin-bottom: 40px;
  }
}

/* **** */
.single .wgp__single-post-page article img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ***** */
.single .wgp__single-post-page aside {
  width: 30%;
}
@media screen and (max-width: 1024px) {
  .single .wgp__single-post-page aside {
    width: 100%;
  }
}

/* ***** */
@media screen and (max-width: 1024px) {
  .single .wgp__single-post-page aside .wp-block-latest-posts__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
@media screen and (max-width: 768px) {
  .single .wgp__single-post-page aside .wp-block-latest-posts__list {
    justify-content: center;
  }
}

/* ***** */
.single .wgp__single-post-page aside .wp-block-latest-posts__list li {
  font-weight: 600;
}
@media screen and (max-width: 1024px) {
  .single .wgp__single-post-page aside .wp-block-latest-posts__list li {
    width: 30%;
  }
}
@media screen and (max-width: 768px) {
  .single .wgp__single-post-page aside .wp-block-latest-posts__list li {
    width: 100%;
    max-width: 320px;
  }
}

/* ***** */
.single
  .wp-block-latest-posts__list
  li
  .wp-block-latest-posts__featured-image
  a {
  width: 100%;
  margin-bottom: 10px;
}
.single .wp-block-latest-posts__list li .wp-block-latest-posts__post-title {
  transition: all 0.3s ease-in-out;
}
.single
  .wp-block-latest-posts__list
  li
  .wp-block-latest-posts__post-title:hover {
  color: var(--wgp-primary-red);
  transition: all 0.3s ease-in-out;
}

/* ***** */
.single .wp-block-latest-posts__list li a img {
  max-width: 100% !important;
  width: 100% !important;
  height: 300px !important;
  border-radius: 15px;
}
@media screen and (max-width: 1280px) {
  .single .wp-block-latest-posts__list li a img {
    height: 190px !important;
  }
}

/* Custom style for single page STORY. latest stories list 
*/
.stories-template .wgp__single-post-page {
  gap: 40px;
}
.stories-template .wgp__single-post-page article {
  width: 65%;
}
.stories-template .wgp__single-post-page aside {
  width: 35%;
}
.stories-template .wgp__cards-preview-list {
  flex-direction: column;
}
.stories-template .wgp__cards-preview-list .single-page-story-card {
  width: 100%;
}
.stories-template .single-page-story-card .wgp__wrapper-image-overlay {
  height: 180px;
}
.stories-template .single-page-story-card .wgp__wrapper-image-overlay img {
  object-position: top;
}
.stories-template .single-page-story-card .card-data {
  padding: 10px 15px;
  height: auto;
}
.stories-template .single-page-story-card .card-data .card-title {
  margin-bottom: 15px;
}
.stories-template .single-page-story-card .card-data .wgp__transparent-bg {
  border-color: var(--wgp-primary-red);
  color: var(--wgp-pure-black);
  font-size: 14px;
}

@media screen and (max-width: 1024px) {
  .stories-template .wgp__single-post-page {
    gap: 0px;
  }
  .stories-template .wgp__single-post-page article {
    width: 100%;
    margin-bottom: 40px;
  }
  .stories-template .wgp__single-post-page aside {
    width: 100%;
  }
  .stories-template .wgp__cards-preview-list {
    flex-direction: row;
  }
  .stories-template .wgp__cards-preview-list .single-page-story-card {
    width: 35%;
  }
  .stories-template .single-page-story-card .card-data {
    height: calc(100% - 180px);
  }
}
@media screen and (max-width: 960px) {
  .stories-template .wgp__cards-preview-list .single-page-story-card {
    width: 55%;
  }
  .stories-template .single-page-story-card .wgp__wrapper-image-overlay {
    height: 230px;
  }
  .stories-template .single-page-story-card .card-data {
    height: calc(100% - 230px);
  }
}
@media screen and (max-width: 768px) {
  .stories-template .wgp__cards-preview-list .single-page-story-card {
    min-width: 300px;
    width: 50%;
  }
}
@media screen and (max-width: 640px) {
  .stories-template .wgp__cards-preview-list .single-page-story-card {
    width: 100%;
  }
}
