/* ============================================================
   FilesConverter.in — Global Design System
   Version: 2.0 | Bootstrap 5 Only | Mobile-First
   ============================================================ */

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
  /* Brand Colors */
  --fc-primary: #e74c3c;
  --fc-primary-dark: #c0392b;
  --fc-primary-light: #fdf2f1;
  --fc-dark: #1a1a2e;
  --fc-body: #333;
  --fc-muted: #6c757d;
  --fc-light-bg: #f8f9fa;
  --fc-white: #ffffff;
  --fc-border: #e9ecef;
  --fc-border-light: #f0f0f0;

  /* Theme Colors (defaults — overridden per theme) */
  --theme-color: #0d6efd;
  --theme-color-dark: #0a58ca;
  --theme-color-light: rgba(13, 110, 253, 0.1);
  --theme-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);

  /* Typography */
  --fc-font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --fc-font-mono: "Consolas", "Monaco", "Courier New", monospace;

  /* Spacing */
  --fc-section-py: 3rem;
  --fc-card-padding: 2rem;
  --fc-card-padding-lg: 2.5rem;

  /* Borders & Shadows */
  --fc-radius: 14px;
  --fc-radius-lg: 16px;
  --fc-radius-sm: 10px;
  --fc-radius-pill: 50px;
  --fc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --fc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --fc-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --fc-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --fc-transition: all 0.2s ease;
  --fc-transition-slow: all 0.3s ease;
}

/* ===== Theme Color Overrides ===== */
.whatsapp-theme {
  --theme-color: #25d366;
  --theme-color-dark: #128c7e;
  --theme-color-light: rgba(37, 211, 102, 0.1);
  --theme-gradient: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}
