
  @import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
  /* color varables */
  --primary: #9f0d2d;
  --secondary: #54b9cb;
  --secondary-lt: #54b9cbee;
  --accent: #457f8b;
  --light-section-bg-color: #dddeee;
  --mobile-bg-color: #dddeeef1;
  --block-color: rgba(243, 236, 236, 0.829);
  /* font colors */
  --title-color: #111;
  --text-color: #111;
  --light-text-color: #dddeee;
  --gradient-lite: radial-gradient(circle,#efe8e8, var(--light-section-bg-color) );
  /* fonts */
  --title-font: "Lexend Deca", sans-serif;
  --text-font: 'Roboto', sans-serif;
  /* font sizes */
  --hero-title: clamp(1.2rem, 3.2cqw, 2.5rem);
  /* --hero-title: 2.6rem; */
  --title-size: clamp(1.1em, 2.5cqw, 1.3em);
  --text-size: clamp(1em, 2.4cqw, 1.2rem);
  --nav-menu: 1rem;
  /* for other styles */
  --radius: 4px;
  --shadow: 0 0 15px 5px rgba(0, 0, 0, 0.6);
  --block-padding: 5px 15px;
  --section-padding: 3em 20px;
}
body {
  font-family: var(--text-font);
}
p,
li {
  font-size: var(--text-size);
  letter-spacing: 1px;
}
a {
  text-decoration: none;
}

details summary {
  cursor: pointer;
}

details summary > * {
  display: inline;
}
/* For edge and other browsers that do not support summary and details tags */
@supports not (-ms-ime-align: auto) {
  details summary {
    cursor: pointer;
  }

  details summary > * {
    display: inline;
  }

  /* Plus any other <details>/<summary> styles you want IE to ignore. */
}
h1,
h1 span,
h2,
h3,
h4
 {
  font-family: var(--title-font);
  font-size: var(--title-size);
  text-align: center;
  font-weight: 700;
  text-transform: capitalize;
}
h2 {
  font-style: italic;
}

section {
  padding: var(--block-padding);
}
@media (min-width: 30em) {
  section {
    padding: var(--section-padding);
  }
  hr {
    max-width: 300px;
    margin: 1.5rem auto;
    border-bottom: 2px dotted var(--secondary);
  }
}
/* */
/* =========== Updated 11/1/22 ======================== 
| Classes used through out the site - which will be part of the main css file (styles.css) |
==================================== */
/* this is a bootstrap class, just needed some extra styling
At the moment used on recent posts and the contact page */
.list-group-item a {
  text-align: center;
  color: var(--accent);
}

.bg {
  /* puts the light gray background to that section */
  background-image: var(--gradient-lite);
  border-top: 1px groove var(--secondary);
  border-bottom: 1px groove var(--secondary);
}
.custom-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--block-padding);
}

/* for some titles to be the primary color */
.primary {
  color: var(--primary);
}
.custom-section > * {
  flex: auto;
}
.custom-basis {
  flex-basis: 100%;
}

.custom-section-item {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--block-padding);
  display: flex;
  flex-direction: column;
  transition: 300ms ease-in-out;
  background-color: var(--block-color);
  flex-basis: auto;
  box-shadow: 0 0 20px #444;
}
.custom-section img,
.custom-section-item img {
  max-width: 400px;
  height: auto;
  margin: 10px auto;
  justify-self: center;
}
.custom-section-item:hover {
  box-shadow: none;
  background-blend-mode:difference;
}

.custom-section-item h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.custom-section > article {
  flex-grow: 1;
}
.narrow-section {
  padding: 10px;
}

