/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f6fb;           /* soft body background */
  color: #2c2c2c;                /* soft black for text */
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

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

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

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

.logo img {
  height: 50px;
}

/* ===== Navigation ===== */
nav {
  position: sticky;             /* make nav sticky separately */
  top: 0;
  z-index: 1200;
  background: #ffffff;          /* keep background solid */
}

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

nav ul li a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #8d6bcb;               /* softer hover purple */
}

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

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

/* ===== Main Content ===== */
.main-content {
  background: #ffffff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #e8e0f5;
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

.main-content > * + * {
  margin-top: 20px;
}

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

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

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

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

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

.tool-card a:hover {
  background: #8d6bcb;          /* hover button color */
}

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

/* ===== Sidebar ===== */
.sidebar {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8e0f5;
}

.sidebar h3 {
  margin-bottom: 15px;
  color: #a17edc;
  font-size: 18px;
  border-bottom: 2px solid #a17edc;
  padding-bottom: 6px;
}

.sidebar ul {
  list-style: none;
}

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

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

.sidebar ul li a:hover {
  color: #8d6bcb;
}

/* ===== Buttons ===== */
button,
.btn {
  background: #a17edc;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

button:hover,
.btn:hover {
  background: #8d6bcb;
}

/* ===== Tools Article ===== */
.tools-article {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #2c2c2c;
    padding: 60px 50px; /* top/bottom 40px, left/right 50px */
    border-radius: 12px;
    border: 1px solid #e8e0f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    /* new additions */
    max-width: 1100px;   /* limit width for readability */
    margin: 50px auto;  /* center horizontally with space on top/bottom */
}

.tools-article h2 {
    color: #a17edc;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.tools-article h3 {
    color: #8a56e6;
    margin-top: 25px;
    margin-bottom: 12px;
    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 strong {
    color: #2c2c2c;
}

.tools-article span {
    display: inline-block;
    margin-top: 10px;
}

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

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


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

footer a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
}

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