.pdf-theme {
  --theme-color: #e74c3c;
  --theme-color-dark: #c0392b;
  --theme-color-light: rgba(231, 76, 60, 0.1);
  --theme-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
.text-theme {
  --theme-color: #e67e22;
  --theme-color-dark: #d35400;
  --theme-color-light: rgba(230, 126, 34, 0.1);
  --theme-gradient: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}
.upi-theme {
  --theme-color: #5f259f;
  --theme-color-dark: #3d1a6d;
  --theme-color-light: rgba(95, 37, 159, 0.1);
  --theme-gradient: linear-gradient(135deg, #5f259f 0%, #3d1a6d 100%);
}
.image-theme {
  --theme-color: #3498db;
  --theme-color-dark: #2980b9;
  --theme-color-light: rgba(52, 152, 219, 0.1);
  --theme-gradient: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
.seo-theme {
  --theme-color: #1abc9c;
  --theme-color-dark: #16a085;
  --theme-color-light: rgba(26, 188, 156, 0.1);
  --theme-gradient: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}
.business-theme {
  --theme-color: #34495e;
  --theme-color-dark: #2c3e50;
  --theme-color-light: rgba(52, 73, 94, 0.1);
  --theme-gradient: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* ===== Global Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fc-font);
  background-color: var(--fc-light-bg);
  color: var(--fc-body);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* GPU-accelerated animations */
@media (prefers-reduced-motion: no-preference) {
  .tool-card,
  .category-tool-card,
  .btn,
  .nav-link,
  .card,
  .faq-item {
    transition: var(--fc-transition);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: var(--fc-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--fc-primary-dark);
  text-decoration: underline;
}

ol {
  padding-left: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* ===== Tables ===== */
.table-bordered,
.table-bordered th,
.table-bordered td,
.table-bordered tr,
.table-bordered thead th,
.table-bordered tbody td {
  border: 1px solid #dee2e6 !important;
  border-collapse: collapse !important;
}

th,
td {
  padding: 0.625rem 0.75rem;
}

th {
  background-color: var(--fc-light-bg);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  max-width: 100%;
}

.table-responsive td code,
.table-responsive th code {
  white-space: normal;
  word-break: break-word;
}

/* Inline code overflow fix (global) */
code {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-size: 0.875em;
}

.seo-article code,
.content-section code,
.tool-section code {
  background: var(--fc-light);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  border: 1px solid var(--fc-border);
  color: var(--fc-dark);
  display: inline;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  padding: 0.625rem 0;
  background: var(--fc-white) !important;
  border-bottom: 1px solid var(--fc-border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  z-index: 1030;
}

.brand-icon {
  font-size: 1.8rem;
}

.brand-icon img {
  width: 220px;
  border-radius: var(--fc-radius-sm);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fc-dark);
}

.nav-link {
  color: var(--fc-body) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem !important;
  border-radius: 8px;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--fc-primary) !important;
  background-color: rgba(231, 76, 60, 0.04);
}

.nav-link.active,
.nav-item.active .nav-link {
  color: var(--fc-primary) !important;
}

.navbar-toggler {
  border: 2px solid var(--fc-border);
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--fc-body);
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--fc-light-bg);
  color: var(--fc-primary);
}

/* ===== Breadcrumb ===== */
.breadcrumb-section {
  background-color: var(--fc-white);
  border-bottom: 1px solid var(--fc-border);
}

nav[aria-label="breadcrumb"].bg-light {
  background-color: var(--fc-white) !important;
  border-bottom: 1px solid var(--fc-border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  font-size: 0.85rem;
}

.breadcrumb-item {
  font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-right: 0.5rem;
  color: var(--fc-muted);
}

.breadcrumb-item a {
  color: var(--theme-color, #0d6efd);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--theme-color-dark, #0a58ca);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--fc-muted);
}

/* ===== Hero Section (Homepage) ===== */
.hero-section {
  background: linear-gradient(
    180deg,
    var(--fc-white) 0%,
    var(--fc-light-bg) 100%
  );
  padding: 4rem 0 2rem;
}

.hero-section h1 {
  font-size: 2.75rem;
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fc-dark);
}

.hero-section .hero-title {
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.25;
  color: var(--fc-dark);
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 1100px;
}

.hero-section .lead {
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fc-muted);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

/* ===== Filter Tabs ===== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.filter-tabs .btn {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--fc-radius-pill);
  text-decoration: none;
  transition: var(--fc-transition);
}

.filter-tabs .btn-outline-secondary {
  border-color: var(--fc-border);
  color: var(--fc-muted);
  background-color: transparent;
}

.filter-tabs .btn-outline-secondary:hover {
  background-color: var(--fc-light-bg);
  border-color: #ccc;
  color: var(--fc-body);
  transform: translateY(-1px);
}

.filter-tabs .btn-dark,
.filter-tabs .btn-dark.active {
  background-color: var(--fc-dark);
  border-color: var(--fc-dark);
  color: var(--fc-white);
  font-weight: 600;
}

/* ===== Trust Line ===== */
.trust-line {
  font-size: 0.9rem;
  color: var(--fc-muted);
  margin-top: 0.75rem;
}

.trust-line svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  color: #28a745;
}

/* ===== Trust Badges (Tool Pages) ===== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--fc-muted);
  font-weight: 500;
}

.trust-badge-item svg {
  width: 20px;
  height: 20px;
  color: #28a745;
  flex-shrink: 0;
}

/* ===== Explore Link ===== */
.explore-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fc-body);
  text-decoration: none;
}

.explore-link:hover {
  color: var(--fc-primary);
  text-decoration: none;
}

.explore-link .arrow {
  display: inline-block;
  animation: bounce 1.5s infinite;
}

/* ===== Tools Grid Section (Homepage) ===== */
.tools-section {
  padding-top: 1.5rem;
}

.tools-section h3 {
  font-weight: 700;
  font-size: 1.35rem;
}

.tool-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tool-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.tool-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--fc-border);
  position: relative;
  cursor: pointer;
  transform: translateY(0) translateZ(0);
  backface-visibility: hidden;
  transition: var(--fc-transition);
}

.tool-card:hover {
  box-shadow: var(--fc-shadow-hover);
  transform: translateY(-4px) translateZ(0);
  border-color: var(--fc-border);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tool-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fc-dark);
}

