/* General Body & Typography */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif; /* A clear, readable font */
  color: #333; /* Darker text for better contrast */
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to top initially */
  align-items: center;
  background: linear-gradient(to bottom right, #e0f2f7, #c1e4f2); /* Softer, fresh gradient */
  min-height: 100vh; /* Ensure it takes full viewport height */
}

/* Header Section */
.header {
  background: linear-gradient(to right, #007bb6, #005f8e); /* Deep blue for professional feel */
  color: white;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.logo {
  font-family: "Montserrat", sans-serif; /* Distinct font for branding */
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem; /* Slightly larger for impact */
  margin: 0;
  padding: 0 20px;
  line-height: 1.2;
}

/* Main Content Area */
.main-content {
  flex-grow: 1; /* Allows main content to expand and push footer down */
  width: 90%;
  max-width: 900px; /* Constrain width for readability */
  padding: 40px 0;
  box-sizing: border-box; /* Include padding in width */
}

.intro-section,
.resource-section {
  background-color: #ffffff; /* White background for content blocks */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Soft shadow */
  text-align: center;
}

.intro-section p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.resource-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  color: #005f8e; /* Match header color */
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
}

.resource-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  margin-top: 25px;
  text-align: left; /* Align text within card to left */
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.resource-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: #007bb6;
  margin-top: 0;
  margin-bottom: 15px;
}

.resource-card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: left; /* Keep paragraphs aligned left */
}

/* Links and Buttons */
a {
  color: #007bb6; /* Blue for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005f8e; /* Darker blue on hover */
  text-decoration: underline;
}

.button {
  display: inline-block;
  background-color: #28b487; /* Green button */
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 15px; /* Space above button */
}

.button:hover {
  background-color: #1e8e6b; /* Darker green on hover */
  text-decoration: none;
}

/* Article List */
.article-list {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 20px 0;
}

.article-list li {
  margin-bottom: 10px;
}

.article-list li a {
  display: block; /* Make the whole link clickable */
  padding: 8px 10px;
  background-color: #f0f8ff; /* Light blue background for list items */
  border-radius: 5px;
  border: 1px solid #e0e8ed;
  transition: background-color 0.3s ease;
}

.article-list li a:hover {
  background-color: #e6f2f9; /* Slightly darker on hover */
  text-decoration: none;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background-color: #005f8e; /* Dark blue background */
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow above */
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
}

.footer a {
  color: white;
  text-decoration: underline;
}

.footer a:hover {
  color: #e0f2f7; /* Lighter white on hover */
}

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

  .resource-section h2 {
    font-size: 1.8rem;
  }

  .resource-card h3 {
    font-size: 1.5rem;
  }

  .intro-section p,
  .resource-card p,
  .article-list li a {
    font-size: 1rem;
  }

  .main-content {
    width: 95%;
    padding: 20px 0;
  }
}
