body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #1e2d2f;
  overflow-x: hidden;
}

/* Nav container removed background & box shadow */
.nav-bar {
  padding: 0.5rem 1rem;
  max-width: 960px;
  margin: 1rem auto;
}

/* Flex list */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Buttons without background box */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 12px 26px;
  color: #374151; /* Dark slate gray */
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  border-radius: 9999px;
  background-color: #f3f4f6; /* Light gray background */
  box-shadow:
    0 4px 6px rgb(0 0 0 / 0.1),
    inset 0 -3px 0 0 rgb(0 0 0 / 0.05);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.15s ease,
    box-shadow 0.3s ease;
  user-select: none;
}

/* Hover & focus */
.nav-link:hover,
.nav-link:focus-visible {
  background-color: #6366f1; /* Indigo */
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 8px 12px rgb(99 102 241 / 0.5),
    inset 0 -3px 0 0 rgb(99 102 241 / 0.8);
  outline: none;
}

/* Focus ring for accessibility */
.nav-link:focus-visible {
  outline: 3px solid #818cf8;
  outline-offset: 4px;
}

/* Badge styling */
.badge {
  background-color: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  padding: 5px 8px;
  position: absolute;
  top: 8px;
  right: 12px;
  pointer-events: none;
  box-shadow: 0 0 6px #ef4444aa;
}

/* Special button colors */
.logout-link {
  background-color: #dc2626;
  color: white;
  box-shadow:
    0 4px 6px rgb(220 38 38 / 0.4),
    inset 0 -3px 0 0 rgb(220 38 38 / 0.7);
}
.logout-link:hover,
.logout-link:focus-visible {
  background-color: #b91c1c;
  box-shadow:
    0 8px 16px rgb(185 28 28 / 0.7),
    inset 0 -3px 0 0 rgb(185 28 28 / 0.9);
}

.signup-link {
  background-color: transparent;
  color: #6366f1;
  border: 2px solid #6366f1;
  box-shadow: none;
}
.signup-link:hover,
.signup-link:focus-visible {
  background-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 8px 16px rgb(99 102 241 / 0.6);
}

/*adminpanel */
section.admin-interests {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: 0 auto;
}

section.admin-interests h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

th {
    background: #f1f1f1;
    color: #2c3e50;
}

td a {
    color: #2980b9;
    text-decoration: none;
}

.status-approved {
    color: green;
    font-weight: bold;
}

.status-pending {
    color: orange;
    font-weight: bold;
}