.tool-description {
  font-size: 0.875rem;
  color: var(--fc-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Tool Icon Colors ===== */
.whatsapp-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
}
.merge-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
}
.split-icon {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  color: #fff;
}
.compress-icon {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  color: #fff;
}
.word-icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: #fff;
}
.powerpoint-icon {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: #fff;
}
.excel-icon {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  color: #fff;
}
.word-to-pdf-icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: #fff;
}
.ppt-to-pdf-icon {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: #fff;
}
.excel-to-pdf-icon {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  color: #fff;
}
.edit-icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: #fff;
}
.rotate-icon {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #fff;
}
.unlock-icon {
  background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%);
  color: #fff;
}
.protect-icon {
  background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
  color: #fff;
}
.sign-icon {
  background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
  color: #636e72;
}
.watermark-icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: #fff;
}
.pagenumber-icon {
  background: linear-gradient(135deg, #ffeaa7 0%, #f39c12 100%);
  color: #fff;
}

/* New Badge */
.new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #d4edda;
  color: #155724;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Tool Page Styles ===== */
.tool-section {
  background: linear-gradient(
    180deg,
    var(--fc-white) 0%,
    var(--fc-light-bg) 100%
  );
  padding: var(--fc-section-py) 0;
  min-height: fit-content !important;
  padding-bottom: 2rem;
  margin-bottom: 1.25rem;
}

.tool-page-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
  padding: var(--fc-card-padding-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.tool-header .tool-icon-large {
  width: 70px;
  height: 70px;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.tool-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fc-dark);
}

.tool-header p {
  color: var(--fc-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Upload Area */
#uploadArea,
.upload-area,
.drop-zone {
  border: 2px dashed var(--theme-color, #e74c3c);
  background: var(--theme-color-light, #fdf2f1);
  cursor: pointer;
  border-radius: var(--fc-radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--fc-transition);
}

#uploadArea:hover,
.upload-area:hover,
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--theme-color-dark, #c0392b);
  transform: scale(1.01);
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--fc-body);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--fc-transition);
  background: var(--fc-white);
}

.form-control:focus {
  border-color: var(--theme-color, #0d6efd);
  box-shadow: 0 0 0 3px var(--theme-color-light, rgba(13, 110, 253, 0.15));
  outline: none;
}

.form-control-lg {
  padding: 0.875rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--fc-radius-sm);
}

.form-select {
  border: 2px solid var(--fc-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  height: auto;
  font-size: 0.95rem;
  transition: var(--fc-transition);
}

.form-select:focus {
  border-color: var(--theme-color, #0d6efd);
  box-shadow: 0 0 0 3px var(--theme-color-light, rgba(13, 110, 253, 0.15));
}

.input-group-text {
  background: var(--fc-dark);
  color: var(--fc-white);
  border: none;
  font-weight: 700;
  padding: 0.625rem 0.75rem;
  border-radius: var(--fc-radius-sm) 0 0 var(--fc-radius-sm);
}

.input-group .form-control {
  border-radius: 0 var(--fc-radius-sm) var(--fc-radius-sm) 0;
  border-left: none;
}

.input-group .form-control:focus {
  border-left: 2px solid var(--theme-color, #0d6efd);
}

textarea.form-control {
  border-radius: var(--fc-radius-sm);
  resize: vertical;
  min-height: 100px;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 500;
  border-radius: var(--fc-radius-sm);
  transition: var(--fc-transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--fc-radius-sm);
}

.btn-danger {
  background-color: var(--fc-primary);
  border-color: var(--fc-primary);
  font-weight: 600;
}

.btn-danger:hover {
  background-color: var(--fc-primary-dark);
  border-color: var(--fc-primary-dark);
  transform: translateY(-2px);
}

.btn-primary-tool {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  border: none;
  color: var(--fc-white);
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--fc-radius-sm);
  transition: var(--fc-transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary-tool:hover {
  color: var(--fc-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(0.92);
}

.btn-primary-tool:active {
  transform: translateY(0);
}

.btn-copy {
  background: var(--fc-muted);
  border: none;
  color: var(--fc-white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--fc-radius-sm);
  transition: var(--fc-transition);
}

.btn-copy:hover {
  background: #5a6268;
  color: var(--fc-white);
  transform: translateY(-2px);
}

.btn-copy.copied {
  background: #28a745;
}

.btn-open {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  border: none;
  color: var(--fc-white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--fc-radius-sm);
  transition: var(--fc-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-open:hover {
  color: var(--fc-white);
  transform: translateY(-2px);
  filter: brightness(0.92);
}

/* ===== Output Section ===== */
.output-section {
  background: linear-gradient(
    135deg,
    var(--fc-light-bg) 0%,
    var(--fc-border) 100%
  );
  border-radius: var(--fc-radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: none;
  border: 1px solid var(--fc-border);
}

.output-section.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.output-section h5 {
  font-weight: 600;
  color: var(--fc-body);
  margin-bottom: 1rem;
}

.generated-link {
  background: var(--fc-white);
  border: 2px solid var(--theme-color, #0d6efd);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  word-break: break-all;
  font-family: var(--fc-font-mono);
  font-size: 0.9rem;
  color: var(--theme-color-dark, #0a58ca);
  margin-bottom: 1rem;
}

.output-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== Error & Hint Messages ===== */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  background: #fff5f5;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #dc3545;
}

.error-message.show {
  display: block;
}

.hint-text {
  font-size: 0.85rem;
  color: var(--fc-muted);
  margin-top: 0.5rem;
}

/* ===== Content Section (Tool Pages) ===== */
.content-section {
  padding: var(--fc-section-py) 0;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-bottom: 0.75rem;
}

.content-section p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== FAQ Items ===== */
.faq-item {
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--fc-shadow-sm);
  border: 1px solid var(--fc-border-light);
  transition: var(--fc-transition);
}

.faq-item:hover {
  box-shadow: var(--fc-shadow);
}

.faq-item h3,
.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-bottom: 0.625rem;
}

.faq-item p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== Category Page Styles ===== */
.category-hero {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  padding: 3.5rem 0;
  color: var(--fc-white);
  text-align: center;
}

.category-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.category-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.category-hero .badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--fc-white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.tools-grid {
  padding: 3rem 0;
  background: var(--fc-light-bg);
}

.category-tool-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--fc-border);
  transition: var(--fc-transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--fc-shadow-hover);
  border-color: var(--theme-color, #0d6efd);
  color: inherit;
  text-decoration: none;
}

.category-tool-card .tool-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--fc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  color: var(--fc-white);
}

.category-tool-card .tool-icon svg {
  width: 28px;
  height: 28px;
}

.category-tool-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--fc-dark);
}

.category-tool-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.category-tool-card .tool-status {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

.category-tool-card .tool-status.available {
  background: #d4edda;
  color: #155724;
}

.category-tool-card .tool-status.coming-soon {
  background: #fff3cd;
  color: #856404;
}

/* ===== Use Case Cards ===== */
.use-case-card {
  background: var(--fc-light-bg);
  border-radius: var(--fc-radius);
  padding: 1.5rem;
  border-left: 4px solid var(--theme-color, #0d6efd);
  transition: var(--fc-transition);
}

.use-case-card:hover {
  box-shadow: var(--fc-shadow-sm);
}

.use-case-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fc-body);
  margin-bottom: 0.625rem;
}

.use-case-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  padding: 2.5rem 0;
  color: var(--fc-white);
  text-align: center;
}

.stat-item {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--fc-radius-sm);
  backdrop-filter: blur(4px);
}

.stat-item .h3,
.stat-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-item .p,
.stat-item p {
  opacity: 0.9;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== Hero Stats Badges ===== */
.hero-stats {
  margin-top: 1.5rem;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: var(--fc-radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.stat-badge .stat-number {
  font-weight: 700;
  font-size: 1.15rem;
}

.stat-badge .stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ===== SEO Content Section ===== */
.seo-content-section {
  background-color: var(--fc-white);
  border-top: 1px solid var(--fc-border);
  padding: var(--fc-section-py) 0;
}

.seo-content-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 1.25rem;
}

.seo-content-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.seo-content-section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-bottom: 0.5rem;
}

.seo-content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 1rem;
}

.seo-content-section .benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-content-section .benefits-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  font-size: 1rem;
  color: #555;
  border-bottom: 1px solid var(--fc-border-light);
}

.seo-content-section .benefits-list li:last-child {
  border-bottom: none;
}

.seo-content-section .benefits-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

.seo-content-section .benefits-list li strong {
  color: var(--fc-dark);
}

.faq-section .faq-item {
  background: var(--fc-light-bg);
  border-radius: var(--fc-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-section .faq-item:last-child {
  margin-bottom: 0;
}

.faq-section .faq-item h4 {
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--fc-dark);
}

.faq-section .faq-item p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== Related Tools Section ===== */
.related-tools-section {
  background-color: var(--fc-light-bg);
  padding: var(--fc-section-py) 0;
}

.related-tools-section h2,
.popular-tools-section h2 {
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 1.5rem;
}

.related-tool-card .card {
  transition: var(--fc-transition);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  overflow: hidden;
}

.related-tool-card .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fc-shadow) !important;
}

.related-tool-card .card-body {
  padding: 1rem;
  border-radius: var(--fc-radius);
}

.related-tool-card .card-title {
  color: var(--fc-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.related-tool-card .tool-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.related-tool-card .tool-icon svg {
  width: 36px;
  height: 36px;
}

/* ===== Popular Tools Section ===== */
.popular-tools-section {
  background-color: var(--fc-white);
  padding: var(--fc-section-py) 0;
}

.popular-tools-section .card {
  transition: var(--fc-transition);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
}

.popular-tools-section .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fc-shadow-sm) !important;
}

.popular-tools-section .card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fc-dark);
}

