/* SEKCJA POJEDYNCZEGO WPISU */
.single-post-section {
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    min-height: 100vh; /* stopka zawsze na dole */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px;
}

/* UKŁAD */
.post-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* TREŚĆ WPISU */
.post-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    padding: 2rem 2.2rem;
}

.post-content h1 {
    font-size: 2rem;
    color: #1a478b;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.post-content .post-body {
    color: #333;
    line-height: 1.75;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* SIDEBAR */
.sidebar {
    align-self: start;
}

.contact-info-box {
    background: #f8f9fa;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.contact-info-box h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0;
    color: #1a478b;
}

.contact-info-box p {
    margin: 0.6rem 0;
    color: #555;
    font-size: 0.97rem;
    line-height: 1.6;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-details li {
    margin-bottom: 0.7rem;
    color: #444;
}

.contact-details a {
    color: #1a478b;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.88rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.45;
}

/* SPINNER */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #1a478b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ANIMACJA WYSUWANIA */
.fade-in {
    animation: fadeIn 0.7s ease both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .post-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        display: none; /* 📱 ukrywamy sidebar na mobilkach */
    }

    .post-content {
        padding: 1.6rem;
    }

    .post-content h1 {
        font-size: 1.6rem;
    }
}