/* --- 1. GLOBAL BASE STYLES --- */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #09203f;
  font-family: Verdana, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
/* --- 2. BACKGROUND & EFFECTS --- */
#starCanvas, #star-field-container, #star-canvas {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  z-index: 1;
  display: block;
}
#star-field-container {
  overflow: hidden;
  pointer-events: none;
}
/* --- 3. LAYOUT WRAPPERS --- */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  z-index: 10;
  pointer-events: none;
}
.container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 80px 20px 20px 20px; 
  position: relative;
  z-index: 10;
}
/* --- 4. BOXES (HOME PAGE) --- */
body .hero-wrapper .branding-group .vegablue-box, 
body .hero-wrapper .branding-group .description-box {
  position: fixed;
  z-index: 99;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  pointer-events: auto;
}
body .hero-wrapper .branding-group .vegablue-box {
  top: 42%;
  background-color: #ffffff;
  padding: 8px 36px;
  border: 4px solid white;
  width: auto;
  min-width: fit-content;
  max-width: 90%;
  cursor: pointer;
}
body .hero-wrapper .branding-group .description-box {
  top: 63%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px; 
  max-width: 95%;
  padding: 10px 12px;
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 15px;
  text-align: center;
}
body .hero-wrapper .branding-group .vegablue-box:hover {
  background-color: #f0f0f0;
  transform: translate(-50%, -50%);
}
/* --- 5. TYPOGRAPHY & TITLE BOXES --- */
h1, h2 { 
  text-align: center; margin: 0; 
}
body .hero-wrapper .branding-group .vegablue-box h1 {
  color: #09203f;
  font-size: clamp(2.2rem, 10vw, 4.5rem); 
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap; 
}
body .container .title-box h1 {
  color: #09203f;
  font-size: clamp(1.6rem, 10vw, 3rem); 
  font-weight: 900;
  line-height: 1.1;
}
h2 {
  color: #ffffff;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: bold;
}
.description-box h2 {
  font-size: clamp(0.75rem, 2.8vw, 1.1rem);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.03rem;
}
body .container .title-box {
  background-color: #ffffff;
  padding: 12px clamp(24px, 8vw, 48px); 
  border: 4px solid white;
  border-radius: 12px;
  margin-bottom: clamp(30px, 8vh, 60px); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
  position: relative;
  width: fit-content;
  max-width: 800px;
}
/* --- 6. NAVIGATION & BUTTONS --- */
.nav-group {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}
.nav-btn-white, .link-box {
  background-color: #ffffff;
  color: #09203f;
  border-radius: 8px;
  text-align: center;
}
.nav-btn-white {
  border: none;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vh, 24px); 
}
.link-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(200px, 75vw, 240px); 
  height: clamp(60px, 10vh, 120px);  
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
}
.link-box:hover, .nav-btn-white:hover {
  background-color: #f0f0f0;
  transform: none;
}
/* --- 7. CARDS & SECTIONS --- */
body .container .about-card, 
body .container .articles-card {
  background-color: #ffffff;
  padding: clamp(20px, 5vw, 40px);
  border-radius: 16px;
  border: 4px solid #ffffff;
  width: 100%;
  max-width: 800px;
  margin: 20px;
  margin-top: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 20;
  position: relative;
}
.about-card p, .articles-card p {
  color: #09203f;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 20px;
}
/* --- 8. HEADER & FOOTER --- */
.site-header {
  width: 100%;
  padding: 20px 0 10px 0;
  text-align: center;
  position: relative;
  z-index: 30;
}
.site-header .header-logo-text a {
  color: #ffffff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  opacity: 0.6;
}
footer {
  flex-shrink: 0;
  width: 100%;
  padding: 20px 0 40px 0; 
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  position: relative;
  z-index: 20;
  margin-top: auto; 
}
footer a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
/* --- 9. MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
  body .hero-wrapper .branding-group .vegablue-box, 
  body .hero-wrapper .branding-group .description-box {
    position: relative;
    top: auto;
    left: auto;
    transform: none; 
    margin: 15px auto;
  }
  body .hero-wrapper .branding-group .vegablue-box:hover,
  .link-box:hover, 
  .nav-btn-white:hover {
    background-color: #ffffff;
    transform: none;
  }
  .container { 
    padding-top: 100px; 
    justify-content: flex-start; 
  }
  .nav-group { 
    top: 10px; 
    right: 10px; 
  }
  .nav-btn-white {
    padding: 6px 12px;
    font-size: 8px;
    border-radius: 6px;
  }
  footer { 
    padding-bottom: 50px; 
  }
  body .container .title-box h1 {
    font-size: clamp(1.6rem, 8.5vw, 2rem);
    white-space: nowrap;
    letter-spacing: -0.01rem;
  }
  body .container .title-box {
    padding: 10px 20px;
    width: fit-content;
    max-width: 90%;
    margin-bottom: 30px;
  }
  body .container .about-card, 
  body .container .articles-card { 
    margin-top: 0px; 
  }
}