@media (min-width: 50em) {
  .custom-section {
    max-width: 90em;
    margin: 5rem auto;
  }

  .custom-section > article {
    flex-basis: 280px;
    flex-grow: 1;
    max-width: 50%;
  }
  .custom-section > h3 {
    padding: 2em 0;
    color: var(--primary);
  }
  .custom-section-item {
    flex-basis: 30%;
    text-align: center;
  }
  /* = Updated 11/1/22 = used in sections that have wider text with an image, on line 111 this turns to 100% for smaller screens */
  .custom-basis {
    flex-basis: 70%;
    align-self: center;
  }
  .narrow-section {
    max-width: 1000px;
    margin: 50px auto;
  }
  .narrow-section ul:not('.list-group') {
    margin-left: 20px;
  }
}

/* = Updated 11/1/22 = This is for the summary and details tag used in the what to expect and team description */
details[open] summary ~ * {
  animation: details-ele 0.5s ease-in-out;
}

@keyframes details-ele {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* learn more buttons */

.dart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 10px auto;
}

.dart-btn a {
  text-transform: uppercase;
  background-color: #333;
  padding: var(--block-padding);
  font-size: 16px;
  border-radius: var(--radius);
  color: var(--light-text-color);
  transition: 300ms ease-in-out;
  border: 3px groove var(--accent);
}

.dart-btn a:hover {
  background-color: #727070;
}

.light-links a {
  color: var(--light-text-color);
  text-decoration: none;
}

