@import url('https://fonts.googleapis.com/css?family=Google+Sans:400,500,700&display=swap');

html, body {
  overflow-x: hidden;
  font-family: 'Google Sans', sans-serif !important;
  margin: 0;
  padding: 0;
}

/* Fonts */
body {
  font-family: 'Google Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Header Styles === */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* Logo Section */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: #202124;
}

.logo img {
  height: 36px;
  width: auto;
}

/* Navigation Links */
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  color: #202124;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: #2d72d9;
}

/* Highlighted Button */
.download-app-btn {
  background: #2d72d9;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
}

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease-in-out;
}

/* === Responsive Menu === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    position: absolute;
    right: 16px;
    top: 64px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px;
    border-radius: 8px;
  }

  .main-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}


/* === Hero Section (Gradient Only) === */
/* General Hero Styles */
/* Hero Section Styles */
.hero-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f0f8ff, #ffffff);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}

.hero-subtitle {
  font-size: 1.2em;
  color: #444;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1em;
  background-color: #0077ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #005fcc;
}

.hero-image img {
  margin-top: 40px;
  max-width: 100%;
  height: auto;
}

.hero-image {
  margin-top: 40px;
}

.hero-icon {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0;
}


/* Responsive: Mobile First */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8em;
  }

  .hero-subtitle {
    font-size: 1em;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

  /* === Minimal, modern, responsive styles for the calculator === */
  .calc-wrap { padding: 60px 20px; background: #f7faff; }
  .calc-header { text-align:center; margin-bottom: 18px; }
  .calc-header h2 { font-size: 2rem; margin: 0 0 6px; }
  .calc-header p { color:#5a6473; margin:0; }
  .chip { border:1px solid #e6ecf5; padding:8px 12px; border-radius:999px; background:#fff; cursor:pointer; }
  .chip.active { background:#0a66ff; color:#fff; border-color:#0a66ff; }
  .calc-controls { display:flex; gap:10px; align-items:center; justify-content:space-between; margin:14px auto; max-width:820px; }
  .calc-controls .memory { display:flex; gap:8px; flex-wrap:wrap; }
  .calc-display { max-width:820px; margin: 10px auto 14px; background:#fff; border:1px solid #e6ecf5; border-radius:12px; padding:14px 16px; box-shadow:0 10px 30px rgba(10,102,255,.06); }
  #expr { min-height:24px; color:#8a94a6; word-wrap:anywhere; }
  #result { font-size:2rem; font-weight:700; color:#1c1f26; text-align:right; word-wrap:anywhere; }
  .calc-grid { max-width:820px; margin:0 auto; display:grid; grid-template-columns: repeat(5, minmax(64px,1fr)); gap:10px; }
  .btn { padding:14px 10px; border:none; border-radius:10px; background:#f0f4ff; color:#1a2b4a; font-size:1.05rem; cursor:pointer; }
  .btn:hover { filter:brightness(.97); }
  .btn:active { transform: translateY(1px); }
  .btn.op { background:#e8f0ff; }
  .btn.ghost { background:#f7f7fb; color:#384055; }
  .equals { background:#0a66ff; color:#fff; font-weight:700; }
  .equals:hover { background:#0056d6; }
  .calc-history { max-width:820px; margin:14px auto 0; }
  .calc-history summary { cursor:pointer; color:#384055; }
  #history { list-style:none; padding:8px 0 0; margin:0; display:grid; gap:6px; }
  #history li { background:#fff; border:1px solid #e6ecf5; border-radius:8px; padding:8px 10px; display:flex; justify-content:space-between; gap:10px; }
  #history li button { border:none; background:transparent; color:#0a66ff; cursor:pointer; }

  /* Mobile tweaks */
  @media (max-width: 640px){
    .btn { padding:12px 8px; font-size:1rem; }
    #result { font-size:1.6rem; }
  }

/* === Feature Section === */

.features-section {
  padding: 20px 20px;
  background-color: #ffffff;
  text-align: center;
  margin-top: -20px; /* Reduce the top space */
  margin-bottom: -30px; /* Reduce bottom space if needed */
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1c1f26;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #5a6473;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-box {
  background: #f9fbff;
  padding: 24px;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(10, 66, 180, 0.03);
  transition: 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 16px rgba(0, 80, 255, 0.08);
}

.feature-box h3 {
  color: #0a66ff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* === Article Section === */
.article-section {
  padding: 60px 20px;
  background: #ffffff;
  color: #111;
  line-height: 1.7;
}

.article-section .container {
  max-width: 850px;
  margin: 0 auto;
}

.article-section h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #202124;
}

.article-section h2 {
  margin-top: 40px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #4a00e0;
}

.article-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-section ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-section li {
  margin-bottom: 10px;
}

.article-section a {
  color: #2d72d9;
  text-decoration: underline;
}

.article-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.article-section table th,
.article-section table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.article-section table th {
  background: #f1f1f1;
  font-weight: 600;
}

.article-section strong {
  font-weight: 600;
}


/* === FAQ Section === */
.faq-section {
  padding: 60px 20px;
  background: #f9f9f9;
  color: #111;
}

.faq-section .container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px 24px;
  transition: all 0.3s ease-in-out;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d2e30;
  margin-bottom: 12px;
}

.faq-answer p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 768px) {
  .faq-title {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }

  .faq-item {
    padding: 16px;
  }
}


/* === Footer Styles === */
.site-footer {
  background-color: #f5f5f5;
  padding: 40px 20px 20px;
  color: #333;
  font-size: 0.95rem;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: #222;
}

.footer-logo img {
  height: 36px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #4a00e0;
}

.footer-bottom {
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav ul {
    gap: 16px;
  }
}


/* === Back to Top Button === */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 100;
  font-size: 22px;
  background-color: #4a00e0;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease, opacity 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #3700b3;
}

@media (max-width: 600px) {
  #backToTopBtn {
    bottom: 20px;
    right: 16px;
    padding: 10px 14px;
    font-size: 18px;
  }
}


/* === 404 Page === */
.error-404 {
  padding: 80px 20px;
  text-align: center;
  background: #f8f8f8;
}

.error-container {
  max-width: 700px;
  margin: 0 auto;
}

.error-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4a00e0;
  margin-bottom: 16px;
}

.error-container p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.back-home-btn,
.back-btn {
  background: #4a00e0;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.back-home-btn:hover,
.back-btn:hover {
  background: #3700b3;
}

@media (max-width: 600px) {
  .error-container h1 {
    font-size: 2rem;
  }

  .back-home-btn,
  .back-btn {
    width: 100%;
    text-align: center;
  }
}


/* === Static Content Pages (About, Contact, Terms, Privacy) === */
.content-section {
  padding: 60px 20px;
  background: #ffffff;
  color: #111;
  line-height: 1.7;
}

.content-section .container {
  max-width: 850px;
  margin: 0 auto;
}

.content-section h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
}

.content-section p,
.content-section li {
  font-size: 1rem;
  margin-bottom: 16px;
}

.content-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
