﻿h1 {
    text-align: center;
    font-weight: 300;
    margin: 40px 0 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    margin-bottom: 40px;
}

.featured-card {
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

    .featured-card:hover {
        transform: translateY(-2px);
    }

    .featured-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.featured-card-content {
    padding: 20px;
    flex-grow: 1;
}

.featured-card h2 {
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #222;
}

.featured-card p {
    font-size: 0.95em;
    line-height: 1.5em;
    color: #555;
    margin-bottom: 20px;
}

.featured-card a {
    text-decoration: none;
    color: var(--secondary-link-color);
    font-weight: bold;
    font-size: 0.95em;
}

    .featured-card a:hover {
        text-decoration: underline;
    }

/* All Posts Section */
.all-posts {
    background: var(--secondary-bg-color);
    color: var(--secondary-font-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 40px;
}

    .all-posts h3 {
        margin-top: 0;
        font-size: 1.2em;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--secondary-font-color);
        padding-bottom: 10px;
    }

    .all-posts ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .all-posts li {
        padding: 10px 0;
        border-bottom: 1px solid var(--secondary-font-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .all-posts li:last-child {
            border-bottom: none;
        }

    .all-posts a {
        text-decoration: none;
        color: var(--secondary-link-color);
        font-weight: bold;
    }

        .all-posts a:hover {
            text-decoration: underline;
        }

    .all-posts .excerpt {
        font-size: 0.9em;
        color: var(--secondary-font-color);
        margin-left: 15px;
        flex-grow: 1;
    }

.card-header {
    color: var(--secondary-font-color);
}

.return-link {
    color: var(--secondary-link-color);
}

/*------------------------------------------------------------------
   TAG LIST – pill‑style links at bottom of each blog post
  ------------------------------------------------------------------*/
/* Card wrapper */
.tag-card {
    background: var(--secondary-bg-color, #f8f9fa);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    /* Heading */
    .tag-card h4 {
        margin: 0;
        font-size: 1.125rem; /* 18px */
        font-weight: 600;
        color: #343a40;
    }

/* Tag list */
.tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem; /* 8px between pills */
}

    .tag-cloud li {
        margin: 0;
    }

    /* Tag pill */
    .tag-cloud a {
        display: inline-block;
        padding: .35rem .75rem; /* 6x12 */
        font-size: .8125rem; /* 13px */
        line-height: 1.25;
        background: #e9ecef;
        color: var(--secondary-link-color, #0d6efd);
        border-radius: 9999px;
        text-decoration: none;
        transition: background-color .15s ease, color .15s ease;
    }

        .tag-cloud a:hover {
            background: var(--secondary-link-color, #0d6efd);
            color: #fff;
        }

@media (max-width: 600px) {
    .all-posts li {
        flex-direction: column;
        align-items: flex-start;
    }

    .all-posts .excerpt {
        margin: 5px 0 0 0;
    }
}
