.guide-preview-section {
    background-color: var(--primary-orange);
    padding: 60px 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.guide-preview-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 40px;
}

.guides-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* Use 3 columns on larger screens */
@media (min-width: 768px) {
    .guides-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Guide Cards */
.guide-card {
    position: relative; 
    background-color: #fff; /* Use a direct hex code for white */
    border-radius: 16px; /* A slightly larger radius feels more modern */
    padding: 2rem; /* Increased padding for better whitespace */
    text-align: left; /* Left-aligning text is cleaner for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 0;
    overflow: hidden; /* Ensures the image corners are rounded */
}

.guide-card:hover {
    transform: translateY(-5px) scale(1.02); /* A more subtle combination effect */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.12);
}

.guide-card h3 {
    font-size: 1.25rem; /* Slightly smaller for a tighter look */
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.guide-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}
  
.guide-card h3 a:hover {
    color: var(--brand-blue);
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0; /* Remove bottom margin as padding handles the space */
}

.guide-card .stretched-link::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}

.guide-card-image-link {
    display: block; /* Makes the link a block element */
}

.guide-card-image {
    width: 100%;
    height: 200px; /* Give the image a fixed height */
    object-fit: cover; /* This prevents the image from being stretched or distorted */
    display: block;
}

.guide-card-content {
    padding: 1.5rem; /* Add the padding here instead of the main card */
}
/* END Guide Cards */

.all-guides-link a {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.0);
}
  
.all-guides-link a:hover {
    background-color: var(--primary-orange);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--white)
}

/* Single Page Content CSS */
.guide-page-wrapper {
    background-color: var(--primary-orange);
    padding: 1px 0; /* Prevents margin collapse */
}

.guide-container {
    max-width: 800px; /* Optimal width for readability */
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.guide-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.guide-hero-image {
    width: 100%;
    height: 400px; /* A taller height for a "hero" feel */
    background-color: #eee; /* A fallback color while the image loads */
    border-radius: 16px;
}

.guide-text-content {
    padding: 40px; /* Add the padding back to the text container */
}

.guide-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 16px 16px 0 0; /* Rounds the top corners to match the card */
}

.guide-content h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
}

.guide-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

/* Styles for the Markdown content itself */
.prose p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5em;
}
  
.prose h2, .prose h3 {
    color: var(--text-dark);
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }

.prose a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.prose a:hover {
    border-color: var(--brand-blue);
}

.prose ul, .prose ol {
    padding-left: 25px;
    margin-bottom: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.7;
    font-size: 1.1rem;
}

.prose blockquote {
    margin-left: 0;
    padding-left: 20px;
    border-left: 4px solid var(--brand-blue);
    font-style: italic;
    color: var(--text-light);
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}

/* END Single Page Content CSS */

.guide-list-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.guide-list-header {
    background-color: var(--brand-orange);
    text-align: center;
    padding: 60px 20px;
}

.guide-list-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.guide-list-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
  
.guides-grid-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}