/* Common Styles */
@font-face {
    font-family: 'Gabriola';
    font-style: normal;
    font-weight: normal;
    src: local('Gabriola'), url('/assets/gabriola.woff') format('woff');
    }

:root {
    --primary-color: #007bff;
    --secondary-color: #129bb6;
    --font-family: Gabriola;
}

.hidden {
    display: none!important;
}

.list-hero-image {
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.list-hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.list-hero-title {
    font-size: 2.5rem;
    margin: 0;
}

.list-hero-title a {
    color: white;
    text-decoration: none;
}

.list-hero-title a:hover {
    text-decoration: underline;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}

.blog-list-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(25% - 20px); /* Adjust width for 5 cards per row */
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.blog-list-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-list-content {
    padding: 20px;
    position: relative;
    flex-grow: 1;
}

.blog-list-category {
    font-family: var(--font-family);
    font-size: 1rem;
    color: #666;
    margin: 10px 0 10px;
}

.blog-list-title {
    font-family: var(--font-family);
    font-size: 2rem;
    margin: 10px 0 10px;
}

.blog-list-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-list-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.read-more:hover {
    color: #0056b3;
}

.author-thumb {
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 2px solid white;
}

.author-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-list-card {
        width: calc(100% - 20px); /* Full width on mobile */
    }
}



/* Layout */
.blog-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Blog Post Common Styles */
.blog-post {
    margin-bottom: 4rem;
    font-family: var(--font-family);
}

.blog-post-single {
    background-color: #fff;
}

/* Blog Post Header */
.blog-post-header {
    display: flex;
    min-height: 400px;
    background: #fff;
    flex-direction: row;
    flex-flow: row-reverse;
}

.blog-post-info {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-family);
    background-color: #eafcff;
}

.blog-post-image {
    width: 50%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.blog-post-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Blog Post Typography */
.blog-post-title {
    font-size: 4rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-category {
    font-size: 1.2rem;    
    color: var(--secondary-color);
    font-variant: small-caps;
    margin-bottom: 60px;
}

.blog-author {
    font-size: 1.7rem;    
    color: var(--secondary-color);
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.blog-post-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Blog Post Content */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #333;
    background-color: white;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Blockquote Styles */
.custom-blockquote {
    border: none;
}

.blockquote-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.blockquote-text {
    font-family: var(--font-family);
    font-style: italic;
    color: white;
    width: 100%;
    padding-left: 20px;
}

.blockquote-author-thumb {
    border-radius: 100%;
    width: 200px;
    height: 200px;
}

.comment-text {
    font-family: var(--font-family);
    font-size: 1.8rem;
    line-height: 1.8;
    width: 100%;
    color: #333;
    background-color: #fafafa;
    resize:none;
}

.commenter {
    margin-bottom: 0rem;
    font-family: var(--font-family);
    font-size: 2rem;
    margin: 0!important;
    padding: 0;
    color: #129bb6;
}

.commenter-date {
    margin-top: 0rem;
    margin: 0!important;
    padding: 0;
    font-family: var(--font-family);
}

.comment-check {
    font-family: var(--font-family);
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.comment_button {
    display: inline-block;
    background-color: #0f7a8f;
    padding: 2px 20px;
    font-family: olicana-smooth;
    font-size: 2.2rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
    text-shadow: #0f7a8f;
    border-radius: 14px;
    transition: background-color 0.3s;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.comment_button:hover:not(:disabled) {
    background-color: #41b9d1;
    color: white;
    font-family: olicana-smooth;
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5); /* Inset box shadow */
}

.comment_button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.commenter-container{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.comment-author-thumb {
    border-radius: 100%;
    width: 60px;
    height: 60px;
    padding-right: 10px;
}


/* Blog Post Footer */
.blog-post-footer {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    border-top: 1px solid #eee;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.page-item {
    display: inline-flex;
}

.page-link {
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.page-link:hover {
    background-color: #f8f9fa;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post-header {
        flex-direction: column;
        min-height: auto;
    }

    .blog-post-info,
    .blog-post-image {
        width: 100%;
    }

    .blog-post-info {
        padding: 1.5rem;
    }

    .blog-post-image {
        height: 300px;
    }

    .blog-post-content p {
        margin-bottom: 1.5rem;
        font-family: var(--font-family);
        color: #333;
   }

    .blog-category {
        margin-bottom: 20px;
    }

    .blog-post-title {
        font-size: 3rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-post-excerpt {
        font-size: 1rem;
    }

    .blockquote-text p {
        color: white;
    }
        
}
