/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Make sure iframes are always clickable */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 0.75rem;  /* matches Tailwind's rounded-xl */
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

/* FAQ Flashcard Styles */
.faq-card {
  perspective: 1000px;
  width: 100%;
  cursor: pointer;
  height: auto;             /* card grows with content */
  position: relative;
  overflow: hidden;         /* prevents backface bleed */
}

.faq-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.faq-card:hover .faq-inner {
  transform: rotateY(180deg);
}

.faq-front,
.faq-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 200px;        /* default height */
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  color: #f9fafb;           /* text white-ish */
  text-align: center;        /* better for multi-line text */
  background: #1f2937;       /* gray-800 */
  height: auto;              /* allow growing with content */
  transition: box-shadow 0.3s, transform 0.6s;
}

.faq-front {
  font-size: 1.1rem;
}

.faq-back {
  transform: rotateY(180deg);
  font-size: 0.95rem;
  color: #d1d5db;            /* gray-300 */
  flex-direction: column;    /* for stacked content */
  gap: 0.5rem;               /* spacing between lines */
}

.faq-inner {
  position: relative;
  width: 100%;
  min-height: 150px; /* ensure it always has height */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}


/* Language buttons */
.lang-btn {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #374151; /* gray-700 */
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-btn:hover {
  background: #4b5563; /* gray-600 */
}

.lang-btn.active {
  background: #2563eb; /* blue-600 */
}

/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

/* Hide modal initially */
.hidden {
  display: none;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
