
html {
  scroll-behavior: smooth;
}

/* Add some spacing when jumping to tools section */
#tools {
  scroll-margin-top: 150px; /* adjust based on your header height */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f6fb;        /* updated soft background */
  color: #6C6280;             /* updated text */
  line-height: 1.7;
  width: 100%;
  overflow-x: hidden;
}

/* Top Header */
.header-top {
  text-align: center;
  padding: 40px 20px 30px;
  margin-bottom: 30px;
  background: #e4def3;
  border-bottom: 1px solid #e5e5e5;
  color: #2A2340;
}

.top-btn {
  background: #9B6CE3;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.top-btn:hover {
  background: #7F4FDB;
}

/* ===== Containers ===== */
.container,
header .container,
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E8E0F5;
  position: sticky;
  top: 0;
  z-index: 1100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
}

/* ===== Search Box ===== */
.search-box {
  position: relative;
  max-width: 250px;
  width: 100%;
  flex-shrink: 0;
  margin-left: 40px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #D1CEDB;
  outline: none;
  font-size: 0.95em;
  transition: border 0.3s ease;
}

.search-box input:focus {
  border-color: #9B6CE3;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E8E0F5;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 9999;
  display: none;
}

.suggestions div {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestions div:hover {
  background: #F5F2FC;
}

/* ===== Navigation ===== */
nav {
  margin-left: auto;
  background: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #2A2340;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
  display: block;
}

nav ul li a:hover {
  color: #9B6CE3;
}

/* ===== Dropdown ===== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 5px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: none;
  min-width: 180px;
  z-index: 1000;
}

.dropdown-menu li a {
  padding: 10px 15px;
  white-space: nowrap;
  color: #2A2340;
}

.dropdown-menu li a:hover {
  background: #F5F2FC;
  color: #9B6CE3;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===== Notice Bar ===== */
.notice-bar {
  background: #9B6CE3;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ===== Layout ===== */
.container-main {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

/* ===== Main Content ===== */
.main-content {
  background: #fff;
  padding: 40px;
  border-radius: 5px;
  border: 1px solid #E8E0F5;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.main-content h1 {
  color: #2A2340;
  font-size: 2rem;
}

.main-content p {
  color: #6C6280;
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
button,
.btn {
  background: #9B6CE3;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
}

button:hover,
.btn:hover {
  background: #7F4FDB;
}

/* ===== Tools Grid ===== */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tool-card {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #E8E0F5;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card h3 {
  color: #9B6CE3;
  font-size: 18px;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 14px;
  color: #6C6280;
  margin-bottom: 15px;
}

.tool-card a {
  display: inline-block;
  padding: 8px 16px;
  background: #9B6CE3;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.tool-card a:hover {
  background: #7F4FDB;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== Sidebar ===== */
.sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #E8E0F5;
}

.sidebar h3 {
  margin-bottom: 15px;
  color: #2A2340;
  font-size: 1.2rem;
  border-bottom: 2px solid #9B6CE3;
  padding-bottom: 6px;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #6C6280;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #9B6CE3;
}

/* ===== Tools Article ===== */
.tools-article {
  color: #6C6280;
  padding: 60px 50px;
  border-radius: 5px;
  max-width: 1100px;
  margin: 50px auto;
}

.tools-article h2 {
  color: #2A2340;
  font-size: 1.9em;
  margin-bottom: 20px;
  text-align: center;
}

.tools-article h3 {
  color: #9B6CE3;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.tools-article p,
.tools-article li {
  line-height: 1.7;
  font-size: 1.05em;
}

.tools-article ul,
.tools-article ol {
  margin: 15px 0 20px 25px;
}

.tools-article ul li::marker {
  color: #9B6CE3;
}

.tools-article ol li::marker {
  color: #7F4FDB;
  font-weight: bold;
}

/* ===== Footer ===== */
footer {
  width: 100%;
  background: #E8E0F5;
  color: #2A2340;
  padding: 35px 20px;
  text-align: center;
  margin-top: 50px;
}

footer a {
  color: #2A2340;
  text-decoration: none;
}

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