/* ==========================================================================
   Platform Al-Fath (منصة الفتح) - About Us, Authority Hub & FAQ Accordion Styles
   ========================================================================== */

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
}

.about-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.about-card-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
}

body[dir="ltr"] .about-card-box::before {
  right: auto;
  left: 0;
}

.about-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-box-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.value-item svg {
  color: var(--secondary);
}

/* Legacy about-art-card replaced by modern equal-height card */

/* ==========================================================================
   About Section - SEO Authority Hub & logo4.png Styling
   ========================================================================== */
.about-art-logo {
  max-width: 250px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto 18px !important;
  display: block !important;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.about-seo-hub {
  margin-top: 45px;
  padding: 32px 36px;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.32);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(2, 54, 56, 0.05);
}

@media (max-width: 768px) {
  .about-seo-hub {
    padding: 22px 18px;
    margin-top: 30px;
  }
}

.about-seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(205, 159, 92, 0.12);
  color: #8c6426;
  border: 1px solid rgba(205, 159, 92, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-seo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 16px;
  line-height: 1.5;
}

.about-seo-body p {
  font-size: 0.94rem;
  color: #4a5568;
  line-height: 1.85;
  margin: 0 0 14px;
}

.about-seo-body p:last-child {
  margin-bottom: 0;
}

.about-seo-body strong {
  color: #023638;
  font-weight: 800;
}

.about-seo-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.seo-pillar-card {
  background: #fbfbf9;
  border: 1.2px solid rgba(205, 159, 92, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.seo-pillar-card:hover {
  border-color: #CD9F5C;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(2, 54, 56, 0.08);
}

.seo-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(205, 159, 92, 0.14);
  border: 1px solid rgba(205, 159, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.seo-pillar-title {
  font-size: 1rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 6px;
}

.seo-pillar-desc {
  font-size: 0.84rem;
  color: #557072;
  line-height: 1.6;
  margin: 0;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.about-overview-card {
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.32);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(2, 54, 56, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.about-main-text {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.85;
  margin: 0 0 18px;
}

.about-main-text strong {
  color: #023638;
}

.about-values-triad {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-triad-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fbfbf9;
  border: 1.2px solid rgba(205, 159, 92, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.25s ease;
}

.about-triad-item:hover {
  border-color: #CD9F5C;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 54, 56, 0.06);
}

.about-triad-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(205, 159, 92, 0.14);
  border: 1px solid rgba(205, 159, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #CD9F5C;
}

.about-triad-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 4px;
}

.about-triad-content p {
  font-size: 0.85rem;
  color: #557072;
  line-height: 1.6;
  margin: 0;
}

/* Islamic Official Logo Card - Equal Height to the right column */
.about-illustration-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-art-card {
  position: relative;
  background: linear-gradient(145deg, #02292b 0%, #033c3e 48%, #011e20 100%);
  border-radius: 18px;
  padding: 28px 24px;
  color: #ffffff;
  text-align: center;
  border: 1.5px solid rgba(205, 159, 92, 0.45);
  box-shadow: 0 8px 24px rgba(2, 54, 56, 0.08), 0 0 25px rgba(205, 159, 92, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.about-art-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(205, 159, 92, 0.16) 0%, transparent 65%),
    radial-gradient(circle at 50% 85%, rgba(205, 159, 92, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.about-art-card > * {
  position: relative;
  z-index: 2;
}

.about-art-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(205, 159, 92, 0.15);
  border: 1px solid rgba(205, 159, 92, 0.4);
  border-radius: 20px;
  color: #CD9F5C;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.about-art-badge svg {
  color: #CD9F5C;
}

.about-art-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex: 1;
}

.about-art-logo {
  max-width: 175px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.about-art-card:hover .about-art-logo {
  transform: scale(1.03);
}

.about-art-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 75%;
  margin: 0 auto;
}

.art-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 159, 92, 0.45), transparent);
}

.art-divider-diamond {
  color: #CD9F5C;
  font-size: 0.65rem;
  line-height: 1;
}

.about-art-quote {
  font-family: var(--font-quran, 'Amiri', 'Traditional Arabic', serif);
  font-size: 1.35rem;
  line-height: 1.85;
  color: #ffffff;
  margin: 0;
  padding: 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.about-art-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-top: 1px dashed rgba(205, 159, 92, 0.32);
  padding-top: 14px;
  width: 90%;
}

.about-art-author {
  font-size: 0.88rem;
  color: #CD9F5C;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.about-art-tagline {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.about-seo-faq {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1.2px dashed rgba(205, 159, 92, 0.35);
}

.about-faq-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #023638;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-faq-intro {
  font-size: 0.92rem;
  color: #557072;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* FAQ Search Box */
.faq-search-wrapper {
  margin: 0 0 20px;
  position: relative;
}

.faq-search-box {
  display: flex;
  align-items: center;
  background: #fbfbf9;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(2, 54, 56, 0.04);
}

.faq-search-box:focus-within {
  border-color: #CD9F5C;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 54, 56, 0.08);
}

.faq-search-icon {
  flex-shrink: 0;
  color: #CD9F5C;
}

.faq-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: #023638;
  width: 100%;
}

.faq-search-input::placeholder {
  color: #8c9da0;
}

.faq-search-clear {
  background: none;
  border: none;
  color: #8c9da0;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  display: none;
  line-height: 1;
}

.faq-search-clear.active {
  display: block;
}

.faq-search-count {
  display: none;
  font-size: 0.82rem;
  color: #CD9F5C;
  font-weight: 700;
  margin-top: 8px;
  padding: 0 14px;
}

.faq-search-count.active {
  display: block;
}

/* FAQ Category Tabs */
.faq-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.faq-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f9f9;
  border: 1.2px solid rgba(205, 159, 92, 0.28);
  color: #023638;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.faq-tab-btn svg {
  color: #CD9F5C;
  transition: color 0.22s ease;
}

.faq-tab-btn:hover {
  border-color: #CD9F5C;
  background: rgba(205, 159, 92, 0.12);
  color: #023638;
}

.faq-tab-btn.active {
  background: #023638;
  color: #CD9F5C;
  border-color: #CD9F5C;
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.12);
}

.faq-tab-btn.active svg {
  color: #CD9F5C;
}

.faq-tab-count {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(205, 159, 92, 0.2);
  color: inherit;
  padding: 1px 6px;
  border-radius: 10px;
}

.faq-group-pane {
  margin-bottom: 22px;
  transition: opacity 0.2s ease;
}

.faq-group-pane.hidden {
  display: none !important;
}

.faq-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #023638;
  margin: 18px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(205, 159, 92, 0.22);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-group-title svg {
  color: #CD9F5C;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ Smooth Animation & Beautiful Accordion Styles */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1.2px solid rgba(205, 159, 92, 0.25);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 2px 8px rgba(2, 54, 56, 0.03);
  will-change: height;
}

.faq-item:hover {
  border-color: rgba(205, 159, 92, 0.55);
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.08);
}