.gradient {
  background-image: (to bottom, #9f0d2d, #b74b73, #bf80ad, #c6b1d6, #dddeee);
}


/* ================================= 
| Top header with logo and nav links |
==================================== */
.header {
  min-height: 200px;
}
/* logo and donate button */
.top-section {
  display: flex;
  flex-wrap: wrap;
}
.top-section > div {
  flex-basis: 100%;
  text-align: center;
}
.logo img {
  margin: 20px auto;
}
/* text of terms and link */
.terms {
  text-align: center;
  animation: terms 0.6s ease-in;
  background-color: var(--text-color);
  color: #fff;
}
.terms p {
  padding: 5px;
  font-size: 1rem;
  margin-bottom: 0;
  font-size: 14px;
}
.terms a {
  color: var(--secondary-lt);
  font-weight: 700;
  transition: .3s ease-in-out;
}
.terms a:hover {
  color: var(--accent);
}
/* nav items */
.menu-items-container {
  background-color: var(--primary);
  /* padding: 5px; */
  position: relative;
}
.mobile-menu {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.mobile-menu span {
  width: 40px;
  margin: 5px auto;
  border-bottom: 2px solid var(--light-section-bg-color);
}

.main-nav {
  display: none;
}
.main-nav ul {
  padding: 0;
  margin: 0;
  position: relative;
}
.main-nav ul li {
  display: inline-block;
  /* margin: 3px 0; */
}

.main-nav ul li a {
  display: block;
  padding: 8px 15px;
  color: white;
  /* line-height: 40px; */

 
  transition: .3s ease-in-out;
  border: 5px solid transparent;
}


.main-nav ul li a:hover:not(.active-nav) {
  border-top-color: var(--light-text-color);
  border-bottom-color: var(--light-text-color);
  width: 100%;
}
.active-nav {
  color: #ccc !important;
}
.dropdown-content {
  position: relative;
  display: none;
}

.sub-menu-item a {
  color: rgb(206, 204, 204) !important;
  white-space: nowrap;
  text-transform: capitalize;
  text-align: left;
  border-bottom: 1px solid var(--secondary);
  max-width: 250px;
}
.sub-menu-item a:hover {
  background-color: var(--secondary);
}
.sub-menu-item:last-child a {
  border-color: transparent;
}
/* Only used when in mobile and the menu icon is clicked */
.is-active {
  display: block;
  position: absolute;
  z-index: 1;
  left: 50px;
  top: 100%;
  background-color: var(--accent);
  width: 80%;
  padding: 10px;
  text-align: center;
  border: 1px solid white;
  border-top: none;
  border-radius: var(--radius);
  box-shadow: 0 0 15px #333;
}
.is-active li {
  width: 100%;
}
/* to hide checkbox */
.nav-toggle {
  display: none;
}
.desktop-icon {
  display: none;
}
/* will open the sub menu, making it to be only on mobile */
.nav-toggle-label {
  display: block;
}

.nav-toggle-label {
  position: absolute;
  right: 20%;
  top: 55px;
  background-color: var(--secondary);
  padding: 5px 10px;
  color: white;
}

.nav-toggle:checked ~ li .dropdown-content {
  display: block;
  position: relative;
}
@media (min-width: 800px) {
  /* dropdown icon for mobile to be clickable but not appear on large screens */
  .nav-toggle-label {
    display: none;
  }
  .desktop-icon {
    display: inline-block;
  }
  .top-section {
    align-items: center;
    justify-content: space-evenly;
    
  }
  .top-section > div {
    flex-basis: 50%;
  }
  .dropdown-content {
    position: absolute;
    z-index: 1;
    transition: 200ms ease-in-out;
    background-color: var(--light-section-bg-color);
    border: 1px groove #555;
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.8);
    /* padding: var(--block-padding); */
    animation: about-dropdown 600ms ease-out;
  }
  .sub-menu-item a {
    color: var(--text-color) !important;
  }
  .menu-items-container {
    margin: 0;
  }
  .mobile-menu {
    display: none;
  }
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .main-nav ul li:hover > .dropdown-content {
    display: block;
  }

  @keyframes about-dropdown {
    0% {
      /* opacity: 0; */
      transform: translateY(-10px);
    }
    100% {
      /* opacity: 1; */
      transform: translateY(0);
    }
  }
}

/* =============== Updated 11/13/22 ==================== 
| Hero section |
==================================== */

.hero {
  background-color: var(--light-section-bg-color);
  min-height: 250px;
  display: grid;
  place-items: center;
  border-bottom: 1px groove var(--accent);
}
.hero h2 {
  font-size: .9em;
}
.site-title {
  font-family: var(--title-font);
  font-size: var(--hero-title);
  text-align: center;
  text-transform: capitalize;
}

@media (min-width: 600px) {
  .hero {
    min-height: 200px;
  }
  
  .site-title {
    max-width: 80em;
    margin: 0 auto;
    padding: 10px 0;
  }
  .hero h1 {
    font-size: var(--hero-title);
    text-align: center;
    font-weight: 800;
  }
  .hero h2 {
    font-size: .5em;
  }
}
/* only for the press-releases or news url */

.news-section {
  background-image: url("/assets/imgs/dart-defense-news.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position:  bottom right 5%;
  background-color: #cccccc96;
  background-blend-mode: overlay;
}

/* =========Updated 11/13/22======================== 
  | Front page slider |
/*==================================== */
.slider-container {
  padding:20px 0 ;
  background-color: #CEE7EF;
}
@media (min-width: 900px) {
  .news-section .post-card {
    max-width: 800px;
    min-width: 350px;
  }
  
  .post-card-inner img {
    max-width: 250px;
    margin: auto;
    height: auto;
  }
 .slider-container {
  background-image: url('/assets/imgs/dart-background.webp');
  background-color: #f0ececc5;
  background-blend-mode: overlay;
 }
  .slide {
    min-height: 60vh;
    display: grid;
    place-items: center
  }
 .slider-inner {
  max-width: 1300px;
 }
.carousel-item {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
  .carousel-caption {
    background-color: #ffffffb5;
    box-shadow: inset 0 0 20px #9a9a9a;
    color: var(--text-color);
    border-radius: var(--radius);
    bottom: 0.8rem;
    backdrop-filter: blur(5px);
  }
  .carousel-caption h5 {
    font-size: var(--title-size);
    margin-bottom: 0.3em;
  }
  .carousel-caption p {

    padding: var(--block-padding)
  }
}

/* ================================= 
  | to make the background image show better on smaller screens when one is used, at the moment,|
  ==================================== */

/* for mobile -  this code isn't used */
.dart-hero-img img {
  border: 3px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 15px auto;
}
/* ============== Updated 11/1/22 ===================== 
  | for the D A R T letters on the hero home page only |
  ==================================== */

.title-first-letter {
  color: var(--primary);
  font-size: 1.2em;
  z-index: 0;
}
.main-title, 
.title-first-letter {
  font-family: var(--title-font); 
}
/* to wrap items in reverse */
@media (max-width: 767px) {
  .reverse-wrap-sm {
      flex-wrap: wrap-reverse;
  }
  .reverse-wrap-sm img {
    margin: 20px auto;
    width: 70%;
  }
}
/* .promo {display: none;} */
@media (min-width: 60em) {
  /* promotional May box to be fixed only on larger screens */
.promo {
  background-color: #d4d4d4cc;
  box-shadow: var(--shadow);
  border: 2px groove var(--accent);
  padding: 24px;
    max-width: 360px;
    position: fixed;
    border-radius: 20px;
    padding: 18px ;
    top: 30vh;
    right: 10px;
    animation: promo-ele 4.5s ease-in-out;
    z-index: 999;
}
.promo-inner {
  position: relative;
  border: 1px dashed var(--secondary);
  border-radius: 20px;
  background-color: #ccc;
  box-shadow: 0 0 5px #777;
}
.promo-inner p {
  margin: 0 10px;
  text-align: center;
}
.promo-inner h3 {
  font-size: 1.3rem;
  color: var(--light-text-color);
  background-color: var(--accent);
  padding: 5px;
  border-radius: 20px 20px 0 0;
}

.close-promo {
  position: absolute;
  left: -30px;
  top: -30px;
  cursor: pointer;
  color: var(--accent);
  text-shadow: var(--shadow);
  background-color:#cccccccc;
  border-radius: 50%;
  padding: 0 10px;
  border: 1px solid;
  transition: .3s ease-in-out
}
.close-promo:hover {
  background-color: var(--primary);
  color: white;
}

@keyframes promo-ele {
  0% {
    transform: translateX(50vh);
  }
  
  100% {
    transform: translateX(0);
  }
}


}


/* ============= Updated 11/13/22 ==================== 
    | The about page top section with bg image |
==================================== */
.about-mission {
  background-image: url("/assets/imgs/DART-white-background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 70%;
  background-color: rgba(241, 234, 234, 0.932);
  background-blend-mode: overlay;
}
.client-list {
  background-color: var(--light-section-bg-color);
}
.workshop-list li {
  padding-left: 10px;
  list-style-type: none;
  margin: 5px 0;
  border-bottom: 1px solid var(--secondary);
  font-size: 1.1rem;
}
@media (min-width: 50em) {
  .about-top {
    min-height: 60vh;
    display: grid;
    place-items: center;
  }

  .about-mission {
    background-position: right 150px center;
    background-size: 500px;
    min-height: 30em;
    display: grid;
    place-items: center;
  }
  .about-mission h4 {
    text-align: left;
    font-size: var(--hero-title);
    color: var(--primary);
  }
 

  .client-list {
    background-image: url("/assets/imgs/about-dart-bg-client-list.jpg");
    background-size: cover;
    min-height: 50em;
    background-repeat: no-repeat;
    background-color: #cccccc54;
    background-blend-mode: overlay;
    display: grid;
    align-items: center;
  }

  .client-list h3 {
    font-size: var(--hero-title);
    text-shadow: 2px 2px 5px #000;
    color: var(--light-text-color);
  }
  .workshop-list {
    max-width: 300px;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow);
    transition: 0.5s ease-in-out;
    border-radius: var(--radius);
    background-color: #cccccc98;
  }
  .workshop-list li {
    padding-left: 10px;
    list-style-type: none;
    margin: 5px 0;
    border-bottom: 1px solid var(--secondary);
    font-size: 1.1rem;
  }
}
.workshop-list:hover {
  box-shadow: none;
  background-color: var(--block-color);
}
.workshop-list ul {
  padding: 0;
}

@media (max-width: 1200px) {
  .workshop-list {
    background-color: var(--block-color);
  }
}

/* ============= Updated 11/13/22 ====================== 
| The datesmart and worksmart pages |
==================================== */
.date-smart-hero {
  background-image: url("/assets/imgs/datesmart_logo.webp");
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--light-section-bg-color);
  background-blend-mode: overlay;
  padding: var(--section-padding);
}
.work-smart-hero {
  background-image: url("/assets/imgs/worksmart_logo.svg");
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--light-section-bg-color);
  background-blend-mode: overlay;
  padding: var(--section-padding);
}
@media (max-width: 600px) {
  .date-smart-hero,
  .work-smart-hero {
    background-color: #e6dfdf;
    background-position: top 50hv center;
    background-attachment: fixed;
  }
}

.date-smart-img {
  max-width: 300px;
}
.date-smart-class-img {
  max-width: 400px;
  height: auto;
}

/* ============== Updated 11/1/22 ===================== 
| The testimonial area |
==================================== */

.testimonial-section {
  display: grid;
  place-items: center;
  height: 100%;
}

.testimonials {
  max-width: 1000px;
  margin: auto;
}

.single-item {
  background: #fff;
  color: #111;
  padding: 15px;
  margin: 50px 15px;
}
.profile {
  margin-bottom: 30px;
  text-align: center;
  display: grid;
  place-items: center;
  height: 100%;
}
.profile h4 {
  font-family: var(--title-font);
  font-size: var(--title-size);
}
.content {
  height: 100%;
  display: grid;
  align-items: center;
  font-size: 18px;
  align-self: center;
}
.content p {
  text-align: justify;
  font-size: 1rem;
  font-style: italic;
  font-family: var(--text-font);
}
.content p span {
  font-size: 28px;
  margin-right: 20px;
  color: var(--accent);
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: var(--primary);
}


/* ============= Updated 11/13/22 ====================== 
| The contact area and form * This is a bootstrap form but have my own responsive styling using the split class.
==================================== */

.contact-area {
  font-family: var(--text-font) !important;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap-reverse;
}
.contact-area h3 {
  color: var(--light-text-color);
  padding: 5px;
  background-color: #123243;
}

@media (min-width: 60em) {
 .contact-area {
  max-width: 80em;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
 }
}
/* ============== Updated 10/31/22 ===================== 
| The resources page for the flip boxes |
==================================== */
.flip-box-container {
  position: relative;
  width: 250px;
  height: 320px;
  perspective: 1000px;
}
.flip-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transform-style: preserve-3d;
  transition: all 0.8s ease;
  text-align: center;
}
.flip-box:hover {
  transform: rotateY(0.5turn);
}
.flip-box .flip-box h4 {
  font-size: 1.5rem;
}
.flip-box p {
  font-size: 14px;
}
.flip-icon {
  font-size: 3rem;
  color: var(--accent);
}
.flip-box-front,
.flip-box-back {
  padding: 10px;
  display: grid;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
  background-color: var(--block-color);
}
.flip-box-back {
  transform: rotateY(180deg);
}

