/* blog.css */

/* Root Variables for Consistency */
:root {
    --primary-color: #2a52be; /* Blue accent */
    --primary-hover: #1e3a8a; /* Darker blue for hover */
    --background-color: #ffffff; /* White background */
    --text-color: #333333; /* Dark gray text */
    --secondary-text-color: #555555; /* Medium gray text */
    --border-color: #dddddd; /* Light gray borders */
    --feedback-background: #ededed; /* Light gray for feedback section */
    --button-text-color: #ffffff; /* White text on buttons */
    --highlight-color: #6c63ff; 


}

/* Reset Margin and Padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 80px; /* Space for fixed navbar */
}

/* Header and Navigation Bar Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Styling */
.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand .accent {
    color: var(--primary-color);
}

/* Navigation Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Active Link Styling (Optional) */
.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333333;
    margin: 4px 0;
    transition: background 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--background-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        max-height: 500px;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid #f1f1f1;
    }

    .nav-links li:first-child {
        border-top: none;
    }
}

/* Blog Post Section */
.blog-post {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 3rem auto;
    text-align: left;
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Blog Title */
.blog-post h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

/* Blog Meta Information */
.blog-meta {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Blog Content Paragraphs */
.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Headings within Blog Content */
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.blog-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Length of the dividing line */
    height: 3px; /* Thickness of the dividing line */
    background-color: var(--primary-color); /* Color of the dividing line */
    border-radius: 2px;
}

/* Lists within Blog Content */
.blog-content ul,
.blog-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Blockquotes within Blog Content */
.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    color: var(--secondary-text-color);
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #fefefe;
    padding: 1rem;
    border-radius: 4px;
}

/* Blog Images */
.blog-image {
    text-align: center;
    margin: 2rem 0;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Feedback Section */
.feedback-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--feedback-background);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feedback-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.feedback-section p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Feedback Form Labels */
.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Feedback Form Inputs and Textarea */
.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #ffffff;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Placeholder Text */
.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #999999;
}

/* Feedback Form Submit Button */
.feedback-form button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    background: var(--primary-color);
    color: var(--button-text-color);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feedback-form button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f1f1f1;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    flex: 1 1 200px;
    max-width: 300px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--highlight-color); /* Adjust to your accent color */
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;

}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--highlight-color); /* Adjust to your accent color */
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.back-to-top .icon {
    font-size: 1.5rem;
}

.back-to-top .label {
    display: none;
}

/* Style for Resources Links */
.resources-links a {
    color: #2a52be; /* Blue color matching the primary accent */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resources-links a:hover {
    color: #1e3a8a; /* Darker blue on hover for better UX */
    text-decoration: underline;
}

/* Code Blocks */
.blog-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-content code {
    font-family: 'Source Code Pro', monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.blog-content th,
.blog-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.blog-content th {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.blog-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post {
        padding: 3rem 1rem;
    }

    .blog-post h1 {
        font-size: 2rem;
    }

    .blog-content p {
        font-size: 1rem;
    }

    .feedback-section {
        padding: 1.5rem;
    }

    .feedback-section h3 {
        font-size: 1.5rem;
    }

    .feedback-form button {
        width: 100%;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .back-to-top .icon {
        font-size: 1.2rem;
    }
}
