* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  background: #f7f4ec;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #1f2933;
  color: #fff;
  border-bottom: 4px solid #b08d57;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Site logo */

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  max-width: 260px;
  height: auto;
}



.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.main-nav a {
  text-decoration: none;
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle::after {
  content: " ▾";
  font-size: 0.8em;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 10px 0;
  background: #fff;
  color: #1f2933;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #1f2933;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f7f4ec;
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 50px 0 56px;
  background:
    linear-gradient(rgba(31, 41, 51, 0.84), rgba(31, 41, 51, 0.84)),
    #1f2933;
  color: #fff;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #d6b574;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: #e7e1d2;
  font-size: 1.2rem;
  font-style: italic;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero-text {
  max-width: 780px;
  margin: 22px auto 0;
  font-size: 1.13rem;
}

.hero-text-secondary {
  margin-top: 16px;
  color: #e7e1d2;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.button-gold {
  background: #d6b574;
  color: #1f2933;
  font-weight: bold;
}

.button-gold:hover {
  background: #e6c985;
}

.button-outline {
  border: 1px solid #d6b574;
  color: #fff;
}

.button-outline:hover {
  background: rgba(214, 181, 116, 0.15);
}

/* Resource cards */

.resources-preview {
  padding: 64px 0;
}

.resources-preview h2,
.updates h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #1f2933;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 24px;
  background: #fff;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11);
}

.resource-card h3 {
  margin: 0 0 10px;
  color: #1f2933;
  font-size: 1.35rem;
}

.resource-card p {
  margin: 0;
  color: #4b5563;
}

.resource-card span {
  margin-top: 24px;
  color: #8a642d;
  font-weight: bold;
}

/* Home action boxes */

.home-actions {
  padding: 0 0 64px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 24px;
  background: #3a3026;
  color: #fff;
  border: 1px solid #b08d57;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.action-card h2 {
  margin: 0 0 10px;
  color: #d6b574;
  font-size: 1.35rem;
}

.action-card p {
  margin: 0;
  color: #eee5d7;
}

.action-card span {
  margin-top: 22px;
  color: #d6b574;
  font-weight: bold;
}


/* Standard inner pages */

.page-main {
  padding: 56px 0 64px;
  background: #f7f4ec;
}

.page-content {
  max-width: 900px;
  background: #fff;
  padding: 40px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.page-content h1 {
  margin-top: 0;
  color: #1f2933;
  font-size: 2.4rem;
  line-height: 1.15;
}

.page-content h2 {
  margin-top: 34px;
  color: #1f2933;
  font-size: 1.7rem;
}

.page-content p {
  font-size: 1.08rem;
}

.page-content ul {
  padding-left: 1.4rem;
}

.page-content li {
  margin-bottom: 8px;
}

@media (max-width: 560px) {
  .page-content {
    padding: 26px;
  }

  .page-content h1 {
    font-size: 2rem;
  }
}

/* Downloads page */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.download-card {
  padding: 22px;
  background: #f7f4ec;
  border: 1px solid #ded6c8;
  border-radius: 12px;
}

.download-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #1f2933;
  font-size: 1.35rem;
}

.download-card p {
  margin-bottom: 0;
}

.featured-download {
  margin: 20px 0 34px;
  background: #fff8e6;
  border-color: #d6b574;
}

.download-note {
  margin-top: 16px;
  color: #8a642d;
  font-weight: bold;
}

.download-card .button {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}



/* Link pages */

.link-sections {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 34px;
}

.link-section {
  padding-top: 8px;
  border-top: 1px solid #ded6c8;
}

.link-section h2 {
  margin-top: 0;
}

.link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}

.link-list.columns-2 {
  grid-template-columns: 1fr 1fr;
}

.link-list a {
  display: block;
  padding: 10px 12px;
  background: #f7f4ec;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  color: #1f2933;
  text-decoration: none;
}

.link-list a:hover {
  background: #ede6d8;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .link-list.columns-2 {
    grid-template-columns: 1fr;
  }
}

.link-item-no-url {
  display: block;
  padding: 10px 12px;
  background: #f7f4ec;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  color: #4b5563;
}

/* Article index */

.article-index ul {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  columns: 2;
  column-gap: 28px;
}

.article-index li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.article-index li p {
  margin: 0;
}

.article-index a {
  display: block;
  padding: 10px 12px;
  background: #f7f4ec;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  color: #1f2933;
  text-decoration: none;
}

