/* ==========================================================================
   Landing Page Styles (index.css) - QOMAR Project
   ========================================================================== */

.landing-body {
  background: linear-gradient(180deg, var(--color-cream-50) 0%, var(--color-cream-100) 40%, var(--color-blue-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.landing-container {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Badge */
.top-badge-container {
  margin-bottom: 1.5rem;
}

.top-badge {
  background: rgba(2, 38, 128, 0.06);
  color: var(--color-blue-800);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(2, 38, 128, 0.15);
  display: inline-block;
  letter-spacing: 0.5px;
}

/* Hero Header */
.hero-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-blue-800);
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.landing-subtitle-main {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-blue-600);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-style: italic;
}

.landing-subtext {
  font-size: 1rem;
  color: var(--color-blue-900);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.landing-subtext span {
  font-weight: 700;
  color: var(--color-purple-500);
}

.landing-highlight {
  font-size: 0.95rem;
  color: var(--color-teal-500);
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.2px;
}

/* Motto Card */
.motto-section {
  width: 100%;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.motto-card {
  padding: 1.5rem;
  border-radius: 24px;
  text-align: center;
  border: 2px solid rgba(255, 207, 39, 0.4);
  box-shadow: 0 4px 20px rgba(255, 207, 39, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.motto-arabic {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-blue-800);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  direction: rtl;
}

.motto-translation {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-blue-900);
  font-weight: 500;
}

/* Bab Selection Section */
.bab-selection-section {
  width: 100%;
  max-width: 660px;
  margin-bottom: 3.5rem;
}

.bab-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-blue-800);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bab-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.bab-card {
  width: 100%;
  border-radius: 24px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 38, 128, 0.05);
  cursor: pointer;
}

.bab-card:hover,
.bab-card:focus-within {
  border-color: var(--color-blue-400);
  box-shadow: 0 10px 28px rgba(2, 38, 128, 0.1);
  transform: translateY(-2px);
}

.bab-card.active {
  border-color: #00A8E8;
  border-width: 2.5px;
  box-shadow: 0 8px 26px rgba(0, 168, 232, 0.16);
}

.bab-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.15rem;
  gap: 1.15rem;
}

.bab-card-media {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bab-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  transition: transform 0.35s ease;
}

.bab-card:hover .bab-card-image {
  transform: scale(1.03);
}

.bab-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}

.bab-card-badge-header {
  display: flex;
  align-items: center;
}

.bab-badge {
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.5px;
}

.bg-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bg-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.bab-suboptions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.suboption-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  text-decoration: none;
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  transition: all 0.25s var(--ease-spring);
  gap: 0.75rem;
}

.suboption-item:hover,
.suboption-item:focus-visible {
  transform: translateX(3px);
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(2, 38, 128, 0.06);
  border-color: var(--color-blue-300);
}

.icon-teal-soft { border-left: 4px solid var(--color-teal-500); }
.icon-pink-soft { border-left: 4px solid var(--color-pink-500); }
.icon-amber-soft { border-left: 4px solid #f59e0b; }
.icon-yellow-soft { border-left: 4px solid #f59e0b; }

.suboption-emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suboption-title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-blue-900);
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suboption-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--color-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
  margin-left: auto;
}

.suboption-arrow svg {
  width: 14px;
  height: 14px;
}

.suboption-item:hover .suboption-arrow,
.suboption-item:focus-visible .suboption-arrow {
  background: var(--color-blue-600);
  color: #ffffff;
  transform: translateX(2px);
}

/* Sinopsis Section */
.synopsis-single-section {
  width: 100%;
  max-width: 580px;
  margin-bottom: 4rem;
}

.synopsis-card {
  padding: 2.25rem;
  border-radius: 28px;
  text-align: left;
  border: 2px solid rgba(2, 38, 128, 0.18);
}

.synopsis-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid rgba(2, 38, 128, 0.1);
  padding-bottom: 1.25rem;
}

