* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8fbfd;
  color: #333;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004c85;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #004c85;
  font-weight: 500;
}

nav ul li a:hover {
  text-decoration: underline;
}

nav ul li a.active {
  color: #007BFF;
  font-weight: bold;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav ul li a.active:hover {
  color: #0056b3;
  border-color: #0056b3;
}

a {
  color: #005b99;
  text-decoration: underline;
}

a:hover {
  color: #003f66;
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #777;
}

/* All html styles */

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #004c85;
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 30vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  flex-direction: column;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  margin: 0 1rem;
  box-sizing: border-box;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-overlay {
    padding: 1.5rem;
  }
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin-bottom: 0.75rem;
  }
}

.overview {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.overview h2 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #005b99;
}

.overview p {
  max-width: 800px;
  margin: 1rem auto;
  line-height: 1.7;
  text-align: center;
  color: #444;
}

/* Index page styles */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card {
  background-color: #ffffff;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 a {
  text-decoration: none;
  color: #004c85;
}

.card p {
  margin-top: 0.5rem;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.close-button {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #004c85;
}

.close-button:hover {
  color: #005b9f;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #004080;
  color: white;
  padding: 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #ffeeba;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #ffffff;
  color: #004080;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.cookie-banner button:hover {
  background-color: #e6e6e6;
}

/* Statistics page styles */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: #f2f7fc;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 91, 153, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card strong {
  color: #003f7f;
}

.safety-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.safety-card {
  background: #f4f8fc;
  border: 1px solid #d1e3f3;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safety-card h3 {
  color: #005b99;
  margin-bottom: 0.75rem;
}

.safety-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.safety-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.safety-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.safety-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.comparison th,
.comparison td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.comparison th {
  background-color: #005b99;
  color: #fff;
}

.comparison tr:last-child td {
  border-bottom: none;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background-color: #f3faff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #003366;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 500px;
  width: 100%;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.resource-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.resource-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.resource-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Tips & Support page styles */

.tips-hero {
  background: url('/images/tips-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  padding: 4rem 2rem;
  text-align: center;
}

.tips-section {
  max-width: 1000px;
  margin: 1rem auto 2rem auto;
  padding: 0 1rem;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #005b99;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}


.tip-card, .ritual-card {
  background-color: #f5faff;
  border-left: 4px solid #004c85;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tip-card.visible, .ritual-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tip-card:hover, .ritual-card:hover {
  transform: translateY(-4px);
}

.tip-note {
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  color: #444;
}


/* FAQ page styles */

.faq {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.faq-item {
  margin-bottom: 2rem;
  border-left: 4px solid #0077cc;
  padding-left: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item h3 {
  margin-top: 0;
  color: #0077cc;
  font-size: 1.1rem;
}

.faq-item p {
  color: #333;
  line-height: 1.6;
}


/* === Privacy Policy Page === */
.privacy-policy {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  line-height: 1.7;
  color: #222;
}

.privacy-policy h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.privacy-policy h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

.privacy-policy p {
  margin-bottom: 1rem;
}

.privacy-policy ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-policy ul li {
  margin-bottom: 0.5rem;
}

.privacy-policy a {
  color: #005ec4;
  text-decoration: underline;
}

.privacy-policy a:hover {
  text-decoration: none;
}