.article-index a:hover {
  background: #ede6d8;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .article-index ul {
    columns: 1;
  }
}

/* Article pages */

.article-page {
  max-width: 900px;
}

.article-page h2 {
  margin-top: 0;
  color: #1f2933;
  font-size: 2rem;
  line-height: 1.2;
}

.article-page h3 {
  margin-top: 30px;
  color: #8a642d;
  font-size: 1.35rem;
}

.back-link {
  margin-top: 0;
  margin-bottom: 28px;
}

.back-link a {
  color: #8a642d;
  font-weight: bold;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}
.article-subtitle {
  font-weight: bold;
  font-size: 1.15rem;
  color: #4b5563;
}

/* Article images */

.article-image {
  margin: 28px 0;
}

.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.article-image figcaption {
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.95rem;
}

.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.article-gallery figure {
  margin: 0;
  padding: 12px;
  background: #f7f4ec;
  border: 1px solid #ded6c8;
  border-radius: 10px;
}

.article-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}

/* Resource pages */

.resource-page-image {
  float: right;
  margin: 0 0 18px 24px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .resource-page-image {
    float: none;
    display: block;
    margin: 0 0 22px;
  }
}

/* eBook table */

.table-scroll {
  width: 100%;
  margin-top: 24px;
}

.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.simple th,
.simple td {
  padding: 10px 12px;
  border: 1px solid #ded6c8;
  text-align: left;
  vertical-align: top;
}

.simple th {
  background: #1f2933;
  color: #ffffff;
}

.simple tr:nth-child(even) td {
  background: #f7f4ec;
}

/* Pages column */
.simple td:nth-child(3),
.simple th:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

/* Open column */
.simple td:nth-child(4),
.simple th:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

/* Phone layout for tables */

@media (max-width: 700px) {
  .simple,
  .simple thead,
  .simple tbody,
  .simple tr,
  .simple th,
  .simple td {
    display: block;
    width: 100%;
  }

  .simple tr:first-child {
    display: none;
  }

  .simple tr {
    margin-bottom: 14px;
    border: 1px solid #ded6c8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  .simple td {
    border: none;
    border-bottom: 1px solid #ded6c8;
    padding: 9px 11px;
    text-align: left;
  }

  .simple td:last-child {
    border-bottom: none;
  }

  .simple td:nth-child(1)::before {
    content: "Title: ";
    font-weight: bold;
  }

  .simple td:nth-child(2)::before {
    content: "Author: ";
    font-weight: bold;
  }

  .simple td:nth-child(3)::before {
    content: "Pages: ";
    font-weight: bold;
  }

  .simple td:nth-child(4)::before {
    content: "Open: ";
    font-weight: bold;
  }

  .simple td:nth-child(3),
  .simple td:nth-child(4) {
    text-align: left;
  }
}

/* Graphics gallery */

.graphics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.graphic-card {
  display: block;
  padding: 12px;
  border: 1px solid #ded6c8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.graphic-card:hover {
  background: #f7f4ec;
}

.graphic-card img {
  max-width: 100%;
  width: auto;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px auto;
}

.graphic-card span {
  display: block;
  font-size: 0.85rem;
  word-break: break-word;
}

.small-button {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #1f2933;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
}

.small-button:hover {
  background: #374151;
}

/* Awards, Certificates, and Records */

.acr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.acr-card {
  padding: 20px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  background: #ffffff;
}

.acr-card img {
  width: 100%;
  max-width: 420px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px auto;
  border: 1px solid #ded6c8;
  background: #ffffff;
}

.acr-card h2 {
  margin-top: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}





/* Contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.contact-form label {
  font-weight: bold;
  color: #1f2933;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 12px;
  border: none;
  cursor: pointer;
}

/* Resource cards */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 40px 0;
}

.resource-card {
  padding: 20px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  background: #ffffff;
}

.resource-card h3 {
  margin-top: 0;
}

.resource-card p {
  margin-bottom: 16px;
}



/* Footer */

.site-footer {
  padding: 42px 0 30px;
  background: #1f2933;
  color: #fff;
  border-top: 4px solid #b08d57;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 36px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #d6b574;
  font-size: 1.15rem;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.footer-column a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d1d5db;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile */

@media (max-width: 850px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .updates-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 54px 0;
    text-align: left;
  }

  .hero-text,
  .hero-note {
    margin-left: 0;
    margin-right: 0;
  }

  .site-logo {
    font-size: 1.15rem;
  }
}