.popular-tools-section .tool-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.popular-tools-section .tool-icon svg {
  width: 36px;
  height: 36px;
}

.popular-tools-section .btn-outline-primary {
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 6px 16px;
}

/* ===== Footer ===== */
.footer-section {
  margin-top: 0;
  background: var(--fc-dark) !important;
}

.footer-section h5,
.footer-section h6 {
  font-weight: 600;
  color: var(--fc-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.625rem;
}

.footer-section ul li a {
  color: #adb5bd !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--fc-white) !important;
  text-decoration: none;
}

.footer-logo {
  width: 200px;
  border: 2px solid var(--fc-primary);
  border-radius: var(--fc-radius-sm);
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #adb5bd;
  transition: var(--fc-transition);
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--fc-white) !important;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.social-icons a svg {
  width: 16px;
  height: 16px;
}

.footer-section .text-muted {
  color: #adb5bd !important;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-section a {
  color: #adb5bd;
}

.footer-section a:hover {
  color: var(--fc-white);
  text-decoration: none;
}

/* ===== WhatsApp Theme Overrides ===== */
.whatsapp-theme .form-control:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.whatsapp-theme .input-group-text {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.whatsapp-theme .input-group .form-control:focus {
  border-left: 2px solid #25d366;
}

.whatsapp-theme .btn-primary-tool {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-theme .btn-primary-tool:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-theme .btn-open {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.whatsapp-theme .btn-open:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

.whatsapp-theme .generated-link {
  border-color: #25d366;
  color: #128c7e;
}

.whatsapp-theme .tool-page-card {
  border: 1px solid rgba(37, 211, 102, 0.08);
}

/* ===== Ad Placeholder ===== */
.ad-placeholder {
  background: var(--fc-light-bg);
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 1rem;
  text-align: center;
  color: var(--fc-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--fc-primary);
  padding: 3rem 0;
  text-align: center;
  color: var(--fc-white);
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  color: var(--fc-white);
}

.cta-section p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-section .btn {
  background: var(--fc-white);
  color: var(--fc-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--fc-radius-sm);
  border: none;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Error Pages ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-light-bg);
  text-align: center;
  padding: 2rem;
}

.error-page .error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--fc-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--fc-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-page .btn {
  background: var(--fc-primary);
  color: var(--fc-white);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--fc-radius-sm);
}

.error-page .btn:hover {
  background: var(--fc-primary-dark);
  transform: translateY(-2px);
}

/* ===== Static Pages (About, Contact, Privacy, Terms) ===== */
.static-page-section {
  padding: var(--fc-section-py) 0;
}

.static-page-card {
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-sm);
  padding: var(--fc-card-padding-lg);
  border: 1px solid var(--fc-border);
}

.static-page-card h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-bottom: 1.5rem;
}

