/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  background: #f4f7fe;
  color: #1f2937;
  line-height: 1.5;
}

/* ================= LAYOUT ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

.header {
  background: #ffffff;
  padding: 22px 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.header h1 {
  color: #4f46e5;
  font-size: 26px;
  font-weight: 700;
}

/* ================= HEADINGS ================= */
h2 {
  font-size: 26px;
  color: #4f46e5;
  margin-bottom: 8px;
}

h3 {
  font-size: 20px;
  margin: 35px 0 15px;
  color: #4338ca;
}

p {
  color: #6b7280;
  font-size: 15px;
}

/* ================= UPLOAD BOX ================= */
.upload-box {
  margin-top: 20px;
  background: #ffffff;
  border: 2px dashed #c7d2fe;
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: #4f46e5;
  background: #eef2ff;
}

.upload-box input {
  margin-bottom: 10px;
}

.upload-box p {
  margin-top: 6px;
  font-weight: 500;
}

/* ================= SETTINGS GRID ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.setting-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.setting-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.setting-card input[type="checkbox"] {
  margin-right: 8px;
}

.setting-card input[type="number"],
.setting-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  margin-top: 8px;
}

.setting-card input:disabled,
.setting-card select:disabled {
  background: #f1f5f9;
  color: #9ca3af;
}

/* ================= PREVIEW ================= */
#previewImage {
  margin-top: 15px;
  max-width: 260px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================= BUTTON ================= */
button {
  margin-top: 30px;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79,70,229,0.35);
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79,70,229,0.45);
}

button:active {
  transform: scale(0.98);
}

/* ================= PROGRESS ================= */
#progressWrapper {
  margin-top: 20px;
}

#progressBar {
  height: 10px;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#progressText {
  font-size: 14px;
  margin-top: 6px;
}

/* ================= FOOTER ================= */
.footer {
  margin-top: 80px;
  padding: 25px;
  background: #ffffff;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  h2 {
    font-size: 22px;
  }

  .header h1 {
    font-size: 22px;
  }

  .upload-box {
    padding: 30px 15px;
  }
}
.seo-section {
  margin-top: 60px;
  padding: 0 10px;
}

.seo-section p {
  max-width: 900px;
  line-height: 1.7;
}
.crop-container {
  position: relative;
  width: 300px;
  margin-top: 20px;
}

.crop-container img {
  width: 100%;
  border-radius: 12px;
}

#cropBox {
  position: absolute;
  border: 2px dashed #4f46e5;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  background: rgba(79,70,229,0.2);
  display: none;
  cursor: move;
}
/* ================================
   HOMEPAGE – EXAM GRID UI
================================ */

.hero {
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 28px;
  color: #4f46e5;
}

.subtext {
  color: #555;
  margin-top: 5px;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.exam-card {
  background: #ffffff;
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.exam-card:hover {
  background: #4f46e5;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(79,70,229,0.35);
}

.exam-card.highlight {
  border: 2px dashed #4f46e5;
}

/* ================================
   FIXED SIZE GRID
================================ */

.fixed-sizes {
  margin-top: 60px;
}

.fixed-sizes h2 {
  color: #4f46e5;
  margin-bottom: 25px;
  font-size: 26px;
}

/* PERFECT ALIGNMENT GRID */
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* BUTTON STYLE */
.size-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 12px;
  background: #eef2ff;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #1e1b4b;
  transition: all 0.25s ease;
}

/* HOVER */
.size-grid a:hover {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79,70,229,0.35);
}

/* ================================
   SEO TEXT SAFE WIDTH
================================ */

.seo-text {
  margin-top: 60px;
  max-width: 900px;
}

.seo-text p {
  line-height: 1.7;
  color: #444;
}
.tool-section {
  padding: 40px 20px;
}

.section-desc {
  color: #555;
  margin-bottom: 20px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.tool-card:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-4px);
}

/* Highlight card */
.highlight-card {
  border: 2px dashed #4f46e5;
  background: #f4f6ff;
}

/* Third row – two wide cards */
.wide-card {
  grid-column: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wide-card {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .wide-card {
    grid-column: span 1;
  }
}
.seo-text {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  color: #444;
  line-height: 1.7;
}
.footer {
  background: #f6f7fb;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.footer-links a {
  color: #4f46e5;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}
.legal-page {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.legal-page h1 {
  color: #4f46e5;
  margin-bottom: 20px;
}

.legal-page h2 {
  margin-top: 25px;
  color: #333;
}

.legal-page p {
  color: #555;
  line-height: 1.7;
}
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.nav-links a {
  margin-left: 22px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.nav-links a:hover {
  color: #4f46e5;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #eef2ff;
  color: #4338ca;
}
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.tagline {
  font-size: 12px;
  color: #6b7280;
}

.nav-links a {
  margin-left: 18px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #eef2ff;
  color: #4338ca;
}

.nav-links a.active {
  background: #4f46e5;
  color: #ffffff;
}

/* Mobile: hide menu for now (fast & safe) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
.download-section {
  margin: 60px auto;
  text-align: center;
}

#downloadBtn {
  min-width: 260px;
  padding: 16px 30px;
  font-size: 16px;
}
/* ================= FOOTER ================= */
/* ================= INTERACTIVE FOOTER ================= */

.footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
  padding: 50px 20px 40px;
  margin-top: 90px;
  position: relative;
  overflow: hidden;
}

/* subtle top glow line */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* text */
.footer p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* links */
.footer-links {
  margin: 14px 0;
}

.footer-links a {
  display: inline-block;
  color: #93c5fd;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* animated underline */
.footer-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* disclaimer */
.disclaimer {
  font-size: 12px;
  color: #c7d2fe;
  margin-top: 14px;
  opacity: 0.85;
}

/* small hover lift for whole footer */
.footer:hover {
  box-shadow: 0 -6px 30px rgba(96, 165, 250, 0.08);
}

.section-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}
/* ================= MOBILE NAV ================= */

/* ================= MOBILE NAV ================= */

.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Desktop */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    position: static;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    min-width: 200px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
  }

  .nav-links a:hover {
    background: #f1f3ff;
  }
}
/* ================= FIX NAV TOGGLE VISIBILITY ================= */

/* Desktop: hide hamburger */
.nav-toggle {
  display: none;
}

/* Mobile: show hamburger */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4f46e5;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}
