:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --background-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --header-height: 70px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--white);
  border-top: 1px solid #e2e8f0;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-radius: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.card-image {
  height: 200px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  width: 100%;
}

/* Page specific */
.page-title {
  margin-bottom: 30px;
  font-size: 2rem;
}

.content-area {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.content-area h2 {
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.content-area p {
  margin-bottom: 1.5em;
}

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

button.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link,
.page-dots {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text-main);
  background-color: var(--white);
  font-weight: 500;
  min-width: 40px;
}

.page-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-link.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-dots {
  border: none;
  background: none;
}

/* External Profiles List */
.external-profile-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.external-profile-list li {
  margin: 0;
}

.external-profile-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--background-color);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.2s ease;
  min-height: 80px;
}

.external-profile-list a:hover {
  background-color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  text-decoration: none;
}

/* Header Search Form */
.nav-container form {
  display: flex;
  gap: 10px;
  flex-grow: 1; /* Allow it to take up space */
  max-width: 400px; /* But not too much */
  margin: 0 20px;
}

.nav-container input[type="text"] {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.nav-container input[type="text"]:focus {
  border-color: var(--primary-color);
}

.nav-container button {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.nav-container button:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  header {
    height: auto;
    padding: 15px 0;
    position: relative; 
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  /* Make search full width on mobile */
  .nav-container form {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* AdSense */
.adsbygoogle {
  display: block;
  text-align: center;
  margin: 20px auto;
}
