/* Global layout */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background: linear-gradient(to bottom right, #f0f4ff, #d0e6ff);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Header */
.custom-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
}

.site-title:hover {
  color: #3341b2;
}

/* Navigation links */
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #3366cc;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #3366cc;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #254ecb;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Responsive navigation */
@media (max-width: 700px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}

/* Footer */
.site-footer {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 1rem 0;
  text-align: center;
}

/* Main content card */
.main-content {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 960px;
  margin: 2rem auto;
}

/* Profile section */
.profile-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  min-width: 250px;
  text-align: justify;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-image,
  .profile-text {
    width: 100%;
  }
}

/* Post card styles */
.post-card {
  padding: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  color: #00274d;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #aaa;
}

.post-card h2 {
  margin-top: 0;
  font-size: 1em;
  font-weight: bold;
}

.post-card h2 a {
  text-decoration: none;
  color: rgb(91, 152, 214);
  font-weight: bold;
}

.post-date {
  color: rgba(22, 22, 22, 0.42);
  font-size: 0.8em;
  font-weight: bold;
  margin-top: -10px;
}
