* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

:root {
            --primary-color: #36db85;
            --secondary-color: #00c35e;
            --dark-color: #212529;
            --danger-color: #e74c3c;
            --button-text-color: #ffffff;
        }

body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #EFF7F1;
        }

.container {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
        }

/* Single unified card wrapping title, image, meta row and content */
        .post-card {
            background-color: white;
            border-radius: 18px;
            padding: 1.75rem 2rem 2.5rem;
            margin-bottom: 40px;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
        }

.post-title-card {
            margin-bottom: 20px;
        }

.post-title {
            font-size: 2.1rem;
            line-height: 1.3;
            color: var(--dark-color);
        }

.post-meta-row {
            display: flex;
            align-items: center;
            gap: 20px;
            color: #868e96;
            font-size: 0.9rem;
            margin-bottom: 5px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eef1ef;
        }

.post-meta-row i {
            margin-right: 5px;
        }

.post-featured-image {
            width: 100%;
            max-height: auto;
            object-fit: cover;
            border-radius: 14px;
            margin-bottom: 20px;
        }

.post-header {
            margin-bottom: 25px;
        }

.post-header h1 {
            font-size: 2.25rem;
            line-height: 1.25;
            margin-bottom: 12px;
        }

.post-date {
            color: #868e96;
            font-size: 0.9rem;
        }

.post-content {
            padding-top: 20px;
        }

.post-content h2 {
            font-size: 1.8rem;
            margin: 1.5rem 0 1rem;
            color: #36db85;
        }

.post-content h3 {
            font-size: 1.5rem;
            margin: 1.3rem 0 0.8rem;
            color: #00c35e;
        }

.post-content p {
            margin-bottom: 1rem;
            line-height: 1.7;
        }

.post-content ul,
        .post-content ol {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
        }

.post-content li {
            margin-bottom: 0.5rem;
        }

.post-content a {
            color: #4895ef;
            text-decoration: none;
            font-weight: 500;
        }

.post-content a:hover {
            text-decoration: underline;
        }

.post-content img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 1.5rem 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

.related-posts {
    margin-bottom: 50px;
}

.related-posts h2 {
            font-size: 1.4rem;
            margin-bottom: 18px;
        }

.related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

.related-card {
            background-color: white;
            border-radius: 14px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            transition: transform 0.3s;
        }

.related-card:hover {
            transform: translateY(-3px);
        }

.related-card-img {
            width: 100%;
            aspect-ratio: 16 / 10;
            background-color: #e9ecef;
            overflow: hidden;
        }

.related-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.related-card-body {
            padding: 14px 16px;
        }

.related-card-title {
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.35;
        }

/* Comment Section */
        .comment-form-card, .comments-list-card {
            background-color: white;
            border-radius: 18px;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            margin-bottom: 30px;
            overflow: hidden;
        }

.section-header {
            padding: 20px 30px;
        }

.section-header h3 {
            font-size: 1.5rem;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

.section-icon {
            display: inline-flex;
            height: 2rem;
            width: 2rem;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            border-radius: 50px;
            background-image: linear-gradient(to bottom right, var(--gradient-from), var(--gradient-to));
            color: white;
            font-size: 0.875rem;
            box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
        }

.section-icon svg {
            width: 1em;
            height: 1em;
            display: inline-block;
            vertical-align: -0.125em;
            overflow: visible;
        }

.comment-form-content, .comments-list-content {
            padding: 0 30px 30px;
        }

.form-wrapper {
            width: 100%;
        }

.form-group {
            padding: 0.75rem;
            margin: -0.75rem;
            display: flex;
            flex-wrap: wrap;
        }

.form-label {
            display: block;
            font-size: 0.875rem;
            line-height: 1.25rem;
            color: #4b5563;
            margin-bottom: 0.5rem;
        }

.form-input {
            width: 100%;
            padding: 0.8rem 0.75rem;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            background-color: white;
            outline: none;
            font-family: inherit;
        }

.form-input:focus {
            border-color: transparent;
            box-shadow: 0 0 0 2px var(--secondary-color);
        }

.textarea {
            min-height: 10rem;
            resize: vertical;
        }

.form-row {
            display: flex;
            flex-wrap: wrap;
            margin: -0.75rem;
            width: calc(100% + 1.5rem);
        }

.form-col {
            width: 50%;
            padding: 0.75rem;
            position: relative;
        }

.checkbox {
            display: flex;
            align-items: center;
            margin-top: 1rem;
            font-size: 0.875rem;
            color: #4b5563;
        }

.checkbox input {
            margin-right: 0.5rem;
        }

.btn {
            display: inline-block;
            border-radius: 8px;
            padding: 0.75rem 1rem;
            text-align: center;
            font-weight: 600;
            color: var(--button-text-color);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background-color: var(--secondary-color);
            margin-top: 0.75rem;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

.btn:hover {
            background-color: var(--primary-color);
            opacity: 0.9;
        }

.comment {
            background: #f9f9f9;
            border-radius: 10px;
            padding: 15px 20px;
            margin-bottom: 20px;
            position: relative;
        }

.comment-header {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }

.comment-author {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: #2c3e50;
        }

.comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--secondary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
            flex-shrink: 0;
        }

.comment-date {
            color: #95a5a6;
            font-size: 14px;
        }

.comment-content {
            line-height: 1.6;
        }

.success-message {
            background-color: #d4edda;
            color: #22c55e;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            display: none;
        }

.error-message {
            color: var(--danger-color);
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }

body.dark {
            background-color: #1a202c;
            color: #f3f4f6;
        }

body.dark .post-card,
        body.dark .related-card,
        body.dark .comment-form-card,
        body.dark .comments-list-card {
            background-color: #2d3748;
            color: #f3f4f6;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

body.dark .post-meta-row {
            border-bottom-color: #3f4b5e;
        }

body.dark .post-title,
        body.dark .post-content h2,
        body.dark .post-content h3,
        body.dark .related-posts h2,
        body.dark .section-header h3,
        body.dark .comment-author,
        body.dark .comment-content,
        body.dark .form-label {
            color: #f3f4f6;
        }

body.dark .post-content a {
            color: #4cc9f0;
        }

body.dark .form-input {
            background-color: #1a202c;
            border-color: #4a5568;
            color: #f3f4f6;
        }

body.dark .comment {
            background-color: #364154;
        }

body.dark .checkbox label {
            color: #cbd5e0;
        }

@media (max-width: 768px) {
            .post-title {
                font-size: 1.75rem;
            }

            .post-card {
                padding: 1.25rem 1.5rem 1.75rem;
            }

            .post-meta-row {
                flex-wrap: wrap;
                gap: 12px 20px;
            }

            .post-content h2 {
                font-size: 1.5rem;
            }

            .post-content h3 {
                font-size: 1.3rem;
            }

            .related-grid {
                grid-template-columns: 1fr;
            }

            .section-header,
            .comment-form-content,
            .comments-list-content {
                padding-left: 18px;
                padding-right: 18px;
            }

            .form-col {
                width: 100%;
            }
        }