.synopsis-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.synopsis-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--color-gold-400);
  display: block;
}

.synopsis-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.synopsis-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-blue-800);
  line-height: 1.2;
}

.synopsis-subtitle-main {
  font-size: 0.825rem;
  color: var(--color-blue-600);
  font-weight: 700;
  line-height: 1.3;
}

.synopsis-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.synopsis-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-blue-900);
  text-align: justify;
  margin: 0;
}

.synopsis-body p strong {
  color: var(--color-blue-800);
  font-weight: 700;
}

/* Contact Person Section */
.contact-card-section {
  width: 100%;
  max-width: 580px;
  margin-bottom: 4rem;
  text-align: center;
}

.contact-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-blue-800);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.5rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  border: 2px solid rgba(2, 38, 128, 0.15);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.contact-info-card.val-wa:hover { border-color: #25D366; background: rgba(255, 255, 255, 0.95); }
.contact-info-card.val-email:hover { border-color: #EA4335; background: rgba(255, 255, 255, 0.95); }
.contact-info-card.val-ig:hover { border-color: var(--color-pink-500); background: rgba(255, 255, 255, 0.95); }
.contact-info-card.val-tg:hover { border-color: #0088cc; background: rgba(255, 255, 255, 0.95); }

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: white;
  box-shadow: var(--shadow-soft);
}

.bg-wa { background-color: #25D366; }
.bg-email { background-color: #EA4335; }
.bg-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-tg { background-color: #0088cc; }

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-info-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-blue-800);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.7rem;
  color: var(--color-blue-900);
  font-weight: 600;
  word-break: break-all;
  max-width: 100%;
  line-height: 1.3;
}

/* ===== Footer inside Card ===== */
.ebook-footer {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 800px;
}

.ebook-footer-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1.5px solid rgba(2, 38, 128, 0.15);
}

.ebook-footer-quote {
  font-size: 0.85rem;
  color: var(--color-blue-800);
  font-style: italic;
}

.ebook-footer-divider {
  width: 3rem;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-blue-300), transparent);
  margin: 0.5rem auto;
}

.ebook-footer-copyright {
  font-size: 0.7rem;
  color: rgba(2, 38, 128, 0.5);
}

/* Footer Section */
.landing-footer {
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1.5px solid rgba(2, 38, 128, 0.12);
  margin-top: auto;
}

.landing-footer p {
  font-size: 0.85rem;
  color: var(--color-blue-600);
  font-weight: 700;
  margin: 0;
}


/* FAQ Section Styles (Single Accordion Wrapper with Minimalist Inner Grid) */
.faq-section {
  width: 100%;
  max-width: 660px;
  margin-bottom: 3.5rem;
}

.faq-main-card {
  border-radius: 24px;
  border: 2px solid rgba(2, 38, 128, 0.14);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(2, 38, 128, 0.06);
}

.faq-main-card:hover {
  border-color: var(--color-blue-400);
  box-shadow: 0 12px 28px rgba(2, 38, 128, 0.09);
}

.faq-main-card.active {
  border-color: var(--color-blue-600);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-elevated);
}

.faq-main-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  gap: 1rem;
}

.faq-main-card .faq-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-blue-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-main-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(2, 38, 128, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-700);
  transition: transform 0.3s var(--ease-spring), background 0.3s, color 0.3s;
  flex-shrink: 0;
}

.faq-main-chevron svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.faq-main-card.active .faq-main-chevron {
  background: var(--color-blue-600);
  color: #ffffff;
}

.faq-main-card.active .faq-main-chevron svg {
  transform: rotate(180deg);
}

.faq-main-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
}

.faq-main-card.active .faq-main-content-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-main-content-inner {
  overflow: hidden;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1.5px solid rgba(2, 38, 128, 0.1);
  padding-top: 1.15rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.faq-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(2, 38, 128, 0.09);
  transition: all 0.25s var(--ease-spring);
  background: rgba(255, 255, 255, 0.95);
}

