/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL BOX-SIZING RESET
   ───────────────────────────────────────────────────────────────────────────── */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE RESET & BODY STYLES
   ───────────────────────────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* kill any horizontal scroll */
}

body {
  /* background as requested */
  background: #eee url('/resources/template/resources-bg.jpg') center center/cover no-repeat fixed;
  font-family: 'Raleway', Arial, sans-serif;
  color: #464855;
  font-size: 1em;
  padding: 20px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FLEX LAYOUT (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 20px auto 0;
  gap: 2em;
  padding: 2em;
  min-height: 420px;
  background: none;
}

.flex-box {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 8px rgba(187, 181, 181, 0.5);
  padding: 1.3em 2em;
  flex: 1 1 270px;
  min-width: 0;                  /* prevents flex children from overflowing */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ─────────────────────────────────────────────────────────────────────────────
   IMAGE STYLING (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
.flex-image img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1em;
  display: block;
  border: 0.5px solid #eee;
  background: #fff;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
/* Headings */
h1, h2, h3 {
  font-family: 'Raleway', Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 .5em;
}

h1 {
  font-size: 1.5em;
  font-weight: 500;
  color: #ff6600;
}

h2 {
  font-size: 1.1em;
  font-weight: 400;
  color: #ff6600;
  margin-bottom: .3em;
}

h3 {
  font-size: 1em;
  font-weight: 400;
  color: #464855;
  margin: 1.2em 0 .4em;
}

/* Product price */
.product-price {
  color: #ff6600;
  font-size: 1.25em;
  font-weight: 400;
  margin: .5em 0 1em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   IMAGE CAPTION (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
.image-caption-block {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.image-caption-block .caption {
  font-size: 0.85em;
  color: #464855;
  margin: 1.1em 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLES & LINKS (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
.info-table,
.address-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.3em;
}

.info-table td,
.address-table td {
  padding: 5px 8px 5px 0;
  font-size: 0.85em;
  color: #464855;
  border-bottom: 1px solid #f3f3f3;
  vertical-align: top;
}

.info-table tr:last-child td,
.address-table tr:last-child td {
  border-bottom: none;
}

.info-table td.label {
  width: 10%;
  padding-right: 10px;
  color: #464855;
}

table a,
.contact-details a,
.address-table a {
  color: #ff6600;
  text-decoration: none;
}

table a:hover,
.contact-details a:hover,
.address-table a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DOWNLOAD LINKS (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
.download-links {
  margin-top: 1em;
}

.download-link {
  display: inline-block;
  border: 0.5px solid #eee;
  background: #ff6600;
  color: #464855;
  font-size: 0.75em;
  font-weight: 400;
  padding: 0.65em 1.4em;
  border-radius: 5px;
  margin-right: .6em;
  margin-bottom: .7em;
  text-decoration: none;
  transition: background .18s;
}

.download-link:hover {
  background: #ff8500;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE STACKING (legacy)
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 950px) {
  .flex-container {
    flex-direction: column;
    gap: 1.2em;
    padding: 1em;
  }
  .flex-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .flex-image img {
    max-width: 100%;
  }
  .image-caption-block {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.1em;
  }
  .image-caption-block .caption {
    font-size: .85em;
  }
  .flex-container {
    padding: .4em;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW: RESOURCE-PAGE CARD-DECK LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;              /* force container to match viewport */
  max-width: 1120px;        /* three 340px cards + gaps */
  margin: 20px auto;        /* top margin reduced */
  padding: 0 20px;          /* side gutters */
  box-sizing: border-box;   /* include padding in width */
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 0 0 340px;          /* fixed width */
  display: flex;
  flex-direction: column;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.card-content {
  padding: 20px;
  flex: 1;
}

.card-content h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #ff6600;
}

.card-content p {
  margin-bottom: 16px;
  color: #464855;
}

.card-content .price {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ff6600;
  margin: .5em 0 1em;
}



dl {
  margin-top: 8px;
}

dt {
  font-weight: 800;
  margin-top: 16px;    /* more space above each term */
  margin-bottom: 4px;  /* small gap before its definition */
  color: #555;
}

dd {
  margin-left: 0;
  margin-top: 4px;     /* space between term and definition */
  margin-bottom: 16px; /* larger gap after each definition */
}


.download-buttons {
  margin-top: 16px;
  font-size: .8rem;
  display: flex;
  gap: 10px;
}

.download-buttons a {
  text-decoration: none;
  background: #ff6600;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.download-buttons a:hover {
  background: #e55a00;
}

address {
  font-style: normal;
  margin-bottom: 16px;
  color: #555;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info a {
  color: #ff6600;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   END OF resources-page.css
   ───────────────────────────────────────────────────────────────────────────── */
