/* Global Layout */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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


html {
    font-family: "Poppins", sans-serif;
    font-size: 1.125em;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    height: 100%;

}

body {

    background: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.center {
    width: 70%;
    margin: 0 auto;
    /* border: 1px solid red;*/
}


/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;

}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 0 1rem;
}

.logo {
    font-weight: bold;
    color: #111;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-links a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    background: #f4f4f4;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.social-icons img {
    width: 20px;
    margin: 0 8px;
    opacity: 0.7;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .blog-index {
        padding: 40px 15px;
    }

    .blog-index .page-title {
        font-size: 2rem;
    }

    .card-content {
        padding: 15px;
    }
}


/* Blog Posts Section */
.blog-posts {
    padding: 50px 20px;
    background-color: #f7f7f7;
}

/* --- Blog Cards Grid --- */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    grid-template-rows: auto auto auto auto;
    justify-content: center;
    gap: 25px;
    text-align: center;

}


.card {
    background-color: #fff;
    border-radius: 10px;
    /*border: 1px solid black;*/
    overflow: hidden;
    text-align: center;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1/5;

}



.card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card-intro {
    color: #555;
    font-size: 1rem;
    margin-bottom: 10px;
}

.card-date {
    font-size: 0.9rem;
    color: #999;
}



/* --- Single Blog Post Styles --- */
.blog-post {
    max-width: 70%;
    margin: 60px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 5px;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
}

.post-intro {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

.post-body {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
}

.gallery-item figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.back-link {
    margin-top: 40px;
    text-align: center;
}

.back-link a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.back-link a:hover {
    text-decoration: underline;
}