/* Custom Styles */
html {
    scroll-behavior: smooth;
}
body {
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    color: #f3f4f6;
}

/* Custom color for headings and links */
.text-brand {
    color: #08c1a9;
}

/* Custom styles for the back button */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #08c1a9;
    color: #08c1a9;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-button:hover {
    background-color: #08c1a9;
    color: #000000;
}
.back-button svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}
.back-button:hover svg {
    transform: translateX(-4px);
}

/* Featured Blog Image */
.featured-blog-image {
    width: 100%;
    height: auto; /* Fallback for older browsers */
    aspect-ratio: 653 / 369; /* Maintain the image's natural aspect ratio */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    background-color: #111827; /* Dark background for if the image fails to load */
}

/* Styles for the article content */
.prose {
    color: #d1d5db; /* gray-300 */
}
.prose h1, .prose h2, .prose h3 {
    color: #f9fafb; /* gray-50 */
    margin-bottom: 1rem;
}
.prose h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #374151; /* gray-700 */
}
.prose h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
}
.prose p {
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.prose a {
    color: #08c1a9;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
.prose a:hover {
    color: #069a86;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose strong {
    color: #f9fafb;
}

/* Table of Contents */
.toc {
    background-color: #1f2937; /* gray-800 */
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #374151;
}
.toc h3 {
    color: #08c1a9;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.toc ul {
    list-style: none;
    padding: 0;
}
.toc li a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: block;
    padding: 0.5rem 0;
    transform-origin: left center;
}
.toc li a:hover {
    color: #08c1a9;
}
.toc li a.active {
    color: #08c1a9;
    font-weight: 700;
    transform: scale(1.05);
}

/* Call to Action Box */
.cta-box {
    background: linear-gradient(135deg, #08c1a9, #057a69);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.cta-box h3 {
    font-size: 2rem;
    font-weight: 800;
}
.cta-box p {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.cta-button {
    background-color: white;
    color: #08c1a9;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* Media Query for Mobile CTA */
@media (max-width: 640px) {
    .cta-box {
        padding: 1.5rem;
    }
    .cta-box h3 {
        font-size: 1.5rem; /* Reduced from 2rem */
    }
    .cta-box p {
        font-size: 0.875rem; /* text-sm */
    }
    .cta-button {
        padding: 0.6rem 1.2rem; /* Reduced padding */
        font-size: 0.875rem; /* text-sm */
    }
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
}

.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}
