/*
  Boise Tech Connect styles
  This stylesheet defines a clean, modern look using minimalistic layout and
  colours inspired by the pitch deck. It avoids frameworks and keeps the
  markup semantic for optimal SEO and accessibility.
*/

/* Root variables for colours and fonts */
/*
  Import web fonts to enhance typography.  Poppins is used for headings
  and Open Sans for body copy.  These fonts are loaded from Google Fonts
  and cached by modern browsers.
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Open+Sans:wght@400;600&display=swap');

:root {
  /* Brand colour palette based on the Boise Tech Connect pitch deck */
  --colour-primary: #002b5b;   /* dark navy for headlines and accents */
  --colour-secondary: #1f6bba; /* brighter blue for buttons and highlights */
  --colour-accent: #97b1df;    /* light blue accent */
  --colour-light: #f5f5f5;     /* off‑white background */
  --colour-dark: #030a18;      /* nearly black for text on light backgrounds */
  /* Typography variables */
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Poppins', 'Open Sans', sans-serif;
}

/* Global reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--colour-dark);
  background-color: #fff;
}

/* Headings use a distinct font to create hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--colour-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--colour-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
.site-header {
  background-color: var(--colour-light);
  border-bottom: 1px solid #eaeaea;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo wrapper: use flexbox to align icon and text horizontally */
.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--colour-primary);
}

/* Ensure the logo image scales nicely within the header */
.logo-img {
  height: 42px;
  width: auto;
}

/* Icon-only logo used when paired with text */
.logo-icon {
  height: 40px;
  width: auto;
}

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

.main-nav a {
  font-weight: bold;
  color: var(--colour-primary);
}

/* Style for the active navigation link */
.main-nav a[aria-current="page"] {
  color: var(--colour-secondary);
  border-bottom: 2px solid var(--colour-secondary);
}

/* Hero section */
.hero {
  /* Use a hero banner with a subtle gradient overlay for readability */
  background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(31, 107, 186, 0.7)), url('images/hero-banner.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Button style used for both anchor and form buttons */
.button {
  background-color: var(--colour-accent);
  color: var(--colour-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  background-color: var(--colour-secondary);
  color: #fff;
}

.button-secondary {
  background-color: #fff;
  color: var(--colour-primary);
  border: 2px solid var(--colour-accent);
}

.button-secondary:hover {
  background-color: var(--colour-secondary);
  color: #fff;
  border-color: var(--colour-secondary);
}

/* Features section */
.features {
  padding: 3rem 0;
  background-color: var(--colour-light);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--colour-primary);
}

.feature-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 30%;
  min-width: 250px;
  text-align: center;
}

.feature-icon {
  color: var(--colour-secondary);
  margin-bottom: 0.8rem;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.feature p {
  font-size: 0.95rem;
  color: var(--colour-dark);
}

/* About section */
.about {
  padding: 3rem 0;
}

.about-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-text h2 {
  color: var(--colour-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--colour-dark);
}

.stats {
  display: flex;
  flex: 1;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  min-width: 250px;
}

.stat {
  background-color: var(--colour-light);
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 45%;
  text-align: center;
}

.stat strong {
  font-size: 2rem;
  color: var(--colour-secondary);
  display: block;
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--colour-dark);
}

/* Contact section */
.contact {
  background-color: var(--colour-primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact .button {
  background-color: #fff;
  color: var(--colour-primary);
}

.contact .button:hover {
  background-color: var(--colour-secondary);
  color: #fff;
}

/* Footer */
.site-footer {
  background-color: var(--colour-light);
  border-top: 1px solid #eaeaea;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--colour-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .feature-grid {
    flex-direction: column;
  }
  .about-content {
    flex-direction: column;
  }
  .stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .stat {
    flex: 1 1 45%;
  }
}

/* Blog and podcast posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
}

.post h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.post h3 a {
  color: inherit;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.7rem;
}

.post p {
  font-size: 0.95rem;
  color: var(--colour-dark);
}

/* Individual blog post pages */
.post-content {
  padding: 3rem 0;
}

.post-content h1 {
  font-size: 2rem;
  color: var(--colour-primary);
  margin-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.post-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--colour-dark);
}

/* Tags section */
.post-tags {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--colour-dark);
}

.post-tags a {
  color: var(--colour-secondary);
  margin-right: 0.3rem;
}

.post-tags a:hover {
  text-decoration: underline;
}

/* Subscribe to RSS button wrapper */
.subscribe-rss {
  margin-top: 1rem;
}

/* Related posts list */
.related-posts {
  margin-top: 1rem;
  list-style: disc inside;
  padding-left: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

/* Horizontal rule within posts */
.post-content hr {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 2rem 0;
}

/* Mission list */
.mission-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.mission-list li {
  margin-bottom: 0.5rem;
}

/* Event listing */
.event-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
}

.event h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.event-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.7rem;
}

.event p {
  font-size: 0.95rem;
  color: var(--colour-dark);
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form label {
  font-weight: bold;
  color: var(--colour-primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--colour-secondary);
  box-shadow: 0 0 3px rgba(31, 107, 186, 0.3);
}