/* CSS Variables for consistent styling */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #6b7280;
  --secondary-light: #e5e7eb;
  --success-color: #10b981;
  --card-bg: #ffffff;
  --light-bg: #f9fafb;
  --highlight-bg: #e0e7ff;
  --text-color: #1f2937;
  --heading-color: #111827;
  --muted-text: #6b7280;
  --border-color: #e5e7eb;
}

/* Resources page styles */

#resources {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.resources-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.resources-intro h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.resources-intro p {
    color: #555;
    line-height: 1.6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.resource-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-content h3 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.resource-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s;
}

.resource-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.resources-container {
  margin-bottom: 3rem;
}

.section-description {
  margin-bottom: 2rem;
}

.resources-section-title {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #555;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  margin-top: 4px;
  margin-right: 10px;
}

.checkbox-group label {
  margin-bottom: 0;
}

.btn {
  background-color: #4285f4;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  width: 100%;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #3367d6;
}

.newsletter-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    text-align: center;
    color: #4CAF50;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 500;
    animation: fadeIn 0.5s;
}

.version-selection {
    margin-bottom: 20px;
}

.radio-group {
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.radio-group label {
    display: inline;
    font-weight: normal;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #333;
}

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        border-radius: 4px;
        padding: 0.8rem;
    }
}
