*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #f6f8fc;
  --clr-card: rgba(255, 255, 255, 0.9);
  --clr-card-solid: #ffffff;
  --clr-text: #14213d;
  --clr-muted: #64748b;
  --clr-border: #e5eaf3;
  --clr-primary: #2563eb;
  --clr-primary-dark: #1d4ed8;
  --clr-primary-fg: #ffffff;
  --clr-accent: #eef4ff;
  --clr-success: #22c55e;
  --clr-success-soft: #eafaf0;
  --clr-warning: #eab308;
  --clr-warning-soft: #fff7db;
  --clr-secondary: #f8fafc;
  --clr-secondary-fg: #334155;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--clr-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.06), transparent 20%),
    var(--clr-bg);
}

.converter {
  width: 100%;
  padding: 32px 16px;
}

.converter__shell {
  max-width: 1100px;
  margin: 0 auto;
}

.converter__header {
  text-align: center;
  margin-bottom: 28px;
}

.converter__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--clr-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.converter__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.converter__desc {
  margin: 14px auto 0;
  max-width: 700px;
  color: var(--clr-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.converter__trust {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.trust-item svg {
  color: var(--clr-primary);
}

.converter__card {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.converter__upload-wrap {
  padding: 24px;
  border-bottom: 1px solid var(--clr-border);
}

.upload-zone {
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(37, 99, 235, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.upload-zone:hover,
.upload-zone:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(180deg, rgba(37,99,235,.09), rgba(37,99,235,.03));
  box-shadow: var(--shadow-md);
  outline: none;
}

.upload-zone__glow {
  position: absolute;
  inset: auto auto -80px -80px;
  width: 180px;
  height: 180px;
  background: rgba(37, 99, 235, 0.08);
  filter: blur(30px);
  border-radius: 50%;
  pointer-events: none;
}

.upload-zone__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.upload-zone__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.upload-zone__sub {
  margin-top: 8px;
  color: var(--clr-muted);
  font-size: 0.97rem;
}

.upload-zone__btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-primary-dark));
  color: var(--clr-primary-fg);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.upload-zone__meta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--clr-muted);
  font-size: 0.8rem;
}

.converter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 0;
}

.converter__main {
  border-right: 1px solid var(--clr-border);
}

.converter__sidebar {
  background: linear-gradient(180deg, rgba(248,250,252,.9), rgba(255,255,255,.9));
}

.converter__section {
  padding: 24px;
}

.converter__section + .converter__section {
  border-top: 1px solid var(--clr-border);
}