.faq-item:hover {
  border-color: var(--color-blue-400);
  transform: translateX(3px);
  background: #ffffff;
}

.faq-item.active {
  border-color: var(--color-blue-600);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 38, 128, 0.05);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  gap: 0.75rem;
}

.faq-question {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-blue-900);
  line-height: 1.3;
}

.faq-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(2, 38, 128, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-700);
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}

.faq-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-spring);
}

.faq-item.active .faq-icon-wrapper {
  background: var(--color-blue-600);
  color: #ffffff;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-content {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 1rem 0.85rem 1rem;
  border-top: 1px dashed rgba(2, 38, 128, 0.08);
  padding-top: 0.65rem;
}

.faq-answer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-blue-800);
  line-height: 1.45;
  font-weight: 500;
}

/* Responsive FAQ & Bab Grid */
@media (max-width: 900px) {
  .bab-list {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Media Queries */
@media (max-width: 600px) {
  .landing-container {
    padding: 1.5rem 0.85rem 2.5rem;
  }
  .hero-header {
    margin-bottom: 1.25rem;
  }
  .landing-title {
    font-size: 2.2rem;
  }
  .landing-subtitle-main {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  .landing-subtext {
    font-size: 0.85rem;
  }

  .bab-selection-section {
    margin-bottom: 2.5rem;
  }
  .bab-section-title {
    font-size: 1.15rem;
    margin-bottom: 1.15rem;
    letter-spacing: 0.5px;
  }
  .bab-list {
    gap: 1rem;
  }
  .bab-card {
    border-radius: 20px;
  }
  .bab-card-inner {
    flex-direction: row;
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: center;
  }
  .bab-card-media {
    width: clamp(105px, 31vw, 130px);
    height: clamp(105px, 31vw, 130px);
    border-radius: 16px;
    box-shadow: none;
  }
  .bab-card-image {
    border-radius: 16px;
  }
  .bab-card-content {
    gap: 0.45rem;
  }
  .bab-suboptions {
    gap: 0.45rem;
  }
  .suboption-item {
    min-height: 42px;
    padding: 0.45rem 0.6rem;
    border-radius: 11px;
    gap: 0.45rem;
  }
  .suboption-emoji {
    font-size: 1rem;
  }
  .suboption-title {
    font-size: clamp(0.72rem, 2.5vw, 0.825rem);
    font-weight: 700;
  }
  .suboption-arrow {
    width: 20px;
    height: 20px;
  }
  .suboption-arrow svg {
    width: 11px;
    height: 11px;
  }

  .menu-vertical-section {
    margin-bottom: 2.5rem;
  }
  .menu-vertical-item {
    padding: 1.1rem 1.25rem;
  }
  .synopsis-card {
    padding: 1.5rem;
  }
  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .motto-card {
    padding: 1.2rem;
  }
  .motto-arabic {
    font-size: 1.5rem;
  }
  .faq-section {
    margin-bottom: 2.5rem;
  }
  .faq-trigger {
    padding: 1em 1.25em;
  }
  .faq-question {
    font-size: 0.95em;
  }
  .faq-answer-inner {
    padding: 0 1.25em 1em 1.25em;
  }
}

@media (max-width: 400px) {
  .contact-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .bab-card-inner {
    padding: 0.55rem;
    gap: 0.5rem;
  }
  .bab-card-media {
    width: 95px;
    height: 95px;
    border-radius: 14px;
  }
  .bab-card-image {
    border-radius: 14px;
  }
  .suboption-item {
    padding: 0.35rem 0.45rem;
    gap: 0.35rem;
  }
  .suboption-title {
    font-size: 0.7rem;
  }
  .suboption-arrow {
    width: 18px;
    height: 18px;
  }
  .suboption-arrow svg {
    width: 10px;
    height: 10px;
  }
}
