
/* =========================================================
   ROUH & RIHAN
   LEARNING LIBRARY V2
========================================================= */


/* ---------------------------------------------------------
   LIBRARY PAGE
--------------------------------------------------------- */

.rwr-learning-library-page {
  width: 100% !important;
}


.rwr-library-v2 {
  width: min(100% - 36px, 1480px);

  margin:
    24px auto 80px;

  padding:
    0;
}


.rwr-library-hero {
  width:
    min(100%, 900px);

  margin:
    0 auto 30px;

  padding:
    28px 18px 12px;

  text-align:
    center;
}


.rwr-library-eyebrow {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    10px;

  color:
    #e61d4f;

  font-size:
    12px;

  font-weight:
    800;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


.rwr-library-hero h1 {
  margin:
    0;

  color:
    #12452f;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    clamp(38px, 5vw, 68px);

  font-weight:
    700;

  line-height:
    1.03;
}


.rwr-library-hero p {
  width:
    min(100%, 720px);

  margin:
    16px auto 0;

  color:
    #53665c;

  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  font-size:
    17px;

  line-height:
    1.75;
}


/* ---------------------------------------------------------
   FILTERS
--------------------------------------------------------- */

.rwr-library-filters {
  display:
    flex;

  flex-wrap:
    wrap;

  justify-content:
    center;

  gap:
    9px;

  width:
    min(100%, 1100px);

  margin:
    0 auto 34px;
}


.rwr-library-filter {
  appearance:
    none;

  min-height:
    42px;

  padding:
    9px 17px;

  border:
    1px solid #d6e6dd;

  border-radius:
    999px;

  background:
    #fff;

  color:
    #12452f;

  cursor:
    pointer;

  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  font-size:
    13px;

  font-weight:
    700;

  transition:
    .2s ease;
}


.rwr-library-filter:hover {
  border-color:
    #078b4b;

  transform:
    translateY(-1px);
}


.rwr-library-filter.is-active {
  border-color:
    #078b4b;

  background:
    #078b4b;

  color:
    #fff;
}


/* ---------------------------------------------------------
   MAIN ARTICLE GRID
--------------------------------------------------------- */

.rwr-library-grid-v2 {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    22px;

  align-items:
    stretch;
}


.rwr-library-card-v2 {
  display:
    flex;

  flex-direction:
    column;

  min-width:
    0;

  overflow:
    hidden;

  border:
    1px solid #dce8e1;

  border-radius:
    24px;

  background:
    #fff;

  box-shadow:
    0 8px 30px
    rgba(18,69,47,.055);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}


.rwr-library-card-v2:hover {
  transform:
    translateY(-4px);

  border-color:
    #c5ddcf;

  box-shadow:
    0 17px 42px
    rgba(18,69,47,.10);
}


.rwr-library-card-v2[hidden] {
  display:
    none !important;
}


/* ---------------------------------------------------------
   CARD IMAGE
--------------------------------------------------------- */

.rwr-card-media-link,
.rwr-related-media-link {
  display:
    block;

  text-decoration:
    none;
}


.rwr-card-media {
  position:
    relative;

  width:
    100%;

  aspect-ratio:
    16 / 9;

  overflow:
    hidden;

  background:
    #edf6f1;
}


.rwr-card-image {
  width:
    100%;

  height:
    100%;

  display:
    block;

  object-fit:
    cover;

  object-position:
    center;

  transition:
    transform .35s ease;
}


.rwr-library-card-v2:hover .rwr-card-image,
.rwr-related-card-v2:hover .rwr-card-image {
  transform:
    scale(1.025);
}


.rwr-card-media-placeholder {
  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  padding:
    20px;

  background:
    linear-gradient(
      145deg,
      #edf7f1 0%,
      #f7f4ed 48%,
      #fcecf1 100%
    );

  text-align:
    center;
}


.rwr-card-media-placeholder::before {
  content:
    "";

  width:
    52px;

  height:
    7px;

  margin-bottom:
    9px;

  border-radius:
    999px;

  background:
    linear-gradient(
      90deg,
      #078b4b 0 34%,
      #18bcd0 34% 67%,
      #e61d4f 67% 100%
    );
}


.rwr-card-media-placeholder span {
  color:
    #e61d4f;

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


.rwr-card-media-placeholder strong {
  color:
    #12452f;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    25px;

  line-height:
    1.15;
}


.rwr-card-media-placeholder small {
  color:
    #60746a;

  font-size:
    12px;
}


/* ---------------------------------------------------------
   CARD BODY
--------------------------------------------------------- */

.rwr-card-body {
  display:
    flex;

  flex:
    1;

  flex-direction:
    column;

  align-items:
    center;

  padding:
    23px 24px 25px;

  text-align:
    center;
}


.rwr-card-category {
  display:
    inline-block;

  margin-bottom:
    10px;

  color:
    #e61d4f;

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    .07em;

  text-transform:
    uppercase;
}


.rwr-card-title {
  margin:
    0;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    clamp(19px, 1.45vw, 24px);

  font-weight:
    700;

  line-height:
    1.28;
}


.rwr-card-title a {
  color:
    #123f2c;

  text-decoration:
    none;
}


.rwr-card-excerpt {
  margin:
    13px 0 21px;

  color:
    #617168;

  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  font-size:
    14px;

  line-height:
    1.65;
}


.rwr-card-read-more {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  min-width:
    132px;

  min-height:
    43px;

  margin-top:
    auto;

  padding:
    9px 18px;

  border-radius:
    999px;

  background:
    #078b4b;

  color:
    #fff !important;

  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  font-size:
    13px;

  font-weight:
    800;

  text-decoration:
    none !important;

  transition:
    .2s ease;
}


.rwr-card-read-more:hover {
  background:
    #12452f;

  transform:
    translateY(-1px);
}


.rwr-card-read-more span {
  font-size:
    17px;
}


/* ---------------------------------------------------------
   MORE ARTICLES
--------------------------------------------------------- */

.rwr-library-more-v2 {
  width:
    min(100%, 760px);

  margin:
    48px auto 0;

  padding:
    35px 24px;

  border:
    1px solid #dce8e1;

  border-radius:
    28px;

  background:
    #f6faf8;

  text-align:
    center;
}


.rwr-library-more-v2 > span {
  display:
    block;

  margin-bottom:
    5px;

  color:
    #e61d4f;

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


.rwr-library-more-v2 h2 {
  margin:
    0;

  color:
    #12452f;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    31px;
}


.rwr-library-more-v2 p {
  margin:
    9px 0 20px;

  color:
    #63766c;

  font-size:
    14px;
}


.rwr-library-more-button {
  min-height:
    45px;

  padding:
    10px 20px;

  border:
    0;

  border-radius:
    999px;

  background:
    #12452f;

  color:
    #fff;

  cursor:
    pointer;

  font-size:
    13px;

  font-weight:
    800;
}


.rwr-library-more-button span {
  margin-left:
    6px;
}


/* =========================================================
   SINGLE ARTICLE — GIVE CONTENT MORE SPACE
========================================================= */

body.single-post .rwr-post-shell {
  width:
    100% !important;

  max-width:
    none !important;

  margin:
    0 auto !important;

  padding-left:
    clamp(15px, 3.5vw, 55px) !important;

  padding-right:
    clamp(15px, 3.5vw, 55px) !important;
}


body.single-post .rwr-article {
  width:
    min(100%, 1240px) !important;

  max-width:
    1240px !important;

  margin:
    0 auto !important;

  padding:
    0 !important;
}


body.single-post .rwr-article-hero,
body.single-post .rwr-quick-answer,
body.single-post .rwr-article-section,
body.single-post .rwr-video-section,
body.single-post .rwr-article-faq,
body.single-post .rwr-article-cta,
body.single-post .rwr-related-v2 {
  width:
    min(100%, 1120px) !important;

  max-width:
    1120px !important;

  margin-left:
    auto !important;

  margin-right:
    auto !important;
}


body.single-post .rwr-article-hero {
  padding-left:
    clamp(15px, 4vw, 50px) !important;

  padding-right:
    clamp(15px, 4vw, 50px) !important;
}


body.single-post .rwr-article-section {
  padding:
    clamp(24px, 4vw, 44px)
    clamp(18px, 5vw, 58px) !important;
}


body.single-post .rwr-article-section p,
body.single-post .rwr-quick-answer p,
body.single-post .rwr-article-faq p {
  width:
    min(100%, 980px) !important;

  max-width:
    980px !important;

  margin-left:
    auto !important;

  margin-right:
    auto !important;

  font-size:
    clamp(16px, 1.2vw, 18px) !important;

  line-height:
    1.85 !important;
}


body.single-post .rwr-video-grid {
  width:
    100% !important;

  max-width:
    1080px !important;

  margin-left:
    auto !important;

  margin-right:
    auto !important;
}


body.single-post .rwr-video-frame {
  width:
    100% !important;
}


/* old simple related links */
body.single-post .rwr-related-articles {
  display:
    none !important;
}


/* =========================================================
   NEW RELATED ARTICLE CARDS
========================================================= */

.rwr-related-v2 {
  margin-top:
    52px !important;

  margin-bottom:
    52px !important;

  padding:
    34px !important;

  border:
    1px solid #dbe9e1;

  border-radius:
    30px;

  background:
    #f7faf8;
}


.rwr-related-v2-heading {
  width:
    min(100%, 760px);

  margin:
    0 auto 25px;

  text-align:
    center;
}


.rwr-related-v2-heading span {
  color:
    #e61d4f;

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


.rwr-related-v2-heading h2 {
  margin:
    7px 0 8px;

  color:
    #12452f;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    clamp(28px, 4vw, 42px);

  line-height:
    1.1;
}


.rwr-related-v2-heading p {
  margin:
    0;

  color:
    #62746b;

  font-size:
    14px;
}


.rwr-related-grid-v2 {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap:
    18px;
}


.rwr-related-card-v2 {
  min-width:
    0;

  overflow:
    hidden;

  border:
    1px solid #dbe7e0;

  border-radius:
    20px;

  background:
    #fff;

  box-shadow:
    0 8px 24px
    rgba(18,69,47,.045);
}


.rwr-related-card-v2 .rwr-card-media {
  aspect-ratio:
    16 / 9;
}


.rwr-related-card-body {
  padding:
    18px;

  text-align:
    center;
}


.rwr-related-card-body > span {
  display:
    block;

  margin-bottom:
    8px;

  color:
    #e61d4f;

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    .07em;

  text-transform:
    uppercase;
}


.rwr-related-card-body h3 {
  margin:
    0;

  font-family:
    "Trebuchet MS",
    "Segoe UI",
    sans-serif;

  font-size:
    18px;

  line-height:
    1.32;
}


.rwr-related-card-body h3 a {
  color:
    #12452f;

  text-decoration:
    none;
}


.rwr-related-card-body p {
  margin:
    10px 0 15px;

  color:
    #637269;

  font-size:
    13px;

  line-height:
    1.6;
}


.rwr-related-read-more {
  color:
    #078b4b !important;

  font-size:
    12px;

  font-weight:
    800;

  text-decoration:
    none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1020px) {

  .rwr-library-grid-v2 {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }


  .rwr-related-grid-v2 {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }


  .rwr-related-card-v2:last-child {
    grid-column:
      1 / -1;

    width:
      min(100%, 520px);

    margin:
      0 auto;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

  .rwr-library-v2 {
    width:
      min(100% - 22px, 100%);

    margin-top:
      12px;

    margin-bottom:
      45px;
  }


  .rwr-library-hero {
    padding:
      17px 8px 8px;

    margin-bottom:
      20px;
  }


  .rwr-library-hero h1 {
    font-size:
      39px;
  }


  .rwr-library-hero p {
    font-size:
      15px;

    line-height:
      1.65;
  }


  .rwr-library-filters {
    flex-wrap:
      nowrap;

    justify-content:
      flex-start;

    overflow-x:
      auto;

    padding:
      2px 2px 10px;

    margin-bottom:
      20px;

    scrollbar-width:
      none;
  }


  .rwr-library-filters::-webkit-scrollbar {
    display:
      none;
  }


  .rwr-library-filter {
    flex:
      0 0 auto;

    min-height:
      38px;

    padding:
      8px 13px;

    font-size:
      12px;
  }


  .rwr-library-grid-v2 {
    grid-template-columns:
      1fr;

    gap:
      15px;
  }


  .rwr-library-card-v2 {
    border-radius:
      18px;
  }


  .rwr-card-body {
    padding:
      18px 17px 19px;
  }


  .rwr-card-title {
    font-size:
      20px;
  }


  .rwr-card-excerpt {
    margin:
      10px 0 17px;

    font-size:
      13px;
  }


  .rwr-card-read-more {
    min-height:
      40px;

    min-width:
      124px;
  }


  .rwr-library-more-v2 {
    margin-top:
      27px;

    padding:
      26px 17px;

    border-radius:
      21px;
  }


  body.single-post .rwr-post-shell {
    padding-left:
      11px !important;

    padding-right:
      11px !important;
  }


  body.single-post .rwr-article {
    width:
      100% !important;
  }


  body.single-post .rwr-article-section {
    padding:
      22px 16px !important;
  }


  body.single-post .rwr-article-section p,
  body.single-post .rwr-quick-answer p,
  body.single-post .rwr-article-faq p {
    font-size:
      15.5px !important;

    line-height:
      1.78 !important;
  }


  .rwr-related-v2 {
    margin-top:
      32px !important;

    margin-bottom:
      32px !important;

    padding:
      22px 12px !important;

    border-radius:
      20px;
  }


  .rwr-related-grid-v2 {
    grid-template-columns:
      1fr;

    gap:
      13px;
  }


  .rwr-related-card-v2:last-child {
    grid-column:
      auto;

    width:
      100%;
  }


  .rwr-related-card-v2 {
    border-radius:
      17px;
  }

}

