/* ==========================================
   SINGLE POST LAYOUT
========================================== */

.single-post-wrapper {

    width: 92%;

    max-width: 1250px;

    margin: 40px auto;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 30px;

    align-items: start;
}


/* ==========================================
   SINGLE POST
========================================== */

.single-post {

    background: #ffffff;

    padding: 35px;

    border: 1px solid #eeeeee;

    border-radius: 10px;
}


/* ==========================================
   TITLE
========================================== */

.single-post-title {

    font-size: 36px;

    line-height: 1.3;

    margin-bottom: 15px;

    color: #222222;
}


/* ==========================================
   META
========================================== */

.single-post-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    padding-bottom: 20px;

    margin-bottom: 25px;

    border-bottom: 1px solid #eeeeee;

    color: #777777;

    font-size: 14px;
}


.single-post-meta i {

    color: #007bff;

    margin-right: 5px;
}


/* ==========================================
   THUMBNAIL
========================================== */

.single-post-thumbnail {

    width: 100%;

    margin-bottom: 30px;

    overflow: hidden;

    border-radius: 8px;
}


.single-post-thumbnail img {

    width: 100%;

    max-height: 500px;

    object-fit: cover;

    display: block;
}


/* ==========================================
   YOUTUBE
========================================== */

.youtube-section {

    margin: 35px 0;
}


.youtube-section h2 {

    font-size: 23px;

    margin-bottom: 15px;
}


.youtube-container {

    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

    overflow: hidden;

    border-radius: 8px;

    background: #000000;
}


.youtube-container iframe {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    border: 0;
}


/* ==========================================
   EXCERPT BOX
========================================== */

.post-excerpt-box {

    background: #f5f8ff;

    border-left: 4px solid #007bff;

    padding: 20px;

    margin: 30px 0;

    border-radius: 5px;
}


.post-excerpt-box strong {

    display: block;

    margin-bottom: 8px;

    font-size: 17px;
}


.post-excerpt-box p {

    color: #555555;

    line-height: 1.7;

    margin: 0;
}

/* ==========================================
   POST AUTHOR
========================================== */

.post-author-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.post-author-link:hover {
    text-decoration: underline;
}


.post-author-box {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-top: 40px;
    margin-bottom: 40px;

    padding: 25px;

    background: #f8f9fa;

    border: 1px solid #e5e5e5;

    border-radius: 12px;
}


.post-author-photo {
    width: 100px;
    height: 100px;

    flex-shrink: 0;

    border-radius: 50%;

    overflow: hidden;

    background: #eee;
}


.post-author-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.post-author-info {
    flex: 1;
}


.post-author-label {
    font-size: 13px;

    color: #777;

    margin-bottom: 5px;
}


.post-author-info h3 {
    margin: 0 0 8px;

    font-size: 21px;
}


.post-author-info h3 a {
    color: #222;

    text-decoration: none;
}


.post-author-info h3 a:hover {
    text-decoration: underline;
}


.post-author-info p {
    margin: 0 0 12px;

    color: #666;

    font-size: 14px;

    line-height: 1.7;
}


.view-author-profile {
    display: inline-block;

    color: #222;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


.view-author-profile:hover {
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 600px) {

    .post-author-box {
        align-items: flex-start;

        gap: 15px;

        padding: 20px;
    }


    .post-author-photo {
        width: 75px;
        height: 75px;
    }


    .post-author-info h3 {
        font-size: 18px;
    }


    .post-author-info p {
        font-size: 13px;
    }

}


/* ==========================================
   ARTICLE CONTENT
========================================== */

.article-content {

    font-size: 17px;

    line-height: 1.9;

    color: #333333;

    margin-bottom: 50px;
}


.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {

    margin-top: 30px;

    margin-bottom: 15px;

    line-height: 1.4;
}


.article-content p {

    margin-bottom: 18px;
}


.article-content ul,
.article-content ol {

    margin: 15px 0 20px 25px;
}


.article-content li {

    margin-bottom: 8px;
}


.article-content img {

    max-width: 100%;

    height: auto;

    border-radius: 6px;

    margin: 20px 0;
}


.article-content blockquote {

    margin: 25px 0;

    padding: 15px 20px;

    border-left: 4px solid #007bff;

    background: #f7f7f7;

    color: #555555;
}


/* ==========================================
   QUIZ SECTION
========================================== */

.quiz-section {

    margin-top: 50px;

    padding-top: 35px;

    border-top: 2px solid #eeeeee;
}


.quiz-header {

    text-align: center;

    margin-bottom: 30px;
}


.quiz-header h2 {

    font-size: 28px;

    margin-bottom: 8px;
}


.quiz-header p {

    color: #777777;

    line-height: 1.6;
}


/* ==========================================
   QUESTION
========================================== */

.quiz-question {

    padding: 25px;

    margin-bottom: 22px;

    background: #fafafa;

    border: 1px solid #e5e5e5;

    border-radius: 8px;
}


.quiz-question h3 {

    font-size: 17px;

    margin-bottom: 12px;

    color: #007bff;
}


.question-text {

    font-size: 16px;

    font-weight: 600;

    line-height: 1.6;

    margin-bottom: 18px;
}


/* ==========================================
   OPTIONS
========================================== */

.quiz-option {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    margin-bottom: 9px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 5px;

    cursor: pointer;

    transition: 0.2s;
}


.quiz-option:hover {

    border-color: #007bff;

    background: #f5f9ff;
}


.quiz-option input {

    width: 17px;

    height: 17px;

    cursor: pointer;
}


.quiz-option span {

    font-size: 15px;

    line-height: 1.5;
}


/* ==========================================
   SUBMIT BUTTON
========================================== */

.quiz-submit {

    display: block;

    margin: 30px auto 10px;

    padding: 13px 35px;

    background: #007bff;

    color: #ffffff;

    border: none;

    border-radius: 6px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}


.quiz-submit:hover {

    background: #0056b3;

    transform: translateY(-1px);
}


/* ==========================================
   QUIZ RESULT
========================================== */

.quiz-result {

    text-align: center;

    margin-top: 30px;

    padding: 35px;

    background: #f5f9ff;

    border: 1px solid #dbeafe;

    border-radius: 10px;
}


.score-icon {

    width: 55px;

    height: 55px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #007bff;

    color: #ffffff;

    font-size: 28px;
}


.quiz-result h2 {

    margin-bottom: 15px;
}


.score-number {

    font-size: 42px;

    font-weight: 700;

    color: #007bff;

    margin-bottom: 3px;
}


.quiz-result > p {

    color: #777777;

    margin-bottom: 20px;
}


.score-details {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 25px;
}


.score-details span {

    padding: 8px 15px;

    background: #ffffff;

    border-radius: 5px;

    font-size: 14px;
}


/* ==========================================
   RETRY BUTTON
========================================== */

.retry-btn {

    padding: 10px 25px;

    border: 1px solid #007bff;

    background: #ffffff;

    color: #007bff;

    border-radius: 5px;

    cursor: pointer;

    font-weight: 500;
}


.retry-btn:hover {

    background: #007bff;

    color: #ffffff;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {

    .single-post-wrapper {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 600px) {

    .single-post {

        padding: 20px;

    }


    .single-post-title {

        font-size: 27px;

    }


    .single-post-meta {

        flex-direction: column;

        gap: 8px;

    }


    .article-content {

        font-size: 16px;

    }


    .quiz-question {

        padding: 18px;

    }


    .score-details {

        flex-direction: column;

        gap: 8px;

    }

}