/* Modern CSS for Community Page */
:root {
  --primary: #0078d4;
  --secondary: #f3f3f3;
  --dark: #222;
  --light: #fff;
  --accent: #e81123;
  --header-height: 64px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--secondary);
  color: var(--dark);
  scroll-behavior: smooth;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}
.site-icon {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  height: 48px;
}
.site-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  background: #fff;
}
.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}
.hero {
  background: linear-gradient(120deg, var(--primary) 60%, var(--accent) 100%);
  color: var(--light);
  padding: calc(var(--header-height) + 60px) 0 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.3rem;
}
section {
  padding: 80px 0 60px 0;
}
.about .social-icons {
  margin-top: 1em;
  display: flex;
  gap: 1.5em;
}
.social-icons img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.2s;
}
.social-icons a:hover img {
  filter: none;
}
.blog-posts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
  margin-top: 2em;
}
.blog-post {
  background: var(--light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.blog-post h3 {
  margin: 0 0 0.5em 0;
}
.blog-post a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.video-embeds {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2em;
}
.video-embeds iframe {
  width: 350px;
  height: 200px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.event-list {
  list-style: none;
  padding: 0;
  margin-top: 2em;
}
.event-list li {
  background: var(--light);
  margin-bottom: 1em;
  padding: 1em;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.contact-form button {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.9em 2em;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: var(--accent);
}
.contact-form-embed iframe {
  width: 100% !important;
  min-width: 300px;
  max-width: 100vw;
  height: 600px;
  border: none;
  display: block;
  overflow: hidden;
}
.contact-info {
  font-size: 1.1em;
}
.contact-social {
  display: flex;
  gap: 1em;
  margin: 1em 0 0.5em 0;
  align-items: center;
}
.contact-social a {
  display: inline-flex;
  align-items: center;
}
.contact-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.2s;
}
.contact-social a:hover img {
  filter: none;
}
.contact-social a {
  font-size: 1em;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5em;
}
.footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 1.5em 0;
  font-size: 1em;
}
.about-flex {
  display: flex;
  gap: 2.5em;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
}
.about-details {
  flex: 1 1 300px;
  min-width: 250px;
}
.about-title {
  font-size: 1.1em;
  color: var(--primary);
  margin-top: 0.2em;
  margin-bottom: 1em;
}
.about-meta {
  margin: 1em 0 1em 0;
  display: flex;
  gap: 1.5em;
  align-items: center;
  font-size: 1em;
}
.about-location {
  color: #666;
}
.about-badge a {
  background: var(--primary);
  color: #fff;
  padding: 0.2em 0.7em;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
}
.about-social {
  display: flex;
  gap: 1em;
  margin: 1em 0;
  align-items: center;
}
.about-social a {
  display: inline-flex;
  align-items: center;
}
.about-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.2s;
}
.about-social a:hover img {
  filter: none;
}
.about-social a {
  font-size: 1em;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5em;
}
.about-expertise, .about-topics {
  margin-top: 0.7em;
  font-size: 1em;
  color: #444;
}
@media (max-width: 900px) {
  .blog-posts {
    grid-template-columns: 1fr 1fr;
  }
  .video-embeds {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 700px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  .about-details {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .container {
    width: 98%;
  }
  .header {
    height: 56px;
  }
  .hero {
    padding-top: 100px;
  }
  .nav ul {
    display: none;
    flex-direction: column;
    background: var(--light);
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1001;
  }
  .nav.open ul {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .blog-posts {
    grid-template-columns: 1fr;
  }
  .site-icon {
    height: 36px;
  }
  .site-logo {
    height: 32px;
    width: 32px;
  }
}