/* ================================= 
      | what to expect element |
====================================*/
.expect-area h3 {
  font-size: var(--hero-title);
}
.expect-area summary {
  /* The summary is the title used */
  color: #fff;
  background-color: var(--accent);
  font-size: var(--text-size);
  font-weight: 600;
  font-family: var(--title-font);
  padding: var(--block-padding);
  cursor: help;
  border-bottom: 1px solid;
  letter-spacing: 1px;
}

.expect-area details p {
  box-shadow: inset 0 0 10px var(--accent);
  padding: 20px 30px;
  background-color: #ccc;
  margin: 0;
}

.expect-area {
  max-width: 900px;
  margin: 0 auto;
}
@media screen and (max-width: 900px) {
  .expect-area {
    max-width: 80%;
    margin: auto;
  }
  .expect-area summary {
    width: 100%;
  }
}

/* ============= checked 11/1/22 ==================== 
    | The 404 page  |
==================================== */
.error {
  max-width: 900px;
  margin: auto;
}
.error h3 {
  color: #333;
  text-align: left;
  align-self: center;
  font-size: 1.8rem;
}

.site-map-404 {
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-around;
  margin: 1em auto;
  align-items: center;
  gap: 1em;
}
.site-map-404 a {
  padding: var(--block-padding);
  background-color: var(--light-section-bg-color);
  color: var(--primary);
  font-size: 1.2em;
  font-weight: 600;
  border: 1px solid;
  border-radius: 8px;
  transition: 300sm ease-in-out;
  text-align: center;
  width: 200px;
}
.site-map-404 a:hover {
  background-color: var(--accent);
  color: var(--light-text-color);
}
/* ================================= 
| The support page styling  |
==================================== */

