:root {
  --primary-blue: #0b5ed7;
  --light-blue: #e7f1ff;
  --dark-blue: #083a9b;
  --black: #0f172a;
  --gray: #64748b;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: var(--black);
  line-height: 1.6;
}

/* Top Navigation */
.top-nav {
  background-color: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 42px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--black);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  padding: 3rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: auto;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p {
  max-width: 700px;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* Document Repository */
.documents {
  background: var(--white);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.documents-intro {
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: 1rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.document-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e5e7eb;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.document-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--dark-blue);
}

.document-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Main */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* Tool Card */
.tool-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  pointer-events: auto;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.tool-image {
  height: 180px;              /* slightly taller for impact */
  width: 100%;
  overflow: hidden;           /* important for clean edges */
  background-color: #f1f5f9;  /* fallback if image fails */
}

.tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔑 makes image fill entire box */
  display: block;
}

.tool-content {
  padding: 1.4rem 1.5rem 1.7rem;
}

.tool-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.tool-content p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.tool-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-blue);
}

/* Welcome Section */
.welcome {
  background: var(--white);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.welcome h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--dark-blue);
}

.welcome p {
  max-width: 850px;
  font-size: 1rem;
  color: var(--gray);
}

/* Footer */
footer {
  background-color: var(--black);
  color: #cbd5f5;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer p {
  font-size: 0.9rem;
}

footer span {
  color: #60a5fa;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
}
