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

body {
  font-family: Arial, Tahoma, Verdana, sans-serif;
  font-size: 14px;
  background: #e0e0e0;
  color: #7D7D7D;
}

a { color: #632C3B; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Utility bar */
.utility-bar {
  background: #383C7F;
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.utility-bar a { color: #fff; }

/* Wrapper */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Banner */
.banner { display: block; width: 100%; height: auto; }

/* Nav */
nav {
  background: #383C7F;
  padding: 6px 8px;
  border-top: 2px solid #632C3B;
  border-bottom: 2px solid #632C3B;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
nav ul li a.nav-tab {
  display: block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 3px 3px 0 0;
  transition: background 0.15s;
}
nav ul li a.nav-tab:hover { background: #632C3B; text-decoration: none; }
nav ul li a.nav-tab.active { background: #fff; color: #383C7F; }

/* Content area */
.content-area {
  display: flex;
  gap: 16px;
  padding: 14px;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}
.sidebar-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 12px;
}
.sidebar-box h3 {
  font-size: 12px;
  font-weight: bold;
  color: #383C7F;
  background: #383C7F;
  color: #fff;
  margin: -10px -10px 8px -10px;
  padding: 5px 10px;
}
.sidebar-box .search-row {
  display: flex;
  gap: 4px;
}
.sidebar-box input[type="text"] {
  flex: 1;
  border: 1px solid #ccc;
  padding: 3px 5px;
  font-size: 12px;
}
.sidebar-box button {
  background: #ddd;
  border: 1px solid #bbb;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}
.sidebar-box button:hover { background: #ccc; }
.sidebar-box p { font-size: 12px; margin-bottom: 3px; }
.sidebar-box a { color: #632C3B; }
.btn-ouvir {
  display: block;
  text-align: center;
  background: #632C3B;
  color: #fff !important;
  font-weight: bold;
  font-size: 12px;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 2px;
  transition: background 0.15s;
}
.btn-ouvir:hover { background: #383C7F !important; text-decoration: none !important; }
.btn-fb {
  display: block;
  text-align: center;
  background: #3b5998;
  color: #fff !important;
  font-size: 11px;
  font-weight: bold;
  padding: 6px;
  border-radius: 2px;
  transition: background 0.15s;
}
.btn-fb:hover { background: #2d4373 !important; text-decoration: none !important; }

/* Main content */
.main-content { flex: 1; min-width: 0; }

h1.page-title {
  font-size: 16px;
  font-weight: bold;
  color: #383C7F;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

/* Separator bar */
.separator { display: block; width: 100%; max-width: 400px; margin: 12px auto; }

/* Member row */
.member-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.member-row img { border: 1px solid #ccc; }
.member-info { flex: 1; font-size: 13px; line-height: 1.6; }
.member-info strong { color: #383C7F; }

/* Info box */
.info-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Home listen box */
.listen-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}
.listen-box p { font-weight: bold; color: #383C7F; margin-bottom: 8px; font-size: 13px; }
.listen-box .click-link {
  color: #632C3B;
  font-weight: bold;
  font-size: 16px;
}
.listen-box .tunein-divider { border-top: 1px solid #ddd; margin-top: 12px; padding-top: 12px; }

/* Gallery */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.album-card {
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.album-card:hover { border-color: #383C7F; text-decoration: none; }
.album-card img { width: 100%; height: 100px; object-fit: cover; display: block; margin-bottom: 6px; }
.album-card h3 { font-size: 11px; font-weight: bold; color: #383C7F; line-height: 1.3; }
.album-card .album-date { font-size: 10px; color: #999; margin-top: 3px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photo-grid a img { width: 100%; height: auto; border: 1px solid #ccc; display: block; }
.photo-grid a img:hover { opacity: 0.8; }
.back-link { color: #632C3B; font-weight: bold; font-size: 12px; display: inline-block; margin-bottom: 10px; }

/* Contact form */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit {
  background: #632C3B;
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: #383C7F; }

/* Table */
.schedule-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.schedule-table th {
  background: #383C7F;
  color: #fff;
  padding: 7px;
  border: 1px solid #ccc;
  text-align: center;
}
.schedule-table td {
  border: 1px solid #ddd;
  padding: 7px;
  text-align: center;
  background: #f9f9f9;
}
.schedule-table td.hour { background: #e8e8e8; font-weight: bold; }
.schedule-table td small { display: block; color: #888; font-size: 10px; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.video-card { background: #f5f5f5; border: 1px solid #ddd; padding: 8px; border-radius: 2px; }
.video-card .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-card .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-label { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: bold; }
.video-label img { width: 20px; height: 20px; }

/* Calendar */
.event-card {
  background: #f5f5f5;
  border-left: 4px solid #632C3B;
  padding: 12px;
  margin-bottom: 14px;
}
.event-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #ddd; padding-bottom: 6px; margin-bottom: 8px; }
.event-header h2 { font-size: 14px; font-weight: bold; color: #383C7F; }
.event-date { font-size: 10px; background: #ddd; padding: 2px 6px; border-radius: 2px; color: #666; }
.event-card p { font-size: 12px; line-height: 1.6; }

/* Notice / success */
.notice {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  padding: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.empty-state { font-style: italic; color: #999; font-size: 13px; padding: 20px 0; }

/* Home center block */
.center-block { text-align: center; margin: 12px 0; }

/* Responsive */
@media (max-width: 700px) {
  .content-area { flex-direction: column; }
  .sidebar { width: 100%; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .member-row { flex-direction: column; }
}
