/* --- PREMIUM STYLES FOR SINGLE POST PAGE --- */

.post-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.5rem; /* Larger, more impactful title */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark-color);
}

.post-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* CORRECTED #1: Image Width */
.post-figure {
    width: 80%; /* Image is 70% of the container width */
    margin: 40px auto; /* Centers the image */
}

.post-figure img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-figure figcaption {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: 10px;
    font-size: 1.2rem;
}

.post-content h2 {
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    padding: 0 50px 40px 50px; /* Adds 20px of side padding */
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: justify;
    padding: 0 50px 40px 50px; /* Adds 20px of side padding */
}

.post-content ul {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}
.post-content ul li {
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.post-content ul li::before {
    content: '\f138'; /* Font Awesome arrow-circle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--button-default-blue);
}

/* CORRECTED #2: Premium Post Footer */
.post-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.social-interaction-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-bg);
    padding: 20px;
    border-radius: 8px;
}

.react-buttons span, .share-buttons span {
    font-weight: 600;
    margin-right: 15px;
    font-size: 1.1rem;
}

.react-buttons .icon-btn, .share-buttons a {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    cursor: pointer;
}

.react-buttons .icon-btn:hover, .share-buttons a:hover {
    color: var(--button-default-blue);
    transform: translateY(-3px);
}

.comment-section {
    margin-top: 40px;
    text-align: left;
}

.comment-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* Style for the active submenu item */
.active-submenu {
    color: #a8cfff !important;
}

#disqus_thread {
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.6rem;
    }
    .post-figure {
        width: 120%; /* Image takes full width on mobile */
    }
    .social-interaction-section {
        flex-direction: column;
        gap: 20px;
    }
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 15px;
        padding: 0 20px 20px 20px; /* Adjusted padding for smaller screens */
    }
    .post-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5em;
        text-align: justify;
        padding: 0 20px 40px 20px; /* Adjusted padding for smaller screens */
    }
}
/* --- NEW: Image Hover & Modal Styles --- */

/* This styles the main container for the image and caption */
.post-figure {
    width: 80%;
    margin: 40px auto;
}

/* This is the new wrapper that will zoom */
.image-zoom-wrapper {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* This applies the hover effect to the new wrapper */
.image-zoom-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.post-figure img {
    width: 100%;
    display: block; /* Removes any extra space below the image */
}

.post-figure figcaption {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: 10px;
    font-size: 1.2rem;
}

/* --- NEW: Animated Title Styles --- */

.animated-title a {
    color: var(--dark-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.25s ease-out;
}

.animated-title a:hover {
    color: var(--button-default-blue);
}

.animated-title a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--button-default-blue);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out;
}

.animated-title a:hover::after {
    transform: scaleX(1);
}