﻿.post-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
}

.post-item:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Make post titles 3x larger */
.post-item .fw-bold {
    font-size: 3em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.3em;
    line-height: 1.2;
}

.post-item .fw-bold:hover {
    text-decoration: underline;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    display: block;
    margin: 0.5rem 0;
}

/* Apply the same formatting styles for post content on index page */
.post-content h1 {
    font-size: 1.75em;
    font-weight: bold;
    margin: 0.5em 0;
}

.post-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.4em 0;
}

.post-content strong {
    font-weight: bold;
}

.post-content em {
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 4px;
}

.post-content p {
    margin-bottom: 0.5rem;
}

.post-content-preview {
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.post-content-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.search-group {
    position: relative;
}

.clear-search-btn {
    box-shadow: none;
    color: var(--bs-secondary-color);
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.clear-search-btn:hover,
.clear-search-btn:focus {
    color: var(--bs-body-color);
    box-shadow: none;
}

.ad-banner {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.ad-banner-frame {
    width: 100%;
    aspect-ratio: 1400 / 400;
    border-radius: 12px;
    background: #e9ecef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-banner-placeholder {
    color: #6c757d;
    font-weight: 600;
}

@media (max-width: 576px) {
    .clear-search-btn {
        right: 0.5rem;
        transform: translateY(-50%);
    }
}

.search-group .form-control {
    padding-right: 2.5rem;
}

.search-group #clearSearch {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    z-index: 3;
}

@media (max-width: 768px) {
    .post-item {
        padding: 0.75rem;
    }
    
    /* Make titles smaller on mobile for better readability */
    .post-item .fw-bold {
        font-size: 2em;
    }
}