/* 
 * Sancaktepe Stunning Blog Grid 
 * Responsive, Modern, and Premium Design
 */

:root {
    --stbg-primary: #009245; /* Ozkapsan Green */
    --stbg-primary-rgb: 0, 146, 69;
    --stbg-dark: #121212;
    --stbg-text: #333333;
    --stbg-text-light: #666666;
    --stbg-white: #ffffff;
    --stbg-glass: rgba(255, 255, 255, 0.7);
    --stbg-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --stbg-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stbg-container {
    max-width: 1300px;
    margin: 120px auto 60px auto; /* Increased top margin for header clearance */
    padding: 0 20px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Header Section */
.stbg-header-section {
    text-align: center;
    margin-bottom: 50px;
}

.stbg-page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--stbg-dark);
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.stbg-page-subtitle {
    font-size: 1.1rem;
    color: var(--stbg-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.stbg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Card */
.stbg-card {
    background: var(--stbg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--stbg-transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.stbg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--stbg-primary-rgb), 0.2);
}

/* Card Media */
.stbg-card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.stbg-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--stbg-transition);
}

.stbg-card:hover .stbg-thumbnail {
    transform: scale(1.1);
}

.stbg-card-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.stbg-category {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--stbg-primary);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Card Content */
.stbg-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stbg-meta {
    margin-bottom: 12px;
}

.stbg-date {
    font-size: 0.85rem;
    color: var(--stbg-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stbg-title {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 15px;
}

.stbg-title a {
    color: var(--stbg-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.stbg-card:hover .stbg-title a {
    color: var(--stbg-primary);
}

.stbg-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--stbg-text-light);
    margin-bottom: 25px;
}

/* Footer & Read More */
.stbg-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stbg-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stbg-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--stbg-transition);
}

.stbg-read-more i {
    transition: transform 0.3s;
}

.stbg-read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.stbg-pagination {
    margin-top: 60px;
    text-align: center;
}

.stbg-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.stbg-pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--stbg-white);
    color: var(--stbg-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--stbg-transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.stbg-pagination .page-numbers.current,
.stbg-pagination .page-numbers:hover {
    background: var(--stbg-primary);
    color: var(--stbg-white);
    border-color: var(--stbg-primary);
}

/* Placeholder Image */
.stbg-placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #009245 0%, #121212 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stbg-placeholder-img::after {
    content: 'ÇELİK KAPI';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(255,255,255,0.1);
    transform: rotate(-15deg);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .stbg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stbg-grid {
        grid-template-columns: 1fr;
    }
    .stbg-page-title {
        font-size: 2.5rem;
    }
}

/* Single Post Page Header Fix */
body.single-post, 
body.page-template-default,
body.error404 {
    padding-top: 180px !important;
}

@media (max-width: 768px) {
    body.single-post, 
    body.page-template-default {
        padding-top: 140px !important;
    }
}
