/* ==========================================================================
   CompleteSEOTools — Enterprise SEMrush-Style UI/UX Stylesheet
   ========================================================================== */

:root {
  --cst-saas-navy: #0f172a;
  --cst-saas-dark: #1e293b;
  --cst-saas-orange: #ff642d;
  --cst-saas-green: #10b981;
  --cst-saas-blue: #3b82f6;
  --cst-saas-purple: #8b5cf6;
  --cst-saas-bg: #f8fafc;
  --cst-saas-border: #e2e8f0;
}

/* ==========================================================================
   HEADER & MEGA-MENU (SEMrush / SaaS Style)
   ========================================================================== */
.cst-tools-header {
  background: #ffffff;
  border-bottom: 1.5px solid var(--cst-saas-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.cst-tools-logo-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Mega Menu Dropdown */
.cst-nav-item-dropdown {
  position: relative;
}
.cst-nav-item-dropdown:hover .cst-mega-dropdown {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cst-mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -120px;
  width: 780px;
  background: #ffffff;
  border: 1.5px solid var(--cst-saas-border);
  border-radius: 10px;
  padding: 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  z-index: 9999;
  transition: all 0.2s ease;
}
.cst-mega-col h4 {
  font-family: var(--cst-font-main);
  font-size: 13px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cst-mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cst-mega-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}
.cst-mega-links a:hover {
  color: var(--cst-saas-green);
}
.cst-mega-links a i {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   SEMrush-STYLE HERO BANNER
   ========================================================================== */
.cst-saas-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--cst-saas-border);
  padding: 48px 0 54px;
  text-align: center;
}
.cst-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf5e9;
  color: #15803d;
  font-family: var(--cst-font-main);
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #bbf7d0;
}
.cst-saas-hero h1 {
  font-family: var(--cst-font-main);
  font-size: 42px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 0 0 14px 0;
}
.cst-saas-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 30px;
}

/* Hero Search Box */
.cst-saas-search-wrap {
  max-width: 620px;
  margin: 0 auto 24px;
  position: relative;
}
.cst-saas-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-family: var(--cst-font-main);
  font-size: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50px;
  outline: none;
  background: #ffffff;
  color: var(--cst-saas-navy);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.cst-saas-search-input:focus {
  border-color: var(--cst-saas-green);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.18);
}
.cst-saas-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