.action-buttons a {
    margin-right: 10px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.action-buttons a:hover {
    text-decoration: underline;
}
/*admin end */

/* allprofiles css */
.profile-grida {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.profile-carda {
  background: grey;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
  max-width: auto;
  box-sizing: border-box;
}

.profile-carda:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.profile-imga {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.card-headera h3 {
  font-size: 1.2rem;
  margin: 0;
}

.verified-badgea {
  color: green;
  font-size: 1rem;
  margin-left: 5px;
}

.card-bodya p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.card-footera {
  margin-top: 10px;
}

.view-btna {
  display: inline-block;
  background: #2c7a7b;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s;
}

.view-btna:hover {
  background: #225e5f;
}


/* all profiles css end */

/*viewprofiles*/
.profile-cardv {
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
}

.profile-leftv {
  background: var(--primary);
  background: grey;
  padding: 30px 20px;
  text-align: center;
  flex: 1 1 300px;
}

.profile-leftv img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 15px;
}

.profile-leftv h2 {
  margin: 10px 0 5px;
  font-size: 24px;
  font-weight: 600;
}

.profile-leftv p {
  font-size: 16px;
  opacity: 0.9;
}

.profile-rightv {
  flex: 2 1 500px;
  padding: 30px;
  background-color: var(--light-gray);
}

.profile-sectionv {
  margin-bottom: 20px;
}

.profile-sectionv h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

.profile-sectionv p {
  margin: 6px 0;
  font-size: 15px;
}

.profile-sectionv p strong {
  display: inline-block;
  width: 150px;
  font-weight: 600;
  color: #444;
}

.verified-badgev {
  color: lightgreen;
  font-size: 18px;
  margin-left: 5px;
  vertical-align: middle;
}


.view-btnv {
  display: inline-block;
  margin-top: 15px;
  background: #4CAF50;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.view-btnv:hover {
  background: #45a049;
}

.filterv {
    text-align: center;
    margin-bottom: 20px;
}
.filterv select {
    padding: 10px;
    font-size: 16px;
}

/*viewprofiles end here*/

a {
  color: blue;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: white;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.radio-container input[type="radio"] {
  display: none;
}

.radio-label {
  padding: 10px 20px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background-color: white;
  color: #3498db;
  font-weight: bold;
  transition: all 0.3s ease;
}

.radio-container input[type="radio"]:checked + .radio-label {
  background-color: #3498db;
  color: white;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.responsive-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 150px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}



.hero {
  background-image: url('hero-image.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top; /* centrér vandret, vis toppen af billedet */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

/* Logo Text Styling */
.hero .logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.hero .logo h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Login Button Styling */
.hero .login-btn a {
  font-size: 1.5rem;
}

.hero .login-btn a:hover {
  background-color: #065f46;
}

/* Intro text */
.intro-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Styling for each input field group */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  font-size: 1rem;
  color: #064635;
  display: block;
  margin-bottom: 5px;
}

/* Inputs and select box */
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1e735a;
  outline: none;
  background-color: #fff;
}

/* Submit Button */
.form-group button {
  background-color: #1e735a;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-group button:hover {
  background-color: #155a46;
}

/* Link to Login Section */
.text-center p {
  font-size: 0.9rem;
  color: #333;
}

.text-center a {
  color: #1e735a;
  text-decoration: none;
}

.text-center a:hover {
  text-decoration: underline;
}


.overlay {
  background-color: rgba(0, 50, 60, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  z-index: 1;
  padding: 20px;
  max-width: 700px;
}


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

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  padding: 12px 10px;
  border: none;
  margin: 0 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-primary {
  background-color: #1e735a;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #1e735a;
  border: 2px solid #1e735a;
}

.about {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature {
  width: 200px;
  background: #f0f4f2;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.feature span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.faq-section {
  background-color: #e8f0ec;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 40px;
}

.faq-section h2 {
  text-align: center;
  color: #064635;
  margin-bottom: 40px;
  font-size: 28px;
  position: relative;
}

.faq-section h2 i {
  margin-right: 10px;
  color: #0b6e4f;
}

.faq-item {
  border-bottom: 1px solid #ccc;
}

.faq-question {
  background: none;
  border: none;
  color: #0b6e4f;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #065f46;
}

.faq-answer {
  display: none;
  font-size: 16px;
  color: #333;
  padding: 0 0 15px 0;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Section Styling */
.search-for {
  padding: 40px 20px;
  background-color: #f4f7f6;
  font-family: 'Segoe UI', sans-serif;
}

/* Container for search form */
.search-container {
  width: auto; /* Gør containeren lidt smallere */
  max-width: 500px; /* Maksimal bredde for at forhindre at den bliver for bred */
  height: 200px; /* Lavere højde for at gøre den mindre */
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.09); /* Ekstremt gennemsigtig baggrund */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrer indholdet vertikalt */
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* Title of the Section */
.search-container h2 {
  font-size: 1.8rem; /* Mindre skriftstørrelse */
  color: #f7f7f7;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Intro text */
.search-container p {
  font-size: 1rem; /* Mindre skriftstørrelse */
  color: #f7f7f7;
  margin-bottom: 20px;
}

/* Gender Selection Area */
.gender-selection {
  display: flex;
  justify-content: space-around;
  gap: 15px; /* Mindre afstand mellem valgmulighederne */
}

/* Gender Option */
.gender-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px; /* Mindre padding */
  border-radius: 10px;
  width: auto; /* Mindre bredde */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gender-option:hover {
  background-color: blue;
}

/* Ikonet (👨👩) */
.gender-option label span {
  font-size: 1.8rem;
  margin-bottom: 1px;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* General container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Find Us Section */
.find-us {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.find-us h2 {
  font-size: 2rem;
  color: #064635;
  margin-bottom: 20px;
}

.map-container iframe {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Us Section */
.contact-us-section {
  background: url('/images/islamic-pattern-bg.png') no-repeat center center;
  background-size: cover;
  margin: 10px auto;
  padding: 60px auto;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.contact-us-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(15, 30, 46, 0.92);
  z-index: 1;
}

.contact-us-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.contact-us-section h2 {
  text-align: center;
  font-size: 32px;
  color: #ffd700;
  margin-bottom: 20px;
}

.contact-us-section p {
  text-align: center;
  margin-bottom: 40px;
  color: #ddd;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #ffd700;
  color: #0f1e2e;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #e6c200;
}


/* Grund-stil */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Når aktiv – kryds */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

footer {
  background: #12332f;
  color: white;
  padding: 20px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* For very small screens like mobile phones */
@media screen and (max-width: 480px) {

  table {
                font-size: 14px;
            }
            th, td {
                padding: 10px;
            }

  /* Section Styling */
  .search-for {
    padding: 40px 20px;
    background-color: #f4f7f6;
    font-family: 'Segoe UI', sans-serif;
  }

  .search-container {
    width: auto; /* Gør containeren bredere på mobil */
    height: 250px; /* Juster højden til automatisk, så det ikke ser for komprimeret ud */
    padding: 15px;
  }

  /* Gender Selection Area */
  .gender-selection {
    display: flex;
    justify-content: space-around;
    gap: 15px; /* Mindre afstand mellem valgmulighederne */
  }

  /* Gender Option */
  .gender-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px; /* Mindre padding */
    border-radius: 10px;
    width: 100px; /* Mindre bredde */
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .gender-option:hover {
    background-color: #e2e8e0;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .hero-buttons {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 84px;
    text-align: center;
  }

  .hero-buttons.mobile {
    display: flex;
  }

  .find-us h2,
  .contact-us h2 {
    font-size: 1.4rem;
  }

  .contact-us .form-group {
    padding: 0 10px;
  }

  /* Adjust hero text */
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .about h2 {
    font-size: 1.2rem;
  }

  .about p {
    font-size: 0.9rem;
  }

  /* Adjust button size */
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
  }

  /* FAQ Question */
  .faq-question {
    font-size: 14px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .contact-us form {
    padding: 20px;
  }

  .contact-us h2 {
    font-size: 1.5rem;
  }

  .map-container iframe {
    width: 100%;
    height: 300px;
  }

  .find-us {
    padding: 30px 10px;
  }

  .find-us h2 {
    font-size: 1.5rem;
  }

  .map-container iframe {
    width: 100%;
    height: 250px;
  }

  /* Contact Us */
  .contact-us-container {
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
    padding: 10px;
  }

  .contact-form button {
    font-size: 15px;
    padding: 10px;
  }

  .profile-cardv {
      flex-direction: column;
      margin: 20px 10px;
    }

    .profile-leftv,
    .profile-rightv {
      flex: 1 1 100%;
      padding: 20px;
      text-align: center;
    }

    .profile-leftv img {
      width: 100px;
      height: 100px;
    }

    .profile-leftv h2 {
      font-size: 20px;
    }

    .profile-leftv p {
      font-size: 14px;
    }

    .profile-sectionv h3 {
      font-size: 18px;
    }

    .profile-sectionv p {
      font-size: 14px;
    }

    .profile-sectionv p strong {
      width: 100%;
      display: block;
      margin-bottom: 4px;
      color: #555;
    }

    .verified-badge {
      font-size: 16px;
    }

}