.static-page-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.static-page-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.static-page-card p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.static-page-card ul,
.static-page-card ol {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== Contact Page ===== */
.contact-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.contact-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(111, 66, 193, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.contact-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.contact-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.contact-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.contact-content-section {
  padding: 3rem 0 4rem;
  background: #f8f9fa;
}

/* Info Cards */
.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}
.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact-info-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.contact-email-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.contact-email-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}
.contact-highlight {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-info-card p {
  font-size: 0.88rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Form Wrapper */
.contact-form-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}
.contact-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.contact-section-title svg {
  color: #0d6efd;
  flex-shrink: 0;
}
.contact-section-desc {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Form Elements */
.contact-form-group {
  margin-bottom: 0;
}
.contact-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  display: block;
}
.contact-input-wrapper {
  position: relative;
}
.contact-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
  z-index: 2;
}
.contact-input {
  padding: 0.75rem 0.75rem 0.75rem 2.75rem !important;
  border-radius: 12px !important;
  border: 1.5px solid #dee2e6 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  background: #fafbfc !important;
  height: auto !important;
}
.contact-input:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
  background: #fff !important;
}
.contact-input::placeholder {
  color: #adb5bd;
}
.contact-textarea {
  padding: 0.875rem 1rem !important;
  border-radius: 12px !important;
  border: 1.5px solid #dee2e6 !important;
  font-size: 0.95rem !important;
  resize: vertical !important;
  min-height: 140px;
  transition: all 0.2s ease !important;
  background: #fafbfc !important;
}
.contact-textarea:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
  background: #fff !important;
}
.contact-textarea::placeholder {
  color: #adb5bd;
}