.faq-item[open] {
  border-color: #CD9F5C;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 54, 56, 0.06);
}

/* Remove default browser disclosure marker completely */
summary.faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #023638 !important;
  cursor: pointer !important;
  user-select: none !important;
  list-style: none !important;
  gap: 16px !important;
  outline: none !important;
  background: transparent !important;
  margin: 0 !important;
}

summary.faq-question::-webkit-details-marker {
  display: none !important;
}

summary.faq-question::marker {
  display: none !important;
  content: '' !important;
}

.faq-question-text {
  flex: 1;
  text-align: right;
  line-height: 1.5;
  color: #023638;
}

/* Mathematically Centered SVG Toggle Button */
.faq-icon-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(205, 159, 92, 0.12);
  color: #CD9F5C;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  transition: all 0.28s ease;
  border: 1px solid rgba(205, 159, 92, 0.25);
}

.faq-icon-toggle svg {
  width: 13px;
  height: 13px;
  display: block;
  transform-origin: 50% 50%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: #CD9F5C;
}

.faq-item:hover .faq-icon-toggle {
  background: rgba(205, 159, 92, 0.2);
  border-color: #CD9F5C;
}

.faq-item[open] .faq-icon-toggle {
  background: #023638;
  color: #CD9F5C;
  border-color: #023638;
}

.faq-item[open] .faq-icon-toggle svg {
  transform: rotate(45deg);
  stroke: #CD9F5C;
}

/* FAQ Answer Content */
.faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 0.92rem;
  color: #4e6567;
  line-height: 1.8;
  border-top: 1px dashed rgba(205, 159, 92, 0.22);
  margin-top: 2px;
  padding-top: 14px;
}

.faq-answer p {
  margin: 0;
  color: #4e6567;
}