/* ===================================
   CUSTOM BLOG DETAIL PAGE CSS
   Scoped to .custom-blog-detail class only
   Won't affect other pages
   =================================== */

/* Main Wrapper */
.custom-blog-detail#single-wrapper {
    background: #fff;
    padding: 40px 0;
}

.custom-blog-detail .site-main#main {
    padding: 0;
}

/* Article Container */
.custom-blog-detail article.post {
    background: #fff;
}

/* Entry Header */
.custom-blog-detail .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.custom-blog-detail .entry-header .entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* Entry Meta (Date, Author) */
.custom-blog-detail .entry-meta {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.custom-blog-detail .entry-meta .posted-on,
.custom-blog-detail .entry-meta .byline {
    display: inline-flex;
    align-items: center;
}

.custom-blog-detail .entry-meta a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-blog-detail .entry-meta a:hover {
    color: #004499;
}

.custom-blog-detail .entry-meta time {
    font-weight: 500;
}

.custom-blog-detail .entry-meta .author.vcard a {
    font-weight: 600;
    color: #333;
}

.custom-blog-detail .entry-meta .author.vcard a:hover {
    color: #0066cc;
}

/* Featured Image */
.custom-blog-detail article .wp-post-image,
.custom-blog-detail article img.attachment-large {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Entry Content */
.custom-blog-detail .entry-content {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Typography - Headings */
.custom-blog-detail .entry-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.custom-blog-detail .entry-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;

    line-height: 1.4;
}

.custom-blog-detail .entry-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 30px;
    margin-bottom: 18px;
}

.custom-blog-detail .entry-content h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Paragraphs */
.custom-blog-detail .entry-content p {
    text-align: justify;
}

.custom-blog-detail .entry-content p:last-of-type {
    margin-bottom: 20px;
}

/* Bold and Strong Text */
.custom-blog-detail .entry-content strong,
.custom-blog-detail .entry-content b {
    font-weight: 600;
    color: #1a1a1a;
}

/* Links */
.custom-blog-detail .entry-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.custom-blog-detail .entry-content a:hover {
    color: #004499;
    border-bottom-color: #004499;
}

/* Lists */
.custom-blog-detail .entry-content ul,
.custom-blog-detail .entry-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.custom-blog-detail .entry-content ul {
    list-style-type: disc;
}

.custom-blog-detail .entry-content ol {
    list-style-type: decimal;
}

.custom-blog-detail .entry-content li {
 
    line-height: 1.7;
}

.custom-blog-detail .entry-content li[aria-level="1"] {

}

.custom-blog-detail .entry-content li strong,
.custom-blog-detail .entry-content li b {
    display: inline;
    color: #1a1a1a;
}

/* Nested Lists */
.custom-blog-detail .entry-content ul ul,
.custom-blog-detail .entry-content ol ol,
.custom-blog-detail .entry-content ul ol,
.custom-blog-detail .entry-content ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 30px;
}

/* Italic and Emphasis */
.custom-blog-detail .entry-content em,
.custom-blog-detail .entry-content i {
    font-style: italic;
}

/* WordPress Inline Styles */
.custom-blog-detail .entry-content span[style*="font-weight: 400"] {
    font-weight: 400 !important;
}

/* Blockquotes */
.custom-blog-detail .entry-content blockquote {
    border-left: 4px solid #0066cc;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Images within content */
.custom-blog-detail .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tables */
.custom-blog-detail .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.custom-blog-detail .entry-content table th,
.custom-blog-detail .entry-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.custom-blog-detail .entry-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.custom-blog-detail .entry-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Code blocks */
.custom-blog-detail .entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #c7254e;
}

.custom-blog-detail .entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 25px 0;
}

.custom-blog-detail .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Call-to-Action / Highlighted Paragraphs */
.custom-blog-detail .entry-content p:has(strong):has(em) {
    background: #f0f7ff;
    padding: 20px 25px;
    border-left: 4px solid #0066cc;
    border-radius: 5px;
    margin: 30px 0;
}

