body{font-family:Arial,sans-serif;margin:0;padding:0;background-color:#f4f4f9;text-align:justify}.container{width:90%;max-width:1000px;margin:0 auto}header{background-color:#ffffff;padding:20px;color:#0B2265;text-align:left}

header .container{display:flex;align-items:center;justify-content:space-between;}nav{margin-top:6px}nav a{color:#0B2265;margin:0 10px;text-decoration:none;font-weight:700;font-size:16px}nav a:hover{text-decoration:underline}.logo-text{font-size:16px;font-weight:700;white-space:nowrap}.hamburger{font-size:28px;background:none;border:none;color:#0B2265;display:none;cursor:pointer}.side-menu{height:100%;width:0;position:fixed;z-index:999;top:0;left:0;background-color:#0B2265;overflow-x:hidden;transition:0.4s;padding-top:60px}.side-menu a{padding:12px 30px;text-decoration:none;font-size:18px;color:#fff;display:block;transition:0.3s;font-weight:700}.side-menu a:hover{background-color:#51057A}.side-menu .closebtn{position:absolute;top:20px;right:25px;font-size:30px}@media screen and (max-width:768px){.desktop-nav{display:none}.hamburger{display:block;position:absolute;top:30px;right:30px}}.dropdown{position:relative;display:inline-block}.dropbtn{background-color:#fff0;color:#fff;font-weight:700;font-size:16px;border:none;padding:0 10px;cursor:pointer;font-family:inherit;text-decoration:none;line-height:1.5}.dropbtn:hover{text-decoration:underline}.dropdown-content{display:none;position:absolute;background-color:#0B2265;border-radius:8px;min-width:180px;box-shadow:0 4px 10px rgb(0 0 0 / .15);z-index:1;overflow:hidden;transition:all 0.2s ease-in-out}.dropdown-content a{color:#fff;padding:12px 16px;text-decoration:none;display:block;font-weight:700;font-size:14px}.dropdown-content a:hover{background-color:#51057A}.dropdown:hover .dropdown-content{display:block}.content-section{padding:40px 20px;background-color:#fff;margin:20px 0;border-radius:10px;box-shadow:0 4px 8px rgb(0 0 0 / .1)}.drop-area{border:2px dashed #bbb;padding:20px;border-radius:8px;background-color:#f9fafb;text-align:center;margin-bottom:20px;transition:background-color 0.3s}.drop-area.highlight{background-color:#e0f2fe;border-color:#0B2265}.upload-section{text-align:center}.upload-label{display:inline-block;background-color:#0B2265;color:#fff;padding:10px 15px;margin-top:10px;border-radius:5px;cursor:pointer}.upload-label:hover{background-color:#51057A}.faq-item{margin-bottom:20px}.faq-item h3{font-size:18px;color:#111827;margin-bottom:8px}.faq-item p{font-size:15px;color:#333;line-height:1.6}input[type='file']{display:none}button{background-color:#0B2265;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;    margin-bottom: 5px;}button:hover{background-color:#51057A}.preview-container{margin-top:20px}img{width:100%;max-width:300px;border-radius:10px;margin-top:10px}.preview-container.grid{display:flex;flex-wrap:wrap;gap:15px;margin-top:20px}.image-box{width:160px;padding:10px;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 4px 8px rgb(0 0 0 / .05);position:relative;text-align:center;transition:transform 0.2s}.image-box:hover{transform:scale(1.02)}.thumb{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;margin-bottom:8px}progress{width:100%;margin-top:5px;height:8px;border-radius:5px}.actions{display:flex;justify-content:space-around;align-items:center;margin-top:8px;gap:8px}.icon-btn{background-color:#f2f2f2;border:none;border-radius:50%;padding:10px;cursor:pointer;font-size:1.1em;transition:background-color 0.2s ease}.icon-btn:hover{background-color:#e0e0e0}.download-btn{color:green}.cancel-btn{color:crimson}.retry-btn{color:orange}.icon-btn[title]:hover::after{content:attr(title);position:absolute;background:#222;color:#fff;padding:3px 6px;border-radius:4px;font-size:12px;bottom:120%;left:50%;transform:translateX(-50%);white-space:nowrap}.clear-btn{background-color:#910808;color:#fff;padding:8px 14px;border:none;border-radius:6px;font-size:14px;cursor:pointer;margin-left:auto;transition:background-color 0.2s ease}.clear-btn:hover{background-color:#0B2265}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-top:30px;margin-bottom:10px}.image-box{position:relative;overflow:hidden}.image-overlay{position:absolute;top:0;left:0;width:100%;background:rgb(0 0 0 / .55);color:#fff;padding:5px;font-size:12px;z-index:1;border-top-left-radius:10px;border-top-right-radius:10px}.overlay-content{display:flex;flex-direction:column;gap:2px}footer{margin-top:30px;padding:10px;background-color:#0B2265;color:#fff}footer{background-color:#0B2265;color:#fff;padding:40px 20px 20px}.footer-container{display:flex;justify-content:space-between;flex-wrap:wrap;max-width:1000px;margin:0 auto;gap:20px}.footer-section{flex:1;min-width:200px}.footer-section h3{margin-bottom:15px;font-size:18px;color:#fff}.footer-section a{display:block;color:#fff;text-decoration:none;margin-bottom:10px;font-size:14px;font-weight:500}.footer-section a:hover{text-decoration:underline}.footer-bottom{text-align:center;margin-top:30px;font-size:14px;color:#bbb}@media screen and (max-width:768px){.footer-container{flex-direction:column;align-items:center;text-align:center}.footer-section{width:100%}}.footer-section p{font-size:14px;color:#fff;margin:0 0 10px}.footer-section a{color:#fff;text-decoration:none;font-size:14px}.footer-section a:hover{text-decoration:underline}.resize-controls{flex-wrap:wrap;gap:15px;margin-top:15px;align-items:center}.resize-controls input{padding:8px 12px;font-size:14px;border:1px solid #ccc;border-radius:5px;width:120px}.preview-grid{display:flex;flex-wrap:wrap;gap:30px;margin-top:30px;justify-content:center}.image-preview-box{background:#fff;padding:15px;border-radius:10px;box-shadow:0 4px 10px rgb(0 0 0 / .08);text-align:center;max-width:320px}.image-preview-box img{max-width:100%;border-radius:8px;margin-bottom:10px}.image-info{font-size:14px;color:#444;margin-top:5px}@media screen and (max-width:768px){.resize-controls{flex-direction:column;align-items:stretch}.resize-controls input{width:100%}}.content-with-sidebar{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;width:90%;max-width:1200px;margin:40px auto}.main-content{flex:1;min-width:0}.right-sticky-menu{position:sticky;top:10px;width:100%;max-width:250px;background-color:#f5f3ff;padding:10px;border-radius:10px;box-shadow:0 2px 8px rgb(0 0 0 / .1)}.right-sticky-menu .menu-title{font-size:16px;font-weight:700;color:#0B2265;margin-bottom:10px;text-align:center}.right-sticky-menu .menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.right-sticky-menu .menu-link{display:block;padding:8px;text-align:center;border:1px solid #d0bdf4;border-radius:4px;background-color:#fff;color:#0B2265;font-size:13px;text-decoration:none;transition:all 0.2s ease;font-weight:500}.right-sticky-menu .menu-link:hover{background-color:#e2dcf9;text-decoration:underline}.right-sticky-menu .important{color:#c1121f;font-weight:700}@media screen and (max-width:600px){.content-with-sidebar{flex-direction:column}.right-sticky-menu{position:relative;top:auto;max-width:100%;margin-top:20px}.right-sticky-menu .menu-grid{grid-template-columns:1fr 1fr;gap:8px}.right-sticky-menu .menu-link{font-size:14px;padding:10px}}

.sticky-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
}

.sticky-bottom-banner img {
  max-height: 60px;
  width: auto;
}

.sticky-bottom-banner .close-banner {
  position: absolute;
  right: 10px;
  top: 5px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.author-section {
  background: #f4f4f9;
  padding: 50px 0;
}

.author-box {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  gap: 25px;
  transition: transform 0.3s ease;
}

.author-box:hover {
  transform: translateY(-5px);
}

.author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #eee;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.8rem;
  margin: 0 0 5px;
  color: #222;
}

.author-role {
  font-size: 1rem;
  font-weight: 500;
  color: #777;
  margin-bottom: 15px;
}

.author-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 15px;
}