/* Submit Button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}
.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.4);
}
.contact-submit-btn:active {
  transform: translateY(0);
}
.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.contact-form-status {
  margin-top: 1.25rem;
}
.contact-success-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #0f5132;
  line-height: 1.5;
}
.contact-success-msg svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-success-msg a {
  color: #0a58ca;
  font-weight: 600;
}

/* Feedback Cards */
.contact-feedback-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.contact-feedback-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}
.contact-feedback-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact-feedback-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.contact-feedback-card p {
  font-size: 0.88rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Custom FAQ */
.contact-faq-section {
  margin-bottom: 2.5rem;
}
.contact-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-faq-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.contact-faq-item:hover {
  border-color: #c5cdd5;
}
.contact-faq-item.active {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.08);
}
.contact-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  transition: color 0.2s;
}
.contact-faq-btn:hover {
  color: #0d6efd;
}
.contact-faq-chevron {
  flex-shrink: 0;
  color: #adb5bd;
  transition: transform 0.3s ease;
}
.contact-faq-item.active .contact-faq-chevron {
  transform: rotate(180deg);
  color: #0d6efd;
}
.contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 1.5rem;
}
.contact-faq-item.active .contact-faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.contact-faq-answer p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}
.contact-faq-answer a {
  color: #0d6efd;
  font-weight: 500;
}

/* CTA Box */
.contact-cta-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 1rem;
}
.contact-cta-box h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-cta-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.contact-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: rgba(13, 110, 253, 0.8);
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.contact-cta-link:hover {
  background: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
  color: #fff;
}

/* ===== Responsive ===== */

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 3rem;
  }
}