.support-dart .custom-section-item {
  justify-content: flex-start;
}
.support-dart .custom-section-item img {
  max-width: 200px;
}
.support-dart p {
  height: 100%;
}
.igive-support {
   background-color: #cccccc;
  padding: var(--block-padding);
}
@media (min-width: 40em) {
  .igive-support {
    padding: var(--section-padding);
    height: 30em;
  }
  .igive-support-btn img {
    transition: 0.3s ease-in-out;
    box-shadow: var(--shadow);
    border-radius: 8px;
    margin: 3em auto;
    border: 3px outset var(--secondary);
    width: 300px;
    height: auto;
  }
  .igive-support-btn img:hover {
    box-shadow: none;
    border-color: var(--primary);
  }
}
/* ============== Updated 11/1/22 ===================== 
| Blog and posts pages |
==================================== */

.blog-page {
  background-image: url("/assets/imgs/DART-white-background.png");
  background-attachment: fixed;
  background-position: right 5% top 30vh;
  background-size: 500px;
  background-repeat: no-repeat;
  background-color: #ccccccea;
  background-blend-mode: overlay;
  padding: var(--section-padding);
  min-height: 80vh;
  display: grid;
  place-items: center;
}



/* used on the post page at the top, some have dates and some don't */
.blog-date {
  text-align: center;
  font-size: 1.2rem;
  text-transform: capitalize;
  font-style: italic;
  margin-top: 20px
}
.blog-page-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-card {
  padding: 5px;
  border-radius: var(--radius);
  border: 2px outset var(--accent);
  box-shadow: var(--shadow);
  transition: 0.3s ease-in-out;
  background-color: #e7e0e0b4;
  overflow: auto;
  container-type: inline-size;
  min-width: 300px;
  margin-inline: auto;
  max-width: 800px; 
  flex-grow: 1;
}

