/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

/* HEADER */
.header-main {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.3px;
}

.logo-main {
  color: #ffffff;
}

.logo-sub {
  color: #22c55e;
  margin-left: 4px;
  font-weight: 600;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* SEARCH */
.search-btn {
  font-size: 18px;
  background: none;
  border: none;
  color: #cbd5f5;
  cursor: pointer;
  transition: 0.2s;
}

.search-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* SIGN IN BUTTON */
.btn-signin {
  padding: 7px 16px;
  font-size: 14px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.btn-signin:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* BREADCRUMB */
.breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.breadcrumb .container {
  padding: 10px 16px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: #2563eb;
}

/* MOBILE */
@media (max-width: 768px) {

  .logo {
    font-size: 18px;
  }

  .header-right {
    gap: 10px;
  }

  .btn-signin {
    font-size: 12px;
    padding: 5px 12px;
  }

  .search-btn {
    font-size: 16px;
  }

}

/* HERO */
.hero-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

/* GRID */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* CALCULATOR */
.calculator-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* DISPLAY */
.calc-display {
  width: 100%;
  height: 55px;
  background: #1e293b;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: right;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* GRID */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* BUTTONS */
.calc-grid button {
  padding: 14px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.calc-grid button:hover {
  background: #e2e8f0;
}

/* OPERATOR */
.operator {
  background: #2563eb !important;
  color: #fff;
}

/* EQUAL */
.equal {
  background: #22c55e !important;
  color: #fff;
}

/* CLEAR */
.clear {
  background: #ef4444 !important;
  color: #fff;
}

/* HERO TEXT */
.hero-content h1 {
  font-size: 34px;
  font-weight: 700;
}

.hero-content p {
  color: #475569;
  margin-bottom: 20px;
}

/* SEARCH */
.search-box {
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px 0 0 6px;
}

.search-box button {
  padding: 12px 20px;
  background: #2563eb;
  color: #fff;
  border-radius: 0 6px 6px 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.tools-section {
  padding: 60px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARD */
.tool-card {
  display: block;
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  border: 1px solid #e5e7eb;
  position: relative;
}

/* HOVER */
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #2563eb;
}

/* FEATURED CARD */
.tool-card.featured {
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  box-shadow: 0 12px 30px rgba(37,99,235,0.2);
  transform: scale(1.02);
}

/* TEXT */
.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 14px;
}

/* CTA */
.tool-link {
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
  transition: 0.2s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: #2563eb;
}
/* MOBILE */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
}

.content-section {
  padding: 60px 0;
}

.content-box {
  max-width: 750px;
}

.content-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

.lead {
  font-size: 16px;
  color: #475569;
  margin-bottom: 20px;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}

.feature-item {
  background: #f8fafc;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

/* HEADINGS */
.content-box h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* PARAGRAPH */
.content-box p {
  color: #475569;
  line-height: 1.7;
}

/* MOBILE */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.faq-section {
  padding: 60px 0;
}

.faq-box {
  max-width: 700px;
}

.faq-box h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ITEM */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

/* QUESTION */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

/* ANSWER */
.faq-answer {
  display: none;
  padding-bottom: 12px;
  color: #475569;
}

/* ACTIVE */
.faq-item.active .faq-answer {
  display: block;
}

/* TOOL */
.tool-section { padding: 60px 0; }

.tool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.tool-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tool-desc {
  color: #64748b;
  margin-bottom: 20px;
}

/* FORM */
.form-group { margin-bottom: 15px; }

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
}

/* BUTTON */
.btn-calc {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.btn-calc:hover {
  background: #1d4ed8;
}

/* RESULT */
.result-box {
  margin-top: 20px;
  background: #f1f5f9;
  padding: 15px;
  border-radius: 8px;
}

/* SEO */
.seo-content { padding: 60px 0; }

.seo-content h2 { font-size: 24px; margin-bottom: 10px; }

/* FAQ */
.faq-section { padding: 60px 0; }

.faq-item { border-bottom: 1px solid #e2e8f0; }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding-bottom: 10px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  .tool-container {
    grid-template-columns: 1fr;
  }
}