/* Feedback grid: default 4 columns, 2x2 on mobile */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}
/* Announcement Popup Styles */
#announcementPopup {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 1050;
  max-width: 400px;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.announcement-popup-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-popup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.announcement-popup-header {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-popup-body {
  padding: 15px;
}

.announcement-popup-body img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.announcement-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.announcement-close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.bg-purple {
  background-color: #6f42c1 !important;
}

/* Contact Modal Styles */
#contactModal .modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f7a600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0;
  margin-top: 40px;
}

#contactModal .modal-header {
  padding: 0.25rem 1rem;
  border-bottom: none;
}

#contactModal .modal-body {
  background-color: #203147;
  color: #f5f7fa;
}

/* Success Modal Style Override */
#emailSuccessModal .modal-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #203147;
  text-align: center;
}

/* Dynamic Word Animation Styles */
.dynamic-word-box {
  display: inline-block;
  position: relative;
  min-height: 1.2em;
  vertical-align: baseline;
}

.dynamic-word {
  position: relative;
  display: inline-block;
}


.char {
  display: inline-block;
  opacity: 0;
  transform: scaleX(0.3);
}
