:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --hover-color: #eff6ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
}

/* Header Styles */
.header-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 3rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-gradient h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-gradient p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navigation */
.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Intro Section */
.intro-section {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.intro-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Link Grid */
.link-card {
  background-color: var(--bg-color);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.link-card:hover {
  background-color: var(--hover-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.link-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.665rem;
  font-weight: 500;
  transition: color 0.3s;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Custom 5-column grid for desktop */
@media (min-width: 1200px) {
  .col-5-cols {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* 3 columns for iPad/tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .col-5-cols {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* 1 column for mobile */
@media (max-width: 767px) {
  .col-5-cols {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.link-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: #ffffff;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

footer p,
footer a {
  color: #9ca3af;
  line-height: 1.8;
}

footer a {
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #ffffff;
}

.footer-divider {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .header-gradient h1 {
    font-size: 1.8rem;
  }

  .intro-section {
    padding: 1.5rem;
  }
}
