/* SDMUG Archive — Custom Styles
   Framework: Bulma CSS (via CDN)
   Theme: Warm Mac community heritage — deep teal/slate with warm amber accents
*/

:root {
  --brand-primary: #1a4a5c;
  --brand-primary-light: #2d6b82;
  --brand-primary-dark: #0f2d38;
  --brand-accent: #e8a030;
  --brand-accent-light: #f0b84a;
  --brand-bg: #f7f5f2;
  --brand-bg-card: #ffffff;
  --brand-text: #2c2c2c;
  --brand-text-light: #5a6270;
  --brand-border: #ddd8d0;
  --brand-footer-bg: #0f2d38;
  --brand-footer-text: #c8d8df;
}

/* Typography */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.75;
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-primary-dark);
  font-weight: 700;
}

/* Navbar */
.navbar {
  background-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 0.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-brand .navbar-item {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}
.navbar-brand .navbar-item span.accent {
  color: var(--brand-accent);
}
.navbar-item, .navbar-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-item:hover, .navbar-link:hover {
  color: var(--brand-accent-light) !important;
  background-color: transparent !important;
}
.navbar-item.is-active {
  color: var(--brand-accent-light) !important;
}
.navbar-burger { color: white !important; }
.navbar-menu.is-active {
  background-color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-primary-dark);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-section .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero-section .hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2rem;
}
.hero-section h1 {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-section .hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 1.75rem;
}
.hero-badge {
  display: inline-block;
  background-color: var(--brand-accent);
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

/* Page Header (non-hero pages) */
.page-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.page-header h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.main-content h2 {
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand-accent);
  display: inline-block;
}
.main-content h3 {
  font-size: 1.15rem;
  color: var(--brand-primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.main-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.main-content ul, .main-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.main-content li {
  margin-bottom: 0.4rem;
}
.main-content a {
  color: var(--brand-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.main-content a:hover {
  color: var(--brand-accent);
}
.content-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Sidebar Card */
.sidebar {
  max-width: 280px;
}
.sidebar-card {
  background: var(--brand-bg-card);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--brand-border);
}
.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-card ul li {
  border-bottom: 1px solid var(--brand-border);
  padding: 0.45rem 0;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a {
  color: var(--brand-primary-light);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-card ul li a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}
.sidebar-accent {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: white;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-accent h4 {
  color: var(--brand-accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.sidebar-accent p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Homepage Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--brand-bg-card);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--brand-border);
  transition: box-shadow 0.25s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: var(--brand-text);
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(26, 74, 92, 0.15);
  transform: translateY(-3px);
  color: var(--brand-text);
  text-decoration: none;
}
.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon-wrap i {
  color: white;
  font-size: 1.25rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--brand-primary-dark);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--brand-text-light);
  margin: 0;
  line-height: 1.6;
}

/* Section Title */
.section-title {
  text-align: center;
  padding: 2.5rem 1rem 0.5rem;
}
.section-title h2 {
  font-size: 1.85rem;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
  display: inline-block;
  border-bottom: none;
}
.section-title p {
  color: var(--brand-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Layout Wrapper with Sidebar */
.content-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { max-width: 100%; }
}

/* Breadcrumb */
.breadcrumb-bar {
  background-color: var(--brand-bg-card);
  border-bottom: 1px solid var(--brand-border);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}
.breadcrumb-bar a {
  color: var(--brand-primary-light);
  text-decoration: none;
}
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: #aaa; margin: 0 0.4rem; }

/* Footer */
.site-footer {
  background-color: var(--brand-footer-bg);
  color: var(--brand-footer-text);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--brand-accent); }
.footer-desc {
  font-size: 0.88rem;
  color: var(--brand-footer-text);
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.35rem;
}
.footer-col ul li a {
  color: var(--brand-footer-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--brand-accent-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* Images */
img { max-width: 100%; height: auto; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.8rem; }
  .features-grid { padding: 1.5rem 1rem; }
  .main-content { padding: 1.5rem 1rem; }
}
