html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
}

.main-content {
  flex: 1 0 auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #6b85b1);
  color: rgb(212, 220, 243);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Grid */
.saint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.saint-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
}

.saint-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #e0f0ff, #ffffff);
}

.saint-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.saint-name {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.gender-male,
.gender-female {
  color: #000;
  font-weight: 500;
  font-size: 0.9rem;
}

.saint-type {
  display: inline-block;
  background: #d7d8da;
  color: #000;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 15px;
  margin-top: 0.3rem;
}

.feast-day {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.3rem;
}

/* Detail page */
.back-btn {
  display: inline-block;
  margin: 0 0 1rem 0;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
}

.back-btn:hover {
  text-decoration: underline;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: white;
  border-radius: 40px;
  padding: 2rem;
}

.detail-left img {
  max-width: 250px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.section-title {
  font-weight: 600;
  color: #6b85b1;
  margin-top: 1.5rem;
  border-bottom: 2px solid #e0f0ff;
  padding-bottom: 0.25rem;
}

.gallery img {
  max-width: 200px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

#saint-map {
  height: 400px;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .detail-container {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  background-color: #f8f9fa;
  padding: 20px 0;
  border-radius: 40px;
  margin-top: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-spacer {
  flex: 1;
}

.footer-button {
  text-align: center;
  flex: 1;
}

.footer-logos {
  flex: 1;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.footer-logos img {
  height: 60px;
  width: auto;
}

.footer-text {
  text-align: right;
  margin-right: 0.5%;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #0c0338;
}
