﻿/* ============================= */
/*   BLOG PAGE STYLING           */
/* ============================= */

/* Shared container for blog pages (index and single post) */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Blog page main heading (used on listing page) */
.blog-title {
    text-align: left; /* changed from center */
    font-size: 2.5rem;
    font-family: 'Tactic Sans Bold', sans-serif;
    font-weight: bold;
    color: #FFD700; /* gold */
    margin-bottom: 40px;
    position: relative;
    display: block;
    padding-bottom: 10px;
}

    .blog-title::after {
        content: "";
        display: block;
        width: 120px;
        border-bottom: 4px solid #FFD700;
        margin-top: 8px;
    }

/* ============================= */
/*   BLOG INDEX / LIST VIEW      */
/* ============================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Post card on listing page */
.blog-card {
    background: #000; /* dark card like before */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 20px;
    flex: 1;
}

/* Title on listing card */
.blog-post-title {
    font-size: 1.6rem;
    font-family: 'Tactic Sans Bold', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left; /* ensure alignment */
}

    .blog-post-title a {
        color: #FFD700;
        text-decoration: none;
    }

        .blog-post-title a:hover {
            text-decoration: underline;
        }

/* Meta on listing card */
.blog-date {
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-family: 'Tactic Sans Bold', sans-serif;
    color: #FFD700;
    text-align: left;
}

.blog-categories {
    font-size: 0.9rem;
    font-family: 'Tactic Sans Bold', sans-serif;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: left;
}

/* Excerpt on listing card */
.blog-excerpt {
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Arimo', sans-serif;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* 'Read more' link on listing card */
.blog-readmore {
    font-family: 'Tactic Sans Bold', sans-serif;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    text-align: left;
    display: inline-block;
}

    .blog-readmore:hover {
        text-decoration: underline;
    }

/* ============================= */
/*   SINGLE BLOG POST PAGE       */
/*   (/blog/post/{id})           */
/* ============================= */

.blog-post {
    background: #fff;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Featured image on single post */
.blog-post-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
}

/* Single post title (keep gold) */
.blog-post-title-main {
    font-size: 2.2rem;
    font-family: 'Tactic Sans Bold', sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700;
    text-align: left; /* changed */
}

/* Single post meta (keep gold) */
.blog-date-single {
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-family: 'Tactic Sans Bold', sans-serif;
    color: #FFD700;
    text-align: left; /* changed */
}

.blog-author {
    font-size: 1rem;
    font-family: 'Tactic Sans Bold', sans-serif;
    color: #FFD700;
    margin-bottom: 4px;
    text-align: left; /* changed */
}

/* Body content inside single post */
.blog-body {
    color: #000;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: left;
}

    .blog-body p {
        margin-bottom: 1.2rem;
    }

    .blog-body a {
        color: #000;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

        .blog-body a:hover {
            color: #555;
        }

    /* Scale images inside post content */
    .blog-body img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1rem auto;
    }

/* Divider */
.blog-container hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2.5rem 0;
}

/* ============================= */
/*   COMMENTS SECTION            */
/* ============================= */

.blog-comments {
    background-color: #fafafa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

    .blog-comments h2 {
        color: #FFD700;
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-align: left; /* changed */
    }

    .blog-comments .comment {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 1rem 1.25rem;
        margin-bottom: 1.2rem;
        color: #000;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        text-align: left;
    }

    .blog-comments .fw-bold.text-gold {
        color: #FFD700 !important;
        font-size: 1rem;
    }

/* ============================= */
/*   COMMENT FORM                */
/* ============================= */

.blog-comment-form {
    margin-top: 2rem;
    background-color: #fafafa;
    border-radius: 10px;
    padding: 1.5rem;
}

    .blog-comment-form h3 {
        color: #FFD700;
        margin-bottom: 1rem;
        text-align: left; /* changed */
    }

    .blog-comment-form textarea {
        background-color: #fff;
        color: #000;
        border: 1px solid #ccc;
        border-radius: 6px;
        resize: vertical;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
    }

        .blog-comment-form textarea:focus {
            border-color: #000;
            outline: none;
            box-shadow: none;
        }

    /* Submit button */
    .blog-comment-form button {
        background-color: #000;
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 0.6rem 1.6rem;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }

        .blog-comment-form button:hover {
            background-color: #333;
        }

/* ============================= */
/*   RESPONSIVE TWEAKS           */
/* ============================= */

@media (max-width: 768px) {
    .blog-container {
        padding: 16px;
    }

    .blog-post-title-main {
        font-size: 1.8rem;
    }
}
