/* General Styles and Typography */
body {
  font-family: 'Open Sans', sans-serif;  /* Clean body font */
  margin: 0;
  padding: 0;
  color: #333;
  background: #fdfdfd;  /* Light background */
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;  /* Modern, friendly heading font */
  margin: 0;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

/* Container */
.post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
}

/* Header Section Styles */
.post-header {
  text-align: center;
  padding: 2rem 1rem;
  background: #e8f5ff;             /* Light colorful accent background (blue tint) */
  border-radius: 8px;
}
.post-header .banner {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.post-header h1 {
  color: #333;
}
.post-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;                     /* Lighter text for meta info */
}

/* Intro Section */
.post-intro {
  margin: 2rem 0;
}
.post-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mission Section */
.post-mission {
  margin: 2rem 0;
}
.post-mission h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
/* Decorative underline for h2 (accent color line) */
.post-mission h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 50px;
  height: 4px;
  background: #4c8bf5;            /* Accent color for emphasis (blue) */
}
.mission-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mission-item {
  flex: 1;
  min-width: 220px;
  background: #f9fbff;            /* Slightly tinted background for cards */
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mission-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.mission-item h3 {
  margin: 0.5rem 0;
  color: #333;
}
.mission-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}
/* Hover effect for mission cards (subtle lift and shadow) */
.mission-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mission-item:hover h3 {
  color: #4c8bf5;                 /* Change title color on hover to accent */
}

/* Get Involved Section */
.post-involved {
  margin: 2rem 0;
}
.post-involved h2 {
  margin-bottom: 1rem;
}
.involved-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.involved-list li {
  background: #e8f5ff;            /* Light accent background for list items */
  border: 1px solid #d0e9ff;
  border-radius: 5px;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  transition: background 0.3s;
}
/* Hover effect for list items */
.involved-list li:hover {
  background: #d0e9ff;
}

/* Closing Section */
.post-closing {
  margin: 2rem 0;
  text-align: center;
}
.post-closing p {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

/* Responsive Design: make layout mobile-friendly */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .mission-items {
    flex-direction: column;
  }
  .post-header {
    padding: 1.5rem 1rem;
  }
  
  /* Adjust galaxy title for mobile */
  .galaxy-overlay {
    top: 1rem !important;
    left: 1rem !important;
  }
  
  .galaxy-overlay h1 {
    font-size: 1.5rem;
  }
  
  .galaxy-overlay p {
    font-size: 0.85rem;
  }
}

/* --- GALAXY COMPONENT STYLES --- */
#galaxy-container {
    width: 100%;
    height: 60vh;
    position: relative;
    background-color: #000005;
    overflow: hidden;
    border-bottom: 4px solid #4c8bf5;
}

#galaxy-hero {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#galaxy-hero canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.galaxy-overlay {
    position: absolute !important;
    top: 2rem !important;
    left: 2rem !important;
    transform: none !important;
    text-align: left;
    pointer-events: none !important;
    z-index: 100 !important;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
}

.galaxy-overlay.fade-out {
    opacity: 0.3;
    transform: scale(0.9);
}

.galaxy-overlay h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #4c8bf5, #d367c1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(76, 139, 245, 0.6));
    position: relative;
    margin: 0;
    line-height: 1.2;
}

.galaxy-overlay p {
    color: #aaccff;
    font-size: 1rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.9);
    position: relative;
}

/* Info Panel */
.info-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden */
    width: 350px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid #334466;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    padding: 40px;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.info-panel.open {
    right: 0;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.panel-close:hover {
    color: #fff;
}

.panel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.panel-content p {
    line-height: 1.6;
    color: #aaccff;
    font-size: 1.1rem;
}

.panel-btn {
    margin-top: 30px;
    padding: 12px 24px;
    background: #4c8bf5;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.panel-btn:hover {
    background: #3a7de3;
}

/* Resource Page Styles */
.resource-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resource-page .page-header {
    border-bottom: 3px solid #4c8bf5;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.resource-page .back-link {
    display: inline-block;
    color: #4c8bf5;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: bold;
}

.resource-page .back-link:hover {
    text-decoration: underline;
}

.resource-page .resource-section {
    margin: 2rem 0;
}

.resource-page .resource-section h3 {
    color: #4c8bf5;
    margin-bottom: 1rem;
}

.resource-page .resource-list {
    list-style: none;
    padding: 0;
}

.resource-page .resource-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f9fbff;
    border-left: 3px solid #4c8bf5;
    border-radius: 4px;
}

.resource-page .resource-list a {
    color: #4c8bf5;
    text-decoration: none;
    font-weight: 600;
}

.resource-page .resource-list a:hover {
    text-decoration: underline;
}
