/* ---------- BLOG INDEX PAGE ---------- */

.blog-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Anybody', cursive;
    color: #fff;
}

/* Category title */
.blog-category-title {
    margin: 10px 0 20px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 2px;
    color: rgb(255, 250, 175);
    text-shadow: -1px -1px 1px #020202;
    transition: 0.3s;
}

.blog-category-title a,
.blog-category-title a:visited,
.blog-category-title a:active {
    color: inherit;
    text-decoration: none;
}

.blog-category-title a:hover {
    color: rgb(255, 255, 220);
}

/* Posts grid */
.blog-post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    grid-auto-rows: auto;
}

/* Individual post */
.blog-post-item {
    background-color: #334;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle hover effect */
.blog-post-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Featured post: first row alone */
.featured-post {
    grid-column: 1 / -1; /* always spans entire row */
}

@media (min-width: 650px) {
    .featured-post {
        grid-column: span 2; /* spans 2 columns if possible */
    }
}

@media (max-width: 650px) {
    .featured-post {
        grid-column: span 1; /* single column for narrow screens */
    }
}

.featured-post .blog-post-item-image {
    height: 260px;
}

.featured-post .blog-post-item-title {
    font-size: 24px;
}

/* Images */
.blog-post-item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Padding */
.blog-post-item-title,
.blog-post-item-meta,
.blog-post-item-excerpt {
    padding: 0 18px;
}

/* Title */
.blog-post-item-title {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: 1px;
    color: rgb(255, 250, 175);
    text-shadow: -1px -1px 1px #020202;
}

.blog-post-item-title a {
    color: rgb(255, 250, 175);
    text-decoration: none;
}

/* Meta */
.blog-post-item-meta {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgb(180, 200, 200);
    margin-bottom: 10px;
}

/* Excerpt */
.blog-post-item-excerpt {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: justify;
    text-shadow: -1px -1px 1px #020202;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* Read more (ALWAYS BOTTOM-LEFT) */
.blog-read-more {
    margin-top: auto;
    margin-left: 18px;
    margin-bottom: 18px;

    font-weight: bold;
    letter-spacing: 1px;
    color: rgb(116, 181, 184);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-read-more:link,
.blog-read-more:visited,
.blog-read-more:active {
    color: rgb(116, 181, 184);
    text-decoration: none;
}

.blog-read-more:hover {
    color: rgb(142, 207, 211);
}

/* Category read more */
.blog-category-read-more {
    text-align: center;
    margin: 12px 0 40px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.blog-category-read-more a {
    color: rgb(116, 181, 184);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.blog-category-read-more a:hover {
    color: rgb(142, 207, 211);
    transform: scale(1.05);
    cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    .blog-post-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .featured-post {
        grid-column: span 1;
    }

    .featured-post .blog-post-item-image {
        height: 180px;
    }
}

@media (max-width: 460px) {
    .blog-post-list {
        grid-template-columns: 1fr;
    }
}

/* ------------- CATEGORY PAGE -------------*/
.category-page .blog-category-title {
    margin: 20px 0 20px;
    text-align: left;
    font-size: 26px;
    letter-spacing: 2px;
    color: rgb(255, 250, 175);
    text-shadow: -1px -1px 1px #020202;
}

.blog-breadcrumb {
    color: rgb(116, 181, 184);
    font-family: 'Anybody', cursive;
}

@media (min-width: 600px) {
    .blog-breadcrumb {
        font-size: 15px;
    }
}

@media (max-width: 599px) {
    .blog-breadcrumb {
        font-size: 12px;
    }
}

.blog-breadcrumb a {
    color: rgb(116, 181, 184);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-breadcrumb a:hover {
    color: rgb(142, 207, 211);
}

/* Posts list using same style as index */
.category-page .blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual post box */
.category-page .blog-post-item {
    display: flex;
    flex-direction: row;
    background-color: #334;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.category-page .blog-post-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

/* Make card columns stretch */
.category-page .blog-post-item {
    display: flex;
    align-items: stretch;
}

/* Image column */
.category-page .blog-post-image-wrapper {
    width: 300px;
    flex-shrink: 0;
}

/* Image fills full card height */
.category-page .blog-post-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .category-page .blog-post-item {
        flex-direction: column;
    }

    .category-page .blog-post-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .category-page .blog-post-item-image {
        width: 100%;
        height: 200px;
    }
}

/* Text right, vertically centered */
.category-page .blog-post-text {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* Titles, meta, excerpt */
.category-page .blog-post-item-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    letter-spacing: 1px;
    color: rgb(255, 250, 175);
    text-shadow: -1px -1px 1px #020202;
}

.category-page .blog-post-item-meta {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgb(180, 200, 200);
    margin-bottom: 10px;
}

.category-page .blog-post-item-excerpt {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: justify;
    text-shadow: -1px -1px 1px #020202;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* Read more */
.category-page .blog-read-more {
    font-weight: bold;
    letter-spacing: 1px;
    color: rgb(116, 181, 184);
    text-decoration: none;
    transition: color 0.3s;
}

.category-page .blog-read-more:hover {
    color: rgb(142, 207, 211);
}

/* ---------- FULL CARD CLICK ---------- */

.blog-post-item {
    position: relative;
    cursor: pointer;
}

/* Clickable overlay */
.blog-post-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Content must NEVER intercept clicks */
.blog-post-item > :not(.blog-post-overlay-link) {
    pointer-events: none;
}

/* Hover Read More when CARD is hovered */
.blog-post-item:hover .blog-read-more {
    color: rgb(142, 207, 211);
}

/* ---------- PAGINATION NUMERIC ---------- */

.blog-pagination {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.blog-pagination a,
.blog-pagination span {
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #2a2f44;
    color: rgb(116, 181, 184);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background-color: #354d5a;
    color: rgb(142, 207, 211);
}

.blog-pagination .current-page {
    background-color: #445b6a;
    color: #fff;
    cursor: default;
}

.footer{
    margin-right: 0px !important;
}