:root {
  --primary: #0a429a;
  --accent: #a7fb19;
  --dark: #0a334c;
  --purple-banner: #5d3ef4;
  --info: #00bed8;
  --bg: #f4f7f9;
}

* {
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.banner-top {
  width: 100% !important;
  background-color: var(--purple-banner) !important;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.img-header-logo {
  height: 100px !important;
  width: auto;
  display: inline-block;
}

header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
  padding: 40px 20px 75px;
  text-align: center;
  border-bottom: 6px solid var(--accent);
}
h1 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
}
.subtitle {
  opacity: 0.9;
  margin: 10px 0 30px;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-cta {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-parceiro {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(167, 251, 25, 0.3);
}
.btn-indicar {
  background: var(--info);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 190, 216, 0.3);
}
.btn-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.filter-section {
  max-width: 1000px;
  margin: -35px auto 40px;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  text-transform: uppercase;
}
input,
select,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #eee;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.content-wrap {
  flex: 1;
}
.mural {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
}
.card-img {
  height: 160px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  background: #eef4ff;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.3;
}
.card-text {
  font-size: 0.85rem;
  color: #555;
  white-space: pre-line;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
}
.card-text.truncated {
  -webkit-line-clamp: 6;
  line-clamp: 6;
}
.card-text.expanded {
  -webkit-line-clamp: initial;
  line-clamp: initial;
}

.btn-see-more {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 0 0;
  cursor: pointer;
  display: none;
  align-self: flex-start;
}
.btn-see-more:hover {
  text-decoration: underline;
  color: var(--dark);
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-top: 6px solid var(--primary);
}
.app-invite h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 25px;
}
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-app {
  background: #000;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  border: 1px solid #333;
  transition: 0.3s;
}
.btn-app:hover {
  background: #222;
  transform: translateY(-3px);
}
.btn-app i {
  font-size: 1.8rem;
}
.btn-app div {
  text-align: left;
  line-height: 1.1;
}
.btn-app b {
  display: block;
  font-size: 1.1rem;
}
.btn-app span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.social-links {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.social-btn {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-btn:hover {
  background: var(--primary);
}
.social-btn i {
  color: var(--accent);
}
.contact-final {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 20px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  .btn-cta,
  .filter-group,
  .btn-app {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Admin Styles */
.admin-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: 0.3s;
}
.card:hover .admin-actions {
  opacity: 1;
}
.btn-icon {
  background: white;
  border: 1px solid #ddd;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #666;
}
.btn-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.modal h2 {
  margin-top: 0;
  color: var(--primary);
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}
.btn-submit:hover {
  background: var(--dark);
}
.close-modal {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
  color: #999;
}
.float-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: var(--dark);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
  border: none;
  z-index: 900;
}
.float-fab:hover {
  transform: scale(1.1);
}
