/* General Reset & Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #f7faff;
  color: #333;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e63946;
  flex: 1;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #e63946;
  font-weight: 600;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3em 2em 1em;
  background: linear-gradient(to right, #ffffff, #e8f0ff);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3em;
}

.hero p {
  font-size: 1 rem;
  color: #555;
  margin-bottom: 1em;
}

/* Banner */
.banner-placeholder {
  margin-top: 1em;
}

.banner-placeholder img {
  width: 100%;
  max-width: 1100px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Tool Grid */
.tools-grid {
  max-width: 1200px;
  margin: 3em auto;
  padding: 1em 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
}

.tool-card {
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  display: block;
  color: #111;
}

.tool-card span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 0.5em;
  color: #666;
}

.tool-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Description */
.description {
  max-width: 1000px;
  margin: 3em auto;
  text-align: center;
  padding: 0 2em;
}

.description h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5em;
}

.description p {
  color: #555;
  margin-bottom: 1.2em;
  line-height: 1.7;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Ad Containers */
.ad-left, .ad-right {
  position: fixed;
  top: 100px;
  width: 160px;
  height: 600px;
  background: transparent;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-left {
  left: 0;
}

.ad-right {
  right: 0;
}

.ad-box {
  width: 160px;
  height: 600px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5em;
}

/* Hide ads on small screens */
@media (max-width: 1200px) {
  .ad-left, .ad-right {
    display: none;
  }
}
.ad-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e63946;
  margin-bottom: 0.5em;
  background: #fff5f5;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e5caca;
}
/* Fix header layout */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nav styles */
.main-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  font-weight: 600;
  color: #e63946;
  padding: 0.5em 0.75em;
  display: block;
}

/* Dropdown menu hidden by default */
/* Dropdown hidden initially */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 1em;
  min-width: 300px;
  z-index: 1000;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

/* Show dropdown only on hover */
.dropdown:hover .dropdown-menu {
  display: grid;
}


/* Dropdown link styling */
.dropdown-column a {
  font-size: 0.95rem;
  padding: 0.3em 0;
  color: #333;
  transition: 0.2s;
}

.dropdown-column a:hover {
  color: #e63946;
  background: #f9f9f9;
  border-radius: 4px;
}

