/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme..
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
Developed by Rizwan Ahmed Tagar
*/

/* FORCE SMALLER MCQ TITLES (Kadence Override) */

html {
    scroll-behavior: smooth;
}

#masthead {
    position: relative;
    z-index: 9999 !important;
	border-bottom-width: 2px;
    border-bottom-color: #efefef;
    box-shadow: 1px 0px 5px 2px rgb(0 0 0 / .1);
}

/* Mode button in Mobile view */
p {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

.kadence-posts-list .entry-list-item {
    display: flex;
    flex-direction: column;
	border-radius: 20px;
	padding: 0px;
}

.entry.loop-entry {
    box-shadow: 0 2px 15px -1px rgb(0 0 0 / .06) !important;
    border: 1px solid #efefef !important;
}


.loop-entry .entry-content-wrap {
    padding: 1rem !important;
}

.entry-meta {
    font-size: 80%;
    margin: 0.5em 0 3em !important;
    display: flex;
    flex-wrap: wrap
}

.widget li:not(.kb-table-of-content-list li) {
    line-height: 1.8;
    border-bottom: 1px solid #d6d3d3;
    padding: 5px;
    font-weight: 600;
}

.custom-footer-text {
    font-family: var(--global-body-font-family);
    font-weight: 400;
    color: rgb(26, 26, 26);
    background-color: transparent;
    padding: 15px;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.single-content h3 {
    margin: 0.5em 0 .5em!important;
}


/* MCQ Homepage Categories */
.mcq-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
	margin-bottom: 3em;
}

@media (max-width: 992px) {
    .mcq-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mcq-home-grid {
        grid-template-columns: 1fr;
    }
}

.mcq-home-card {
    background: #fff;
    border: 1px solid #ebebeb;
    padding: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mcq-home-card:hover {

    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.mcq-home-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 12px;
}

.mcq-home-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.mcq-home-title a {
    text-decoration: none;
    color: #222;
}

.mcq-home-title a:hover {
    text-decoration: none;
    color: #1a7f37;
    transition: all 0.25s ease;
}

.mcq-home-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.correct {
    font-weight: bold;
    color: green;
}

.mcq-single-wrapper {
    max-width: 800px;
    margin: 0px auto;
}

.mcq-question {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mcq-options {
	margin-top: 10px;
    font-size: 15px;
    list-style: none;
    padding: 0;
}

.mcq-options li {
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mcq-options p {
	padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mcq-options p.correct {
    font-weight: 600;
    color: #FFF;
    background: #56ab6b;
    padding: 6px;
    border-radius: 4px;
}

.mcq-options li.correct {
    font-weight: bold;
    color: #1a7f37;
    background: #eaf6ee;
    border-color: #1a7f37;
}

/* REMOVE LEFT GAP FOR MCQ OPTIONS (KADENCE FIX) */
.entry-content-wrap .mcq-single-wrapper {
    margin-left: 0;
    padding-left: 0;
}

.entry-content-wrap .mcq-options {
    margin-left: 0;
    
}

.entry-content-wrap .mcq-options li {
    margin-left: 0;
}

/* MCQ Archive Layout */
.mcq-archive-item {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 20px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.mcq-archive-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mcq-archive-title a {
    text-decoration: none;
    color: #0a7d2f;
}

.mcq-archive-options {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.mcq-archive-options li {
    padding: 4px 0;
    font-size: 15px;
}

.mcq-archive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2em 0.3em 0.5em 0.3em;
    font-size: 14px;
}

.mcq-updated-by {
    color: #666;
}

.mcq-read-more-wrap {
    margin-top: 2em;
}

.mcq-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #b7b7b7;
    text-decoration: none;
}

.mcq-read-more:hover {
    text-decoration: underline;
}

/* Blog Category Only — 2 Column Grid */
.category-blog .content-area .kadence-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .category-blog .content-area .kadence-posts-list {
        grid-template-columns: 1fr;
    }
}

/* Blog Category - Remove shadow & Border Radius*/
.category-blog .kadence-posts-list .entry-list-item {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 1px solid #eee;
}

/* EDS Categroy — 2 Column Grid */
.category-eds .kadence-posts-list .entry-list-item {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 1px solid #eee;
}


.category-eds .content-area .kadence-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .category-eds .content-area .kadence-posts-list {
        grid-template-columns: 1fr;
    }
}

/* HIDE excerpt & read more in ALL categories EXCEPT blog + eds */
.category:not(.category-blog):not(.category-eds) .entry-footer,
.category:not(.category-blog):not(.category-eds) .entry-actions,
.category:not(.category-blog):not(.category-eds) .more-link-wrap,
.category:not(.category-blog):not(.category-eds) .entry-summary,
.category:not(.category-blog):not(.category-eds) .entry-excerpt {
    display: none !important;
}

/* Hide correct answer immediately if quiz-mode stored */
html.quiz-mode .mcq-options p.correct {
    background: transparent !important;
    color: inherit !important;
    border-color: #ddd !important;
    font-weight: normal !important;
}

.rz-quiz-btn {
    background: #5612cb;
    color: #fff;
    border: none;
    min-width: 130px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 0px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.rz-quiz-btn:hover {
    background: #000;
	box-shadow: none;
}

@media (max-width: 1024px) {
    .rz-quiz-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .rz-quiz-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .rz-quiz-btn {
        padding: 10px 18px;
        min-width: 150px;
        font-size: 15px;
        border-radius: 0px;
        vertical-align: text-top;
    }
}

/* Hide correct initially */
body.quiz-mode .mcq-options p.correct {
    background: transparent !important;
    color: inherit !important;
    border-color: #ddd !important;
    font-weight: normal !important;
}

/* Correct answer visibility */
body.quiz-mode .mcq-options p.quiz-correct {
    background: #eaf6ee !important;
    color: #1a7f37 !important;
    border-color: #1a7f37 !important;
    font-weight: 600 !important;
}

/* Wrong answer */
body.quiz-mode .mcq-options p.quiz-wrong {
    background: #fdeaea !important;
    color: #b00020 !important;
    border-color: #b00020 !important;
    font-weight: 600 !important;
}

/* Pointer feedback */
body.quiz-mode .mcq-options p {
    cursor: pointer;
}

body.quiz-mode .mcq-options p:hover {
    cursor: pointer;
	background: transparent !important;
    border-color: #bbb !important;
}


/* Correct after click */
body.quiz-mode .mcq-options p.quiz-correct {
    background: #007540 !important;
    color: #FFF !important;
    border-color: #007540 !important;
    font-weight: 600 !important;
}

/* Wrong after click */
body.quiz-mode .mcq-options p.quiz-wrong {
    background: #b5281e !important;
    color: #FFF !important;
    border-color: #b5281e !important;
    font-weight: 600 !important;
}



