/* Modern Portfolio Header */
.section-post-header {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fbfd 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid #eef2f6;
}

.title_wrapper {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.title_wrapper .entry-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.project-description-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #475569;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
    position: relative;
    text-align: center;
}

.project-description-text:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--bpe-primary);
    margin: 30px auto 0;
    border-radius: 2px;
}

/* Featured Image Styling */
.single-photo-wrapper {
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
}

.single-photo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px -15px rgba(0,0,0,0.2);
}

.image_frame {
    border: none;
    padding: 0;
    margin: 0;
}

.image_frame img {
    transition: transform 0.7s ease;
    width: 100%;
    height: auto;
    display: block;
}

.single-photo-wrapper:hover .image_frame img {
    transform: scale(1.03);
}

/* Meta Information */
.post-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.author-date, .category {
    background: white;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.author-date:hover, .category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.category .cat-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.category .cat-btn:hover {
    color: var(--bpe-primary);
}

.category .cat-wrapper {
    display: none;
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin-top: 12px;
    z-index: 100;
    min-width: 220px;
}

.category:hover .cat-wrapper {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category .cat-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category .cat-wrapper li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.category .cat-wrapper li:last-child {
    border-bottom: none;
}

.category .cat-wrapper a {
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.category .cat-wrapper a:hover {
    color: var(--bpe-primary);
    padding-left: 8px;
}

/* Project Details Styling */
.project-description {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin: 0 auto 40px;
    max-width: 1200px;
}

.project-description ul {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-description li {
    flex: 1 1 220px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 14px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--bpe-primary);
}

.project-description li:hover {
    transform: translateY(-7px);
    background: white;
}

.project-description li:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bpe-primary) 0%, var(--bpe-secondary) 100%);
    opacity: 0.03;
    z-index: 0;
}

.project-description .label {
    display: block;
    font-weight: 700;
    color: var(--bpe-primary);
    margin-bottom: 12px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.project-description li > * {
    position: relative;
    z-index: 1;
}

.project-description a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-description a:hover {
    color: var(--bpe-secondary);
    gap: 15px;
}

.project-description a i {
    font-size: 1.1rem;
}

/* Content Styling */
.entry-content {
    padding: 60px 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
    max-width: 1200px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.8rem;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 2.4rem;
    position: relative;
    padding-bottom: 20px;
}

.entry-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--bpe-primary);
    border-radius: 3px;
}

/* Footer Styling */
.section-post-footer {
    padding: 50px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
}

.post-pager {
    display: flex;
    justify-content: center;
}

.pager-single {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pager-single a, 
.pager-single span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.pager-single a:hover {
    background: var(--bpe-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Related Projects */
.section-post-related {
    padding: 90px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fbfd 100%);
}

.section-related-adjustment {
    max-width: 1200px;
    margin: 0 auto;
}

.section-related-adjustment h4 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 60px;
    color: #0f172a;
    position: relative;
}

.section-related-adjustment h4:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--bpe-primary);
    border-radius: 3px;
}

.section-related-ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.post-related {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.post-related:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.image_frame {
    overflow: hidden;
}

.image_frame img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.post-related:hover .image_frame img {
    transform: scale(1.1);
}

.date_label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bpe-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.post-related .desc {
    padding: 30px;
}

.post-related h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.post-related h4 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-related h4 a:hover {
    color: var(--bpe-primary);
}

.post-related .hr_color {
    border: none;
    height: 3px;
    background: linear-gradient(to right, var(--bpe-primary), var(--bpe-secondary));
    margin: 25px 0;
    border-radius: 2px;
}

.post-related .button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: var(--bpe-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.post-related .button:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bpe-secondary), var(--bpe-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.post-related .button span {
    position: relative;
    z-index: 1;
}

.post-related .button:hover {
    padding: 14px 35px 14px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-related .button:hover:after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-photo-wrapper,
    .project-description,
    .entry-content,
    .section-post-footer {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .title_wrapper .entry-title {
        font-size: 2.6rem;
    }
    
    .project-description-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .section-post-header {
        padding: 40px 0 20px;
    }
    
    .title_wrapper .entry-title {
        font-size: 2.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .project-description li {
        flex: 1 1 100%;
    }
    
    .section-related-ul {
        grid-template-columns: 1fr;
    }
    
    .entry-content {
        padding: 40px 0;
    }
    
    .entry-content h2 {
        font-size: 2rem;
    }
    
    .project-description-text {
        margin-bottom: 30px;
    }
}