/* File: assets/css/matrimony.css */
body {
  font-family: sans-serif;
  margin: 0;
  background: #f4f9ff;
}

.matrimony-header {
  background: #005bbb;
  color: white;
  padding: 1rem;
  text-align: center;
}

.gender-buttons {
  margin-top: 1rem;
}
.gender-buttons button {
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: white;
  border: 2px solid #005bbb;
  border-radius: 5px;
  color: #005bbb;
  cursor: pointer;
}
.gender-buttons button:hover {
  background: #005bbb;
  color: white;
}

#profile-list {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 2rem;
}

.age-group {
  margin-bottom: 2rem;
}
.age-group h3 {
  color: #005bbb;
  margin-bottom: 1rem;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.profile-card {
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  background: white;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.profile-card:hover {
  transform: scale(1.03);
}

.profile-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

.profile-card p {
  margin: 0.5rem 0;
  font-weight: bold;
  font-size: 1rem;
}

.editBtn, .deleteBtn {
  margin: 0.2rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.editBtn {
  background-color: #4CAF50;
  color: white;
}

.deleteBtn {
  background-color: #f44336;
  color: white;
}

/* Modal Styling */
#profile-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#profile-modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 1rem;
  max-width: 700px;
  width: 95%;
  border-radius: 10px;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}
.modal-body {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.modal-left img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}
.modal-right {
  flex: 1;
}
.modal-right p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
  }
  .modal-left img {
    width: 100%;
    height: auto;
  }
}

.gender-panel {
  text-align: center;
  padding: 2rem;
}

.gender-choices {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.gender-card {
  background: white;
  border-radius: 50%;
  border: 3px solid transparent;
  padding: 1rem;
  width: 150px;
  height: 150px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gender-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
}

.gender-card:hover {
  border-color: #005bbb;
  background: #e8f0ff;
}

.gender-card p {
  font-weight: bold;
  margin: 0;
  font-size: 1rem;
}
.ticker{
  --dur: 22s;                  /* speed: lower = faster */
  background:#0A4A96;
  color:#fff;
  overflow:hidden;
  line-height:1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track{
  display:flex;
  width:max-content;           /* shrink-wrap content */
  gap:0;
  animation: ticker-slide var(--dur) linear infinite;
}
.ticker__item{
  flex:0 0 auto;               /* prevent shrinking */
  white-space:nowrap;
  padding-block:10px;
  font-size:1rem;
  font-weight:700;
  letter-spacing:.3px;
  padding-right:2rem;          /* space between repeats */
}
@keyframes ticker-slide{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); } /* move by half (because we duplicated content) */
}

/* pause on hover */
.ticker:hover .ticker__track{ animation-play-state: paused; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation:none; transform:none; }
}