/* Save this code as 'style.css' in the same folder as your HTML file */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --background-color: #f8f9fa;
  --text-color: #212529;
  --border-color: #dee2e6;
  --card-background: #ffffff;
  --link-hover-color: #0a58ca;
  --shadow-color: rgba(0, 0, 0, 0.075);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}
/* Add this to the bottom of your style.css file */

#feedback-section {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5em;
  margin-top: 4em;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#feedback-section h2 {
  margin-top: 0;
  margin-bottom: 0.75em;
}

#feedback-section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
  color: var(--secondary-color);
  line-height: 1.7;
}

.feedback-button {
  display: inline-block;
  background-color: #28a745; /* A green 'success' color */
  color: #fff;
  padding: 0.8em 1.8em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.feedback-button:hover {
  background-color: #218838; /* Darker green on hover */
  transform: translateY(-2px);
  color: #fff;
}
.owner-link,
.whatsapp {
  color: #0a58ca;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2em;
}

header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3em;
  padding-bottom: 2em;
}

header h1 {
  font-size: 2.8em;
  margin-bottom: 0.25em;
}

header p {
  font-size: 1.1em;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0.5em auto;
}

.header-links {
  margin-top: 1.5em;
}

.header-links a {
  margin: 0 1em;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
}
.header-links a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 3.5em;
}

h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: var(--text-color);
  text-align: center; /* Centered section headings */
}

/* Styles for the grid of course materials */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
}

.resource-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px var(--shadow-color);
}

.resource-card h3 {
  font-size: 1.25em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.resource-card p {
  color: var(--secondary-color);
  flex-grow: 1; /* Pushes the link to the bottom */
  margin-bottom: 1.5em;
}

.resource-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  align-self: flex-start; /* Aligns button to the left */
  transition: background-color 0.2s ease-in-out;
}

.resource-link:hover {
  background-color: var(--link-hover-color);
  text-decoration: none;
  color: #fff;
}

/* Styles for the single card in the 'Study Skills' section */
.single-card {
  max-width: 400px;
  margin: 0 auto; /* Centers the single card */
}

footer {
  text-align: center;
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-color);
}

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