/* Post Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin: 2rem auto;
}

/* Main Content */
.post-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Title */
.post-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta i {
    color: #4a5568;
}

.post-meta a {
    color: #2b6cb0;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Post Content */
.post-content {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

/* Ensure text blocks preserve whitespace and wrapping like the editor */
.block-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.post-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #222;
    margin: 2.5rem 0 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.post-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

/* Ensure images in public area have normal cursor (no resize) */
.post-content img,
.post-content-html img {
    cursor: default !important;
    user-select: none;
    max-width: 100%;
    height: auto;
}

/* Image Styles */
.image-full {
    margin: 2rem 0;
}

.image-full img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

.image-left,
.image-right {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: flex-start;
}

.image-left img,
.image-right img {
    width: 40%;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.image-left-content,
.image-right-content {
    flex: 1;
}

.image-left img {
    order: -1;
}

.image-right img {
    order: 1;
}

.image-center {
    text-align: center;
    margin: 2rem 0;
}

.image-center img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: inline-block;
}

/* Highlight Box */
.highlight-box {
    background: #f8fafc;
    border-left: 4px solid #2b6cb0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.highlight-box p {
    margin: 0;
    color: #444;
    font-style: italic;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.like-button {
    background: #f8fafc;
    border: 1px solid #cbd5e0;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.like-button:hover {
    background: #f0f4f8;
    border-color: #a0aec0;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons span {
    color: #666;
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }

.share-btn:hover {
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comments-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    color: #1f2937;
    margin: 0;
}

/* Comment Form */
.comment-form-container {
    background: #f8fbff;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid #e0e8f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.comment-form-container h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1.25rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cad5e5;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form button {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form button:hover {
    background: #1f4f8a;
    transform: translateY(-1px);
}

.comments-section .stars i {
    color: #f1c40f;
    cursor: pointer;
}

.comment-form-container .comment-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.comment-form-container .comment-feedback.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.comment-form-container .comment-feedback.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
}
/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.comment {
    background: #fff;
    border: 1px solid #e4e9f4;
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
}

.comment::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.comment.reply {
    margin-left: 2.4rem;
    background: #f9fbff;
    border-color: #dbe4f7;
}

.comment.reply::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, #cdd9f5, #9ab7f9);
}

.comment.reply .comment.reply {
    margin-left: 2rem;
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.comment-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.comment-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.comment-author strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-author span {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Comment Body */
.comment-body {
    color: #3d485c;
    line-height: 1.65;
    font-size: 1rem;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.comment:not(.reply) .comment-body,
.comment:not(.reply) .comment-footer {
    margin-left: calc(48px + 1rem);
}

.comment.reply .comment-body,
.comment.reply .comment-footer {
    margin-left: 0;
}

.comment-body p {
    margin: 0;
}

/* Comment Footer */
.comment-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.comment-like,
.comment-reply {
    background: transparent;
    border: none;
    color: #6b7591;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.comment-like:hover,
.comment-reply:hover {
    background: #edf2ff;
    color: #1f4f8a;
}

@media (max-width: 640px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment,
    .comment.reply {
        margin-left: 0;
    }
    
    .comment.reply::before {
        display: none;
    }
    
    .comment:not(.reply) .comment-body,
    .comment:not(.reply) .comment-footer {
        margin-left: 0;
    }
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    text-align: left;
}

/* Recent Posts - Match similar tours layout */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-card {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: flex-start;
}

.recent-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    padding: 0.25rem;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.recent-post-info h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: left;
}

.recent-post-info h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-info h4 a:hover {
    color: #2b6cb0;
}

.recent-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
}

.recent-post-meta span {
    display: flex;
    align-items: center;
}

.recent-post-meta i {
    margin-right: 0.25rem;
}

/* Categories */
.categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.categories a:hover {
    color: #2b6cb0;
}

.categories span {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-main {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .post-layout {
        gap: 1.5rem;
    }
    
    .post-title {
        font-size: 1.7rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .image-left,
    .image-right {
        flex-direction: column;
    }
    
    .image-left img,
    .image-right img {
        width: 100%;
        order: 0;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment.reply {
        margin-left: 1.5rem;
    }
    
    .comment-body {
        margin-left: 0;
        padding-left: calc(40px + 0.75rem);
    }
    
    .comment-footer {
        margin-left: calc(40px + 0.75rem);
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .recent-post-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .post-main {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .comment-header {
        flex-wrap: wrap;
    }
    
    .comment-body {
        padding-left: 0;
    }
    
    .comment-footer {
        margin-left: 0;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
    
    .recent-post-card {
        align-items: flex-start;
    }
    
    .recent-post-image {
        width: 60px;
        height: 60px;
    }
}

/* Advertisement Card */
.advertisement-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.ad-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    text-align: center;
}

.ad-label span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-content {
    padding: 1.5rem;
    text-align: center;
}

.ad-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.ad-content h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: white;
}

.ad-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.ad-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0 0.5rem;
}

.ad-features span {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.ad-features i {
    color: #48bb78;
    font-size: 0.9rem;
}

.ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.ad-button:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Advertisement responsive adjustments */
@media (max-width: 1024px) {
    .advertisement-card {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .ad-content {
        padding: 1.25rem;
    }
    
    .ad-logo {
        font-size: 2rem;
    }
    
    .ad-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ad-content {
        padding: 1rem;
    }
    
    .ad-features {
        padding: 0;
    }
}

/* HIDE ADMIN CONTROLS ON FRONTEND */
.block-controls,
.block-resize-handle,
.selection-rectangle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reset styles for content blocks that might look like editor elements */
.content-block {
    border: none !important;
    position: relative !important; /* Keep relative for image positioning if needed */
    margin-bottom: 1.5em; /* Add some spacing between blocks */
}

/* Ensure images take full width of their container/block */
.content-block img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    cursor: default !important; /* Reset cursor */
}

/* Remove hover effects from blocks */
.content-block:hover {
    border-color: transparent !important;
}
