/* newmexicoptg.org base styles */

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: "Noto Serif Display", serif;
}

/* Site header */
.site-header {
  background: #f5f5f5;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-row-1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.header-col-logo {
  flex-shrink: 0;
  text-decoration: none;
}

.header-col-logo:hover {
  opacity: 0.9;
}

.header-col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.site-name {
  font-family: "Noto Serif Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.tagline {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: #555;
  max-width: 32rem;
}

.site-logo {
  height: 3rem;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.header-row-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-header nav {
  display: flex;
  justify-content: center;
}

.btn-find-tech {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #4d202a;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-find-tech:hover {
  background: #3a181f;
  color: #fff;
}

.btn-contact {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #7a3d4a;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #6b2d3a;
  color: #fff;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #333;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.75rem 0;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.card .cta-link {
  color: #d10000;
  font-weight: 600;
  text-decoration: underline;
}

.card .cta-link:hover {
  color: #a00000;
}

/* Hero */
.hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
}

/* Resource boxes grid */
.resource-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .resource-boxes {
    grid-template-columns: 1fr;
  }
}

/* Events preview */
.events-preview {
  margin: 2rem 0;
}

.events-preview h2 {
  margin-bottom: 1rem;
}

.event-card {
  margin-top: 0.5rem;
}

.event-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.event-card .event-date {
  color: #555;
  margin-bottom: 0.75rem;
}

.event-card p {
  margin-bottom: 0.5rem;
}

/* Resource blocks */
.resource-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .resource-blocks {
    grid-template-columns: 1fr;
  }
}

.resource-block {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem 2rem;
}

.resource-block h2 {
  margin: 0 0 0.5rem 0;
}

.resource-block .cta-link {
  color: #d10000;
  font-weight: 600;
  text-decoration: underline;
}

.resource-block .cta-link:hover {
  color: #a00000;
}

footer {
  margin-top: 3rem;
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Event detail page */
.event-body {
  position: relative;
}

.instructor-photo {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 45%;
}

.instructor-photo img {
  display: block;
  width: 100%;
  height: auto;
}
