*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background: #020617; /* very dark slate */
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Post Layout container */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}

.post-content img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #1f2937;
}

/* Logo container */
.logo.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 48px; /* ensures the header layout stays fixed */
  overflow: hidden;
}
/* Logo image */
.brand-logo {
  width: 80px;
  height: 80px;
  min-width: 36px;
  min-height: 36px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

/* Header & Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9); /* #0f172a */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e293b;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding-block: 0.3rem;
  color: #cbd5f5;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Sections */

.section {
  padding-block: 4rem;
  background: #020617;
}

.section.alt {
  background: #020617; /* keep consistent dark, use cards for contrast */
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
  color: #9ca3af;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #1d243a, #020617 55%, #020617 80%);
  padding-block: 4.5rem 4rem;
}

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

.hero h1 {
  font-size: clamp(2.1rem, 2.9vw, 2.6rem);
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.hero p {
  max-width: 560px;
  color: #9ca3af;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.primary {
  background: #3b82f6;
  color: #f9fafb;
}

.btn.primary:hover {
  background: #2563eb;
}

.btn.secondary {
  background: rgba(37, 99, 235, 0.1);
  color: #bfdbfe;
  border-color: rgba(129, 140, 248, 0.6);
}

.btn.secondary:hover {
  background: rgba(37, 99, 235, 0.2);
}

.btn.full-width {
  width: 100%;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.card p {
  color: #9ca3af;
}


/* Leadership */

.leadership-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  align-items: flex-start;
}

.leadership-highlight {
  background: #020617;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #1f2937;
  font-size: 0.95rem;
}

.leadership-highlight h3 {
  margin-top: 0;
  color: #e5e7eb;
}

.leadership-highlight ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  color: #9ca3af;
}

.leader-main {
  display: flex;
  flex-direction: column;
}

.leader-photo-wrapper {
  margin-bottom: 1rem;
}

.leader-photo {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #1f2937;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.leader-role {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #9ca3af;
}


/* About */

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  align-items: flex-start;
}

.about-highlight {
  background: #020617;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #1f2937;
  font-size: 0.95rem;
}

.about-highlight h3 {
  margin-top: 0;
  color: #e5e7eb;
}

.about-highlight ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  color: #9ca3af;
}

/* Blog */

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  padding: 1.75rem;
  border-radius: 12px;
  background-color: #020617; /* or var(--card-bg) */
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.blog-meta-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.blog-date {
  color: #9ca3af;
}

.blog-author {
  color: #9ca3af;
  font-style: italic;
}

.blog-tag {
  background: #2563eb;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.blog-title a {
  color: #e5e7eb;
  text-decoration: none;
}

.blog-title a:hover {
  text-decoration: underline;
}

.blog-excerpt {
  margin: 1rem 0;
  color: #d1d5db;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.blog-tag-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #374151;
  color: #9ca3af;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.read-more {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Posts */
.post-hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Improve readability of headings, lists, images inside posts */
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.post-content img {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
  border: 1px solid #1f2937;
}



/* Contact */

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: flex-start;
}

.contact-form {
  background: #020617;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.form-row input,
.form-row textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #334155;
  font-family: inherit;
  font-size: 0.95rem;
  background: #020617;
  color: #e5e7eb;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6b7280;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.contact-details {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* Footer */

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid #1f2937;
  background: #020617;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links a {
  text-decoration: underline;
  color: #9ca3af;
}

/* Responsive */

@media (max-width: 768px) {
   .nav-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
   }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

   .leadership-layout,
   .contact-layout {
    grid-template-columns: minmax(0, 1fr);
   }

  .section {
    padding-block: 3rem;
  }
}
