:root {
    --bg-color: #f0f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --primary-teal: #1B8387;
    --border-color: #c2e0e0;
}

body.dark-mode {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --border-color: #333;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(to right, rgba(217,199,199,0.03), rgba(27,131,135,0.59));
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  width: 120px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #2a8f85;
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-profile { 
  display: flex; 
  align-items: 
  center; 
  gap: 10px; 
  cursor: pointer; 
}
.profile-circle { 
  width: 35px; 
  height: 35px; 
  background: var(--primary-teal); 
  color: white; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.container { 
  max-width: 1000px; 
  margin: 40px auto; 
  padding: 0 20px; 
}
.welcome-header h1 { 
  font-size: 28px; 
  margin-bottom: 5px; 
}
.welcome-header p { 
  color: #666; 
  margin-bottom: 30px; 
}

.search-bar {
    display: flex; 
    gap: 10px; 
    background: var(--card-bg); 
    padding: 10px 15px;
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    align-items: center;
}
.search-bar input { 
  flex: 1; 
  border: none; 
  outline: none; 
  background: transparent; 
  color: var(--text-color); 
}
.search-bar button { 
  background: #c7e8e8; 
  border: none; 
  padding: 10px 25px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600; 
  color: #1B8387; 
}

.popular-topics { 
  font-size: 13px; 
  margin: 15px 0 40px; 
}
.tag { 
  color: var(--primary-teal); 
  cursor: pointer; 
  font-weight: 500; 
}

.grid-container { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  margin-bottom: 50px; 
}
.card { 
  background: var(--card-bg); 
  padding: 30px; 
  border-radius: 15px; 
  border: 1px solid var(--border-color); 
  text-align: center; 
  transition: 0.3s; 
}
.card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.card-icon { 
  font-size: 40px; 
  margin-bottom: 15px; 
}
.card ul { 
  list-style: none; 
  text-align: left; 
  display: inline-block; 
  font-size: 14px; 
}
.card ul li::before { 
  content: "• "; 
  color: var(--primary-teal); 
}

.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}
.contact-card { 
  background: var(--card-bg); 
  padding: 25px; 
  border-radius: 15px; 
  border: 1px solid var(--border-color); 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}
.contact-info { 
  display: flex; 
  gap: 15px; 
  align-items: center; 
}
.icon-box { 
  font-size: 40px; 
}
.btn-action { 
  background: #c7e8e8; 
  border: none; 
  padding: 10px 20px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 700; 
  color: #1B8387; 
  align-self: flex-start; 
}

@media (max-width: 768px) { 
  .grid-container, .contact-grid { 
    grid-template-columns: 1fr; 
  } 
}