* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f5f5f5;
}


.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-block;
    color: #F59E0B;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-back:hover {
    color: #F59E0B;
}

.post-header h1 {
    font-size: 36px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* .post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
} */

/*----------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

.gallery img:hover {
  transform: scale(1.05);
}


.post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.post-article {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-excerpt {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #F59E0B;
    margin-bottom: 30px;
    border-radius: 4px;
}

.post-excerpt p {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.post-body {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 20px;
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-info, .post-share {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-info h3, .post-share h3 {
    color: #F59E0B;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.info-item .value {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

.share-btn.fb {
    background: #1877F2;
}

.share-btn.fb:hover {
    background: #0a66c2;
}

.share-btn.tw {
    background: #000000;
}

.share-btn.tw:hover {
    background: #333333;
}

.post-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-back-full {
    display: inline-block;
    background: #F59E0B;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-back-full:hover {
    background: #cb850d;
}

.error-message {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-message h1 {
    color: #F59E0B;
    margin-bottom: 15px;
    font-size: 32px;
}

.error-message p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}



/*-------------------------------*/
.zoom-image{
    cursor:pointer;
    transition:0.3s;
}

.zoom-image:hover{
    transform:scale(1.02);
}

.image-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.modal-content{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
    animation:zoomIn .3s ease;
}

.close-modal{
    position:absolute;
    top:20px;
    right:35px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
}

@keyframes zoomIn{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}



.prev-image,
.next-image{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#fff;
    font-size:50px;
    cursor:pointer;
    padding:15px;
    user-select:none;
}

.prev-image{
    left:30px;
}

.next-image{
    right:30px;
}

.prev-image:hover,
.next-image:hover{
    opacity:0.7;
}
@media (max-width: 768px) {
    .post-container {
        padding: 20px;
    }

    .post-header h1 {
        font-size: 28px;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-content-wrapper {
        grid-template-columns: 1fr;
    }

    .post-article {
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        padding: 10px;
    }
}