/* Tablet & below (991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0 1.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .hero-title {
    font-size: 2rem;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.625rem 0 !important;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .category-hero {
    padding: 2.5rem 0;
  }

  .category-hero h1 {
    font-size: 1.75rem;
  }
}

/* Mobile (767px) */
@media (max-width: 767px) {
  :root {
    --fc-section-py: 2rem;
    --fc-card-padding: 1.25rem;
    --fc-card-padding-lg: 1.5rem;
  }

  .hero-section h1,
  .hero-section .hero-title {
    font-size: 1.6rem;
  }

  .hero-section .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .filter-tabs .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .tool-card {
    padding: 1.25rem;
  }

  .tool-section {
    padding: 2rem 0;
  }

  .tool-page-card {
    padding: var(--fc-card-padding);
    border-radius: var(--fc-radius);
  }

  .tool-header h1 {
    font-size: 1.5rem;
  }

  .tool-header p {
    font-size: 0.95rem;
  }

  .tool-header .tool-icon-large {
    width: 56px;
    height: 56px;
  }

  .btn-primary-tool {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  .output-buttons {
    flex-direction: column;
  }

  .output-buttons .btn,
  .output-buttons .btn-open {
    width: 100%;
    text-align: center;
  }

  .generated-link {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .category-hero h1 {
    font-size: 1.5rem;
  }

  .category-hero p {
    font-size: 0.95rem;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .content-section {
    padding: 2rem 0;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .seo-content-section h2 {
    font-size: 1.35rem;
  }

  .seo-content-section h3 {
    font-size: 1.05rem;
  }

  .faq-item {
    padding: 1rem 1.25rem;
  }

  .related-tools-section,
  .popular-tools-section {
    padding: 2rem 0;
  }

  .related-tools-section h2,
  .popular-tools-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .related-tool-card .card-body,
  .popular-tools-section .card-body {
    padding: 0.875rem;
  }

  .related-tool-card .card-title,
  .popular-tools-section .card-title {
    font-size: 0.85rem;
  }

  .related-tool-card .tool-icon svg,
  .popular-tools-section .tool-icon svg {
    width: 28px;
    height: 28px;
  }

  .trust-badges {
    gap: 0.75rem;
  }

  .trust-badge-item {
    font-size: 0.8rem;
  }

  .cta-section h2 {
    font-size: 1.35rem;
  }

  .static-page-card {
    padding: 1.5rem;
  }

  .static-page-card h1 {
    font-size: 1.5rem;
  }

  /* Contact page tablet */
  .contact-hero h1 {
    font-size: 2rem;
  }
  .contact-hero-sub {
    font-size: 1rem;
  }
  .contact-form-wrapper {
    padding: 1.75rem;
  }
  .contact-cta-box {
    padding: 2rem 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section .social-icons {
    justify-content: center;
  }
}

/* Small mobile (575px) */
@media (max-width: 575px) {
  .hero-section {
    padding: 2rem 0 1rem;
  }

  .hero-section h1,
  .hero-section .hero-title {
    font-size: 1.35rem;
  }

  .brand-icon img {
    width: 180px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .tools-section .col-sm-6 {
    width: 100%;
    flex: 0 0 100%;
  }

  .tool-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .tool-card .tool-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .tool-card .tool-content {
    flex: 1;
  }

  .tool-card .tool-title {
    margin-bottom: 0.375rem;
  }

  .tool-card .tool-description {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .seo-content-section h2 {
    font-size: 1.25rem;
  }

  .seo-content-section h3 {
    font-size: 1rem;
  }

  .seo-content-section p {
    font-size: 0.9rem;
  }

  .faq-section .faq-item {
    padding: 1rem;
  }

  .table-responsive table {
    font-size: 0.9rem;
  }

  .category-tool-card {
    padding: 1.25rem;
  }

  .footer-logo {
    width: 200px;
    margin: 0 auto;
  }

  /* Contact page mobile */
  .contact-hero {
    padding: 2.5rem 0 2rem;
  }
  .contact-hero h1 {
    font-size: 1.6rem;
  }
  .contact-hero-icon {
    width: 56px;
    height: 56px;
  }
  .contact-hero-sub {
    font-size: 0.92rem;
  }
  .contact-content-section {
    padding: 2rem 0 3rem;
  }
  .contact-form-wrapper {
    padding: 1.25rem;
    border-radius: 14px;
  }
  .contact-section-title {
    font-size: 1.25rem;
  }
  .contact-info-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-feedback-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-faq-btn {
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
  }
  .contact-faq-item.active .contact-faq-answer {
    padding: 0 1.1rem 1rem;
  }
  .contact-cta-box {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .contact-cta-box h3 {
    font-size: 1.15rem;
  }
}

/* ===== SEO Article Content (Tool Pages) ===== */
.seo-article {
  background: var(--fc-white);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-sm);
  padding: var(--fc-card-padding-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--fc-border);
}

.seo-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fc-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--theme-color-light, rgba(13, 110, 253, 0.1));
}

.seo-article h2:first-of-type {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.seo-article p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.seo-article ul,
.seo-article ol {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.seo-article li {
  margin-bottom: 0.375rem;
}

.seo-article strong {
  color: var(--fc-dark);
}

.seo-article .intro-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
}

/* Feature Grid in SEO content */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  background: var(--fc-light-bg);
  border-radius: var(--fc-radius-sm);
  padding: 1.25rem;
  border-left: 3px solid var(--theme-color, #0d6efd);
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #666;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--fc-radius-sm);
  overflow: hidden;
}

.comparison-table thead th {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  color: var(--fc-white);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--fc-border);
  font-size: 0.9rem;
  word-break: break-word;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--fc-light-bg);
}

/* Ensure comparison tables scroll horizontally on small screens */
.seo-article .comparison-table,
.content-section .comparison-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Internal Links Section */
.internal-links-section {
  background: var(--theme-color-light, rgba(13, 110, 253, 0.05));
  border-radius: var(--fc-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.internal-links-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fc-dark);
  margin-bottom: 1rem;
  margin-top: 0;
}

.internal-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.internal-link-list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--theme-color-dark, #0a58ca);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--fc-transition);
}

.internal-link-list li a:hover {
  background: var(--fc-white);
  color: var(--theme-color, #0d6efd);
  text-decoration: none;
}

/* CTA Box inside content */
.cta-box {
  background: var(
    --theme-gradient,
    linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
  );
  border-radius: var(--fc-radius);
  padding: 2rem;
  text-align: center;
  color: var(--fc-white);
  margin: 2rem 0;
}

.cta-box h3 {
  color: var(--fc-white);
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.cta-box .btn {
  background: var(--fc-white);
  color: var(--fc-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--fc-radius-sm);
  border: none;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Ad Placement within content (hidden until monetized) */
.ad-slot {
  background: var(--fc-light-bg);
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius-sm);
  padding: 0.75rem;
  text-align: center;
  color: var(--fc-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* Hidden until monetized */
}

/* Responsive for new elements */
@media (max-width: 767px) {
  .seo-article {
    padding: 1.25rem;
  }
  .seo-article h2 {
    font-size: 1.25rem;
  }
  .seo-article h3 {
    font-size: 1.05rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .internal-link-list {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 1.5rem;
  }
  .cta-box h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 575px) {
  .seo-article {
    padding: 1rem;
  }
  .seo-article h2 {
    font-size: 1.15rem;
  }
  .seo-article p {
    font-size: 0.9rem;
  }
  .feature-item {
    padding: 1rem;
  }
  .comparison-table {
    font-size: 0.8rem;
  }
  .comparison-table thead th {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
  }
  .comparison-table tbody td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
  }
  code {
    font-size: 0.8em;
    padding: 0.1rem 0.25rem;
  }
}

/* ===== Utility Classes ===== */
.section-divider {
  height: 1px;
  background: var(--fc-border);
  margin: 2rem 0;
}

.text-theme-color {
  color: var(--theme-color);
}

.bg-theme-light {
  background: var(--theme-color-light);
}
