/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: white;
  color: #333;
}

.intro-header {
  text-align: center;
  padding: 50px 20px;
  background-color: #f7ece0;
}

.intro-header h1 {
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff7f50, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  -webkit-text-stroke: 0.3px black;
}

.intro-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.search-bar-container {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 40px;
  margin-top: 30px;
}

.search-bar-input {
  width: 95%;
  max-width: 800px;
  min-width: 600px;
  padding: 2.8rem 5rem;
  font-size: 1.8rem;
  z-index: 1000;
}

.search-bar-container input[type="text"] {
  border-radius: 8px;
  border: solid 2px;
  border-color: #c5c5c5;
}

/* Removes the default outline and adds a subtle shadow on focus */
.search-bar-container input[type="text"]:focus {
  outline: none;
  border-color: #c6c6c6;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}

.search-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 1rem 1rem;
  z-index: 100;
  list-style: none;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown-list li {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.search-dropdown-list li:last-child {
  border-bottom: none;
}

.search-dropdown-list li:hover {
  background: #f5f7fa;
}

.search-dropdown-list li.active {
  background: #f5f7fa;
}

.user-image-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.faq-section h1 {
  font-size: 2.7rem;
  font-weight: 600;
  margin-bottom: 40px;
}

/* Reusable Base Styles for Profile Image Circle */
.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: orange; /* Orange background when no image is loaded */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Reusable Base Styles for Cards */
.faq-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px;
  margin-left: 10px;
}

.faq-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.faq-card .faq-card-content {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
  background-color: #f7ece0;
}

.faq-card .question {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: left;
}

.faq-card .answer {
  display: none;
  padding: 20px;
  background-color: #f8f8f8;
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-card .answer p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.faq-card .answer ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 16px;
}

.faq-card .answer ul li {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: #333;
}

.faq-card .answer ol {
  padding-left: 40px;
  margin-bottom: 16px;
}

.faq-card .answer ol li {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: #333;
}

.faq-section-title {
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: #ffd29f;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.faq-section-title:hover {
  background-color: #ffcc80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-section-title.active {
  background-color: #ffb74d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.faq-section-title::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-section-title.active::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.motivation-list {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 16px;
}

.motivation-list li {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: #333;
}

.faqbuttondiv {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

/* footer */

@media screen and (max-width: 1117px) {
  .invisible-card-1 {
    display: none;
  }

  .invisible-card-2 {
    display: flex;
  }

  .invisible-card-3 {
    display: none;
  }
}
/* Responsive Design for grid */
@media screen and (max-width: 768px) {
  .faq-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .invisible-card {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .faq-cards-container {
    grid-template-columns: 1fr;
  }

  .faq-section h1 {
    font-size: 2rem;
  }
}

.tools-title {
  text-align: center;
  font-size: 44px;
  margin-top: 30px;
  margin-bottom: 50px;
}

/* Grid Layout */
.post-production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  margin-top: 80px;
}

/* Individual Card Styles */
.invisible-card-2 {
  display: none;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background-color: #fdf1d3;
  text-decoration: none;
}

.card i {
  font-size: 60px;
  color: #f39c12;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.card i:hover {
  color: #e68a00;
}

.card p {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.card .completed-icon {
  font-size: 1.5em;
  color: #2ecc71;
  margin-top: 10px;
}

.invisible-card {
  visibility: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* <-- NY KLASS TILLAGD */
.container-narrow {
  max-width: 40%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Modal Styles */
.faq-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow-y: auto;
}

.faq-modal.active {
  display: block;
}

.faq-modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 40px;
  width: 90%;
  max-width: 1200px;
  border-radius: 15px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.faq-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.faq-back-button {
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-back-button:hover {
  background-color: #e68a00;
}

.faq-close-button {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-close-button:hover {
  color: #333;
}

.faq-modal .faq-section {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* Hide all FAQ sections by default - handled by JavaScript */
.faq-section:not(.in-modal) {
  display: none;
}

.faq-section.modal-active {
  display: flex;
}

/* Show the new-faq-section by default */
.new-faq-section {
  display: block;
}
