:root {
  --blue-700: #1e3a8a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --white: #ffffff;
  --black: #111827;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--black);
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 50%, var(--blue-400) 100%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.header-content { display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--white); font-weight: 600; letter-spacing: 0.5px; }

.header-actions { display: flex; gap: 12px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn.primary { background: var(--white); color: var(--blue-700); }
.btn.outline { color: var(--white); border: 2px solid var(--white); }
.btn.disabled { opacity: 0.6; pointer-events: none; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 60px 0; }
.hero-text h2 { color: var(--white); font-size: 2.2rem; margin: 0 0 12px; }
.hero-text p { color: rgba(255,255,255,0.95); font-size: 1.05rem; margin: 0 0 16px; }
.hero-actions { display: flex; gap: 12px; }
.hero-art { height: 280px; border-radius: 18px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.05)),
                      linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.3);
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  border: 1px solid var(--gray-300);
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
}

.site-footer { padding: 24px 0; color: var(--white); text-align: center; }

.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.section-title { margin-top: 0; }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.list .item { background: var(--white); border-radius: 16px; padding: 0; box-shadow: 0 12px 28px rgba(0,0,0,0.12); overflow: hidden; border: 1px solid #eef2ff; }
.list .item .thumb { width: 100%; height: 140px; object-fit: cover; display: block; }
.list .item .content { padding: 14px; }
.list .item h4 { margin: 0 0 8px; }
.list .item .meta { display:flex; align-items:center; gap:8px; color:#6b7280; font-size:0.9rem; }
.category-icon { width: 20px; height: 20px; display:inline-block; }
.btn.link { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-600); color: var(--white); padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight:600; }
.btn.link:hover { background: var(--blue-700); }

.notice { color: #064e3b; background: #d1fae5; padding: 10px 12px; border-radius: 10px; border: 1px solid #10b981; }
.error { color: #7f1d1d; background: #fee2e2; padding: 10px 12px; border-radius: 10px; border: 1px solid #ef4444; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
}

/* Estudos Bíblicos */
.studies-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .studies-layout {
    grid-template-columns: 1fr 2fr;
  }
}

.studies-nav .study-section {
  margin-bottom: 12px;
}

.study-group-title {
  margin: 0 0 8px 0;
}

.book-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.book-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.book-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.book-toggle:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.book-toggle .chevron {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid #374151;
  border-bottom: 2px solid #374151;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.book-toggle.expanded .chevron {
  transform: rotate(45deg);
}
.book-toggle.active { background: rgba(59,130,246,0.12); border-color: var(--blue-500); }

.chapter-list {
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid #e5e7eb;
}

.chapter-button {
  margin: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
}

.chapter-button:hover {
  background: #eef2ff;
}

.chapter-button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.chapter-button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.study-controls input[type="text"] {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.studies-content .card {
  min-height: 200px;
}