/* ===== Global Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px default */
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--neutral-light);
}

/* ===== Color Palette ===== */
:root {
  --primary: #294DA8;      /* Professional blue */
  --secondary: #F7721B;    /* Construction orange */
  --accent: #50AC8D;       /* Fresh green */
  --neutral-light: #F7F8F9;/* Background */
  --text-dark: #1F2328;    /* Charcoal text */

  /* Vertical rhythm scale */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.25rem);
  --space-md: clamp(1.5rem, 3vw, 2rem);
  --space-lg: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 4rem);

  --grid-gap: var(--space-md);
  --grid-max-width: 1200px;
}

/* ===== Layout Container ===== */
.container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Work Sans', sans-serif;
  line-height: 1.2;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p, li {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  font-family: 'Source Sans Pro', sans-serif;
}

small, .caption {
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.4;
}

/* ===== Header & Nav ===== */
header {
  background-color: var(--neutral-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--primary);
}
nav {
    display: flex;
    align-items: center;
    margin-top: 15px;

}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

nav a {
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}
/* ===== Hamburger Menu Styles ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 4px auto;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero-container {
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: linear-gradient(
    rgba(41,77,168,0.1),
    rgba(41,77,168,0.05)
  );
}

.hero-container p {
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.hero-buttons {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.cta-primary, .cta-secondary {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cta-primary {
  font-family: 'Work Sans', sans-serif;
  background: var(--secondary);
  color: #fff;
}

.cta-primary:hover {
  background: #d65f14;
}

.cta-secondary {
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--primary);
  color: #fff;
}

.cta-secondary:hover {
  background: #1e2f6d;
}

/* ===== Featured Articles ===== */
.articles {
  background-color: var(--neutral-light);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
}

.articles h2 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: var(--grid-max-width);
  margin: 0 auto;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(41,77,168,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  border: 1px solid #e6eaf0;
  min-width: 0;
}

.article-card:hover {
  box-shadow: 0 8px 32px rgba(41,77,168,0.16), 0 2px 8px rgba(0,0,0,0.08);
}

.article-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.article-meta {
  font-size: 0.95rem;
  color: #7a869a;
  margin: 1rem 1.25rem 0.25rem 1.25rem;
}

.article-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0.5rem 1.25rem 0.25rem 1.25rem;
  line-height: 1.3;
}

.article-intro {
  font-size: 1.05rem;
  color: #444;
  margin: 0 1.25rem 1.25rem 1.25rem;
  flex: 1 1 auto;
}

.article-readmore {
  display: inline-block;
  margin: 0 1.25rem 1.25rem 1.25rem;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.article-readmore:hover {
  color: #d65f14;
  text-decoration: underline;
}

/* ===== Forum Callout ===== */
.forum-callout {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: var(--space-sm) var(--space-xs);
  border-radius: 6px;
  margin: var(--space-lg) auto;
  max-width: var(--grid-max-width);
}

.forum-callout h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
  margin-bottom: var(--space-xs);
}

.forum-callout p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  margin-bottom: var(--space-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.forum-callout .cta-primary {
  background: var(--secondary);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.forum-callout .cta-primary:hover {
  background: #d65f14;
}

.forum-callout .cta-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(41,77,168,0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.forum-callout .cta-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: #fff;
}

/* =====About Section Styles ===== */
.about-container {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 85%;
  margin: 2rem auto;
}

.about-container h1 {
  font-family: 'Arial', sans-serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-container p {
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Grid-Based Layout for About Section List ===== */
.about-container ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 750px;
  display: grid;
  grid-template-columns: auto 1fr; /* Two columns: title and description */
  gap: 1rem 1.5rem; /* Row and column gaps */
}

.about-container ul li {
  display: contents; /* Use grid layout for alignment */
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  color: #555;
  line-height: 1.8; /* Improve readability */
}

.about-container ul li strong {
  grid-column: 1; /* Place title in the first column */
  color: var(--secondary);
  font-weight: bold;
}

.about-container ul li span {
  grid-column: 2; /* Place description in the second column */
  font-style: italic; /* Apply italic style to descriptions */
}

.about-container p:last-of-type {
  font-style: italic;
  color: #777;
}

/* ===== Project Note Styles ===== */
.project-note {
  background: #fffbe6;
  color: #8a6d1b;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto 2rem auto;
  max-width: 700px;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 1200;
}
.project-note a {
  color: var(--primary);
  font-weight: bold;
  text-decoration: underline;
}

/* ===== Restored Media Queries ===== */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: var(--space-xs);
    top: var(--space-xs);
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100vw;
    background: var(--neutral-light);
    position: absolute;
    left: 0;
    top: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: var(--space-sm) 0;
    z-index: 1000;
  }
  nav ul.nav-open {
    display: flex;
  }
  nav ul li {
    width: 100%;
    text-align: left;
    padding: var(--space-xs) var(--space-md);
  }
  nav ul li a {
    width: 100%;
    display: block;
  }
  header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xs) var(--space-xs);
  }
  .logo {
    margin-bottom: var(--space-xs);
  }
  .container {
    padding: 0 var(--space-xs);
  }
  html {
    font-size: 90%;
  }
  .hero-container {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
    align-items: center;
  }
  .articles {
    padding: var(--space-md) var(--space-xs);
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .forum-callout {
    padding: var(--space-lg) var(--space-xs);
    margin: var(--space-md) auto;
  }
  footer {
    padding: var(--space-sm);
  }
  .about-container {
    padding: 2rem 1rem;
  }
  .about-container h1 {
    font-size: 2rem;
  }
  .about-container p {
    font-size: 1rem;
  }
  .about-container ul li {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  header {
    align-items: center !important;
    flex-direction: row !important;
    height: 56px;
  }
}