.post-card:hover {
  box-shadow: none;
  background-color: #e7e0e0ea;
}
/* the inner part of the post card container */
.post-card-inner h4 {
  color: var(--primary);
  font-size: 24px;
}
.post-card-inner p {
  font-size: 20px;
  color: var(--text-color);
}
.post-card img {
  max-width: 300px;
  height: 200px;
  margin: 5px auto;
  border-radius: var(--radius);
  border: 3px outset var(--accent);
}
.post-card-inner .dart-btn {
  position: absolute; 
  bottom: 0;
  right: 10px;
}
@container (inline-size > 500px) {
  .post-card-inner p {
    display: block;
  }
  .post-card-inner {
    display: grid;
    gap: .5rem;
    grid-template-areas: 
    "h h h h"
    "p p p rt"
    ;
  }
   .post-card-inner #h {
    grid-area: h;
    display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  } 
  .post-card-inner #h img {
    max-width: 300px;
    height: 200px;
    margin: 5px 0;
    border-radius: var(--radius);
    border: 3px outset var(--accent);
}
  .post-card-inner p {
    grid-area: p;
  }
  .post-card-inner #rt {
    grid-area: rt;
    border-left: 1px dotted var(--accent);
    padding: 5px;
    align-self: center;
  }
} 
/* for the table area in the national perspective post due to custom formatting of the document*/
.post-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

}