.author-social a {
  text-decoration: none;
  color: #0077b5;
  font-weight: 600;
  transition: color 0.3s;
}

.author-social a:hover {
  color: #005582;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .author-photo {
    margin-bottom: 15px;
  }
}

form#contactForm {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form#contactForm .form-group {
  margin-bottom: 15px;
}

form#contactForm label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

form#contactForm input,
form#contactForm textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

form#contactForm button.btn-primary {
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

form#contactForm button.btn-primary:hover {
  background: #0056b3;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background: #f5f7fa;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Left Info */
.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #222;
}

.contact-info p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.info-box {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.info-box h4 {
  margin-bottom: 5px;
  font-size: 18px;
  color: #007bff;
}

/* Right Form */
.contact-form {
  flex: 1;
  min-width: 320px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.2);
}

.contact-form button.btn-primary {
  background: #007bff;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button.btn-primary:hover {
  background: #0056b3;
}

/* Mobile Responsive */
@media(max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}
/* --- Tool Directory Section --- */
.tool-directory-section {
  padding: 30px 20px;
  background-color: #fff;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Section Title --- */
.tool-directory-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 25px;
}

/* --- Search Box --- */
.tool-search {
  margin-bottom: 30px;
}
.tool-search input[type="search"] {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}
.tool-search input[type="search"]:focus {
  border-color: #0B2265;
  box-shadow: 0 0 5px rgba(11, 34, 101, 0.2);
}

