/* Combined CSS from template/redgifs-blog-post.html, pages/blog.php, and pages/blog-post.php */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 30, 60, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 60, 90, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(25, 25, 35, 0.5) 0%, transparent 100%);
}

.grid-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(255, 30, 60, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 30, 60, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

header {
    position: relative;
    z-index: 10;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 30, 60, 0.7));
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF1E3C, #FF3C5A);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {

    width: 100%;

}



/* General Heading and Paragraph Styles */

h1 {

    font-family: 'Syne', sans-serif;

    font-size: 48px; /* Default H1 size, can be overridden */

    font-weight: 800;

    margin-bottom: 24px;

    line-height: 1.2;

    color: #fff; /* Solid white by default */

}



h2 {

    font-family: 'Syne', sans-serif;

    font-size: 32px; /* Default H2 size, can be overridden */

    font-weight: 700;

    color: #fff;

    margin: 48px 0 20px;

}



h3 {

    font-family: 'Space Grotesk', sans-serif;

    font-size: 24px; /* Default H3 size, can be overridden */

    font-weight: 600;

    color: #FF3C5A; /* Default H3 color */

    margin: 32px 0 16px;

}



p {

    font-size: 17px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.8);

    margin-bottom: 20px;

}



main {
    position: relative;
    z-index: 10;
    max-width: 1200px; /* Re-added for general page width */
    margin: 0 auto;
    padding: 60px 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FF3C5A;
}

.breadcrumb svg {
    width: 12px;
    height: 12px;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FF1E3C, #FF3C5A);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}



.page-header h1 { /* Specific for blog list page */
    font-size: 56px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #FF1E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}


.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 30, 60, 0.2);
    border-bottom: 1px solid rgba(255, 30, 60, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    stroke: #FF3C5A;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF1E3C, #FF3C5A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 30, 60, 0.3), rgba(255, 60, 90, 0.3));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 30, 60, 0.2);
}

.featured-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.3);
}

.featured-image svg {
    width: 80px;
    height: 80px;
    stroke: #FF1E3C;
    position: relative;
    z-index: 1;
}

.article-content {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 30, 60, 0.2);
    padding: 48px;
}

.article-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 20px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #FF3C5A;
    margin: 32px 0 16px;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.article-content strong {
    color: #FF1E3C;
    font-weight: 600;
}

.highlight-box {
    background: rgba(255, 30, 60, 0.1);
    border: 1.5px solid rgba(255, 30, 60, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.highlight-box h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box svg {
    width: 20px;
    height: 20px;
    stroke: #FF3C5A;
}

.step-box {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 30, 60, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF1E3C, #FF3C5A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.comparison-table {
    width: 100%;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 30, 60, 0.2);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: rgba(255, 30, 60, 0.2);
    padding: 16px;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 30, 60, 0.3);
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 30, 60, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 30, 60, 0.2), rgba(255, 60, 90, 0.2));
    border: 1.5px solid rgba(255, 30, 60, 0.4);
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

.cta-box h3 {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 16px;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF1E3C 0%, #FF3C5A 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 30, 60, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.related-posts {
    margin-top: 80px;
}

.related-posts h2 {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #FF1E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 30, 60, 0.2);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 30, 60, 0.4);
}

.related-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(255, 30, 60, 0.3), rgba(255, 60, 90, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-thumbnail svg {
    width: 40px;
    height: 40px;
    stroke: #FF1E3C;
}

.related-content {
    padding: 20px;
}

.related-category {
    font-size: 12px;
    color: #FF3C5A;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.related-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.share-section {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 30, 60, 0.2);
    padding: 32px;
    margin: 60px 0;
    text-align: center;
}

.share-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 30, 60, 0.2);
    border: 1px solid rgba(255, 30, 60, 0.3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: rgba(255, 30, 60, 0.3);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

footer {
    position: relative;
    z-index: 10;
    margin-top: 80px;
    padding: 60px 40px 30px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 30, 60, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: #FF1E3C;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 30, 60, 0.15);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-content {
        padding: 24px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .featured-image {
        height: 250px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* blog-post-single responsive adjustments if still needed */
    .blog-post-single {
        margin: 20px auto;
        padding: 20px;
    }
    .blog-post-single h1 {
        font-size: 28px;
    }
    .blog-post-single .post-content h2 {
        font-size: 24px;
    }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    background-color: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 30, 60, 0.2);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s;
}
body.blog-post-page main {
    max-width: 900px;
}

#back-to-top:hover {
    background-color: #FF1E3C;
    transform: scale(1.1);
}