.post-table h4 {
  font-size: 1.3rem;
}
.post-table p {
  font-size: 1rem;
}

/* for grid div to reverse order on smaller screens - image on top */
.grid-div {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 0.5rem;
}
.grid-div img {
  min-width: 60%;
  max-width: 300px;
  margin: auto;
}

@media (min-width: 900px) {
  .post-table {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .blog-page-inner {
    max-width: 70em;

  }
  

  /* For the escalation post */
  .grid-div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .grid-div img {
    width: 200px;
  }
}

/* ================================= 
| The teacher's resources page  |
==================================== */
.teachers-resources {
  background-image: url("/assets/imgs/datesmart-class-slider.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--light-section-bg-color);
  background-blend-mode: overlay;
  padding: var(--section-padding);
  min-height: 90vh;
  display: grid;
  place-items: center;
}
.teachers-resources summary {
  background-color: #dddeee9c;
  font-family: var(--title-font);
  font-size: var(--title-size);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 10px;
  margin: 1rem 0;
}
.list-dropdown {
  border: 1px solid var(--accent);
  background-color: #dddeee9c;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* The teen dating violence post  */
.warning-signs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: space-evenly;
}
.abusive-types {
  max-width: 480px; 
}
.abusive-types .card-body {
  padding: 0;
}

/* ================================= 
| The survey page |
==================================== */

.survey {
  background-image: url("/assets/imgs/dart-logo-slider.jpg");
  background-position: bottom center;
  background-attachment: fixed;
  background-size: 100vw;
  background-repeat: no-repeat;
  background-color: rgb(243 236 236 /0.6);
  background-blend-mode: overlay;
}
.survey-inner {
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px #333;
  padding: 10px;
  background-color: #ffffffb0;
}

legend {
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
}

.survey .custom-section {
  margin: 0;
}
.indent {
  margin: 15px 30px;
}
.survey .hr {
  width: 100%;
  border-bottom: 2px dotted var(--accent);
  margin: 2rem 0;
}
.survey h4 {
  color: var(--title-color);
  font-size: var(--title-size);
  margin-bottom: 1.2rem;
}
.survey label {
  font-size: var(--text-size);
}
.survey input,
.survey textarea {
  border-color: var(--accent);
  font-size: var(--text-size);
}
.survey-bottom {
  color: var(--light-text-color);
  padding: 5px;
  background-color: #333;
}
/* ================================= 
| The terms page  |
==================================== */
.terms-page {
  max-width: 800px;
  margin: auto;
}
.terms-page h4 {
  text-align: left;
  font-size: 1.5rem;
}
.terms-page p {
  text-align: justify;
  font-size: 1.2rem;
}
/* ================================= 
| The Footer element  |
==================================== */

.footer {
  background-color: var(--secondary);
  border-top: 5px groove var(--primary);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-inner a {
  padding: 10px;
  color: var(--text-color);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav nav {
  max-width: 200px;
  text-align: center;
}
.footer-inner a:hover {
  color: #333;
  font-weight: 600;
}
.footer-social-icons {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  font-size: 2rem;
}
/* footer for tablets */
@media (min-width: 50em) {
  .footer {
    padding: var(--block-padding);
    background-image: linear-gradient(
      90deg,
      var(--light-section-bg-color),
      var(--accent)
    );
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: auto;
  }
  .footer-inner > img {
    margin: 0;
  }
  .footer-nav nav {
    max-width: fit-content;
    text-align: left;
    text-transform: capitalize;
  }
  .footer-nav nav a {
    white-space: nowrap;
  }
}

/* ================================= 
| The back to top button  |
==================================== */
#myBtn {
  display: none;
  position: fixed;
  bottom: 170px;
  right: 20px;
  z-index: 99;
  outline: none;
  background-color: var(--secondary);
  padding: 4px;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 2px 2px 5px #000;
}
#myBtn img {
  width: 30px;
}

#myBtn:hover {
  background-color: var(--accent);
}
