/* /blog/css/blog.css */

/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff; /* White background */
    color: #333333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
}

/* Container for the blog post and Contact Sidebar */
.blog-container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main blog post styling */
.blog-post {
    flex: 3;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-right: 20px;
    position: relative;
}

/* Image styling */
.blog-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    loading: lazy;
}

.blog-image:hover {
    transform: scale(1.05);
}

/* Blog date */
.blog-date {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 10px;
    display: block;
}

/* Blog title */
.blog-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #222222;
}

/* Blog text */
.blog-text {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

#more {
    display: none;
}

/* Read More Button Styling */
.read-more-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #218838;
}

/* Contact Information Sidebar */
.contact-sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-sidebar h3 {
    margin-bottom: 15px;
    color: #222222;
    font-size: 1.2em;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

.contact-info p {
    font-size: 1em;
    margin: 10px 0;
    display: flex;
    align-items: center;
    color: #555555;
}

.contact-info i {
    margin-right: 10px;
    color: #28a745;
    min-width: 20px;
    text-align: center;
}

.contact-info a {
    color: #28a745;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Collapsible Contact Sidebar for Mobile */
@media (max-width: 600px) {
    .contact-sidebar {
        position: relative;
        top: 0;
        border: 1px solid #ccc;
        margin-top: 20px;
        transition: max-height 0.3s ease;
        overflow: hidden;
        max-height: 50px;
    }

    .contact-sidebar.open {
        max-height: 1000px; /* Ensure it is large enough to show all content when expanded */
    }

    .contact-sidebar h3 {
        cursor: pointer;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-post {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .contact-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.3em;
    }

    .read-more-btn {
        padding: 6px 12px;
    }

    .contact-info p {
        font-size: 0.8em;
    }
}
/* Existing blog.css content */

/* Contact Information Sidebar */
.contact-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 20px;
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 250px;
    cursor: pointer;
}

.contact-sidebar h3 {
    margin-bottom: 15px;
    color: #333333;
    text-align: center;
    cursor: pointer;
}

.contact-info {
    display: none;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555555;
}

.contact-info a {
    color: #28a745;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-post, .contact-sidebar {
        width: 100%;
    }

    .contact-sidebar {
        position: static;
        top: auto;
    }
}
/* /blog/css/blog.css */

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

body {
    background-color: #f8f9fa;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
}

/* Container for Blog Posts and Contact Sidebar */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Main Blog Posts */
.blog-post, .full-post-container {
    flex: 3;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Blog Image */
.blog-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Blog Date */
.blog-date, .post-date {
    display: block;
    color: #777777;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Blog Title */
.blog-title, .full-post-container h2 {
    color: #333333;
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-title:hover, .full-post-container h2:hover {
    color: #28a745;
    text-decoration: underline;
}

/* Blog Text */
.blog-text, .post-content {
    color: #555555;
    line-height: 1.6;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #218838;
}

/* Contact Information Sidebar */
.contact-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 20px;
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 250px;
    cursor: pointer;
}

.contact-sidebar h3 {
    margin-bottom: 15px;
    color: #333333;
    text-align: center;
    cursor: pointer;
}

.contact-info {
    display: none;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555555;
}

.contact-info a {
    color: #28a745;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-post, .full-post-container, .contact-sidebar {
        width: 100%;
    }

    .contact-sidebar {
        position: static;
        top: auto;
    }
}

/* Admin Login Button (Optional) */
.admin-login-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.admin-login-btn:hover {
    background-color: #218838;
}

/* Hover Effects for Titles */
.blog-title:hover, .full-post-container h2:hover {
    color: #28a745;
    text-decoration: underline;
}
