* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  min-height: 50vh;
  padding: 2rem 2rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

.title {
  text-align: center;
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: none;
  font-family: "Noto Sans Sinhala", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.card {
  background: linear-gradient(135deg, #00796b 0%, #00695c 100%);
  border-radius: 16px;
  padding: 1rem;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: block;
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.card:hover {
  background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 1px rgba(0, 121, 107, 0.6),
      0 0 2px rgba(0, 121, 107, 0.4);
  }
  50% {
    box-shadow: 0 0 6px rgba(0, 121, 107, 1),
      0 0 12px rgba(0, 121, 107, 0.8);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Enhanced Ripple Effect */
.card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.8s ease-out, height 0.8s ease-out,
    opacity 0.8s ease-out;
  opacity: 0;
}

.card:active::before {
  width: 400px;
  height: 400px;
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 1s ease-out, height 1s ease-out, opacity 1s ease-out;
  opacity: 0;
}

.card:active::after {
  width: 500px;
  height: 500px;
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.footer {
  margin-top: auto;
  padding: 2rem 0 2rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #00796b;
}

.footer-separator {
  color: #ccc;
  font-size: 0.9rem;
}

/* Page Content Styles */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  color: #333;
}

.page-content h2 {
  color: #00796b;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.page-content h3 {
  color: #00796b;
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  background: linear-gradient(135deg, #00796b 0%, #00695c 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
  transform: translateY(-1px);
}

/* Contact Form Styles */
.contact-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00796b;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, #00796b 0%, #00695c 100%);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body {
    padding: 1rem 1rem 0 1rem;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .page-content {
    padding: 1rem;
  }
}