/* Entry Footer */
.custom-blog-detail .entry-footer {
    max-width: 850px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.custom-blog-detail .entry-footer .edit-link a {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-blog-detail .entry-footer .edit-link a:hover {
    background: #0066cc;
    color: #fff;
}

.custom-blog-detail .entry-footer .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Post Navigation */
.custom-blog-detail .post-navigation {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.custom-blog-detail .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.custom-blog-detail .post-navigation .nav-previous,
.custom-blog-detail .post-navigation .nav-next {
    flex: 1;
}

.custom-blog-detail .post-navigation a {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.custom-blog-detail .post-navigation a:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

/* Comments Section */
.custom-blog-detail .comments-area {
    max-width: 850px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.custom-blog-detail #respond {
    margin-top: 40px;
}

.custom-blog-detail .comment-reply-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.custom-blog-detail .comment-reply-title small {
    font-size: 0.9rem;
    margin-left: 10px;
}

.custom-blog-detail .comment-reply-title small a {
    color: #0066cc;
    text-decoration: none;
}

.custom-blog-detail .comment-reply-title small a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Comment Form */
.custom-blog-detail .comment-form {
    margin-top: 30px;
}

.custom-blog-detail .comment-form .logged-in-as {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.custom-blog-detail .comment-form .logged-in-as a {
    color: #0066cc;
    text-decoration: none;
}

.custom-blog-detail .comment-form .logged-in-as a:hover {
    text-decoration: underline;
}

.custom-blog-detail .comment-form .required-field-message {
    display: block;
    margin-top: 10px;
    color: #666;
}

.custom-blog-detail .comment-form .required {
    color: #dc3545;
    font-weight: bold;
}

/* Form Groups */
.custom-blog-detail .form-group,
.custom-blog-detail .comment-form-comment {
    margin-bottom: 25px;
}

.custom-blog-detail .form-group label,
.custom-blog-detail .comment-form-comment label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.custom-blog-detail .form-group .form-control,
.custom-blog-detail .comment-form-comment .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.custom-blog-detail .form-group .form-control:focus,
.custom-blog-detail .comment-form-comment .form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.custom-blog-detail .form-group textarea.form-control,
.custom-blog-detail .comment-form-comment textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.custom-blog-detail .form-submit {
    margin-top: 20px;
}

.custom-blog-detail .form-submit .btn,
.custom-blog-detail .form-submit .btn-secondary,
.custom-blog-detail .form-submit input[type="submit"] {
    padding: 12px 35px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-blog-detail .form-submit .btn:hover,
.custom-blog-detail .form-submit .btn-secondary:hover,
.custom-blog-detail .form-submit input[type="submit"]:hover {
    background: #004499;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Hidden Fields */
.custom-blog-detail .form-submit input[type="hidden"] {
    display: none;
}

/* Comments List */
.custom-blog-detail .comment-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.custom-blog-detail .comment-list .comment {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.custom-blog-detail .comment-list .comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.custom-blog-detail .comment-list .comment-metadata {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.custom-blog-detail .comment-list .comment-content p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .custom-blog-detail#single-wrapper {
        padding: 30px 0;
    }

    .custom-blog-detail .entry-header .entry-title {
        font-size: 2.2rem;
    }

    .custom-blog-detail .entry-content {
        font-size: 1.05rem;
    }

    .custom-blog-detail .entry-content h2 {
        font-size: 1.8rem;
    }

    .custom-blog-detail .entry-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .custom-blog-detail#single-wrapper {
        padding: 20px 0;
    }

    .custom-blog-detail .entry-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .custom-blog-detail .entry-header .entry-title {
        font-size: 1.8rem;
    }

    .custom-blog-detail .entry-meta {
        flex-direction: column;
        gap: 10px;
    }

    .custom-blog-detail article .wp-post-image,
    .custom-blog-detail article img.attachment-large {
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .custom-blog-detail .entry-content {
        font-size: 1rem;
    }

    .custom-blog-detail .entry-content h2 {
        font-size: 1.6rem;
        margin-top: 35px;
    }

    .custom-blog-detail .entry-content h3 {
        font-size: 1.3rem;
        margin-top: 30px;
    }

    .custom-blog-detail .entry-content ul,
    .custom-blog-detail .entry-content ol {
        padding-left: 25px;
    }

    .custom-blog-detail .entry-content li {
        margin-bottom: 12px;
    }

    .custom-blog-detail .comments-area {
        margin-top: 40px;
    }

    .custom-blog-detail .comment-reply-title {
        font-size: 1.5rem;
    }

    .custom-blog-detail .post-navigation .nav-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .custom-blog-detail#single-wrapper {
        padding: 15px 0;
    }

    .custom-blog-detail .entry-header .entry-title {
        font-size: 1.5rem;
    }

    .custom-blog-detail .entry-content {
        font-size: 0.95rem;
    }

    .custom-blog-detail .entry-content h2 {
        font-size: 1.4rem;
    }

    .custom-blog-detail .entry-content h3 {
        font-size: 1.2rem;
    }

    .custom-blog-detail .entry-content p {
        text-align: left;
    }

    .custom-blog-detail .form-group .form-control,
    .custom-blog-detail .comment-form-comment .form-control {
        padding: 10px 12px;
    }

    .custom-blog-detail .form-submit .btn,
    .custom-blog-detail .form-submit .btn-secondary,
    .custom-blog-detail .form-submit input[type="submit"] {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Print Styles */
@media print {
    .custom-blog-detail .entry-footer,
    .custom-blog-detail .comments-area,
    .custom-blog-detail .edit-link,
    .custom-blog-detail .post-navigation {
        display: none;
    }

    .custom-blog-detail .entry-content a {
        border-bottom: none;
    }
}

/* Accessibility Improvements */
.custom-blog-detail *:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.custom-blog-detail button:focus,
.custom-blog-detail input:focus,
.custom-blog-detail textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 0;
}

/* Selection Color */
.custom-blog-detail ::selection {
    background: #0066cc;
    color: #fff;
}

.custom-blog-detail ::-moz-selection {
    background: #0066cc;
    color: #fff;
}