/* --- Category Group --- */
.tool-group {
  margin-bottom: 30px;
}
.tool-group h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* --- Tool Chips Container (Grid Layout) --- */
.tool-chips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* responsive grid */
  gap: 10px;
}

/* --- Individual Tool Chip --- */
.tool-chip {
  display: inline-block;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #0B2265;
  border-radius: 8px;
  color: #0B2265;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  word-wrap: break-word;
}
.tool-chip:hover {
  background-color: #0B2265;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Right Sidebar Important Links --- */
.right-sticky-menu .important {
  background-color: #FFDE00;
  color: #0B2265;
  border-color: #FFDE00;
  font-weight: 700;
}
.right-sticky-menu .important:hover {
  background-color: #FFC400;
  color: #0B2265;
}

/* --- Responsive Tweaks --- */
@media (max-width: 1024px) {
  /* 3 per row on tablet */
  .tool-chips-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* 2 per row on mobile */
  .tool-chips-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-directory-section {
    padding: 20px 15px;
  }

  .tool-directory-section h2 {
    font-size: 20px;
  }

  .tool-group h3 {
    font-size: 16px;
  }

  .tool-chip {
    font-size: 13px;
    padding: 8px 10px;
  }
}

.site-logo{height:30px;width:auto}
.logo-wrap{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
@media screen and (max-width:768px){
  .site-logo{height:26px}
  .logo-text{font-size:14px}
}
/* Header shadow for desktop & mobile */
header{
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ================= FOOTER UPDATE ================= */

/* About section width */
.footer-about {
  max-width: 320px;
}

/* Security & privacy line */
.footer-security {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 14px;
  color: #ddd;
}

/* Bottom footer layout */
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}

/* Center text */
.footer-bottom-center {
  text-align: center;
  padding: 0 60px;
}

/* Social icons on right */
.footer-bottom-social {
  position: absolute;
  right: 0;
  display: flex;
  gap: 12px;
}

/* Social icon styling */
.footer-bottom-social img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-bottom-social img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Mobile footer behavior */
@media screen and (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-social {
    position: static;
  }

  .footer-about {
    max-width: 100%;
    text-align: center;
  }
}
/* Hide sidebar on all pages EXCEPT those with .upload-section (tool pages) */
.right-sticky-menu {
  display: none;
}

.upload-section ~ .right-sticky-menu,
body:has(.upload-section) .right-sticky-menu {
  display: block;   /* or just remove this if default display:block is enough */
}

/* Center & widen content when no sidebar */
.container:not(:has(.upload-section ~ *)) {
  max-width: 960px;
  margin: 0 auto;
}
/* ===============================
   AI PDF Scanner Mobile Popup
   =============================== */

/* Popup overlay */
.app-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* above footer & ads */
}

.app-popup.show {
  display: flex;
}

/* Popup container */
.app-popup-box {
  position: relative;
  width: min(90vw, 360px);
}

/* Responsive CTA image (keeps original ratio) */
.app-popup-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Close button */
.app-popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* Slightly smaller popup on very small phones */
@media (max-width: 360px) {
  .app-popup-box {
    width: 92vw;
  }
}
