/* --- Page Specific Styles --- */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.page-header h1 { font-size: 2.5rem; }

/* Featured Post */
.featured-post {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    min-height: 350px;
}
.featured-img {
    flex: 1.2;
    background-color: #ddd; /* Placeholder color */
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-post:hover .featured-img img {
    transform: scale(1.05);
}
.featured-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-title { font-size: 2rem; color: var(--primary-navy); margin-bottom: 15px; line-height: 1.3; }
.featured-excerpt { color: #555; margin-bottom: 25px; font-size: 1.05rem; }

/* Post Grid */
.section-heading { font-size: 1.5rem; color: var(--primary-navy); margin-bottom: 25px; border-left: 5px solid var(--accent-teal); padding-left: 15px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.post-img {
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}
.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-img img {
    transform: scale(1.1);
}

.post-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 0.85rem; color: #999; margin-bottom: 10px; display: flex; justify-content: space-between; }
.post-title { font-size: 1.25rem; color: var(--primary-navy); margin-bottom: 10px; font-weight: 600; line-height: 1.4; }
.post-desc { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-alert { background-color: #ffebee; color: #c62828; }
.badge-info { background-color: #e0f7fa; color: #006064; }
.badge-tech { background-color: #f3e5f5; color: #7b1fa2; }

.read-more {
    display: inline-block;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s, transform 0.2s;
}
.read-more:hover {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Share Buttons */
.share-buttons { margin-top: 15px; display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 0.85rem; color: #999; }
.btn-social { border: none; padding: 4px 10px; border-radius: 4px; color: white; font-size: 0.8rem; cursor: pointer; font-family: 'Sarabun', sans-serif; transition: opacity 0.2s; }
.btn-social:hover { opacity: 0.8; }
.btn-facebook { background-color: #1877f2; }
.btn-line { background-color: #06c755; }

/* Search Box */
.search-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.search-input { width: 100%; padding: 12px 20px; border: 2px solid #e1e1e1; border-radius: 5px; font-size: 1rem; font-family: 'Sarabun', sans-serif; }
.search-input:focus { border-color: var(--accent-teal); outline: none; }

/* Filter Buttons */
.category-filter { margin-bottom: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    transition: all 0.3s;
    color: #666;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    border-color: var(--accent-teal);
    font-weight: 600;
}

@media (max-width: 768px) {
    .featured-post { flex-direction: column; }
    .featured-img { min-height: 200px; }
}

footer {
    margin-top: 60px;
}