/* newstyle.css - Lake Mary Jane Alliance */
/* Royal Blue + Sunshine Yellow modern theme with glassmorphism */
/* Last major update: includes hamburger menu on mobile, aside hover yellow, etc. */

:root {
  --primary: #4169E1;          /* Medium royal blue */
  --primary-dark: #2c4eb8;
  --accent: #FFD700;           /* Sunshine yellow */
  --light: #f8fbff;
  --dark: #1a1a2e;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(65, 105, 225, 0.25);
  --shadow: 0 10px 30px rgba(65, 105, 225, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #f0f4ff 0%, #e6ecff 100%);
  min-height: 100vh;
  padding: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ────────────────────────────────────────────────
   Header & Navigation (desktop + general)
───────────────────────────────────────────────── */

header {
  background: var(--primary) url('pix/LMJA Website Background.jpg') center/cover no-repeat;  /* ← your image path here */
  background-blend-mode: overlay;          /* darkens image slightly for readability */
  background-color: rgba(65, 105, 225, 0.5); /* semi-transparent blue overlay fallback + tint */
  color: white;
  padding: 3rem 1.5rem 2rem;              /* more top/bottom padding for image breathing room */
  text-align: center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;                        /* prevents image overflow */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.header-logo {
    width: 200px;
    max-height: 200px;
  }
  
header h1 {
  font-size: 2.6rem;
  margin-bottom: 1.6rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.3rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.0rem;
  border-radius: 8px;
  transition: all 0.22s ease;
}

nav a:hover,
nav a:focus {
  background: var(--accent);           /* Yellow on hover */
  color: #1a1a2e;                      /* Dark text for contrast */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────────
   Hamburger Menu – Mobile Only
───────────────────────────────────────────────── */

.mobile-nav {
  display: none; /* hidden on desktop */
  position: relative;
  z-index: 2400;
}

.desktop-nav {
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2200;
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary);
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-radius: 0 0 12px 12px;
  list-style: none;
  z-index: 2000;
}

.nav-menu li {
  margin: 0.8rem 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  padding: 0.8rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-menu a:hover {
  background: var(--accent);
  color: #1a1a2e;
}

/* Hamburger animation when open */
.nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-toggle:checked ~ .nav-menu {
  display: block;
}

/* ────────────────────────────────────────────────
   Main Layout – Aside & Content
───────────────────────────────────────────────── */

main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin: 2rem 0;
  position: relative;
  z-index: 5;
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
}


aside {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 1rem;
  z-index: 10;
}

aside a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin: 1.1rem 0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: all 0.22s ease;
}

aside a:hover,
aside a:focus {
  background: var(--accent);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

aside a strong {
  background: var(--accent);
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.content {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 0 auto 1.8rem;
  display: block;
  box-shadow: 0 6px 20px rgba(65,105,225,0.2);
}

.content h1 {
  color: var(--primary);
  margin-bottom: 1.3rem;
}

.content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* ────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #444;
  font-size: 0.95rem;
  border-top: 1px solid rgba(65,105,225,0.15);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ────────────────────────────────────────────────
   Responsive Adjustments
───────────────────────────────────────────────── */

@media (max-width: 900px) {
  .mobile-nav {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  header {
    position: relative;
    padding-bottom: 1rem;
  }
  .header-inner {
    justify-content: flex-start;
    padding-left: 1.5rem;
  }
}

@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
  }
  header h1 {
    font-size: 2.1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }
  nav a {
    padding: 1rem;
    font-size: 1.1rem;
  }
}