/* Fast Category Tabs Bar */
.cst-category-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cst-cat-tab {
  background: #ffffff;
  border: 1px solid var(--cst-saas-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cst-cat-tab:hover, .cst-cat-tab.active {
  background: var(--cst-saas-navy);
  color: #ffffff;
  border-color: var(--cst-saas-navy);
}

/* ==========================================================================
   FEATURED POWER TOOLS MATRIX (SEMrush Card Style)
   ========================================================================== */
.cst-featured-tools-section {
  padding: 40px 0 20px;
}
.cst-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.cst-section-title-row h2 {
  font-family: var(--cst-font-main);
  font-size: 24px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  margin: 0;
  letter-spacing: -0.3px;
}
.cst-view-all-link {
  font-family: var(--cst-font-main);
  font-size: 14px;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
}
.cst-view-all-link:hover { text-decoration: underline; }

.cst-power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cst-power-card {
  background: #ffffff;
  border: 1.5px solid var(--cst-saas-border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}
.cst-power-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cst-power-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.cst-power-card:hover::before {
  opacity: 1;
}
.cst-power-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cst-power-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cst-power-cat-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 12px;
}
.cst-power-card h3 {
  font-family: var(--cst-font-main);
  font-size: 18px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.cst-power-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 18px 0;
  flex-grow: 1;
}
.cst-power-card-action {
  font-family: var(--cst-font-main);
  font-size: 13.5px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   A–Z DIRECTORY INDEX STYLING
   ========================================================================== */
.cst-az-jump-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--cst-saas-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 24px 0 36px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.cst-az-letter-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--cst-font-main);
  font-size: 14px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  text-decoration: none;
  transition: all 0.15s ease;
}
.cst-az-letter-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.cst-az-letter-group {
  margin-bottom: 36px;
}
.cst-az-letter-header {
  font-family: var(--cst-font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  border-bottom: 2px solid var(--cst-saas-navy);
  padding-bottom: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cst-az-tools-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cst-az-tool-item {
  background: #ffffff;
  border: 1px solid var(--cst-saas-border);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cst-az-tool-item:hover {
  border-color: #10b981;
  background: #f8fafc;
  transform: translateX(3px);
}
.cst-az-tool-title {
  font-family: var(--cst-font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--cst-saas-navy);
}
.cst-az-tool-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: #eaf5e9;
  padding: 2px 8px;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .cst-power-grid, .cst-az-tools-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .cst-saas-hero h1 {
    font-size: 28px !important;
  }
  .cst-power-grid, .cst-az-tools-list {
    grid-template-columns: 1fr !important;
  }
  .cst-mega-dropdown {
    display: none !important;
  }
}


/* ==========================================================================
   CREDITCARDSLOGIN REFERENCE 8-CARD GRID & TABS (EXACT MATCH)
   ========================================================================== */
.refrens-section-header {
  text-align: center;
  margin: 36px 0 28px;
}
.refrens-section-title {
  font-family: var(--cst-font-main);
  font-size: 32px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.refrens-top-sublink {
  font-family: var(--cst-font-main);
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.refrens-top-sublink:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 8-Card Responsive Grid */
.refrens-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

/* Reference Card Styling (Exact Match) */
.refrens-tool-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: relative;
}
.refrens-tool-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.09);
}

.refrens-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.refrens-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.refrens-badge-group {
  display: flex;
  gap: 6px;
  align-items: center;
}
.refrens-tag-badge {
  font-family: var(--cst-font-main);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  text-transform: capitalize;
}

.refrens-card-title {
  font-family: var(--cst-font-main);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--cst-saas-navy);
  margin: 0 0 8px 0;
  line-height: 1.35;
}
.refrens-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

/* Feature Badges */
.refrens-feature-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.refrens-pill {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.refrens-card-action {
  font-family: var(--cst-font-main);
  font-size: 14px;
  font-weight: 800;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Bottom Large Pill Button */
.refrens-bottom-cta-wrap {
  text-align: center;
  margin: 30px 0 60px;
}
.refrens-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #006aff;
  color: #ffffff;
  font-family: var(--cst-font-main);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 106, 255, 0.28);
  transition: all 0.2s ease;
}
.refrens-bottom-cta-btn:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 106, 255, 0.38);
}

@media (max-width: 1200px) {
  .refrens-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .refrens-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .refrens-section-title {
    font-size: 24px !important;
  }
}
@media (max-width: 540px) {
  .refrens-tools-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   STANDARD ELEGANT FAQ ACCORDION (EXACT SPACING & HOVER)
   ========================================================================== */
.cst-tool-educational-content {
  margin-top: 36px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cst-single-layout {
  margin-bottom: 48px !important;
}

.cst-site-main {
  padding-bottom: 0 !important;
}

.cst-faq-accordion {
  display: flex;
  flex-direction: column;
  margin: 18px 0 0 0 !important;
  border-top: 1px solid #e2e8f0;
}

.cst-faq-item {
  border-bottom: 1px solid #e2e8f0;
  background: transparent !important;
  transition: all 0.2s ease;
}

.cst-faq-header,
button.cst-faq-header,
.cst-faq-header:focus,
button.cst-faq-header:focus,
.cst-faq-header:active,
button.cst-faq-header:active,
.cst-faq-header:visited,
button.cst-faq-header:visited {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 4px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  text-align: left !important;
  cursor: pointer !important;
  font-family: var(--cst-font-main) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
  transition: color 0.15s ease !important;
}

.cst-faq-header span {
  flex-grow: 1;
  padding-right: 14px;
  color: inherit !important;
}

.cst-faq-header:hover,
button.cst-faq-header:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: #10b981 !important;
}

.cst-faq-header:hover span {
  color: #10b981 !important;
}

.cst-faq-item.active .cst-faq-header,
.cst-faq-item.active button.cst-faq-header {
  color: #0f172a !important;
  padding-bottom: 10px !important;
}

.cst-faq-arrow {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.25s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.cst-faq-header:hover .cst-faq-arrow {
  color: #10b981;
}

.cst-faq-item.active .cst-faq-arrow {
  transform: rotate(180deg);
  color: #10b981;
}

.cst-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
  padding: 0 4px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  background: transparent !important;
}

.cst-faq-item.active .cst-faq-body {
  max-height: 800px;
  padding: 0 4px 18px 4px;
}

.cst-faq-body p {
  margin: 0;
  color: #475569 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}