.converter__section--sidebar {
  border-top: none !important;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-meta {
  font-size: 0.82rem;
  color: var(--clr-muted);
}

.file-list,
.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-row,
.result-row {
  background: var(--clr-card-solid);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-row__left,
.file-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-row__info {
  min-width: 0;
}

.file-row__thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #cfe0ff;
  flex-shrink: 0;
}

.file-row__name {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row__size {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin-top: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.badge--ready {
  background: var(--clr-warning-soft);
  color: #a16207;
}

.badge--converted {
  background: var(--clr-success-soft);
  color: #15803d;
}

.file-row__remove {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #f8fafc;
  color: var(--clr-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: .2s ease;
}

.file-row__remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.setting-quality {
  background: var(--clr-card-solid);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.setting-quality__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.setting-quality__header label {
  font-size: 0.92rem;
  font-weight: 700;
}

.setting-quality__value {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.slider-track {
  position: relative;
  height: 10px;
  background: #e9eff8;
  border-radius: 999px;
}

.slider-fill {
  position: absolute;
  height: 10px;
  background: linear-gradient(90deg, var(--clr-primary), #4f8cff);
  border-radius: 999px;
}

.slider-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 4px solid var(--clr-primary);
  border-radius: 50%;
  top: -4px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--clr-muted);
  margin-top: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--clr-card-solid);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.setting-row__label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.toggle {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.toggle--on {
  background: var(--clr-primary);
}

.toggle--off {
  background: #dbe3ef;
}

.toggle__thumb {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.toggle--on .toggle__thumb {
  right: 4px;
}

.toggle--off .toggle__thumb {
  left: 4px;
}

.converter__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.converter__actions--stack {
  margin-top: 16px;
  flex-direction: column;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 14px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-primary-dark));
  color: var(--clr-primary-fg);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn--lg {
  min-height: 52px;
  font-size: 1rem;
}

.btn--secondary {
  background: #eef2f7;
  color: var(--clr-secondary-fg);
}

.btn--success {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.18);
}

.btn--block {
  width: 100%;
  margin-top: 16px;
}

.result-row__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.result-row__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.result-row__sub {
  display: block;
  font-size: 0.76rem;
  color: var(--clr-muted);
  margin-top: 4px;
}

.result-row__percent {
  font-size: 0.8rem;
  color: var(--clr-muted);
  font-weight: 700;
}

.result-row__download {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  background: #edf4ff;
}

.progress-bar {
  height: 8px;
  background: #e8eef8;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clr-primary), #4f8cff);
}

.progress-bar__fill--done {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.converter__mini-note {
  margin: 0 24px 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dfebff;
  color: var(--clr-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.converter__mini-note strong {
  color: var(--clr-text);
}

.converter__footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.78rem;
  color: var(--clr-muted);
}

@media (max-width: 960px) {
  .converter__grid {
    grid-template-columns: 1fr;
  }

  .converter__main {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }

  .converter__mini-note {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .converter {
    padding: 20px 12px;
  }

  .converter__title {
    font-size: 1.9rem;
  }

  .converter__desc {
    font-size: 0.96rem;
  }

  .converter__upload-wrap,
  .converter__section {
    padding: 18px;
  }

  .upload-zone {
    padding: 32px 16px;
    border-radius: 18px;
  }

  .upload-zone__title {
    font-size: 1.1rem;
  }

  .upload-zone__meta {
    gap: 8px;
    flex-direction: column;
  }

  .file-row,
  .setting-row,
  .result-row {
    padding: 14px;
  }

  .file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-row__right {
    width: 100%;
    justify-content: space-between;
  }

  .result-row__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .converter__actions {
    flex-direction: column;
  }

  .btn,
  .btn--primary,
  .btn--secondary,
  .btn--success {
    width: 100%;
  }

  .converter__mini-note {
    margin: 0 18px 18px;
  }
}



/* ===== Site Header/Footer ===== */
:root {
  --navy: #1e3a5f;
  --navy-dark: #152d4a;
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --blue-light: #e8f0fe;
  --green: #34a853;
  --orange: #fa7b17;
  --red: #d93025;
  --white: #ffffff;
  --card-bg: #ffffff;
  --text: #202124;
  --muted2: #9aa0a6;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --radius-sm: 8px;
}

/* Site container */
.container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}


/* HEADER */
.site-header {
  background: var(--navy);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}

.logo-box span {
  border-radius: 2px;
}

.logo-box .b1,
.logo-box .b2,
.logo-box .b3 {
  background: var(--blue);
}

.logo-box .b4 {
  background: var(--green);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.2);
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo-box {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
}

.footer-logo-box span {
  border-radius: 1px;
}

.footer-logo-box .b1,
.footer-logo-box .b2,
.footer-logo-box .b3 {
  background: rgba(255,255,255,0.9);
}

.footer-logo-box .b4 {
  background: var(--green);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 640px) {
  .header-nav {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-copy {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer-nav {
    margin-left: auto;
    display: flex;
    gap: 25px;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }
}


/* Hero Section*/
.hero {
  background: linear-gradient(160deg, #1e3a5f 0%, #1a4f8a 55%, #1e5ea8 100%);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 4px solid #2563c8;
}

/* Text Inside Section*/
.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #fff;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
}
  
  
 
 
 
 


.content-wrap {
  width: 100%;
  max-width: 1100px; /* same as tool */
  margin: 0 auto;
  padding: 0 16px;
}

.seo-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.seo-block {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* FAQ */
.section-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 16px; text-align: center; }
.faq-list { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 18px 22px; font-family: var(--font);
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; text-align: left; transition: background 0.18s;
}
.faq-q:hover { background: var(--bg); }
.faq-icon { font-size: 1.4rem; color: var(--blue); font-weight: 800; flex-shrink: 0; transition: transform 0.22s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-a { display: block; }





/* ===== TOOLS SECTION ===== */
.tools-section {
  padding: 50px 0;
  background: #f8fafc;
}

.tools-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* COLUMN */
.tools-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tools-col a {
  display: block;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.tools-col a:hover {
  color: #2f5d8a;
}

/* TABLET */
@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .tools-section {
    padding: 60px 0;
  }
}
