@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Montserrat', sans-serif;
}
/* ========== Header Styling ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4rem;
  color: #2c3e50;
}

.logo img {
  height: 32px;
  width: auto;
  margin-right: 10px;
}

.logo .highlight {
  color: #007bff;
}

/* Base navigation */
header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Hide toggle on desktop */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* âœ… Mobile Navigation */
@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  header nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    width: 100%;
    display: block;
    padding: 10px 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

.cta-btn {
  display: inline-block;
  background-color: #78041d;
  color: #ffffff;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #0056b3;
}

/* This wrapper ensures the button is centered only */
.btn-wrapper {
  text-align: center;
  margin-top: 20px;
}


/* ===== TOOL SECTION ===== */
.tool-section {
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
}

.tool-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.tool-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.tool-section p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.upload-form input[type="file"] {
  padding: 10px;
  border: 2px dashed #007bff;
  border-radius: 8px;
  background-color: #f0f8ff;
  cursor: pointer;
  font-size: 1rem;
}

.convert-btn {
  padding: 12px 24px;
  background-color: #78041d;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 20px auto 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.convert-btn:hover {
  background-color: #218838;
}

@media (max-width: 400px) {
  .convert-btn {
    font-size: 0.95rem;
    padding: 12px 18px;
    max-width: 90%;
  }
}


.note p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .tool-section h2 {
    font-size: 1.5rem;
  }

  .upload-form input[type="file"] {
    font-size: 0.95rem;
  }

  .merge-btn {
    font-size: 1rem;
    width: auto;
  }
}

/* ===== CONTENT / ARTICLE SECTION ===== */
.contenta {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.article-container {
  max-width: 850px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  line-height: 1.8;
}

.article-container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.article-container h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #00000;
}

.article-container h4 {
  font-size: 1.1rem;
  margin-top: 25px;
  font-weight: 600;
  color: #333;
}

.article-container p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

.article-container ul,
.article-container ol {
  margin: 0 0 25px 20px;
  padding-left: 20px;
}

.article-container li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.article-container strong {
  font-weight: 600;
  color: #000;
}

/* Responsive design */
@media (max-width: 768px) {
  .article-container {
    padding: 0 10px;
  }

  .article-container h2 {
    font-size: 1.6rem;
  }

  .article-container h3 {
    font-size: 1.3rem;
  }

  .article-container h4 {
    font-size: 1rem;
  }

  .article-container p,
  .article-container li {
    font-size: 0.95rem;
  }
}

/* ===== STATIC PAGES (About, Privacy, Terms, Contact) ===== */
.other-pages {
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  line-height: 1.8;
}

.other-pages h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.other-pages p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

/* Optional: Add styles for multiple sections or headings */
.other-pages h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #00000;
  font-weight: 600;
}

.other-pages ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.other-pages li {
  margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .other-pages {
    padding: 40px 15px;
  }

  .other-pages h2 {
    font-size: 1.6rem;
  }

  .other-pages h3 {
    font-size: 1.2rem;
  }

  .other-pages p,
  .other-pages li {
    font-size: 0.95rem;
  }
}


/* ===== STATIC PAGES (About, Privacy, Terms, Contact) ===== */
.other-pages {
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  line-height: 1.8;
}

.other-pages h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.other-pages p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

/* Optional: Add styles for multiple sections or headings */
.other-pages h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #00000;
  font-weight: 600;
}

.other-pages ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.other-pages li {
  margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .other-pages {
    padding: 40px 15px;
  }

  .other-pages h2 {
    font-size: 1.6rem;
  }

  .other-pages h3 {
    font-size: 1.2rem;
  }

  .other-pages p,
  .other-pages li {
    font-size: 0.95rem;
  }
}


/* ===== BACK TO TOP BUTTON ===== */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #007bff;
  color: #fff;
  font-size: 20px;
  padding: 12px 16px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.2s;
}

#backToTopBtn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/* ===== FOOTER STYLING ===== */
.footer {
  background-color: #f1f1f1;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer p a {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer p a:hover {
  color: #0056b3;
}


.error-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f8f9fa;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.error-container {
  max-width: 600px;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.error-container h1 {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.error-container p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.back-home-btn,
.back-btn {
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-btn {
  background-color: #6c757d;
}

.back-home-btn:hover {
  background-color: #0056b3;
}

.back-btn:hover {
  background-color: #5a6268;
}

