/**
 * ThemeForge Pro Fashion — Inner pages styles.
 */

.tf-container--narrow {
    max-width: 780px;
}

.tf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.tf-post-card {
    display: flex;
    flex-direction: column;
}

.tf-post-card__thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 16px;
}

.tf-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tf-post-card:hover .tf-post-card__thumb img {
    transform: scale(1.04);
}

.tf-post-card__meta {
    font-size: 0.75rem;
    color: #737373;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tf-post-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tf-post-card__title a {
    color: #171717;
    text-decoration: none;
}

.tf-post-card__title a:hover {
    opacity: 0.7;
}

.tf-post-card__excerpt {
    font-size: 0.9375rem;
    color: #555;
    margin-bottom: 12px;
}

.tf-read-more {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #171717;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    align-self: flex-start;
}

/* Single post */
.tf-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.tf-single-meta {
    font-size: 0.75rem;
    color: #737373;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tf-separator {
    margin: 0 8px;
}

.tf-single-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.tf-single-thumb {
    margin-bottom: 40px;
    overflow: hidden;
}

.tf-single-thumb img {
    width: 100%;
    height: auto;
}

.tf-single-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a2a2a;
}

.tf-single-content p {
    margin-bottom: 1.5em;
}

.tf-single-content h2,
.tf-single-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-top: 2em;
}

.tf-single-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eaeaea;
    font-size: 0.875rem;
    color: #737373;
}

.tf-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eaeaea;
    font-size: 0.875rem;
}

.tf-post-nav a {
    color: #171717;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.tf-post-nav a:hover {
    border-bottom-color: currentColor;
}

/* Page content */
.tf-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.tf-page-thumb {
    margin-bottom: 40px;
}

.tf-page-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a2a2a;
}

/* Pagination */
.tf-pagination {
    text-align: center;
    margin: 48px 0;
}

.tf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    font-size: 0.875rem;
    color: #171717;
    text-decoration: none;
    border: 1px solid #eaeaea;
}

.tf-pagination .page-numbers.current {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
}

/* Search form */
.tf-search-results .tf-page-header .search-form,
.tf-404 .search-form {
    max-width: 480px;
    margin: 24px auto 0;
    display: flex;
    gap: 8px;
}

.tf-search-results .search-form input[type="search"],
.tf-404 .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #eaeaea;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
}

.tf-search-results .search-form input[type="search"]:focus,
.tf-404 .search-form input[type="search"]:focus {
    border-color: #171717;
}

.tf-search-results .search-form button,
.tf-search-results .search-form input[type="submit"],
.tf-404 .search-form button,
.tf-404 .search-form input[type="submit"] {
    padding: 12px 24px;
    background: #171717;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
    .tf-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tf-posts-grid {
        grid-template-columns: 1fr;
    }

    .tf-post-nav {
        flex-direction: column;
        text-align: center;
    }
}